Network searching method and related device
By analyzing the operator's SMS to determine the SIM card's arrears status, suppressing network searches and adjusting the search interval, the problem of meaningless network searches when the SIM card is in arrears is solved, reducing the power consumption of terminal devices and ensuring normal network connection.
Patent Information
- Application Number
- CN202410684659.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2044-05-29
AI Technical Summary
When the SIM card is in arrears, the mobile phone performs meaningless network searches, which increases power consumption and leads to increased energy consumption of the terminal device.
By analyzing the SMS messages sent by the operator, it is determined whether the SIM card is in arrears. If so, the SIM card is prevented from searching for the network, and the network search interval is adjusted to reduce the frequency of network searches. The network search frequency is restored after Internet access is allowed.
This reduces the meaningless network search behavior of terminal devices when the SIM card is in arrears, reduces power consumption, and ensures normal network connection when there is no arrears.
Smart Images

Figure CN118474831B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computers, and in particular to a network searching method and related device. BACKGROUND
[0002] During daily use, a mobile phone user may encounter a situation that the mobile phone cannot be served or cannot access the network after the SIM card is charged at the beginning of the month. During the period of the uncharged SIM card, the mobile phone will search for the network in vain, which will increase the power consumption of the mobile phone. SUMMARY
[0003] The present application provides a network searching method and related device, which can reduce the power consumption of a terminal device.
[0004] In a first aspect, some embodiments of the present application provide a network searching method. The network searching method can include: analyzing the content of a first short message, determining whether to allow the first SIM card to access the network, the sender of the first short message being an operator, and the first short message being received through the first SIM card; and if it is determined that the first SIM card cannot access the network, suppressing the first SIM card from searching for the network within a first time period, the first time period being greater than a default network searching time interval of the terminal device.
[0005] Through the above method, by analyzing the short message sent by the operator, it is determined whether the first SIM card is uncharged or has insufficient balance to cause the mobile phone to be unable to access the network. When it is determined that the first SIM card is uncharged, the first SIM card is suppressed from searching for the network, which avoids the mobile phone searching for the network in vain during the period of uncharged SIM card, and reduces the power consumption of the terminal device.
[0006] In a possible implementation, if the number of times of searching for the network through the first SIM card fails exceeds a preset first threshold value, the first SIM card is suppressed from searching for the network within the first time period; and / or, if a first parameter about the first SIM card sent by a network device is received, the first SIM card is suppressed from searching for the network within the first time period, the first parameter indicating that the first SIM card is not allowed to access the network.
[0007] Through the above method, in addition to suppressing the first SIM card from searching for the network by analyzing the short message, after the first SIM card searches for the network for multiple times or the base station sends the first parameter about the first SIM card to the terminal device, the first SIM card is also suppressed from searching for the network within the first time period. Since the first time period is greater than the default network searching time interval of the terminal device, the frequency of searching for the network by the terminal device is reduced, thereby reducing the power consumption of the terminal device.
[0008] In a possible implementation, if a second short message is received through the first SIM card during the period when the first SIM card is inhibited from searching for a network, the second short message is parsed to determine whether the first SIM card is allowed to access the network, and the sender of the second short message is an operator; if it is determined that the first SIM card is allowed to access the network, the inhibition of the first SIM card from searching for a network in the first time period is removed.
[0009] By the above method, after receiving the second short message about allowing the first SIM card to access the network, the inhibition of the first SIM card is removed, and the search frequency of the first SIM card is restored, so that the first SIM card can be normally used when there is no outstanding fee.
[0010] In a possible implementation, if it is detected that the first SIM card is inhibited from searching for a network for a continuous preset number of first time periods, the inhibition of the first SIM card from searching for a network is removed.
[0011] By the above method, when the first SIM card is inhibited from searching for a network for a plurality of times, the inhibition of the first SIM card is removed, so as to avoid the case of false inhibition, for example, no second short message is received, or the second short message is parsed incorrectly.
[0012] In a possible implementation, the first SIM card is triggered to search for a first mode network; if the first SIM card fails to search for the first mode network, the first SIM card is triggered to search for a second mode network, and the network mode of the first mode network is higher than that of the second mode network.
[0013] By the above method, after the inhibition is removed, the first SIM card is immediately triggered to search for a network, so that the first SIM card can quickly connect to the network; and the first SIM card preferentially searches for a network of a higher mode, so that the first SIM card can preferentially connect to a network with faster speed and better signal.
[0014] In a possible implementation, the SIM cards in the terminal device include a first SIM card and a second SIM card, the second SIM card is a network-using SIM card, and the first SIM card is a network-not-using SIM card.
[0015] By the above method, in the case that the terminal device has two cards, the first SIM card is inhibited to ensure that the second SIM card normally uses network data, because the two cards in the terminal device use the same antenna.
[0016] In a possible implementation, it is determined whether a data-sensitive application exists in a running application, the data-sensitive application has a higher requirement on network quality than other applications, and the data-sensitive application is an application in a preset sensitive application list; if the data-sensitive application exists in the running application, the first SIM card is inhibited from searching for a network in the first time period.
[0017] By the above method, when the data-sensitive application is running, the first SIM card is inhibited from searching for a network, so as to avoid the first SIM card from occupying the antenna and ensure the running of the data-sensitive application.
[0018] In a possible implementation, if it is detected that the data-sensitive application is exited during the inhibition of the first SIM card from searching for a network, the inhibition of the first SIM card from searching for a network is released.
[0019] By the above method, after the inhibition is released, the first SIM card is triggered to search for a network immediately, so that the first SIM card can quickly connect to the network.
[0020] In a second aspect, the present application provides a network searching device, which can be a terminal device, a device in a terminal device, or a device capable of being used with a terminal device; wherein the network searching device can also be a chip system, and the network searching device can execute the method performed by the terminal device in the first aspect. The functions of the network searching device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions. The unit can be software and / or hardware. The operations and advantages of the network searching device can be referred to the method and advantages of the first aspect, and the repeated parts will not be described herein.
[0021] In a third aspect, the present application provides a terminal device, which includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, which include computer instructions. When the one or more processors execute the computer instructions, the terminal device executes the network searching method in any possible implementation manner of the first aspect.
[0022] In a fourth aspect, the present application provides a chip system, which includes a processor and an interface, and the processor and the interface are coupled. The interface is used to receive or output signals, and the processor is used to execute code instructions to execute the network searching method in any possible implementation manner of the first aspect.
[0023] In a fifth aspect, the present application provides a computer readable storage medium, which stores computer programs / instructions. When the computer program product is run on a computer, the computer executes the network searching method in any possible implementation manner of the first aspect.
[0024] In a sixth aspect, the present application provides a computer program product, which makes a computer execute the network searching method in any possible implementation manner of the first aspect when the computer program product is run on the computer. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 An architecture schematic diagram of a communication system provided by an embodiment of the present application is provided.
[0026] Figure 2 A flow schematic diagram of a network searching method provided by an embodiment of the present application is provided.
[0027] Figure 3 A hardware structure schematic diagram of a terminal device provided by an embodiment of the present application is provided.
[0028] Figure 4 A software structure schematic diagram of a terminal device provided by an embodiment of the present application is provided.
[0029] Figure 5 A flow schematic diagram of another network searching method provided by an embodiment of the present application is provided.
[0030] Figure 6 A flow schematic diagram of still another network searching method provided by an embodiment of the present application is provided.
[0031] Figure 7 A flow schematic diagram of still another network searching method provided by an embodiment of the present application is provided.
[0032] Figure 8 A flow schematic diagram of still another network searching method provided by an embodiment of the present application is provided.
[0033] Figure 9 A structure schematic diagram of a network searching device provided by an embodiment of the present application is provided.
[0034] Figure 10 A structure schematic diagram of a chip provided by an embodiment of the present application is provided. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, “ / ” represents the meaning of or, for example, A / B can represent A or B; the “and / or” in the text only represents a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, “multiple” means two or more than two.
[0036] It should be understood that the terms "first", "second", etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not used to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.
[0037] Reference to "embodiments" in this application means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in the present application can be combined with other embodiments.
[0038] In order to facilitate the understanding of the scheme provided by the embodiments of the present application, the related concepts related to the embodiments of the present application are introduced as follows:
[0039] I. Network search registration process
[0040] The network search registration process refers to the process of connecting to a mobile network through a series of steps when the terminal device is powered on or reenters a network coverage area. This process ensures that the device can successfully access and use network services. The network search process mainly includes but is not limited to the following steps:
[0041] Initialization: The terminal device is first initialized, including reading the information in the SIM card in the terminal device and the data related to network registration on the terminal device.
[0042] Public Land Mobile Network (PLMN) selection: A PLMN is a network of an approved operator. A terminal device selects a PLMN for registration based on stored information. PLMN registration: PLMN registration is the process of a terminal device registering its location in a mobile network so that it can receive and initiate calls. This includes, but is not limited to, the following steps: Location registration: PLMN provides location registration functionality to ensure that a terminal device can be continuously served within a system area. This includes allowing a fixed subscriber to call the terminal device through its directory number (mobile phone number) regardless of where the terminal device is registered in the system area. Registration procedure: During the process of selecting and attempting to register on a PLMN, if the registration is successful, the terminal device indicates that the PLMN is a "registered PLMN" and can make and receive calls. If the registration fails, the terminal device does not store the registered PLMN in the SIM / USIM, and the terminal device can receive a character "#6" sent by the PLMN, which indicates that the PLMN has rejected the registration of the SIM card in the terminal device. A UE without a SIM / USIM inserted must not attempt to register.
[0043] Sweeping: A terminal device scans available network signals to find a cell that it can camp on.
[0044] Decoding system messages: A terminal device receives and parses system messages from a cell, which contain configuration information and network status of the cell.
[0045] Cell selection: Based on information in the system messages, a terminal device evaluates cells and selects the most suitable cell to camp on.
[0046] Random access: A terminal device sends an access request through a random access channel, which is the first step to establish a connection with the network.
[0047] Establishing a Radio Resource Control (RRC) connection: A terminal device sends a connection request ATTACH REQUEST to the network side to request the establishment of an RRC; the network side responds with an RRC CONNECTION SETUP to allocate radio resources to the terminal device; and the terminal device sends an RRC CONNECTION SETUP COMPLETE to confirm that it has received the configuration information, completing the establishment of the RRC connection.
[0048] ATTACH process: the network side responds to the ATTACH REQUEST of the terminal device and sends an ATTACH ACCEPT; after receiving the acceptance message, the terminal device sends an ATTACH COMPLETE, marking the completion of the registration process.
[0049] Two, high mode network selection
[0050] High mode network selection can also be referred to as high mode network search. High mode network selection refers to a process in which, in a multi-mode network environment, a terminal device selects the most suitable network mode for registration and communication according to priority and configuration.
[0051] In modern communication systems, with the advancement of technology, different network modes (such as 2G, 3G, 4G, 5G, etc.) and frequency bands are introduced to meet the growing demand for data services. In a multi-mode environment, a terminal device will select a network mode according to the priority and configuration of the network mode. For example, if a terminal device supports both 3G and 4G networks and the 4G network has higher data rates and service quality, the terminal device may prefer to select the 4G network for registration and communication.
[0052] Three, dual-SIM dual-standby
[0053] In a dual-SIM dual-standby (DSDS) system, two SIM cards share a set of radio frequency resources (share the same antenna). In DSDS mode, although the two SIM cards in the terminal device can be in standby state at the same time, they cannot make voice calls or use data traffic on the Internet at the same time due to the sharing of only one set of radio frequency resources. This means that when one SIM card is in use, the other SIM card must be in standby state.
[0054] In DSDS mode, the priority of the SIM card searching for a network is higher than the priority of the SIM card using data flow, so when searching for a network is required in dual-SIM dual-standby, the terminal device's radio frequency resources will be temporarily preempted. For example, the terminal device includes SIM card 1 and SIM card 2, and SIM card 1 is currently using data traffic to access the Internet (SIM card 1 occupies the radio frequency resources). If SIM card 2 needs to search for a network at this time, SIM card 1 will temporarily suspend using data flow to access the Internet and give priority to SIM card 2 to occupy the radio frequency resources to search for a network.
[0055] The communication system related to the embodiments of the present application is described below:
[0056] The embodiments of the present application can be applied to a long term evolution (LTE) system, a 5th generation mobile communication (5G) system, a 6th generation mobile communication (6G) system and other communication systems evolved after 5G, a satellite communication system and a short-range wireless communication system. Among them, the wireless communication system mentioned in the embodiments of the present application includes but is not limited to three application scenarios of 5G / 6G mobile communication system: enhanced mobile broadband (eMBB), ultra-reliable low latency communication (URLLC) and massive machine type of communication (mMTC), a long range (LoRa) system or a vehicle-to-everything (V2X) system.
[0057] Figure 1 A possible, non-limiting system schematic diagram is shown. As shown in Figure 1 , the communication system includes a network device 110 and a terminal device 120. Figure 1 Taking the communication system including one network device 110 and one terminal device 120 as an example, the communication system can also include a larger number of network devices 110 and terminal devices 120, and the embodiments of the present application are not limited.
[0058] I. Network device 110
[0059] The network device 110 can be an access network device, which can also be referred to as a radio access network (RAN) node, a RAN entity or an access node, etc., which forms part of a communication system to help the terminal device 120 to implement wireless access. In a possible scenario, the network device 110 can be a base station, an evolved NodeB (eNodeB), an access point (AP), a transmission reception point (TRP), a next generation NodeB (gNB), a next generation base station in a 6th generation (6G) mobile communication system, a base station in a future mobile communication system, or an access node in a WiFi system, etc. The network device 110 can be a macro base station, a micro base station or an indoor station, a relay node or a donor node, or a wireless controller in a CRAN scenario. In a possible embodiment, the network device 110 can also be a server, a wearable device, a vehicle or a vehicle-mounted device, etc. For example, the access network device in vehicle to everything (V2X) technology can be a road side unit (RSU).
[0060] II. Terminal device 120
[0061] The terminal device 120 can also be referred to as a terminal, a user equipment (UE), a mobile station, a mobile terminal, an electronic device, etc. The terminal device 120 can be widely applied to various scenarios, such as device-to-device (D2D), vehicle to everything (V2X) communication, machine-type communication (MTC), internet of things (IOT), virtual reality, augmented reality, industrial control, autonomous driving, remote medical treatment, smart power grid, smart furniture, smart office, smart wear, smart transportation, smart city, etc. The terminal 120 can be a mobile phone, a tablet computer, a computer with wireless transceiver function, a wearable device, a vehicle, a drone, a helicopter, an airplane, a ship, a robot, a mechanical arm, a smart home device, etc.
[0062] The terminal device 120 can register with the PLMN through the network device 110. Specifically, the terminal device 120 sends a registration request to the network device 110. When the registration of the terminal device 120 fails, the network device 110 sends the character "#6" to the terminal device 120 to indicate that the PLMN has rejected the registration of the terminal device 120.
[0063] When terminal device 120 is in arrears, some of its services are restricted. For example, when terminal device 120 is in arrears, its ability to receive text messages is generally unaffected, but its internet access may be suspended. Network device 110 can send a first text message and a second text message to terminal device 120, where the sender of the first and second text messages is the operator.
[0064] The following further introduces the network search method provided in the embodiment of the present application:
[0065] like Figure 2 As shown, the network search method includes the following steps 201 and 202. Figure 2 The method shown may be performed by the terminal device mentioned above. Alternatively, Figure 2 The execution entity of the method shown can be a chip in a terminal device, which is not limited in the embodiments of the present application. Figure 2 The following description is made by taking the terminal device as the execution subject of the method as an example.
[0066] 201. A terminal device parses content of a first text message to determine whether to allow Internet access through a first SIM card. The sender of the first text message is a carrier, and the first text message is received through the first SIM card.
[0067] The first text message is sent from a number corresponding to the operator. The first text message may be a text message sent by the operator to the user to inform the user of balance-related information; or the first text message may be a text message sent by the operator to the user to inform the user of the latest activity. The terminal device may include only one SIM card, with the first SIM card being the only SIM card in the terminal device; or the terminal device may include two SIM cards, with the first SIM card being the SIM card in the terminal device that does not use data traffic.
[0068] Optionally, the terminal device may parse the content of the first text message immediately upon receiving the first text message; or the terminal device may parse the content of the first text message after receiving the first text message and after a first network search fails.
[0069] In a possible embodiment, the terminal device parsing the content of the first short message comprises: the terminal device determining whether the sender of the received short message is an operator; and the terminal device determining whether the content of the short message includes a first keyword if it is determined that the sender of the short message is the operator, wherein the first keyword is used to indicate the balance of the first SIM card.
[0070] Optionally, if the terminal device determines that the sender of the received short message is the operator, the received short message is the first short message.
[0071] Optionally, the manner of determining whether the sender of the received short message is the operator can be: determining whether the sender of the received short message is the operator by the number of the sender of the received short message.
[0072] Further, the number of the operator can be preset in the terminal device, and when the terminal device receives a new short message, the number of the sender of the short message is compared with the preset number of the operator, and if they are the same, it is determined that the sender of the received short message is the operator.
[0073] For example, the preset number of the operator is a telephone number A, and when the terminal device receives a short message from the telephone number A, the short message is parsed.
[0074] The first keyword can include, but is not limited to, "arrears", "insufficient balance", "cannot surf the Internet normally", etc. The first keyword can be a keyword preset in the terminal device.
[0075] For example, when the terminal device receives a short message from the telephone number A, the short message is parsed, and if the first keyword is included in the short message, it is determined that the first SIM card is not allowed to surf the Internet.
[0076] 202. If it is determined that the first SIM card is not allowed to surf the Internet, the terminal device suppresses the first SIM card from searching for a network in a first time period, and the first time period is greater than a default search time interval of the terminal device.
[0077] The suppression can be a TOP suppression, which is to suppress the registration behavior of the terminal device to achieve the suppression of the first SIM card from searching for a network. The suppression of the first SIM card from searching for a network in the first time period can be that the first SIM card does not search for a network in the first time period. The default search time interval can be set by a preconfigured Out Of Service (OOS) timer, and the time set by the OOS timer is the time interval of searching for a network by the first SIM card without suppressing the first SIM card from surfing the Internet. Alternatively, the default search time interval can be the time interval of searching for a network by the first SIM card when the first SIM card is allowed to surf the Internet.
[0078] By analyzing the short message sent by the operator, it is determined whether the first SIM card is in arrears or has insufficient balance to cause the inability to access the network. When it is determined that the first SIM card is in arrears, the first SIM card is inhibited from searching for the network, thereby avoiding the meaningless searching for the network by the mobile phone during the arrears period and reducing the power consumption of the terminal device.
[0079] Optionally, if the first SIM card of the terminal device receives the first short message when searching for the network, and it is determined that the first SIM card is not allowed to access the network, the first SIM card is inhibited from searching for the network within the first time period after the searching for the network ends; or, if the first SIM card of the terminal device receives the first short message when searching for the network, and it is determined that the first SIM card is not allowed to access the network, the searching for the network by the first SIM card is immediately stopped, and the first SIM card is inhibited from searching for the network within the first time period.
[0080] Optionally, if the first SIM card of the terminal device receives the first short message when not searching for the network, and it is determined that the first SIM card is not allowed to access the network, the first SIM card is inhibited from searching for the network within the first time period; or, if the first SIM card of the terminal device receives the first short message when not searching for the network, and it is determined that the first SIM card is not allowed to access the network, the first SIM card searches for the network once, and after the searching for the network fails, the first SIM card is inhibited from searching for the network within the first time period.
[0081] Optionally, the default searching time interval is generally within a unified time range, and the time range is specified by a protocol. For example, the specified time range is 4 seconds to 6 seconds, and the default searching time can be 5 seconds (within the range of 4 seconds to 6 seconds).
[0082] In a possible embodiment, if it is determined that the first SIM card is not allowed to access the network, the searching time interval of the terminal device is changed from the default time interval to the first time period.
[0083] For example, the searching for the network by the first SIM card is inhibited within the first time period, and the searching time interval of the terminal device after the inhibition can be changed from the original 5 seconds (the default searching time interval) to 30 seconds (the first time period). That is, the searching for the network by the first SIM card is originally performed every 5 seconds, and after the inhibition, the searching for the network by the first SIM card is performed every 30 seconds.
[0084] Optionally, if it is determined that the first SIM card is not allowed to access the network, after the searching for the network by the first SIM card is inhibited within the first time period each time, the terminal device determines whether the first SIM card is allowed to access the network again; if the first SIM card is still not allowed to access the network, the searching for the network by the first SIM card is continuously inhibited within the first time period.
[0085] Alternatively, the terminal device attempts to search for a network through the first SIM card each time the terminal device suppresses the first SIM card from searching for a network in the first time period, and continues to suppress the first SIM card from searching for a network in the first time period if the search for the network fails.
[0086] Optionally, the first time period can be a preset time interval, or a time interval determined based on an application running state of the terminal device and / or a power consumption resource occupation state of the terminal device, and / or a power state of the terminal device. For example, when the power of the terminal device is insufficient, or the user enables the power saving mode of the terminal device, the determined first time period is time period A; when the power of the terminal device is sufficient, or the user enables the performance mode of the terminal device, the determined first time period is time period B. Time period A is greater than time period B.
[0087] In summary, the first time period determined when the power of the terminal device is sufficient is less than the first time period determined when the power of the terminal device is insufficient. The same applies to the power consumption resource occupation state and the application running state of the terminal device. The present application will not be described here.
[0088] When the power of the terminal device is insufficient, the first time period with a longer duration is set, which further reduces the frequency of the terminal device searching for a network through the first SIM card, and can save the power consumption and power of the terminal device. Similarly, when the power consumption resource occupation of the terminal device is insufficient, the first time period with a longer duration is set, which further reduces the frequency of the terminal device searching for a network through the first SIM card, and can save the power consumption of the terminal device. The same applies to the terminal device.
[0089] In one possible embodiment, if the terminal device fails to search for a network through the first SIM card more than a preset first threshold value, the terminal device suppresses the first SIM card from searching for a network in the first time period; and / or, if the terminal device receives a first parameter about the first SIM card sent by a network device, the terminal device suppresses the first SIM card from searching for a network in the first time period, and the first parameter indicates that the terminal device is not allowed to access the network through the first SIM card.
[0090] In this way, the terminal device suppresses the first SIM card from searching for a network after the terminal device fails to search for a network through the first SIM card multiple times. For example, when the terminal device fails to search for a network through the first SIM card 10 times (the first threshold value), the terminal device changes the search for the network through the first SIM card from every 5 seconds to every 30 seconds.
[0091] Optionally, the number of times of network search failure through the first SIM card exceeds a preset second threshold value within a preset time period, and the network search of the first SIM card is inhibited within the first time period. The first threshold value and the second threshold value can be the same. For example, when the number of times of network search failure through the first SIM card exceeds 5 (the first threshold value) within 1 hour, the first SIM card of the terminal device changes from network search every 5 seconds to network search every 30 seconds.
[0092] The first parameter is sent by the network device to the terminal device, and the first parameter is a rejection reply of the base station to the registration request sent by the terminal device. The first parameter can be a character "#6".
[0093] When the terminal device accesses the PLMN, the PLMN registration is performed through the first SIM card. As introduced in the above related concept, the first SIM card attempts to register on the PLMN through the base station, but when the first SIM card is in the overdue state, the PLMN sends "#6" to the terminal device through the base station, indicating that the registration request of the first SIM card is rejected. After the terminal device receives "#6", the network search of the first SIM card is inhibited within the first time period.
[0094] For example, after receiving the first parameter about the first SIM card sent by the network device, the first SIM card of the terminal device changes from network search every 5 seconds to network search every 30 seconds.
[0095] Optionally, if the service state of the first SIM card is the no-network state, the network search of the first SIM card is inhibited within the first time period.
[0096] In a possible embodiment, when any one of the conditions for determining whether to inhibit the network search of the first SIM card (analyzing the content of the first short message and determining that the network access through the first SIM card is not allowed, the number of times of network search failure of the first SIM card exceeding the preset first threshold value, receiving the first parameter about the first SIM card sent by the network device, etc.) is met, the network search of the first SIM card is inhibited; or all the conditions are met, the network search of the first SIM card is inhibited; or several of the conditions are met, the network search of the first SIM card is inhibited.
[0097] The above describes when the network search of the first SIM card is inhibited. After the network search of the first SIM card is inhibited, the inhibition of the first SIM card needs to be released.
[0098] The release of the inhibition is further described below.
[0099] In a possible implementation, if the terminal device receives a second short message through the first SIM card during the period of suppressing the first SIM card from searching for a network, the second short message is parsed to determine whether the terminal device is allowed to access the network through the first SIM card, and the sender of the second short message is an operator; and if the terminal device is determined to be allowed to access the network through the first SIM card, the suppression of the first SIM card from searching for a network in the first time period is released.
[0100] The second short message can be sent by the operator to the terminal device as the sender after the first SIM card is recharged and / or has no overdue fee, and the second short message is used to inform a user that the first SIM card in the terminal device is recharged or has no overdue fee. When the terminal device receives the second short message, the first SIM card is in a state of not being allowed to access the network.
[0101] Optionally, the manner of determining whether the sender of the received short message is the operator can be referred to the description of step 201 in the foregoing method, which is not described herein again.
[0102] In a possible implementation, the terminal device parsing the content of the second short message includes: determining whether the sender of the received short message is the operator; and if the terminal device determines that the sender of the short message is the operator, determining whether the content of the short message includes a second keyword, where the second keyword is used to indicate the recharging status of the first SIM card.
[0103] The second keyword can include, but is not limited to, "balance after recharging is", "available balance is", and the like. The second keyword can be a keyword pre-set in the terminal device.
[0104] For example, when the terminal device receives a short message from a telephone number A (a number corresponding to the operator), the short message is parsed; and if the short message includes the second keyword, it is determined that the terminal device is allowed to access the network through the first SIM card.
[0105] Optionally, the second short message can be sent by the operator to the terminal device as the sender after the user completes the recharging of the first SIM card and the first SIM card has no overdue fee; or the second short message can be sent by the operator to the terminal device as the sender after the user completes the recharging of the first SIM card but the first SIM card still has an overdue fee. That is, after the user completes the recharging of the first SIM card, the first SIM card can still be in an overdue state, and therefore the second keyword needs to be "balance after recharging is" or the like, indicating that the first SIM card still has a balance after the recharging of the first SIM card is completed.
[0106] To avoid missing the second short message, resulting in false inhibition of the first SIM card searching for a network, in addition to judging whether to release the inhibition according to the second short message, in a possible embodiment, if the terminal device detects that the first SIM card searching for a network is inhibited for a preset number of consecutive first time periods, the inhibition of the first SIM card searching for a network is released.
[0107] For example, the preset number is 5, and if the terminal device detects that the first SIM card searching for a network is inhibited for five consecutive first time periods, the first SIM card searching for a network is released. Alternatively, it can be said that if the terminal device uses the first time period as a search time interval for five consecutive times, the inhibition of the first SIM card searching for a network is released.
[0108] Optionally, in a possible embodiment, if the terminal device inhibits the first SIM card searching for a network for a plurality of consecutive first time periods within a period of time, the inhibition of the first SIM card searching for a network is released.
[0109] The period of time can be preset, for example, the first SIM card searching for a network is inhibited all day, and then the inhibition of the first SIM card searching for a network is released.
[0110] In a possible embodiment, after the terminal device releases the inhibition of the first SIM card searching for a network, the first SIM card searching for a network is triggered immediately to save the time of searching for a network. For example, after the first SIM card searching for a network is inhibited for 8 seconds (the first time period is 10 seconds), the inhibition of the first SIM card searching for a network is released, and then the first SIM card searching for a network is triggered immediately, that is, the first SIM card searches for a network from the 8th second.
[0111] In a possible embodiment, the terminal device triggers the first SIM card to search for a first standard network; if the first SIM card searching for the first standard network fails, the terminal device triggers the first SIM card to search for a second standard network, and the network standard of the first standard network is higher than that of the second standard network.
[0112] The network standard of the first standard network is higher than that of the second standard network, and the network standard can be referred to the description in the above related concepts. Optionally, the first standard network is only one standard higher than the second standard network. For example, the first standard network is a 5G network, and the second standard network is a 4G network.
[0113] It can be understood that when the terminal device triggers the first SIM card to search for a network, the first SIM card searches for a high standard network preferentially. For example, after the terminal device triggers the first SIM card to search for a 5G network and fails, the terminal device triggers the first SIM card to search for a 4G network, and if the search for the 4G network also fails, the terminal device triggers the first SIM card to search for a 3G network. Similarly, details are not described herein.
[0114] The terminal device in the above embodiment can also include two cards, that is, a dual card dual standby (DSDS) mode. The following further describes a scenario in which the terminal device includes two SIM cards:
[0115] Suppression and release in the DSDS mode:
[0116] In the DSDS mode, the SIM cards in the terminal device include a first SIM card and a second SIM card. The second SIM card is a SIM card that uses a network, and the first SIM card is a SIM card that does not use a network.
[0117] The first SIM card is as described in the above embodiment. The first SIM card can be in an overdue state, and the first SIM card does not use traffic to access the network at present. The second SIM card is a SIM card that uses data traffic to access the network. The second SIM card can also be a primary card, and the first SIM card can also be referred to as a secondary card.
[0118] Optionally, the second SIM card is not in an overdue state at present and can normally use data traffic.
[0119] Optionally, the second SIM card is a SIM card selected by a user. For example, a mobile phone includes two SIM cards: SIM card 1 and SIM card 2. A user selects data traffic of SIM card 1, and the SIM card 1 is the second SIM card at this time. If the user selects data traffic of SIM card 2, the second SIM card is SIM card 2. That is, the second SIM card is not a certain fixed card in the terminal device, but a card that uses data traffic is regarded as the second SIM card.
[0120] Optionally, if the terminal device includes more than two SIM cards, a card that uses data traffic is also regarded as the second SIM card, and other cards are regarded as first SIM cards. This embodiment takes the DSDS mode as an example.
[0121] In the DSDS mode, the terminal device parses a content of a first short message to determine whether to allow the first SIM card to access the network. The sender of the first short message is an operator, and the first short message is received through the first SIM card. If the terminal device determines not to allow the first SIM card to access the network, the terminal device suppresses the first SIM card from searching for a network in a first time period. The first time period is greater than a default network search interval of the terminal device.
[0122] Optionally, the terminal device only suppresses the first SIM card from searching for a network and does not suppress the second SIM card from searching for a network. When the second SIM card has a network drop or the like, the second SIM card still searches for a network according to the default network search interval.
[0123] In order to ensure that the search network of the first SIM card does not affect the use of the second SIM card in a special scenario, the second SIM card can normally use data flow, in a possible embodiment, the terminal device judges whether there is a data sensitive application in the running application, the data sensitive application has a higher requirement on network quality than other applications, and the data sensitive application is an application in a preset sensitive application list; if the terminal device runs the application, the data sensitive application is suppressed in the first time period.
[0124] The data sensitive application is an application with a high requirement on network quality, and can also be said to be an application with a high requirement on network speed. For example, game applications, real-time conference applications, map applications, and the like. The sensitive application list can store an identifier of the data sensitive application or the like.
[0125] Optionally, the application in the sensitive application list can be a system default application, or an application automatically added into the sensitive application list by the system according to related information of data flow used when the application is used. In a possible embodiment, the automatic adding manner can be that the terminal device adds an application with data flow usage exceeding a threshold value in a preset time period into the sensitive application list. For example, an application consumes a large amount of data flow every five minutes (preset time period), and the application is added into the sensitive application list.
[0126] Optionally, the application in the sensitive application list can be an application added by a user.
[0127] Optionally, the data flow used by the data sensitive application is data flow of the second SIM card.
[0128] Optionally, the running application can be an application running in the foreground and / or an application running in the background. The terminal device determining whether there is a data sensitive application in the running application specifically includes: the terminal device determines an application set of the running application; the terminal device compares the application set of the running application with the sensitive application list; and if there is an application in the sensitive application list in the application set of the running application, it is determined that there is a data sensitive application in the running application.
[0129] In a possible embodiment, if it is detected that the data sensitive application is exited during the suppression of the search network of the first SIM card, the suppression of the search network of the first SIM card is released.
[0130] The exit of the data sensitive application can be that the data sensitive application exits from the foreground, and / or the data sensitive application can be that the data sensitive application exits from the background.
[0131] In one possible embodiment, if the number of failed network searches by the terminal device using the first SIM card exceeds a preset first threshold, the first SIM card is suppressed from searching for the network for a first time period; and / or if the terminal device receives a first parameter regarding the first SIM card from a network device, the first SIM card is suppressed from searching for the network for a first time period, where the first parameter indicates that Internet access via the first SIM card is not permitted. For this embodiment, please refer to the description of the above-mentioned suppression removal embodiment. This application does not elaborate on this further.
[0132] In one possible embodiment, the terminal device triggers the first SIM card to search for a first-standard network; if the first SIM card fails to search the first-standard network, the terminal device triggers the first SIM card to search for a second-standard network, where the first-standard network is of a higher standard than the second-standard network. This embodiment can be found in the description of the above-mentioned suppression removal embodiment. This application does not elaborate on this embodiment.
[0133] The hardware structure of the terminal device 120 involved in the embodiment of the present application is described below:
[0134] A hardware structure of terminal equipment such as Figure 3 As shown, it may include: a processor, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, a sensor module, a button, a motor, an indicator, a camera, a display, and a SIM card slot, etc. The audio module may include a speaker, a receiver, a microphone, an earphone interface, etc., and the sensor module may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0135] It is understood that the structures illustrated in the embodiments of this application do not constitute specific limitations on the terminal device. In other embodiments, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0136] The processor can include one or more processing units, for example: the processor can include an application processor (AP), a modem (also known as a baseband processor), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors. The processor is the nerve center and command center of the terminal, and the controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions.
[0137] The wireless communication function of the terminal device can be realized through the antenna 1, the antenna 2, the mobile communication module, the wireless communication module, and the Modem, etc. For the embodiments of the present application, if the terminal device has two SIM cards, both of the two SIM cards are used for mobile communication through the antenna 1. In some embodiments, the antenna 1 of the terminal is coupled with the mobile communication module, and the antenna 2 is coupled with the wireless communication module, so that the terminal device can communicate with the network side device and other terminals through the wireless communication technology.
[0138] In addition, an operating system runs on the above-mentioned components. For example, the iOS operating system developed by Apple Inc., the Android open source operating system developed by Google Inc., the Windows operating system developed by Microsoft Corporation, etc.
[0139] The operating system of the terminal can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to exemplarily illustrate the software and hardware structure of the terminal. It should be noted that, although the embodiments of the present application take the Android system as an example for illustration, the basic principles are also applicable to terminal devices based on the iOS or Windows operating system, etc.
[0140] Figure 4is a software structure block diagram of the terminal. The software structure adopts a layered architecture, which divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. Taking the Android system as an example, the Android system runs on the AP. In some embodiments, the Android system is divided into five layers, from top to bottom, which are the application layer, the application framework layer (Framework), the Android runtime and system library, the hardware abstraction layer (HAL), and the kernel layer (Kernel).
[0141] The application layer can include a series of application packages. The application packages can include camera, gallery, calendar, call, map, WLAN, Bluetooth, music, video, short message, etc. APPs, and the application layer can also include systemUI (system UI), which is used to display the interface of the terminal, such as displaying the signal icon corresponding to the SIM card, displaying the call interface, etc. The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer includes some pre-defined functions. For example, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. The phone manager is used to provide the call function of the terminal, such as the management of the call state (including call connection, call hang-up, etc.), and the phone manager is represented by Telephony in Figure 4
[0142] The Telephony is responsible for handling all functions related to telephone services and is the core component of the Android system for providing telephone services. The Telephony provides the ability to send and receive short messages.
[0143] The Booster is a quality optimization tool, and its role is reflected in the performance detection, performance optimization, system problem repair, and application slimming of the Android application. In the embodiments of the present application, the Booster is used to decide whether to suppress the first SIM card from searching for a network, and is used to decide whether to contact the suppression of the first SIM card from searching for a network.
[0144] The kernel layer is mainly responsible for hardware driver interaction, task allocation, memory management, and other underlying support. The kernel layer provides various hardware component drivers, such as display drivers, camera drivers, audio drivers, sensor drivers, radio interface layers (RIL), etc. These drivers ensure that hardware devices can be correctly identified and used by the system.
[0145] RIL is responsible for establishing a communication bridge between the phone service and the wireless hardware device in the Android system. It is mainly responsible for implementing the wireless communication function related to the phone service. In the embodiment of the application, the RIL mainly converts the instructions sent by the upper layer into instructions that can be recognized by the bottom layer hardware.
[0146] The Modem can include a NAS (Non-Access Stratum) layer, an RRC (radio resource control) layer, a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a medium access control (MAC) layer, and a physical (PHY) layer. Each of the aforementioned layers can be a software module. The Modem can interact with the base station through an antenna. The embodiment of the application mainly relates to the interaction between the Modem and the base station through the antenna 1.
[0147] Based on the software architecture layer shown in the foregoing Figure 4 Further, the interaction between each module in the software architecture layer is further introduced. Please see the following Figure 5 shown, Figure 5 A network search method based on the software architecture provided in the embodiment of the application is shown in the flowchart, Figure 5 including steps 510-560. Among them:
[0148] 510, the APP parses the first short message.
[0149] The APP can be a short message application, which includes the short messages received by the first SIM card and the second SIM card. The short message application parses the first short message after receiving the first short message, or the short message application parses the first short message after receiving the short message and the first SIM card fails to search for the network. For details, see the description in step 201 above. Alternatively, the APP can also be an analysis application developed for analyzing short messages. The analysis application can obtain and analyze the first short message from the short message application.
[0150] 521, the APP sends the first short message analysis result to the Booster.
[0151] The first short message analysis result is used to indicate whether the first SIM card is in arrears. For example, if the APP analyzes the first short message and finds that the first short message contains a keyword such as "arrears", the APP sends a result indicating that the first SIM card is in arrears to the Booster; otherwise, if the APP analyzes the first short message and finds that the first short message does not contain a keyword such as "arrears", the APP sends a result indicating that the first SIM card is not in arrears to the Booster.
[0152] Optionally, the APP sends the analysis result to the Booster only when it is analyzed that the first SIM card is in arrears. That is, if the APP analyzes that the first SIM card is not in arrears, the APP does not send the analysis result to the Booster.
[0153] 522. The APP sends a data-sensitive application running state to the Booster.
[0154] The APP can be a currently running data-sensitive application. For example, when entering the data-sensitive application, the data-sensitive application sends the running state of the data-sensitive application to the Booster to inform the Booster that there is a data-sensitive application in the currently running application.
[0155] Optionally, it can also be determined whether there is a data-sensitive service currently by using an Activity Manager Service (AMS). Specifically, the currently running application can be determined by the AMS, and then it is determined whether there is a data-sensitive application in the running application based on a preset sensitive application list and the running application.
[0156] 523. The Telephony sends a current service state to the Booster.
[0157] The current service state is the service state of the first SIM card, and the Telephony includes the state of the first SIM card. If the state corresponding to the first SIM card is "unknow", it means that the first SIM card is currently offline (not connected to the network).
[0158] Optionally, the Telephony can send the service state of the first SIM card to the Booster in real time, or can trigger sending the service state of the first SIM card to the Booster only when the state corresponding to the first SIM card is "unknow".
[0159] 524. The Telephony sends historical registration information to the Booster.
[0160] The historical registration information is the service state of the first SIM card in a period of time. In addition to the current state of the first SIM card, the Telephony also records the state of the first SIM card in a period of time. For example, the Telephony records that the number of times that the state of the first SIM card is "unknow" in a day is 10 times.
[0161] Optionally, the Telephony sends the historical registration information to the Booster, which can be specifically all states of the first SIM card in a period of time, or the number of times that the first SIM card is "unknow" in a period of time, or other manners.
[0162] Optionally, the Telephony sends the historical registration information to the Booster according to a preset first period. The first period can be set before the terminal device is shipped, for example, every 1 day, and the Telephony automatically sends the historical registration information to the Booster.
[0163] The steps 510, 521, 522, 523 and 524 are optional, that is, the Booster can only receive any one of the above steps.
[0164] 530. The Booster determines whether to issue the instruction for inhibiting the first SIM card from searching for a network.
[0165] Optionally, the Booster determines whether to issue the instruction for inhibiting the first SIM card from searching for a network based on the information sent in any one of the steps 510, 521, 522, 523 and 524. The determination manner can refer to the introduction of the above Figure 2 , and details are not described herein.
[0166] 540. The Booster issues the inhibition instruction to the RIL.
[0167] The inhibition instruction is used to trigger the TOP inhibition, and the inhibition instruction can include a first time period. The first time period can be a time period preset in the Booster, or a time period determined by the Booster based on the current power and other information of the terminal device. Details can refer to the first time period in the introduction of the above Figure 2 .
[0168] 550. The RIL triggers the TOP inhibition.
[0169] 560. The RIL lengthens the OOS / BSR interval.
[0170] Wherein, the lengthened OOS / BSR interval is a first time period, and the first time period is issued by the Booster in the above.
[0171] Optionally, the inhibition process can also be as shown in Figure 6 , Figure 6 The current service state and historical registration information in the above Figure 6 For Figure 5 Another presentation form of Figure 6 Each step in the above Figure 5 As shown in
[0172] Based on the software architecture layer shown in the above Figure 7 Further introduction is made to the interaction between each module in the software architecture layer. Please see the following Figure 7 As shown in Figure 7 A software architecture-based network searching method provided by the embodiment of the present application, Figure 7 Comprising steps 710-770. Wherein:
[0173] 710, APP parses the second short message.
[0174] Wherein, the second short message can refer to the introduction in the above step 201, and the APP for parsing the short message can refer to the introduction in the above step 510, which will not be repeated here.
[0175] 721, the APP sends the second short message parsing result to the Booster.
[0176] Wherein, the second short message result can be used to indicate whether the terminal device has successfully recharged and no longer owes fees. Optionally, after determining that the first SIM card no longer owes fees, the step 721 is triggered to be executed.
[0177] 722, the APP sends the data sensitive application running state to the Booster.
[0178] Optionally, when exiting the data sensitive application, the data sensitive application running state is sent to the Booster to inform the Booster that there is no data sensitive application in the currently running application.
[0179] The step can refer to the introduction in the above step 522, which will not be repeated here.
[0180] 723, the Telephony sends the self-healing trigger record to the Booster.
[0181] The self-recovery trigger record can inhibit the network searching behavior of the first SIM card in a plurality of first time periods, and the record of releasing the inhibition of the first SIM card searching network is released. For example, the network searching behavior of the first SIM card is inhibited all day long, and the inhibition of the first SIM card searching network is released. The self-recovery trigger record is the record of the occurrence of the above event.
[0182] 724. The Telephony sends the DSDS state to the Booster.
[0183] The DSDS state can be used to indicate that the first SIM card is inhibited. Since the DSDS includes a plurality of SIM cards, the Telephony needs to inform the Booster which SIM card is inhibited.
[0184] 730. The Booster determines whether to issue the instruction of releasing the inhibition of the first SIM card searching network.
[0185] Optionally, the Booster determines whether to issue the instruction of releasing the inhibition of the first SIM card searching network based on the information sent in any one of the steps 710, 721, 722, 723 and 724. The determination manner can be referred to the description of the step 730, which will not be repeated here. Figure 2
[0186] 740. The Booster issues the instruction of releasing the inhibition to the RIL.
[0187] The instruction of releasing the inhibition is used to instruct to release the TOP inhibition.
[0188] 750. The RIL releases the TOP inhibition.
[0189] 760. The OOS / BSR interval is recovered.
[0190] 770. The RIL triggers the immediate network searching.
[0191] The steps 760 and 770 can be referred to the description of the releasing inhibition embodiment, which will not be repeated here.
[0192] Optionally, the releasing inhibition process can also be another presentation form as shown in Figure 8 Figure 8 Figure 7 Figure 8 The steps in the process can be referred to the description of the releasing inhibition process, which will not be repeated here. Figure 7
[0193] Please refer to Figure 9 , Figure 9 is a structural schematic diagram of a network searching device 900 provided by the embodiment of the application. Figure 9 The search device shown can be a terminal device, a device in a terminal device, or a device that can be matched with a terminal device. Figure 9 The terminal device shown can include a processing unit 901 and an execution unit 902. Among them:
[0194] The processing unit 901 is configured to parse the content of the first short message, determine whether to allow network access through the first SIM card, the sender of the first short message is an operator, and the first short message is received through the first SIM card.
[0195] The execution unit 902 is configured to, if it is determined that network access through the first SIM card is not allowed, suppress network search of the first SIM card within a first time period, and the first time period is greater than a default network search time interval of the terminal device.
[0196] In a possible implementation, the execution unit 902 is further configured to, if the number of times of network search failure through the first SIM card exceeds a preset first threshold, suppress network search of the first SIM card within the first time period; and / or, if a first parameter about the first SIM card sent by a network device is received, suppress network search of the first SIM card within the first time period, and the first parameter indicates that network access through the first SIM card is not allowed.
[0197] In a possible implementation, the execution unit 902 is further configured to, if a second short message is received through the first SIM card during the suppression of network search of the first SIM card, parse the second short message to determine whether to allow network access through the first SIM card, the sender of the second short message is an operator; and if it is determined that network access through the first SIM card is allowed, cancel the suppression of network search of the first SIM card within the first time period.
[0198] In a possible implementation, the execution unit 902 is further configured to, if the network search behavior of the first SIM card is suppressed within a plurality of consecutive first time periods, cancel the suppression of network search of the first SIM card.
[0199] In a possible implementation, the processing unit 901 is further configured to trigger the first SIM card to search for a first standard network;
[0200] The execution unit 902 is further configured to, if the first SIM card fails to search for the first standard network, trigger the first SIM card to search for a second standard network, and the network standard of the first standard network is higher than that of the second standard network.
[0201] In a possible implementation, the SIM cards in the terminal device include a first SIM card and a second SIM card, the second SIM card is a network-using SIM card, and the first SIM card is a network-unusing SIM card.
[0202] In a possible implementation, the processing unit 901 is further configured to determine whether there is a data-sensitive application in the running application, the data-sensitive application has a higher requirement on network quality than other applications, and the data-sensitive application is an application in a preset sensitive application list.
[0203] The execution unit 902 is further configured to, if there is a data-sensitive application in the running application, inhibit the first SIM card from searching for a network in a first time period.
[0204] In a possible implementation, the execution unit 902 is further configured to, if it is detected that the data-sensitive application is exited during the inhibition of the first SIM card from searching for a network, release the inhibition of the first SIM card from searching for a network.
[0205] For the case where the network searching device can be a chip or a chip system, refer to the structural schematic diagram of the chip shown in FIG. 10. Figure 10 The chip 1000 shown in FIG. 10 includes a processor 1001, an interface 1002, and optionally a memory 1003. The number of the processor 1001 can be one or more, and the number of the interface 1002 can be multiple. Figure 10
[0206] For the case where the chip is used to implement the terminal device in the embodiments of the present application:
[0207] The interface 1002 is configured to receive or output a signal.
[0208] The processor 1001 is configured to perform a data processing operation of the electronic device.
[0209] The above embodiments are only used to illustrate the technical solutions of the present application, but not limit the same; although the foregoing embodiments of the present application are described in detail, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalent ones; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0210] It can be understood that some optional features in the embodiments of the present application can be implemented independently in some scenarios, without relying on other features, such as the scheme currently based on, to solve the corresponding technical problems and achieve the corresponding effects, or can be combined with other features according to the needs in some scenarios. Accordingly, the network searching device given in the embodiments of the present application can also implement these features or functions, and details are not described herein.
[0211] It should be understood that the processor in the embodiments of the present application can be an integrated circuit chip with a processing capability of signals. In the implementation process, each step of the method embodiments described above can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The processor described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0212] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example and not limitation, many forms of RAM can be used, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM) and direct rambus RAM (DR RAM). It should be noted that the memory of the system and method described herein is intended to include but not limited to these and any other suitable types of memory.
[0213] The present application also provides a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program includes program instructions, when the program instructions run on an electronic device, realize the function of any one of the method embodiments.
[0214] The application also provides a computer program product, which, when running on a computer, enables the computer to implement the functions of any of the above method embodiments.
[0215] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a high-density digital video disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0216] The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the application, which should be covered within the protection scope of the application. Therefore, the protection scope of the application should be subject to the protection scope of the claims.
Claims
1. A network search method, characterized by, The method is applied to a terminal device, and the method comprises: determining whether to allow the terminal device to access a network through a first SIM card based on a current service state of the first SIM card, historical registration information of the first SIM card, a first short message analysis result, and a data-sensitive application running state, wherein the historical registration information comprises a service state of the first SIM card recorded in a preset time period, the first short message analysis result is determined based on a first short message, a sender of the first short message is an operator, the first short message is received through the first SIM card, and the service state comprises a no-network state; if it is determined through a booster that the terminal device is not allowed to access the network through the first SIM card, then issuing a suppression instruction to a radio interface layer (RIL) through the booster, wherein the suppression instruction is used to instruct to suppress a network search behavior of the first SIM card in a first time period, the network search behavior comprises a registration behavior, the first time period is longer than a default network search time interval of the terminal device, and the first time period is determined based on an application running state of the terminal device, a power consumption resource occupation state of the terminal device, and a power state of the terminal device; if a number of times of network search failure through the first SIM card exceeds a preset first threshold value, then suppressing the first SIM card from searching for a network in the first time period; if a first parameter about the first SIM card sent by a network device is received, then suppressing the first SIM card from searching for a network in the first time period, wherein the first parameter is a rejection reply of a network device to a registration request sent by the terminal device; if a second short message is received through the first SIM card during suppression of the registration behavior of the first SIM card, then analyzing the second short message to determine a second short message analysis result; determining whether to allow the terminal device to access the network through the first SIM card based on the second short message analysis result, the data-sensitive application running state, a self-recovery trigger record of the first SIM card, and a dual SIM dual standby (DSDS) state, wherein a sender of the second short message is the operator, the self-recovery trigger record comprises a record of suppression and release of the registration behavior of the first SIM card, and the DSDS state indicates whether the first SIM card is suppressed; if it is determined through the booster that the terminal device is allowed to access the network through the first SIM card, then issuing a release suppression instruction to the RIL through the booster, wherein the release suppression instruction is used to instruct to release suppression of the registration behavior of the first SIM card in the first time period.
2. The method of claim 1, wherein, The method further comprises: if it is detected that the first SIM card is suppressed from searching for a network in a continuous preset number of first time periods, then releasing suppression of the first SIM card from searching for a network.
3. The method according to claim 1 or 2, characterized in that, After the step of issuing the release suppression instruction to the RIL through the booster, the method further comprises: triggering the first SIM card to search for a network of a first standard; If the first SIM card fails to search for the first type network, the first SIM card is triggered to search for a second type network, the network type of the first type network being higher than that of the second type network.
4. The method according to any one of claims 1 to 3, characterized in that, The SIM card in the terminal device comprises the first SIM card and a second SIM card, the second SIM card being a SIM card using a network, and the first SIM card being a SIM card not using a network.
5. The method of claim 4, wherein, The method further comprises: determining whether there is a data sensitive application in the running application, the data sensitive application having a higher requirement for network quality than other applications, and the data sensitive application being an application in a preset sensitive application list; if the data sensitive application exists in the running application, the first SIM card is inhibited from searching for a network in the first time period.
6. The method of claim 5, wherein, The method further comprises: if it is detected that the data sensitive application is exited during the inhibition of the first SIM card from searching for a network, the inhibition of the first SIM card from searching for a network is released.
7. A terminal device comprising one or more memories, one or more processors, wherein the one or more memories store instructions that, when executed by the one or more processors, cause the terminal device to perform operations comprising: The memory is configured to store a computer program, and the processor is configured to invoke the computer program, so that the terminal device executes the method in any one of claims 1-6.
8. A chip system, applied to a terminal device, characterized in that: The chip system comprises at least one processor and an interface, the interface being configured to receive an instruction and transmit the instruction to the at least one processor, and the at least one processor being configured to execute the instruction, so that the terminal device executes the method in any one of claims 1-6.
9. A computer-readable storage medium having stored thereon computer program instructions, wherein, The computer program instructions, when executed by the processor, implement the steps of the method in any one of claims 1-6.
10. A computer program product comprising computer program instructions, characterised in that, The computer program instructions, when executed by the processor, implement the steps of the method in any one of claims 1-6.
Citation Information
Patent Citations
Mobile terminal network access control method and mobile terminal network access control device
CN106304251A
Network searching control method, network searching control device and mobile terminal
CN108632930A
Information identification method, electronic device, and computer-readable storage medium
CN109257712A
Network search method and device, electronic equipment and readable storage medium
CN116801362A