Method, device, terminal and storage medium for determining network search cycle

By recording the number of consecutive registration failures of SIM cards and increasing the network search cycle when the threshold is reached, the problem of the terminal's increased power consumption when the SIM card problem is solved, and power consumption saving is achieved.

CN114710824BActive Publication Date: 2025-03-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210397849.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2025-03-18
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

When there is a problem with the SIM card, the terminal continues to search and register the network, resulting in an increase in power consumption.

Method used

By recording the number of times the SIM card fails to register continuously in different network types, when the preset threshold is reached, the network search cycle is increased to reduce the number of network searches.

Benefits of technology

It effectively reduces the power consumption of the terminal when the SIM card registration fails, reduces the number of network searches, and thus saves power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114710824B_ABST
    Figure CN114710824B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, terminal and storage medium for determining a network search cycle, and belongs to the field of communication technology. It includes: based on a first search cycle, a network search is performed through a user identity module SIM card in a terminal to obtain a first network cell; if the SIM card fails to register in the first network cell, based on the target network type of the first network cell, the number of consecutive registration failures corresponding to the target network type in multiple network types is updated; if the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to the network type, the first search cycle is increased to obtain a second search cycle. In the above scheme, when the number of consecutive registration failures in multiple network types reaches the corresponding first preset threshold, the network search cycle is increased. Even if the terminal tries to register the network again, it will take a long time, which reduces the number of network searches and saves the power consumption of the terminal for network searches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a method, device, terminal and storage medium for determining a network search period. Background Art

[0002] With the development of communication technology, the terminals use more and more ways to use the network. For example, a Subscriber Identity Module (SIM) is installed in the terminal, and the network cell of the operator corresponding to the SIM card is determined through network search, so that the SIM card is registered to the network cell of the operator and the data network of the operator is used.

[0003] If there is a problem with the SIM card, the SIM card cannot be registered normally. According to the network registration process of the current network protocol, the SIM card will continuously search the network and then try to register with the network. This will increase the power consumption of the terminal. Summary of the invention

[0004] The embodiment of the present application provides a method, device, terminal and storage medium for determining a network search period, which can reduce the power consumption of the terminal. The technical solution is as follows:

[0005] In one aspect, a method for determining a network search period is provided, the method comprising:

[0006] Based on the first search cycle, a network search is performed through a user identity module SIM card in the terminal to obtain a first network cell;

[0007] If the SIM card fails to register in the first network cell, updating the number of consecutive registration failures corresponding to the target network type among the multiple network types based on the target network type of the first network cell;

[0008] If the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, the first search period is increased to obtain a second search period.

[0009] On the other hand, a device for determining a network search period is provided, the device comprising:

[0010] A search module, configured to perform a network search through a user identity module SIM card in the terminal based on a first search period to obtain a first network cell;

[0011] an updating module, configured to update the number of consecutive registration failures corresponding to a target network type among multiple network types based on a target network type of the first network cell if the SIM card fails to register in the first network cell;

[0012] The search module is used to increase the first search period to obtain a second search period if the number of consecutive registration failures corresponding to each network type reaches a first preset threshold corresponding to each network type.

[0013] On the other hand, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for determining the network search period as described in any one of the above aspects.

[0014] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for determining a network search period as described in any one of the above aspects.

[0015] On the other hand, a computer program product is provided, wherein the computer program product stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the method for determining a network search period as described in any one of the above aspects.

[0016] In an embodiment of the present application, by determining the number of consecutive registration failures of the SIM card in multiple network types, when the number of consecutive registration failures in multiple network types reaches the corresponding first preset threshold, the network search period is increased. In this way, even if the terminal tries to register the network again, a longer time is required, thereby reducing the number of network searches and further saving power consumption of the terminal for network searches. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram showing an implementation environment involved in a method for determining a network search period shown in an exemplary embodiment of the present application;

[0018] Figure 2 A flowchart of a method for determining a network search period shown in an exemplary embodiment of the present application is shown;

[0019] Figure 3 A flowchart of a method for determining a network search period shown in an exemplary embodiment of the present application is shown;

[0020] Figure 4 A flowchart of a method for determining a network search period shown in an exemplary embodiment of the present application is shown;

[0021] Figure 5 A flowchart of a method for determining a network search period shown in an exemplary embodiment of the present application is shown;

[0022] Figure 6A block diagram of a device for determining a network search period shown in an exemplary embodiment of the present application is shown;

[0023] Figure 7 A structural block diagram of a terminal shown in an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0025] The "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. The relevant data involved in the embodiments of the present application may be information fully authorized by the user or all parties.

[0026] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the SIM card, search cycle, etc. involved in this application are all obtained with full authorization.

[0027] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment involved in a method for determining a network search period shown in an exemplary embodiment of the present application. Figure 1 , the implementation environment includes: a terminal 10 and a network device 20. The terminal 10 and the network device 20 communicate with each other through a network cell. In some embodiments, the terminal 10 obtains a registrable network cell through a network search, and the registrable network cell is a network cell provided by the operator of the SIM card in the terminal, and then the terminal applies for network registration in the network cell so that it can use the data network through the network cell.

[0028] In some embodiments, the network cell is a cell corresponding to at least one communication system of the Long Term Evolution (LTE) system, the Wideband Code Division Multiple Access (WCDMA) system or the Global System for Mobile Communications (GSM). In the embodiments of the present application, no specific limitation is made to this.

[0029] In some embodiments, the network device 20 is any network device with wireless transceiver functions. For example, the network device 20 is a base station, an evolved Node B (eNB), an access point (AP) in a next generation Node B (gNB) wireless fidelity (WIFI) system, a wireless relay node, a wireless backhaul node, a transmission point (TP), or a transmission and reception point (TRP).

[0030] In some embodiments, the terminal 10 is a terminal with wireless communication function. The terminal 10 can communicate with one or more core networks via a radio access network (RAN). The terminal 10 can be a mobile terminal, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device. The terminal 10 can be a mobile phone, a tablet computer, a computer with wireless communication function, or a wearable device, etc. In the embodiments of the present application, this is not specifically limited.

[0031] Please refer to Figure 2 , which shows a flow chart of a method for determining a network search period shown in an exemplary embodiment of the present application. The method includes the following steps:

[0032] Step S201: the terminal performs a network search through a subscriber identity module SIM card in the terminal based on a first search cycle to obtain a first network cell.

[0033] The first search cycle is the default search cycle of the terminal, or the first search cycle is a search cycle adjusted based on the default search cycle. After the terminal is turned on or a new SIM card is installed, the terminal performs a network search according to the current first search cycle. In some embodiments, the terminal performs a network search based on the first search cycle each time, and obtains a network cell, and the terminal determines the network cell as the first network cell. In some embodiments, the terminal performs a network search based on the first search cycle and obtains a network search result, and the network search result includes multiple network cells of multiple network types, and the terminal determines the first network cell among the multiple network cells. It should be noted that the terminal can select a network cell as the first network cell in each network search result, and the terminal can also sequentially select multiple network cells in the network search results as the first network cell. In the embodiments of the present application, this is not specifically limited.

[0034] Step S202: If the SIM card fails to register in the first network cell, the terminal updates the number of consecutive registration failures corresponding to the target network type among the multiple network types based on the target network type of the first network cell.

[0035] The terminal sends a registration request to the first network cell through the SIM card, and the network device corresponding to the first network cell determines whether to allow the SIM card to register with the network based on the registration request. If the SIM card is allowed to register with the network, the network device registers based on the registration information of the SIM card. If the SIM card is not allowed to register with the network, the network device feeds back a rejection code to the terminal. The rejection code is used to indicate that the SIM card has failed to register in the first network cell, and the rejection code carries the cell identifier of the first network cell. In some embodiments, when an abnormality occurs to the SIM card, the network device corresponding to the first network cell does not allow the SIM card to register with the network. For example, when the SIM card is in arrears, identity authentication is not completed, or the registration password is incorrect.

[0036] In some embodiments, the terminal records the number of consecutive registration failures of the SIM card in the network cell of each network type. For example, the network type includes the LTE network type and the GSM / WCDMA network type, and the number of consecutive registration failures in these two network types is represented by nLteRej and nGWRej respectively. When registration fails in any network type, the terminal increases the number of consecutive registration failures corresponding to the network type by one based on the network type. For example, if registration fails in the LTE network type, nLteRej=nLteRej+1; if registration fails in the GSM / WCDMA network type, nGWRej=nGWRej+1.

[0037] One point that needs to be explained is that during the process of the terminal registering the network based on the SIM card, the terminal may register successfully after several failures, indicating that the SIM card is a normal SIM card, and the terminal will reset the number of consecutive registration failures to zero. Correspondingly, if the SIM card successfully registers in the first network cell, the terminal resets the number of consecutive registration failures corresponding to each network type. This prevents the accumulation of the number of registration failures of the SIM card, resulting in the adjustment of the search cycle when the SIM card is normal, causing a slow connection to the network and affecting the user experience.

[0038] It should be noted that in the embodiments of the present application, different network types can be divided according to different standards. For example, the network includes multiple types of LTE networks, GSM networks, or WCDMA networks. In some embodiments, the terminal divides the network types based on each network, for example, the LTE network, GSM network, and WCDMA network are divided into LTE network type, GSM network type, and WCDMA network type, respectively. In some embodiments, the terminal divides at least two networks into one type. For example, the LTE network, GSM network, and WCDMA network are divided into LTE network type and GSM / WCDMA network type, respectively. In the embodiments of the present application, the division of network types is not specifically limited.

[0039] The terminal determines the target network type of the currently registered first cell. The terminal determines the target network type of the network cell based on the attribute information of the network cell. The terminal obtains the cell information of the network cell, parses the network type of the first network cell from the cell information, and obtains the target network type.

[0040] Step S203: If the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, the terminal increases the first search period to obtain a second search period.

[0041] If the number of consecutive registration failures of the SIM card in the network cell of each network type reaches the first preset threshold corresponding to each network type, the terminal determines that the SIM card is an abnormal SIM card, thereby reducing the number of network searches to achieve the purpose of reducing terminal power consumption. In the embodiment of the present application, the terminal reduces the number of network searches by increasing the search period of the network search.

[0042] In some embodiments, the terminal adjusts the first search cycle based on a pre-set target step size to obtain a second search cycle, thereby increasing the search cycle. In subsequent network search processes, the terminal performs network searches with the second search cycle. The target step size is set as needed. In the embodiment of the present application, the target step size is not specifically limited. For example, the target step size is 1 minute or 2 minutes. In the embodiment of the present application, the search cycle of the terminal is adjusted by the target step size, which reduces the number of network searches performed by the terminal in the event of a SIM card registration failure, thereby reducing the power consumption of the terminal.

[0043] In some embodiments, the terminal adjusts multiple network search cycles in the subsequent network search process in an incremental manner based on the target step size. Based on the target step size, the terminal increases the first search cycle to obtain a third search cycle; based on the third search cycle, the network search is performed through the SIM card to obtain a second network cell; if the SIM card is successfully registered in the second network cell, the third search cycle is determined as the second search cycle; if the SIM card fails to register in the second network cell, based on the target step size, the first search cycle is increased again until the second search cycle is obtained. For example, the target step size is 2 minutes, the initial search cycle is 1 minute, and if the subsequent network registration is unsuccessful, the search cycle in the subsequent network search process is 3 minutes, 5 minutes, 7 minutes, 9 minutes, and so on, until the search cycle reaches the second search cycle. In an embodiment of the present application, based on a single judgment, multiple search cycles in the network search process are adjusted, so that the search cycle becomes longer and longer, further reducing the number of network searches in the case of SIM card registration failure, thereby reducing the power consumption of the terminal.

[0044] In some embodiments, the terminal adjusts multiple network search cycles in the subsequent network search process in a multiple increase manner. Accordingly, the terminal increases the first search cycle based on the target multiple to obtain a fourth search cycle; based on the fourth search cycle, the SIM card is used to perform a network search to obtain a third network cell; if the SIM card is successfully registered in the third network cell, the fourth search cycle is determined as the second search cycle; if the SIM card fails to register in the third network cell, the fourth search cycle is increased again based on the target multiple until the second search cycle is obtained. For example, the terminal adjusts the search cycle of multiple network searches at a 2-fold increase rate. If the initial search cycle is 1 minute, then in the subsequent network search process, if the subsequent network registration is unsuccessful, the search cycle is 2 minutes, 4 minutes, 8 minutes, 16 minutes, 32 minutes, and so on, until the search cycle reaches the second search cycle. In the embodiment of the present application, multiple search cycles in the network search process are adjusted at one time in multiples, so that the search cycle becomes longer and longer, further reducing the number of network searches in the case of SIM card registration failure, thereby reducing the power consumption of the terminal.

[0045] It should be noted that after the search cycle reaches the second search cycle, the terminal can maintain the second search cycle for network search. For example, if the second search cycle is 64 minutes, the terminal can maintain 64 minutes as the search cycle for network search after the search cycle increases to 64 minutes. This prevents the problem of being unable to perform network registration for a long time due to the search cycle being too long after the SIM card returns to normal.

[0046] Another point to be explained is that the first preset threshold is set as needed, and the first preset threshold corresponding to each network type is the same or different, which is not limited in the embodiment of the present application. For example, the first preset threshold corresponding to each network type is the same, which is 10 times.

[0047] In an embodiment of the present application, by determining the number of consecutive registration failures of the SIM card in multiple network types, when the number of consecutive registration failures in multiple network types reaches the corresponding first preset threshold, the network search period is increased. In this way, even if the terminal tries to register the network again, a longer time is required, thereby reducing the number of network searches and further saving power consumption of the terminal for network searches.

[0048] Please refer to Figure 3 , which shows a flow chart of a method for determining a network search period shown in an exemplary embodiment of the present application. The method includes the following steps:

[0049] Step S301: the terminal performs a network search through a user identity module SIM card in the terminal based on a first search cycle to obtain a first network cell.

[0050] The principle of this step is the same as that of step S201 and will not be repeated here.

[0051] Step S302: If the SIM card fails to register in the first network cell, the terminal updates the number of consecutive registration failures corresponding to the target network type among the multiple network types based on the target network type of the first network cell.

[0052] The principle of this step is the same as that of step S202 and will not be repeated here.

[0053] Step S303: If the first network cell is not a network cell where the SIM card has historically failed to register, the terminal updates the number of cells where registration has failed corresponding to the target network type among the multiple network types.

[0054] If the registration fails in the first network cell, the terminal will receive a rejection code fed back by the first network cell, which carries the cell identifier of the first network cell. The terminal distinguishes the first network cell from the network cell where the historical registration failed based on the cell identifier. Accordingly, if the cell identifier carried by the rejection code is different from the cell identifier of the network cell where the historical registration failed, the terminal determines that the first network cell is not the network cell where the historical registration failed.

[0055] In some embodiments, the terminal records the number of network cells in which the SIM card has failed to register historically in different network types. For example, the network types include LTE network type and GSM / WCDMA network type, and the terminal indicates the number of cells in which the registration has failed historically in these two network types through nLteCellChang and nGWCellChang, respectively. When registration fails in any new network cell, the number of cells in which the registration has failed historically corresponding to the network type is increased by one based on the network type corresponding to the network cell. For example, if registration fails in the LTE network type, nLteCellChang = nLteCellChang + 1; if registration fails in the GSM / WCDMA network type, nGWCellChang = nGWCellChang + 1.

[0056] It should be noted that the terminal may first update the number of consecutive registration failures and then update the number of cells where registration failed. The terminal may also first update the number of cells where registration failed and then update the number of consecutive registration failures. The terminal may also simultaneously update the number of consecutive registration failures and the number of cells where new registration failed. In the embodiment of the present application, the execution order of step S302 and step S303 is not specifically limited.

[0057] Step S304: If the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type, the terminal increases the first search period to obtain the second search period.

[0058] The principle of this step is the same as that of step S203 and will not be repeated here.

[0059] It should be noted that the second preset threshold is set as needed, and the second preset threshold corresponding to each network type is the same or different, which is not limited in the embodiment of the present application. For example, the second preset threshold corresponding to each network type is the same, which is 5.

[0060] In the embodiment of the present application, by determining the number of consecutive registration failures of the SIM card in multiple network types, when the number of consecutive registration failures in multiple network types reaches the corresponding first preset threshold, the network search cycle is increased, so that even if the terminal attempts to register the network again, it will take a long time, thereby reducing the number of network searches, thereby saving the power consumption of the terminal for network searches. In addition, the number of cells where the SIM card has failed to register in history is combined to determine whether the search cycle needs to be adjusted, thereby improving the accuracy of adjusting the search cycle.

[0061] Please refer to Figure 4 , which shows a flow chart of a method for determining a network search period shown in an exemplary embodiment of the present application. The method includes the following steps:

[0062] Step S401: the terminal performs a network search through a subscriber identity module SIM card in the terminal based on a first search cycle to obtain a first network cell.

[0063] The principle of this step is the same as that of step S201 and will not be repeated here.

[0064] Step S402: If the SIM card fails to register in the first network cell, the terminal updates the number of consecutive registration failures corresponding to the target network type among the multiple network types based on the target network type of the first network cell.

[0065] The principle of this step is the same as that of step S202 and will not be repeated here.

[0066] Step S403: if the first network cell is not a network cell with which the SIM card has historically failed to register, the number of cells with failed registration corresponding to the target network type among the multiple network types is updated.

[0067] The principle of this step is the same as that of step S303 and will not be repeated here.

[0068] Step S404: the terminal determines the time difference between the time of the first registration failure and the current time during the process of consecutive registration failures of the SIM card.

[0069] In some embodiments, the terminal records the time of the first registration failure, and after the current registration failure, determines the time difference based on the time of the current registration failure and the time of the first registration failure. In some embodiments, the terminal starts a timer when starting a network search, and resets the timer if the registration is successful, so that the timer starts from the first registration failure, and after the current registration failure, reads the timer duration, and uses the duration as the time difference between the time of the first registration failure and the current time.

[0070] Step S405: If the time difference is greater than the preset duration, and the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type, the terminal increases the first search period to obtain the second search period.

[0071] The principle of this step is the same as that of step S203 and will not be repeated here.

[0072] It should be noted that the preset duration is set as needed, and in the embodiment of the present application, the preset duration is not specifically limited. For example, the preset duration is 30 minutes.

[0073] In the embodiment of the present application, by determining the number of cells with historical registration failures and the number of consecutive registration failures of the SIM card in multiple network types within a preset time, the network search cycle is increased when the number of consecutive registration failures in multiple network types reaches the first preset threshold, so that even if the terminal attempts to register the network again, it will take a long time to reduce the number of network searches, thereby saving the power consumption of the terminal for network searches. In addition, combining the number of cells with historical registration failures, the number of consecutive registration failures, different network types and time to determine whether the search cycle needs to be adjusted can cover most SIM cards, further improving the accuracy of adjusting the search cycle.

[0074] In combination with the use scenario of the embodiment of the present application, an embodiment of determining whether to adjust the search period in an LTE network and a GSM / WCDMA network type is provided below. Figure 5 , which shows a flow chart of a method for determining a network search period shown in an exemplary embodiment of the present application. The method includes the following steps:

[0075] 501. The terminal applies for registration of LTE network or GSM / WCDMA network type;

[0076] 502. The terminal starts the timer tRegOOS;

[0077] 503. The terminal determines whether the network type of the currently registered network cell is an LTE network type;

[0078] 504. If the network type of the network cell currently registered by the terminal is an LTE network type, the terminal determines whether the registration fails;

[0079] 505. If the terminal fails to register in a network cell of the LTE network type, the number of consecutive registration failures is increased by one, that is, nLteRej=nLteRej+1;

[0080] 506. The terminal determines whether the network cell of the LTE network type in which the registration failed has changed;

[0081] 507. If the network cell changes, the number of cells that failed to register in the LTE network type is updated, that is, nLteCellChang=nLteCellChang+1;

[0082] 508. If the network type of the network cell currently registered by the terminal is a GSM / WCDMA network type, the terminal determines whether the registration fails;

[0083] 509. If the terminal fails to register in a network cell of the GSM / WCDMA network type, the number of consecutive registration failures is increased by one, that is, nGWRej=nGWRej+1;

[0084] 510. The terminal determines whether the network cell of the GSM / WCDMA network type for which the registration failed has changed;

[0085] 511. If the network cell changes, the number of cells that failed to register in the GSM / WCDMA network type is updated, that is, nGWCellChang=nGWCellChang+1;

[0086] 512. Determine whether nLteRej and nGWRej reach a first preset threshold, whether nLteCellChang and nLteCellChang reach a second preset threshold, and determine whether tRegOOS reaches a preset duration;

[0087] 513. If nLteRej and nGWRej reach the first preset threshold, and nLteCellChang and nLteCellChang reach the second preset threshold, and tRegOOS reaches the preset duration, increase the search period, and continue to execute step 501 based on the increased search period;

[0088] 514. If the terminal successfully registers in a network cell of the LTE network type or the GSM / WCDMA network type, the terminal resets all variables, including nLteRej, nGWRej, nLteCellChang, nLteCellChang and tRegOOS.

[0089] In the embodiment of the present application, by determining the number of cells with historical registration failures and the number of consecutive registration failures of the SIM card in multiple network types within a preset time, the network search cycle is increased when the number of consecutive registration failures in multiple network types reaches the first preset threshold, so that even if the terminal attempts to register the network again, it will take a long time to reduce the number of network searches, thereby saving the power consumption of the terminal for network searches. In addition, combining the number of cells with historical registration failures, the number of consecutive registration failures, different network types and time to determine whether the search cycle needs to be adjusted can cover most SIM cards, further improving the accuracy of adjusting the search cycle.

[0090] Please refer to Figure 6 , which shows a structural block diagram of a device for determining a network search period provided by an embodiment of the present application. The device for determining a network search period can be implemented as all or part of a processor through software, hardware, or a combination of both. The device includes:

[0091] A search module 601 is configured to perform a network search through a user identity module SIM card in a terminal based on a first search cycle to obtain a first network cell;

[0092] A first updating module 602 is configured to update the number of consecutive registration failures corresponding to a target network type among multiple network types based on a target network type of the first network cell if the SIM card fails to register in the first network cell;

[0093] The search module 601 is used to increase the first search period to obtain a second search period if the number of consecutive registration failures corresponding to each network type reaches a first preset threshold corresponding to each network type.

[0094] In some embodiments, the apparatus further comprises:

[0095] A first updating module 602 is configured to update the number of cells with failed registration corresponding to a target network type among the multiple network types if the first network cell is not a network cell with failed registration history for the SIM card;

[0096] The search module 601 is used to increase the first search period to obtain the second search period if the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type.

[0097] In some embodiments, the apparatus further comprises:

[0098] The receiving module is used to receive a rejection code fed back by the first network cell, where the rejection code is used to indicate that the SIM card fails to register in the first network cell.

[0099] In some embodiments, the rejection code carries a cell identifier of the first network cell; and the apparatus further includes:

[0100] The first determination module is configured to determine that the first network cell is not the network cell with the historical registration failure if the cell identifier carried by the rejection code is different from the cell identifier of the network cell with the historical registration failure.

[0101] In some embodiments, the apparatus further comprises:

[0102] The second determination module is used to determine the time difference between the time of the first registration failure and the current time during the process of consecutive registration failures of the SIM card;

[0103] The search module 601 is used to increase the first search period to obtain a second search period if the time difference is greater than a preset duration and the number of consecutive registration failures corresponding to each network type reaches a first preset threshold corresponding to each network type.

[0104] In some embodiments, the search module 601 includes:

[0105] A determination unit, used for determining a target step length;

[0106] The adjustment unit is used to increase the first search period based on the target step size to obtain the second search period.

[0107] In some embodiments, the adjustment unit is used to increase the first search cycle based on the target step size to obtain a third search cycle; based on the third search cycle, perform a network search through the SIM card to obtain a second network cell; if the SIM card is successfully registered in the second network cell, determine the third search cycle as the second search cycle; if the SIM card fails to register in the second network cell, based on the target step size, increase the third search cycle again until the second search cycle is obtained.

[0108] In some embodiments, the apparatus further comprises:

[0109] The reset module is used to reset the number of consecutive registration failures corresponding to each network type if the SIM card is successfully registered in the first network cell.

[0110] In an embodiment of the present application, by determining the number of consecutive registration failures of the SIM card in multiple network types, when the number of consecutive registration failures in multiple network types reaches the corresponding first preset threshold, the network search period is increased. In this way, even if the terminal tries to register the network again, a longer time is required, thereby reducing the number of network searches and further saving power consumption of the terminal for network searches.

[0111] Please refer to Figure 7 , which shows a block diagram of a terminal 700 provided by an exemplary embodiment of the present application. The terminal 700 may be a terminal with a network search function such as a smart phone or a tablet computer. The terminal 700 in the present application may include one or more of the following components: a processor 710, a memory 720, and a communication module 730.

[0112] The processor 710 may include one or more processing cores. The processor 710 uses various interfaces and lines to connect the various parts of the entire terminal 700, and executes various functions and processes data of the terminal 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 720, and calling data stored in the memory 720. Optionally, the processor 710 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a separate chip.

[0113] The memory 720 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 720 includes a non-transitory computer-readable storage medium. The memory 720 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the terminal 700.

[0114] The communication module 730 is used to transmit and receive signals, and the communication module may be a Wireless Fidelity (WIFI) module or the like.

[0115] The terminal 700 may also include a display screen, which is a display component for displaying a user interface. Optionally, the display screen is a display screen with a touch function, through which a user can use a finger, a touch pen or any other suitable object to perform touch operations on the display screen.

[0116] The display screen is usually arranged on the front panel of the terminal 700. The display screen can be designed as a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. The display screen can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0117] In addition, those skilled in the art will appreciate that the structure of the terminal 700 shown in the above drawings does not limit the terminal 700, and the terminal 700 may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal 700 also includes components such as a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a power supply, and a Bluetooth module, which will not be described in detail here.

[0118] The embodiment of the present application further provides a computer-readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for determining the network search cycle shown in the above embodiments.

[0119] An embodiment of the present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for determining the network search cycle as shown in the above embodiments.

[0120] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

[0121] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0122] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining a network search period, characterized in that: The method comprises: Based on a first search cycle, a network search is performed through a user identity module SIM card in the terminal to obtain a first network cell, wherein the first search cycle is a cycle for the terminal to perform a cell search; If the SIM card is successfully registered in the first network cell, reset the number of consecutive registration failures corresponding to each network type; If the SIM card fails to register in the first network cell, updating the number of consecutive registration failures corresponding to the target network type among the multiple network types based on the target network type of the first network cell; If the first network cell is not the network cell where the SIM card has historically failed to be registered, updating the number of cells where registration has failed corresponding to the target network type; If the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type, based on the target step size, increasing the first search period to obtain a third search period; Based on the third search cycle, performing a network search through the SIM card to obtain a second network cell; If the SIM card fails to register in the second network cell, increasing the third search period again based on the target step size until the second search period is obtained; When the second search period is obtained, the second search period is kept unchanged.

2. The method according to claim 1, characterized in that The method further comprises: A rejection code fed back by the first network cell is received, where the rejection code is used to indicate that registration of the SIM card in the first network cell fails.

3. The method according to claim 2, characterized in that The rejection code carries a cell identifier of the first network cell; and the method further includes: If the cell identifier carried by the rejection code is different from the cell identifier of the network cell with historical registration failure, it is determined that the first network cell is not the network cell with historical registration failure.

4. The method according to claim 1, characterized in that The method further comprises: Determine the time difference between the time of the first registration failure and the current time during the process of consecutive registration failures of the SIM card; If the time difference is greater than the preset duration, if the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type, based on the target step size, increase the first search cycle to obtain a third search cycle.

5. The method according to claim 1, characterized in that The method further comprises: If the SIM card is successfully registered in the second network cell, the third search period is determined as the second search period.

6. A device for determining a network search period, characterized in that: The device comprises: A search module, configured to perform a network search through a user identity module SIM card in a terminal based on a first search period to obtain a first network cell, wherein the first search period is a period for the terminal to perform a cell search; A reset module, configured to reset the number of consecutive registration failures corresponding to each network type if the SIM card is successfully registered in the first network cell; an updating module, configured to update the number of consecutive registration failures corresponding to a target network type among multiple network types based on a target network type of the first network cell if the SIM card fails to register in the first network cell; The updating module is configured to update the number of cells with failed registration corresponding to the target network type if the first network cell is not the network cell where the SIM card has failed registration in history; The search module is used to increase the first search period based on the target step size to obtain a third search period if the number of consecutive registration failures corresponding to each network type reaches the first preset threshold corresponding to each network type, and the number of cells with registration failures corresponding to each network type reaches the second preset threshold corresponding to each network type; perform network search through the SIM card based on the third search period to obtain a second network cell; if the SIM card fails to register in the second network cell, increase the third search period again based on the target step size until the second search period is obtained; and when the second search period is obtained, keep the second search period unchanged.

7. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the method for determining a network search period according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the method for determining a network search period according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Network searching method, network searching device and terminal

    WO2015157926A1

  • Communication processing method and apparatus, mobile terminal and storage medium

    WO2020113530A1