Method and terminal device for managing prohibited public land mobile network (PLMN)
Patent Information
- Application Number
- CN202280040649.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2024-12-06
AI Technical Summary
The existing public land mobile network PLMN management method has room for optimization in certain scenarios, especially the inability to accurately manage the banned PLMN list after timer T3245 expires, which may result in permanent PLMN reservation or management errors.
By storing the prohibited PLMN list and the timer-related information used to manage these lists in the same storage unit, it is ensured that both the list and the timer information are available in the terminal device, or neither is available, thereby avoiding errors caused by information loss. The problem of PLMN being unable to be unlocked and the target PLMN being accurately deleted when the timer expires.
It achieves precise management of prohibited PLMNs, improves the intelligence and user experience of terminal devices, avoids the problem of permanent PLMN retention caused by changing SIM cards during the timer operation, and ensures the correct update and management of the PLMN list.
Smart Images

Figure CN119096598A_ABST
Abstract
Description
Method and terminal equipment for managing prohibited public land mobile network (PLMN) Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular to a method and terminal device for managing prohibited public land mobile networks (PLMNs). Background Art
[0002] In some scenarios, the terminal device can manage the prohibition of the Public Land Mobile Network (PLMN) based on the timer T3245. For example, when the terminal 1 receives the rejection reason #11 or #35 for PLMN A issued by the network device, the terminal 1 writes PLMN A to the prohibited PLMN list in the subscriber identity module (SIM) card and starts T3245. The running status of T3245 is stored in UE1.
[0003] However, there is still room for further optimization of the management method for prohibiting PLMNs.
[0004] Summary of the Invention
[0005] The present application provides a method and terminal device for managing a prohibited public land mobile network (PLMN).
[0006] In a first aspect, a method for managing prohibited public land mobile networks (PLMNs) is provided, comprising: a first terminal starting a first timer when a first PLMN is added to a prohibited PLMN list; wherein the prohibited PLMN list and information related to the first timer are stored in the same storage unit.
[0007] In a second aspect, a method for managing a prohibited public land mobile network PLMN is provided, including: when a second event occurs, the second terminal obtains a prohibited PLMN list and first timer related information, and the prohibited PLMN list and the first timer related information are stored in the same storage unit; and manages the target PLMN according to the first timer related information.
[0008] In a third aspect, a method for managing prohibited public land mobile networks (PLMNs) is provided, comprising: starting a first timer when a user identification module (SIM) card of a second terminal is changed; and deleting a target PLMN from the prohibited PLMN list when the first timer times out.
[0009] In a fourth aspect, a terminal device is provided for executing the method in the above-mentioned first aspect or its various implementation modes.
[0010] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned first aspect or its various implementation modes.
[0011] In a fifth aspect, a terminal device is provided for executing the method in the above-mentioned second aspect or its various implementations.
[0012] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned second aspect or its various implementation modes.
[0013] In a sixth aspect, a terminal device is provided for executing the method in the third aspect or its various implementations.
[0014] Specifically, the terminal device includes a functional module for executing the method in the above-mentioned third aspect or its various implementation modes.
[0015] In a seventh aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of the first aspect or its respective implementations.
[0016] In an eighth aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of the second aspect or its respective implementations.
[0017] In a ninth aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and execute the computer program stored in the memory to perform the method of the third aspect or its respective implementations.
[0018] In a tenth aspect, a chip is provided for implementing the method described in any one of the first to third aspects or their respective implementations. Specifically, the chip includes a processor for loading and executing a computer program from a memory, causing a device equipped with the chip to perform the method described in any one of the first to third aspects or their respective implementations.
[0019] In the eleventh aspect, a computer-readable storage medium is provided for storing a computer program, which enables a computer to execute the method of any one of the first to third aspects or their respective implementations.
[0020] In the twelfth aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method in any one of the above-mentioned first to third aspects or their respective implementations.
[0021] In a thirteenth aspect, a computer program is provided, which, when executed on a computer, enables the computer to execute the method in any one of the first to third aspects or its respective implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram of a communication system architecture provided in an embodiment of the present application.
[0023] FIG2 is a schematic flow chart of a method for managing a PLMN in the related art.
[0024] FIG3 is a schematic flowchart of a method for managing a PLMN in the related art.
[0025] FIG4 is a schematic diagram of a method for managing prohibited PLMNs provided in an embodiment of the present application.
[0026] FIG5 is a schematic diagram of another method for managing prohibited PLMNs provided in an embodiment of the present application.
[0027] FIG6 is a schematic diagram of another method for managing prohibited PLMNs provided in an embodiment of the present application.
[0028] FIG7 is a schematic flowchart of a method for managing prohibited PLMNs according to an embodiment of the present application.
[0029] FIG8 is a schematic flowchart of another method for managing prohibited PLMNs according to an embodiment of the present application.
[0030] FIG9 is a flowchart of processing performed by a terminal device when a second event occurs according to an embodiment of the present application.
[0031] FIG10 is a flowchart of a process performed by a terminal device upon receiving a rejection reason #11 or #35 according to an embodiment of the present application.
[0032] FIG11 is a flowchart of a process of a terminal device when a card is removed according to an embodiment of the present application.
[0033] FIG12 is a flowchart of a process of a terminal device when shutting down according to an embodiment of the present application.
[0034] FIG13 is a flowchart of a process performed by a terminal device when a timer times out according to an embodiment of the present application.
[0035] FIG14 is a schematic flowchart of another method for managing prohibited PLMNs according to an embodiment of the present application.
[0036] FIG15 is a flowchart of processing performed by a terminal device when a second event occurs according to another embodiment of the present application.
[0037] FIG16 is a flowchart of a process performed by a terminal device upon receiving rejection reason #11 or #35 according to yet another embodiment of the present application.
[0038] FIG17 is a flowchart of a process of a terminal device when a timer times out according to another embodiment of the present application.
[0039] FIG18 is a schematic flowchart of another method for managing prohibited PLMNs according to an embodiment of the present application.
[0040] FIG19 is a flowchart of processing performed by a terminal device when a second event occurs according to yet another embodiment of the present application.
[0041] FIG20 is a flowchart of processing performed by a terminal device when a second event occurs according to yet another embodiment of the present application.
[0042] Figure 21 is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
[0043] Figure 22 is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
[0044] Figure 23 is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
[0045] Figure 24 is a schematic block diagram of a communication device provided according to an embodiment of the present application.
[0046] Figure 25 is a schematic block diagram of a chip provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. With respect to the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0048] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.
[0049] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), vehicle-to-vehicle (V2V) communication, or vehicle-to-everything (V2X) communication, etc. The embodiments of the present application can also be applied to these communication systems.
[0050] Optionally, the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, or a standalone (SA) networking scenario.
[0051] Optionally, the communication system in the embodiment of the present application can be applied to an unlicensed spectrum, where the unlicensed spectrum can also be considered as a shared spectrum; or, the communication system in the embodiment of the present application can also be applied to an authorized spectrum, where the authorized spectrum can also be considered as an unshared spectrum.
[0052] The embodiments of the present application describe various embodiments in conjunction with network devices and terminal devices, wherein the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0053] The terminal device can be a station (STA) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a next-generation communication system such as an NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0054] In an embodiment of the present application, the terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
[0055] In an embodiment of the present application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0056] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0057] In an embodiment of the present application, the network device may be a device for communicating with a mobile device. The network device may be an access point (AP) in WLAN, a base station (BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device (gNB) in an NR network, or a network device in a future evolved PLMN network or a network device in an NTN network, etc.
[0058] As an example and not a limitation, in an embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. Alternatively, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a high elliptical orbit (HEO) satellite, etc. Optionally, the network device may also be a base station set up in a location such as land or water.
[0059] In an embodiment of the present application, the network device can provide services for a cell, and the terminal device communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be a cell corresponding to the network device (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
[0060] For example, a communication system 100 used in an embodiment of the present application is shown in FIG1 . The communication system 100 may include a network device 110, which may be a device that communicates with a terminal device 120 (or a communication terminal or terminal). The network device 110 may provide communication coverage for a specific geographic area and may communicate with terminal devices within the coverage area.
[0061] FIG1 exemplarily shows a network device and two terminal devices. Optionally, the communication system 100 may include multiple network devices and each network device may include another number of terminal devices within its coverage area, which is not limited in the embodiments of the present application.
[0062] Optionally, the communication system 100 may further include other network entities such as a network controller and a mobility management entity, which is not limited in the embodiment of the present application.
[0063] It should be understood that in the embodiments of the present application, a device having a communication function in a network / system may be referred to as a communication device. Taking the communication system 100 shown in FIG1 as an example, the communication device may include a network device 110 and a terminal device 120 having a communication function. The network device 110 and the terminal device 120 may be the specific devices described above and will not be described in detail here. The communication device may also include other devices in the communication system 100, such as a network controller, a mobility management entity, and other network entities, which are not limited in the embodiments of the present application.
[0064] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.
[0065] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.
[0066] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.
[0067] In the embodiments of the present application, "pre-defined" may be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in a device (e.g., a terminal device or a network device). The present application does not limit the specific implementation method. For example, pre-defined may refer to information defined in a protocol.
[0068] In the embodiments of the present application, the "protocol" may refer to a standard protocol in the communication field, for example, it may include an LTE protocol, an NR protocol, and related protocols used in future communication systems, and this application does not limit this.
[0069] To facilitate understanding of the technical solutions of the embodiments of the present application, a management method for forbidden PLMN (FPLMN) related to the present application is described.
[0070] In some scenarios, the terminal device may manage the prohibited PLMN based on timer T3245. For example, when the terminal device is configured to allow the use of T3245 to manage the prohibited PLMN, the PLMN is prohibited based on T3245 management. The configuration of the terminal device to allow the use of T3245 to manage the prohibited PLMN may refer to the timer T3245 behavior value (Timer T3245 behavior value) in the subscriber identity module (Subscriber Identity Module, SIM) card or the universal subscriber identity module (Universal Subscriber Identity Module, USIM) card of the terminal being set to 1. Alternatively, it may refer to the timer T3245 behavior value in the non-volatile memory (NVM) of the terminal device being set to 1.
[0071] In some scenarios, when a terminal device initiates registration with PLMN A, but the network device issues a rejection reason #11 or #35, the terminal device may write PLMN A to the prohibited PLMN list in the terminal device's SIM card and enable T3245, and further manage the prohibited PLMN list based on T3245.
[0072] 2 and 3 , the management solution of prohibited PLMN based on T3245 in the related art is described.
[0073] As shown in Figure 2, after a SIM card is inserted into UE1, UE1 initiates registration with PLMN A. However, it receives a rejection reason #11 or #35 from the network. In this case, UE1 writes PLMN A to the forbidden PLMN list stored in the SIM card and initiates T3245, which runs on UE1. For example, the EF_FPLMN file on the SIM card in Figure 2 records forbidden PLMNs. Writing PLMN A to the forbidden PLMN list in the SIM card can be understood as writing PLMN A to the EF_FPLMN file on the SIM card.
[0074] The SIM card is then removed from UE1 and inserted into UE2. When UE2 boots up and re-camps on PLMN A's cell, it cannot initiate registration on PLMN A's cell because PLMN A is on the banned PLMN list. Furthermore, since UE2 is unaware that T3245 was previously initiated in UE1, it cannot unban PLMN A through T3245. PLMN A remains permanently in the banned PLMN list in the SIM card. Unless manual network registration is successful, UE1 cannot initiate registration on PLMN A's cell.
[0075] Furthermore, in the above example, even if the SIM card remains in UE1, after the T3245 timer expires, UE1 will remove PLMN A from the forbidden PLMN list, along with all other PLMNs in the forbidden PLMN list. This can potentially lead to incorrect management of forbidden PLMNs. For example, as shown in Figure 3, when the SIM card is issued, the forbidden PLMN list includes PLMN X. Upon receiving a rejection reason #11 or #35 for PLMN A from the network device, PLMN A is added to the forbidden PLMN list and T3245 is initiated. When T3245 expires, all PLMNs in the forbidden PLMN list are cleared.
[0076] Therefore, there is still room for further optimization in how to manage prohibited PLMNs.
[0077] In view of this, an embodiment of the present application provides a method for managing prohibited PLMNs, by storing the prohibited PLMN list and the timer-related information used to manage the prohibited PLMN list in the same storage unit. In this way, for a terminal device, either the prohibited PLMN list and the timer-related information are obtained at the same time, or neither of them can be obtained. This is conducive to avoiding the problem of only being able to obtain one of the prohibited PLMN list and the timer-related information, resulting in the inability to manage the prohibited PLMN list and thus affecting the user experience.
[0078] An embodiment of the present application also provides a method for associating prohibited PLMNs. When a prohibited PLMN list exists in a SIM card and the prohibited PLMN list is not empty, the terminal device can start a timer and manage the prohibited PLMN list through the timer. This is helpful in avoiding the problem of replacing the SIM card during the timer running, causing the prohibited PLMN to be permanently retained in the prohibited PLMN list.
[0079] To facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the scope of protection of the embodiments of the present application. The embodiments of the present application include at least part of the following contents.
[0080] FIG4 is a schematic flow chart of a method 200 for managing a prohibited public land mobile network (PLMN) according to an embodiment of the present application. This method 200 can be applied to a first terminal, which can be the terminal device 120 in the communication system shown in FIG1 . For a specific implementation, refer to the relevant description of the embodiment shown in FIG1 , and for the sake of brevity, further description is omitted here.
[0081] In method 200, the first terminal may store the forbidden PLMN list and timer-related information used to manage PLMNs in the forbidden PLMN list in the same storage unit. For example, both may be stored in the first terminal's storage unit, or in the storage unit of the first terminal's SIM card. This allows the first terminal to obtain either the forbidden PLMN list and timer-related information simultaneously, or neither, facilitating effective management of forbidden PLMNs.
[0082] It should be understood that the embodiments of the present application do not limit the judgment conditions for a PLMN to be prohibited or added to the prohibited PLMN list and the conditions for starting the timer. For example, when receiving the rejection reason #11 or #35 sent by the network device, the PLMN is added to the prohibited PLMN list and the timer is started. The first terminal may autonomously determine to add the PLMN to the prohibited PLMN list and start the timer based on the application scenario. The PLMN may also be added to the prohibited PLMN list and the timer is started based on other conditions introduced in the standard evolution. This application does not limit this.
[0083] The following only uses the example of adding the PLMN to the prohibited PLMN list and starting the timer when receiving the rejection reason #11 or #35 sent by the network device. It should be noted that other judgment conditions for adding the PLMN to the prohibited PLMN list and the conditions for starting the timer are also applicable to the technical solution provided in the embodiment of the present application.
[0084] In an embodiment of the present application, the first terminal is a terminal that allows the use of a timer to manage a prohibited PLMN. In some embodiments, the first terminal is configured to allow the use of a timer to manage a prohibited PLMN.
[0085] In some embodiments, the first terminal is configured to enable use of a timer to manage a prohibited PLMN, which may include:
[0086] The Timer T3245Behaviour value in the configuration file (e.g., EF_FPLMN) of the SIM card of the first terminal is configured to be 1, or,
[0087] The Timer T3245Behaviour value in the configuration file of the storage unit of the first terminal is configured as 1.
[0088] As shown in FIG4 , the method 200 includes at least part of the following:
[0089] S210 : When the first PLMN is added to the forbidden PLMN list, start a first timer.
[0090] In the embodiment of the present application, the first PLMN may be any PLMN that meets the judgment conditions of being banned or added to the banned PLMN list, and the embodiment of the present application does not impose any restrictions on this.
[0091] S220: When a first event occurs, store first timer related information.
[0092] In some embodiments, the forbidden PLMN list and the first timer related information are stored in the same storage unit.
[0093] In some embodiments, the same storage unit is a storage unit in the first terminal or a storage unit in a SIM of the first terminal.
[0094] In some embodiments, the storage unit in the first terminal may be a volatile memory (VM) or a non-volatile memory (NVM) in the first terminal.
[0095] In some embodiments, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
[0096] In some embodiments, the volatile memory may be a random access memory (RAM), a local database, or other storage unit that is cleared upon shutdown.
[0097] In some embodiments, the first timer-related information includes at least one of the following:
[0098] The remaining duration information of the first timer, the total duration information of the first timer, the start time information of the first timer, the time information of the occurrence of the first event, and the running status information of the first timer when the first event occurs.
[0099] The remaining duration information of the first timer here can be understood as the remaining duration information of the first timer when the first event occurs.
[0100] It should be noted that the first timer related information can be recorded in real time after the first timer is started, or it can be recorded under specific conditions. Different types of related information can have different recording nodes. This application does not limit the recording nodes of the first timer related information.
[0101] It should also be noted that each information in the first timer-related information may be recorded at the same time node, or may be recorded at different time nodes, and this application does not limit this. For example, the start time information of the first timer may be recorded when the first timer starts, and the remaining duration information of the first timer may be recorded when the SIM card of the first terminal expires.
[0102] It should be understood that the timer in the embodiment of the present application may be called a T3245 timer, an extended T3245 timer, a PLMN prohibition timer, or may also be defined as a timer of other types, and the present application does not limit this.
[0103] In some embodiments, the first timer is used to trigger the release of the target PLMN in the banned PLMN list when it times out, or in other words, the first timer is used to determine the release time of the target PLMN in the banned PLMN list.
[0104] For example, when the first timer times out, the target PLMN is deleted from the prohibited PLMN list, that is, when the first timer times out, the target PLMN is unbanned.
[0105] It should be understood that in the embodiment of the present application, the timeout of the first timer can also be expressed as: the first timer expires, the first timer fails. That is, the first terminal can delete the target PLMN from the prohibited PLMN list based on the timeout (or expiration, or failure) of the first timer.
[0106] In some embodiments, the target PLMN includes only the first PLMN. Then, when the first timer expires, only the first PLMN is unbanned, or in other words, only the first PLMN is deleted from the banned PLMN list.
[0107] In this case, accurate management of prohibited PLMNs can be achieved based on the timer, which is beneficial to improving the intelligence of terminal devices and user experience.
[0108] In other embodiments, the target PLMN includes all PLMNs in the prohibited PLMN list. Upon expiration of the first timer, all PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, timer-based management of all prohibited PLMNs can be implemented, reducing terminal implementation complexity.
[0109] In yet other embodiments, the target PLMN includes multiple PLMNs in the prohibited PLMN list. Upon expiration of the first timer, the multiple PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, timer-based management of the prohibited PLMN group can be implemented, which can improve the intelligence and user experience of the terminal device while reducing terminal implementation complexity.
[0110] In some embodiments, the first event may include any event that causes the SIM card of the first terminal to become invalid (referred to as an invalidation event), or may also include an event that triggers the start of the first timer, an event that starts the first timer, etc. This application does not limit this.
[0111] Exemplarily, the SIM card failure event of the first terminal may include at least one of the following events:
[0112] The first terminal is powered off, the SIM card of the first terminal is pulled out, and the SIM card of the first terminal is powered off (or in other words, the SIM card of the first terminal is disabled).
[0113] In some embodiments, powering off the SIM card of the first terminal may include disabling the SIM card of the first terminal, for example, the user manually sets to disable the SIM card.
[0114] Exemplarily, the first event may include at least one of the following events:
[0115] The first terminal is powered off, the SIM card of the first terminal is removed, the SIM card of the first terminal is powered off, the first PLMN is disabled (eg, a rejection reason #11 or #35 for the first PLMN is received from the network device), and the first timer is started.
[0116] In some embodiments, when a SIM card failure occurs, the first terminal may store information related to the first timer in a storage unit of the first terminal. This allows the first terminal to use the stored information related to the first timer to continue managing target PLMNs in the prohibited PLMN list when the SIM card becomes valid again. Alternatively, when the SIM card is removed and inserted into another terminal, since the prohibited PLMN list and timer information are stored in the storage unit of the first terminal, there is no problem of other terminals being unable to initiate registration with a specific PLMN in the prohibited PLMN list.
[0117] Optionally, in the event of a SIM card failure event, the first terminal may store at least one of the remaining duration information of the first timer, the total duration information of the first timer, the start time information of the first timer, the time information of the occurrence of the SIM card failure event, and the operating status information of the first timer.
[0118] For example, when the first terminal is shut down, during the shutdown process, the first terminal can store at least one of the remaining duration information of the first timer, the total duration information of the first timer, the start time information of the first timer, and the occurrence time information of the shutdown event.
[0119] Optionally, the occurrence time information of the shutdown event may refer to any time during the shutdown process, or may also refer to any time information before stopping writing data to the storage unit of the first terminal or the SIM card during the shutdown process.
[0120] For another example, when the SIM card of the first terminal is pulled out, after the SIM card is pulled out, the first terminal can store at least one of the time information when the SIM card of the first terminal is pulled out, the remaining duration information of the first timer, the total duration information of the first timer, and the start time information of the first timer.
[0121] For another example, after the SIM card of the first terminal is powered off, the first terminal can store at least one of the time information when the SIM card of the first terminal is powered off, the remaining duration information of the first timer, the total duration information of the first timer, and the start time information of the first timer.
[0122] Optionally, if a SIM card failure event occurs and the first timer is in a running state when the SIM card failure event occurs, the first terminal may store information related to the first timer in a storage unit of the first terminal. Alternatively, if the first timer has timed out when the SIM card failure event occurs, the first terminal may not store information related to the first timer.
[0123] Optionally, when the first PLMN is prohibited or the first timer is started, the first terminal may store at least one of the total duration information of the first timer, the start time information of the first timer, and the time information of the occurrence of the first PLMN prohibited event.
[0124] For example, when the first terminal receives a rejection message from the network device for the first PLMN (for example, carrying rejection reason 11# or 35#), it determines that the first PLMN is prohibited (or, the first PLMN is regarded as a prohibited PLMN), further adds the first PLMN to the prohibited PLMN list, and starts the first timer. In this case, the first terminal can store at least one of the time information of the occurrence of the first PLMN prohibition event (for example, the time information of receiving the rejection message, or the time information of the first PLMN being added to the prohibited PLMN list), the start time information of the first timer, and the total duration information of the first timer.
[0125] In some embodiments, when the first PLMN is prohibited or the first timer is enabled, the first terminal may store information related to the first timer in a storage unit of the SIM card of the first terminal. Thus, when the SIM card is inserted into another terminal, the other terminal may use the information related to the first timer stored in the SIM card to continue managing target PLMNs in the prohibited PLMN list, thereby avoiding the problem of being unable to unblock the PLMN due to loss of timer information.
[0126] In some scenarios, a second event may occur on the first terminal. The second event may refer to any event that may trigger the SIM reading behavior, or the second event may be a SIM card activation event, such as the first terminal is turned on, a SIM card is inserted into the first terminal, or the SIM card of the first terminal is powered on (or, the SIM card of the first terminal is enabled), etc. This application does not limit this.
[0127] In some embodiments, powering on the SIM card of the first terminal may include re-enabling the SIM card of the first terminal when the SIM card is disabled, for example, the user manually sets the SIM card to be enabled.
[0128] In some embodiments, when a second event occurs on the first terminal, the first terminal can determine whether the SIM card has changed, that is, whether the card has been replaced. Since different SIM cards correspond to different permissions, in the case of a card replacement, it can be considered that the prohibited PLMN list and the first timer related information stored on the first terminal are not applicable to the changed SIM card, or, in the case of no card replacement, it can be considered that the prohibited PLMN list and the first timer related information stored on the first terminal can continue to be used.
[0129] In some embodiments of the present application, the prohibited PLMN list and information related to the first timer are stored in a storage unit of the first terminal, and the method 200 further includes:
[0130] When the SIM card of the first terminal is changed, deleting the prohibited PLMN list and related information of the first timer in the first terminal; or
[0131] When the SIM card of the first terminal has not been changed, the target PLMN in the prohibited PLMN list is managed according to the relevant information of the first timer.
[0132] In some embodiments, managing the target PLMN in the prohibited PLMN list according to the first timer related information may include:
[0133] According to the first timer related information, it is determined whether to delete (or whether to unban) the target PLMN in the prohibited PLMN list, and / or the time for deleting the target PLMN in the prohibited PLMN list, that is, the time for unbanning the target PLMN, is determined.
[0134] In some embodiments, managing the target PLMN in the prohibited PLMN list according to the first timer related information may include:
[0135] Determine whether the first timer has timed out according to the relevant information of the first timer;
[0136] Whether to delete the target PLMN in the prohibited PLMN list is determined according to whether the first timer times out.
[0137] For example, when the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0138] For another example, if the first timer has not timed out, the second timer is started, and if the second timer times out, the target PLMN in the prohibited PLMN list is deleted. In other words, the first terminal can delete the target PLMN from the prohibited PLMN list based on the timeout (or expiration, or failure) of the second timer.
[0139] In some embodiments, the first timer related information includes the running status information of the first timer when the first event occurs. If the first timer is still running when the first event occurs, in this case, the first terminal determines whether the first timer has timed out based on the time information in the first timer related information.
[0140] The following describes a method for setting the duration of the second timer and a method for determining whether the first timer has timed out, with reference to specific examples.
[0141] Method 1: The duration of the second timer is set to the difference between the remaining duration of the first timer and the first duration, where the first duration is the duration from the occurrence time of the first event to the occurrence time of the second event, or the first duration is the duration from the occurrence time of the first event to the current time.
[0142] Optionally, the first event here may be a SIM card invalidation event, and the second event may be a SIM card validation event.
[0143] In some embodiments, when a SIM card failure event occurs, the first terminal may store the remaining duration information of the first timer. When the SIM card becomes valid again, the first duration has elapsed, and the difference between the remaining duration of the first timer and the first duration can be understood as the actual remaining duration of the first timer. After the SIM card becomes valid again, the target PLMN continues to be managed based on the actual remaining duration of the first timer. This ensures that the first terminal cannot initiate registration with the target PLMN during the time period when the target PLMN is prohibited, while ensuring that the first terminal can initiate registration with the target PLMN after the time period, without affecting the network device's differentiated management strategy for different users.
[0144] In some scenarios, the first event is the first terminal being powered off, and the second event is the first terminal being powered on. The first duration may be the duration from the first terminal being powered off to the first terminal being powered on.
[0145] Optionally, the shutdown time of the first terminal may refer to any time during the shutdown process of the first terminal, or may refer to any time during the shutdown process before the first terminal stops writing data to the storage unit of the first terminal or the SIM card.
[0146] Optionally, the power-on time of the first terminal may refer to any time during the power-on process of the first terminal, or it may refer to any time during the power-on process after the first terminal is able to read data from the storage unit of the first terminal or SIM card, or it may refer to any time after the first terminal is able to write data to the storage unit of the first terminal or SIM card.
[0147] In other scenarios, the first event is that the SIM card of the first terminal is pulled out, and the second event is that the SIM card is inserted into the first terminal. The first duration can be the duration from the time the SIM card of the first terminal is pulled out to the time the SIM card is inserted into the first terminal.
[0148] In some embodiments, the current time may refer to the system time when the first terminal calculates the duration of the second timer.
[0149] Method 2: The duration of the second timer is set to the difference between the total duration of the first timer and the second duration, where the second duration is the interval between the start time of the first timer and the second time, and the second time is the current time or the occurrence time of the second event.
[0150] In some embodiments, when the first PLMN is prohibited or the first timer is started, the first terminal can store the start time information of the first timer. When the second event occurs, the second duration has elapsed, and the difference between the total duration of the first timer and the second duration can be understood as the actual remaining duration of the first timer. After the second event occurs, the target PLMN continues to be managed based on the actual remaining duration of the first timer. On the one hand, this ensures that the first terminal continues to be unable to initiate registration with the target PLMN during the time period when the target PLMN is prohibited. On the other hand, this ensures that the first terminal can initiate registration with the target PLMN after the time period, without affecting the network device's differentiated management strategy for different users.
[0151] In some embodiments, the current time may refer to the system time when the first terminal calculates the duration of the second timer.
[0152] It should be understood that in an embodiment of the present application, the total duration information of the first timer may be stored in a storage unit of the first terminal, or, when the total duration information of the first timer is not stored in the storage unit of the first terminal, the total duration information of the first timer may be selected by the first terminal itself, or a predefined value, or a default value.
[0153] In some embodiments, the total duration of the first timer may also be determined according to the target PLMN to be managed. For example, timers used to manage different PLMNs may be set to different total durations, thereby enabling fine adjustment of the timer duration.
[0154] In some embodiments, the first terminal can determine whether the first timer has timed out based on the duration from the occurrence of the first event to the occurrence of the second event (i.e., the first duration) and the remaining duration of the first timer, i.e., whether the actual remaining duration of the first timer is greater than zero.
[0155] For example, if the remaining duration of the first timer is less than or equal to the first duration (ie, the actual remaining duration of the first timer is less than or equal to 0), it is determined that the first timer has timed out.
[0156] For another example, if the remaining time of the first timer is greater than the first time (ie, the actual remaining time of the first timer is greater than 0), it is determined that the first timer has not timed out.
[0157] In other embodiments, the first terminal may determine whether the first timer has timed out based on the start time of the first timer and the second time (ie, the current time or the occurrence time of the second event).
[0158] For example, if the interval between the start time of the first timer and the second time is greater than or equal to the total duration of the first timer, it is determined that the first timer has timed out.
[0159] For another example, if the interval between the start time of the first timer and the second time is less than the total duration of the first timer, it is determined that the first timer has not timed out.
[0160] In summary, in an embodiment of the present application, the first terminal can store the prohibited PLMN list and the timer-related information for managing the PLMNs in the prohibited PLMN list in the same storage unit, both stored in the storage unit of the first terminal, or both stored in the storage unit of the SIM card of the first terminal, which is conducive to avoiding the problem of replacing the SIM card during the operation of the timer, causing the prohibited PLMN to remain permanently in the prohibited PLMN list.
[0161] The above, in combination with Figure 4, describes in detail the method for managing the prohibition of public land mobile networks PLMN according to an embodiment of the present application from the perspective of the first terminal. The following, in combination with Figure 5, describes in detail the method for managing the prohibition of public land mobile networks PLMN according to another embodiment of the present application from the perspective of the second terminal.
[0162] FIG5 is a schematic flow chart of a method 300 for managing a prohibited public land mobile network (PLMN) according to another embodiment of the present application. Method 300 is applied to a second terminal, which may be terminal device 120 in the communication system shown in FIG1 . For a specific implementation, reference is made to the relevant description of the embodiment shown in FIG1 , and for the sake of brevity, detailed description is omitted here.
[0163] In the method 300, the second terminal may obtain the forbidden PLMN list and timer-related information for managing PLMNs in the forbidden PLMN list from the same storage unit, and further manage the forbidden PLMN list based on the timer-related information.
[0164] As shown in FIG5 , the method 300 includes at least part of the following:
[0165] S310, when a second event occurs, obtaining a prohibited PLMN list and first timer related information, wherein the prohibited PLMN list and the first timer related information are stored in the same storage unit;
[0166] S320: Manage the first PLMN in the prohibited PLMN list according to the first timer related information.
[0167] In some embodiments, the prohibited PLMN list and the information related to the first timer are stored in the SIM card of the second terminal. That is, the same storage unit may be a storage unit in the SIM card of the second terminal. For example, when a first event occurs, the first terminal stores the prohibited PLMN list and the information related to the first timer in the SIM card. After the SIM card is inserted into the second terminal, the second terminal can read the prohibited PLMN list and the information related to the first timer from the SIM card. For another example, when a first event occurs, the second terminal stores the prohibited PLMN list and the information related to the first timer in the SIM card. When a second event occurs, the second terminal can read the prohibited PLMN list and the information related to the first timer from the SIM card.
[0168] In some embodiments, the prohibited PLMN list and information related to the first timer are stored in a storage unit of the second terminal. That is, the same storage unit may be a storage unit of the second terminal. For example, when the second terminal is powered off (when the first event occurs), the prohibited PLMN list and information related to the first timer are stored in the storage unit of the second terminal. When the second terminal is powered on (when the second event occurs), the prohibited PLMN list and information related to the first timer can be read from the storage unit.
[0169] In some embodiments, S320 includes:
[0170] The target PLMNs in the prohibited PLMN list are managed according to the first timer related information, wherein the target PLMNs include the first PLMN.
[0171] In some embodiments, the first timer is used to trigger the release of the target PLMN in the banned PLMN list when it times out, or in other words, the first timer is used to determine the release time of the target PLMN in the banned PLMN list.
[0172] For example, when the first timer times out, the target PLMN is deleted from the prohibited PLMN list, that is, when the first timer times out, the target PLMN is unbanned.
[0173] It should be understood that in the embodiment of the present application, the timeout of the first timer can also be expressed as: the first timer expires and the first timer becomes invalid.
[0174] In some embodiments, the target PLMN includes only the first PLMN. Then, when the first timer expires, only the first PLMN is unbanned, or in other words, only the first PLMN is deleted from the banned PLMN list.
[0175] In this case, accurate management of prohibited PLMNs can be achieved based on the timer, which is beneficial to improving the intelligence of terminal devices and user experience.
[0176] In other embodiments, the target PLMN includes all PLMNs in the prohibited PLMN list. Upon expiration of the first timer, all PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, timer-based management of all prohibited PLMNs can be implemented, reducing terminal implementation complexity.
[0177] In yet other embodiments, the target PLMN includes multiple PLMNs in the prohibited PLMN list. Upon expiration of the first timer, the multiple PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, timer-based management of the prohibited PLMN group can be implemented, which can improve the intelligence and user experience of the terminal device while reducing terminal implementation complexity.
[0178] In some embodiments, the second event may refer to any event that may trigger the SIM reading behavior, or the second event may be a SIM card activation event, such as the second terminal being powered on, the SIM card being inserted into the second terminal, or the SIM card of the second terminal being powered on (or the SIM card of the second terminal being enabled), etc. This application does not limit this.
[0179] In some embodiments, powering on the SIM card of the second terminal may include re-enabling the SIM card of the second terminal when the SIM card is disabled, for example, the user manually sets the SIM card to be enabled.
[0180] In an embodiment of the present application, the second terminal is a terminal that allows the use of a timer to manage the prohibited PLMN. In some embodiments, the second terminal is configured to allow the use of a timer to manage the prohibited PLMN, which may include:
[0181] The Timer T3245Behaviour value in the configuration file (e.g., EF_FPLMN) in the SIM card of the second terminal is configured to 1, or,
[0182] The Timer T3245Behaviour value in the configuration file in the storage unit of the second terminal is configured to be 1.
[0183] In some embodiments, the first timer-related information includes at least one of the following:
[0184] The start time information of the first timer, the total duration information of the first timer, and the time information when the first PLMN is prohibited (for example, the time information when the rejection reason 11# or 35# is received, or the time information when the first PLMN is added to the prohibited PLMN list).
[0185] For example, when the first terminal (or the second terminal) receives a rejection message from the network device for the first PLMN (for example, carrying rejection reason 11# or 35#), it determines that the first PLMN is prohibited (or, the first PLMN is regarded as a prohibited PLMN), further, the first PLMN is added to the prohibited PLMN list, and the first timer is started. In this case, the first terminal (or the second terminal) can store at least one of the time information of the occurrence of the first PLMN prohibition event (for example, the time information of receiving the rejection message, or the time information of adding the first PLMN to the prohibited PLMN list), the start time information of the first timer, and the total duration information of the first timer.
[0186] In some embodiments of the present application, the S320 may include:
[0187] According to the first timer related information, it is determined whether to delete (or whether to unban) the target PLMN in the prohibited PLMN list, and / or the time for deleting the target PLMN in the prohibited PLMN list, that is, the time for unbanning the target PLMN, is determined.
[0188] In some embodiments of the present application, the S320 may include:
[0189] Determine whether the first timer has timed out according to the relevant information of the first timer;
[0190] Whether to delete the target PLMN in the prohibited PLMN list is determined according to whether the first timer times out.
[0191] For example, when the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0192] For another example, when the first timer has not timed out, the second timer is started, and when the second timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0193] In some embodiments, the second terminal may determine whether the first timer has timed out based on the total duration of the first timer and a third duration, where the third duration is the interval between the start time of the first timer and a third time (e.g., the current time or the time when the second event occurs). The current time here may be the system time when the second terminal calculates whether the first timer has timed out.
[0194] In some scenarios, the second event is the power-on of the second terminal. The power-on time of the second terminal may refer to any time during the power-on process of the second terminal, or may refer to any time during the power-on process after the second terminal is able to read data from the storage unit or SIM of the second terminal, or any time after the first terminal is able to write data to the storage unit of the first terminal or SIM card.
[0195] For example, if the total duration of the first timer is less than or equal to the third duration, it is determined that the first timer has timed out; or
[0196] For another example, if the total duration of the first timer is greater than the third duration, it is determined that the first timer has not timed out.
[0197] In some embodiments, the duration of the second timer is set to the difference between the total duration of the first timer and the third duration.
[0198] It should be understood that in an embodiment of the present application, the total duration information of the first timer may be stored in the SIM of the second terminal, or, when the total duration information of the first timer is not stored in the SIM of the second terminal, the total duration information of the first timer may be selected by the second terminal itself, or a predefined value, or a default value.
[0199] In some embodiments, the total duration of the first timer may also be determined according to the target PLMN to be managed. For example, timers used to manage different PLMNs may be set to different total durations, thereby enabling fine adjustment of the timer duration.
[0200] In summary, in some embodiments of the present application, the second terminal can obtain the prohibited PLMN list and timer-related information for managing the PLMNs in the prohibited PLMN list from the SIM card, and further manage the prohibited PLMN list based on the timer-related information. In this way, even if the SIM card is replaced during the operation of the timer, the terminal into which the SIM card is inserted can continue to manage the prohibited PLMN list based on the timer-related information, thereby avoiding the problem of replacing the SIM card during the operation of the timer, resulting in the prohibited PLMN being permanently retained in the prohibited PLMN list.
[0201] FIG6 is a schematic flow chart of a method 400 for managing a prohibited public land mobile network (PLMN) according to another embodiment of the present application. This method 400 can be applied to a second terminal, which can be the terminal device 120 in the communication system shown in FIG1 . For a specific implementation, please refer to the relevant description of the embodiment shown in FIG1 , and for the sake of brevity, detailed description is omitted here.
[0202] As shown in FIG6 , the method 400 includes at least part of the following:
[0203] S410 : When the SIM card of the second terminal is changed, start a first timer.
[0204] In some embodiments, the first timer is used to trigger the unbanning of the target PLMN in the prohibited PLMN list in the event of a timeout, or in other words, the first timer is used to determine the unbanning time of the target PLMN in the prohibited PLMN list, or in other words, the second terminal can delete the target PLMN from the prohibited PLMN list based on the timeout (or expiration, or failure) of the first timer.
[0205] For example, when the first timer times out, the target PLMN is deleted from the prohibited PLMN list, that is, when the first timer times out, the target PLMN is unbanned.
[0206] In some embodiments, the second terminal may start the first timer when the SIM card is changed and the SIM card of the second terminal includes a prohibited PLMN list, and the prohibited PLMN list includes at least one PLMN. It is understandable that the SIM card of the second terminal may be the SIM card after the second terminal is changed.
[0207] In some embodiments, the target PLMN includes only one PLMN. Upon expiration of the first timer, only that PLMN is unbanned, or in other words, only that PLMN is removed from the banned PLMN list. In this case, timer-based management of banned PLMNs can be achieved, improving the intelligence of the terminal device and user experience.
[0208] In some embodiments, the target PLMN includes all PLMNs in the prohibited PLMN list. Upon expiration of the first timer, all PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, timer-based management of all prohibited PLMNs can be implemented, reducing terminal implementation complexity.
[0209] In some embodiments, the target PLMN includes multiple PLMNs in the prohibited PLMN list. Upon expiration of the first timer, the multiple PLMNs in the prohibited PLMN list are unbanned, or in other words, deleted. In this case, management of the prohibited PLMN group can be implemented based on a timer, which can improve the intelligence and user experience of the terminal device while also reducing the implementation complexity of the terminal. In this case, management of the prohibited PLMN group can be implemented based on a timer, which can improve the intelligence and user experience of the terminal device while also reducing the implementation complexity of the terminal.
[0210] In some embodiments, the second terminal is configured to enable management of the barred PLMN using a timer.
[0211] In some embodiments, the second terminal is configured to enable use of a timer to manage the prohibited PLMN, which may include:
[0212] The Timer T3245Behaviour value in the configuration file (e.g., EF_FPLMN) in the SIM card of the second terminal is configured to 1, or,
[0213] The Timer T3245Behaviour value in the configuration file in the storage unit of the second terminal is configured to be 1.
[0214] In some embodiments, the change of the SIM card of the second terminal may include but is not limited to the following situations:
[0215] The second terminal changes from not having a SIM card inserted to having a SIM card inserted;
[0216] The SIM card of the second terminal is changed from SIM card 1 to SIM card 2;
[0217] The SIM card of the second terminal is changed from powered off to powered on, or in other words, the SIM card is changed from disabled to enabled.
[0218] In some embodiments, before the SIM card of the second terminal is changed, the method 400 further includes:
[0219] A second event occurs on the second terminal. In other words, a change in the SIM card of the second terminal may be triggered by the second event.
[0220] In some embodiments, the second event may refer to any event that may trigger the reading of the SIM card, or in other words, the second event may be a SIM card activation event, such as the second terminal being powered on, the SIM card being inserted into the second terminal, or the SIM card of the second terminal being powered on (or the SIM card of the first terminal being enabled), etc. This application does not limit this.
[0221] In some embodiments, powering on the SIM card of the second terminal may include re-enabling the SIM card of the second terminal when the SIM card is disabled, for example, the user manually sets the SIM card to be enabled.
[0222] In some embodiments, the total duration of the first timer can be selected by the second terminal, or a predefined value, or a default value, or determined according to the managed PLMN. For example, timers used to manage different PLMNs can be set to different total durations, enabling fine timer duration adjustment.
[0223] In some embodiments, the first timer related information is stored in a storage unit of the second terminal, for example, in an NVM or VM in the second terminal.
[0224] In some embodiments of the present application, S410 includes:
[0225] When a subscriber identity module (SIM) card of the second terminal is changed and the prohibited PLMN list in the SIM card of the second terminal includes at least one PLMN, a first timer is started.
[0226] Therefore, in the method 400, when the SIM card is changed, the second terminal can determine whether the prohibited PLMN list in the SIM card is empty. If it is not empty, the first timer is started and the target PLMN in the prohibited PLMN list is managed according to the first timer. For example, when the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0227] In some specific implementations, when a first event occurs (for example, a SIM card failure event), the first terminal may not store timer-related information in the SIM card. Furthermore, when a second event occurs on the first terminal, for example, the SIM card of the first terminal is inserted into the second terminal, that is, the SIM card of the second terminal is changed, the second terminal cannot obtain timer-related information from the SIM card. In this case, the second terminal can start the first timer when the prohibited PLMN list in the SIM card is not empty. After the first timer times out, the target PLMN in the prohibited PLMN list is unbanned, so that the second terminal can initiate registration for the target PLMN in the prohibited PLMN list, which is beneficial to improving user experience.
[0228] The following describes the execution process of the method for managing prohibited PLMNs according to an embodiment of the present application in conjunction with specific embodiments.
[0229] It should be noted that the following embodiments are described using one timer managing one PLMN as an example. In other embodiments, one timer can also be used to manage multiple PLMNs, or all PLMNs, in a similar management manner, which will not be described in detail here.
[0230] Example 1:
[0231] In embodiment 1, the terminal device may store the prohibited PLMN list and timer related information via NVM.
[0232] 7 , a schematic flow chart of a method for managing prohibited PLMNs according to Embodiment 1 is described.
[0233] The SIM card of UE1 may include a forbidden PLMN list, and the forbidden PLMN list includes PLMN X.
[0234] S1001, UE1 receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0235] S1002: UE1 regards PLMN A as a forbidden PLMN, stores PLMN A in a forbidden PLMN list in the NVM of UE1, and starts timer A (denoted as T_A).
[0236] S1003, UE1 receives a rejection message sent by a network device in PLMN B, which carries a rejection reason #11 or #35, indicating that PLMN B is prohibited.
[0237] S1004 , UE1 regards PLMN B as a forbidden PLMN, stores PLMN B in a forbidden PLMN list in the NVM of UE1 , and starts timer B (denoted as T_B).
[0238] S1005 : When a first event occurs, for example, the SIM card is pulled out or the phone is turned off, the remaining duration information of timer A and the remaining duration information of timer B are saved in the NVM of UE1 .
[0239] Optionally, if timer A and timer B are still in running state when the first event occurs, the remaining duration information of timer A and the remaining duration information of timer B are saved; otherwise, the relevant information of timer A and timer B are deleted.
[0240] Optionally, in this case, UE1 may also store the time information of the occurrence of the first event. Furthermore, when a second event occurs (e.g., UE1 is powered off, or a SIM card is inserted into UE1), UE1 is triggered to read the card to determine whether UE1's SIM card has been changed, i.e., whether the card has been replaced. If the card has not been replaced, UE1 may continue to use the prohibited PLMN list and timer-related information stored in the NVM to manage prohibited PLMNs. Alternatively, if the card has been replaced, UE1 may clear the PLMN and timer-related information in the prohibited PLMN list.
[0241] S1006 , a second event occurs, for example, the SIM card of UE1 is removed from UE1 and inserted into UE2.
[0242] S1007: After UE2 is powered on, it chooses to camp on the cell of PLMN A. Since PLMN A is not included in the prohibited PLMN list, UE2 can initiate registration with PLMN A.
[0243] Specifically, since PLMN A and PLMN B only exist in the forbidden PLMN list of UE1's NVM, after UE1's SIM card is inserted into UE2, UE2 cannot know that PLMN A and PLMN B are forbidden PLMNs. Therefore, it can initiate registration with PLMN A and PLMN B.
[0244] S1008: UE2 initiates a registration process to PLMN A.
[0245] Example 2:
[0246] In this embodiment 2, the terminal device may store the prohibited PLMN list and timer related information in a volatile memory (eg, a local database).
[0247] 8 , a schematic flow chart of a method for managing prohibited PLMNs according to Embodiment 2 is described.
[0248] The SIM card of UE1 may include a forbidden PLMN list, and the forbidden PLMN list includes PLMN X.
[0249] S2001, UE1 receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0250] S2002: UE1 regards PLMN A as a forbidden PLMN, stores PLMN A in a forbidden PLMN list in a local database of UE1, and starts timer A (denoted as T_A).
[0251] S2003, UE1 receives a rejection message sent by a network device in PLMN B, which carries a rejection reason #11 or #35, indicating that PLMN B is prohibited.
[0252] S2004: UE1 regards PLMN B as a forbidden PLMN, stores PLMN B in a forbidden PLMN list in a local database of UE1, and starts timer B (denoted as T_B).
[0253] S2005: When the SIM card is pulled out, UE1 saves the remaining duration information of timer A and the remaining duration information of timer B. Optionally, in this case, the time information when the SIM card is pulled out may also be recorded.
[0254] Optionally, if timer A and timer B are still running when the SIM card is pulled out, the remaining duration information of timer A and the remaining duration information of timer B are saved; otherwise, the relevant information of timer A and timer B are deleted.
[0255] Furthermore, when a SIM card is inserted into UE1, UE1 is triggered to read the card to determine whether the SIM card of UE1 has been changed, that is, whether the card has been replaced. If the card has not been replaced, UE1 can continue to use the prohibited PLMN list and timer-related information stored in the NVM to manage prohibited PLMNs. Alternatively, if the card has been replaced, UE1 can clear the PLMN and timer-related information in the prohibited PLMN list.
[0256] Optionally, when UE1 is powered off, the PLMN and timer related information in the forbidden PLMN list stored in the local database is cleared.
[0257] S2006: A second event occurs, for example, the SIM card of UE1 is removed from UE1 and inserted into UE2.
[0258] S2007: After UE2 is powered on, it chooses to camp on the cell of PLMN A. Since PLMN A is not included in the prohibited PLMN list, it can initiate registration with PLMN A.
[0259] Specifically, since PLMN A and PLMN B only exist in the prohibited PLMN list of UE1's local database, after UE1's SIM card is inserted into UE2, UE2 cannot know that PLMN A and PLMN B are prohibited PLMNs. Therefore, it can initiate registration with PLMN A and PLMN B.
[0260] S2008: UE2 initiates a registration process to PLMN A.
[0261] 9 , the behavior of the UE side when the second event (eg, power on or insertion of a SIM card) occurs in Example 1 or Example 2 will be described.
[0262] As shown in FIG9 , the process may include at least some of the following steps:
[0263] S1101: When a second event occurs, the UE determines whether to replace the SIM card.
[0264] For example, whether the SIM card is replaced is determined based on whether the International Mobile Subscriber Identity (IMSI) or Subscription Permanent Identifier (SUPI) in the storage unit of the UE is consistent with the IMSI or SUPI of the current SIM card. If the IMSI or SUPI in the storage unit of the UE is consistent with the IMSI or SUPI of the current SIM card, it is determined that the SIM card has not been replaced. Alternatively, if the IMSI or SUPI in the storage unit of the UE is inconsistent with the IMSI or SUPI of the current SIM card, it is determined that the SIM card has been replaced.
[0265] If the SIM card is replaced, execute S1102 ; if the SIM card is not replaced, execute S1103 .
[0266] S1102: The UE clears all PLMNs and timer-related information in the prohibited PLMN list in the storage unit.
[0267] Assuming that the prohibited PLMN list in the storage unit includes PLMN A and its corresponding timer (i.e., T_A) related information, PLMN B and its corresponding timer (i.e., T_B) related information, then when the card is replaced, the UE clears PLMN A and its corresponding timer (i.e., T_A) related information, PLMN B and its corresponding timer (i.e., T_B) related information.
[0268] Optionally, the timer-related information here may include remaining duration information of the timer, running status information of the timer, occurrence time information of the first event, etc.
[0269] S1103: Manage the forbidden PLMN list according to the timer related information in the storage unit of the UE.
[0270] For example, PLMN A is managed based on T_A related information, and PLMN B is managed based on T_B related information.
[0271] S1104: Determine whether the timer has timed out based on the timer-related information.
[0272] For example, if the timer related information includes the running status information of the timer when the first event occurs, if the timer is running when the first event occurs, it is further determined whether the timer has timed out based on the time information in the timer related information.
[0273] Optionally, the UE may determine whether the timer has timed out based on the remaining duration of the timer and the first duration. For a specific determination method, refer to the relevant description in method 200.
[0274] S1105: If the timer has not timed out, determine the actual remaining duration of the timer.
[0275] For example, when the timer T_A has not timed out, the actual remaining duration of the timer T_A is determined to be the difference between the saved remaining duration of T_A and the first duration.
[0276] S1106: Start timer T_A' and set the duration of timer T_A' to the actual remaining duration of timer T_A, that is, the difference between the saved remaining duration of T_A and the first duration.
[0277] Furthermore, based on the timer T_A', the PLMN A is managed. For example, after the timer T_A' expires, the PLMN A is deleted from the forbidden PLMN list.
[0278] The following describes, with reference to FIG10 , the behavior of the UE side when receiving the rejection reason #11 or #35 in Embodiment 1 or Embodiment 2.
[0279] As shown in FIG10 , the process may include at least some of the following steps:
[0280] S1201: The UE receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0281] S1202: The UE determines whether it is configured to allow the use of a timer to manage the PLMN.
[0282] For example, if the Timer T3245Behaviour value in the configuration file in the SIM card of the UE is configured as 1, or if the Timer T3245Behaviour value in the configuration file in the storage unit of the UE is configured as 1, it is determined that the UE is configured to allow the use of a timer to manage the PLMN.
[0283] Furthermore, if the UE is configured to allow the use of a timer to manage the PLMN, S1203 is executed; otherwise, S1204 is executed.
[0284] S1203: Store PLMN A in a prohibited PLMN list in a storage unit (eg, NVM or local database) of the UE, and start a timer T_A.
[0285] S1204: Store PLMN A in the SIM card of the UE and record current time information, such as the current system time.
[0286] The following describes, with reference to FIG11 , the behavior of the UE side when the SIM card is pulled out in Embodiment 1 or Embodiment 2.
[0287] As shown in FIG11 , the process may include at least some of the following steps:
[0288] S1301: Determine the running status of the timer.
[0289] If the timer is in the running state, execute S1302; otherwise, end the process.
[0290] S1302: Store the running status and remaining duration information of the timer in a storage unit of the UE (eg, NVM or local database).
[0291] For example, if timer T_X of PLMN X is in a running state when the SIM card is removed, the remaining duration information and running state information of T_X may be stored in the UE's NVM or local database. Of course, the running state information of the timer may not be stored; a timer that stores remaining duration information is considered to be in a running state.
[0292] That is, the storage unit of the UE may include a prohibited PLMN list, the prohibited PLMN list may include PLMN X, and the storage unit of the UE may also include the remaining duration information of T_X, or may also include the running status information of T_X.
[0293] The following describes the behavior of the UE side in the shutdown state in Example 1 or Example 2 with reference to FIG. 12 .
[0294] As shown in FIG12 , the process may include at least some of the following steps:
[0295] S1401: Determine the running status of the timer.
[0296] If the timer is in the running state, execute S1402; otherwise, end the process.
[0297] S1402: Store the running status and remaining duration information of the timer into the NVM of the UE.
[0298] For example, if timer T_X of PLMN X is in a running state at shutdown, the remaining duration information and running state information of T_X can be stored in the NVM of the UE. Of course, the running state information of the timer can also be omitted. A timer that stores the remaining duration information is considered to be a timer in a running state.
[0299] That is, the NVM of the UE may include a prohibited PLMN list, the prohibited PLMN list may include PLMN X, and the NVM of the UE may also include the remaining duration information of T_X, or may also include the running status information of T_X.
[0300] The following describes, with reference to FIG13 , the behavior of the UE side when the timer times out in Example 1 or Example 2.
[0301] As shown in FIG13 , the process may include at least some of the following steps:
[0302] S1301: Determine whether the timer has timed out. For details, refer to the method for determining whether the first timer has timed out in method 200, which will not be described here for brevity.
[0303] S1302: When the timer times out, the PLMN managed by the timer is deleted from the prohibited PLMN list.
[0304] For example, the forbidden PLMN list of the storage unit of the UE includes PLMN X and information related to a timer (T_X) corresponding to PLMN X. When T_X times out, PLMN X is deleted from the forbidden PLMN list.
[0305] Furthermore, the network is searched again according to the updated forbidden PLMN list, or the registered PLMN is reselected.
[0306] Therefore, in an embodiment of the present application, upon receiving rejection reason #11 or #35, the UE may add the prohibited PLMN to the prohibited PLMN list, and store the prohibited PLMN list and timer-related information in the storage unit of the first terminal. In this way, whenever the UE is turned on or a SIM card is inserted, the UE may manage the prohibited PLMN list according to the stored timer-related information, which is helpful in preventing the problem of the added PLMN being permanently retained in the prohibited PLMN list due to the replacement of the SIM card during the operation of the timer.
[0307] Example 3:
[0308] In this embodiment 3, the terminal device may store the prohibited PLMN list and timer related information through the SIM card.
[0309] 14 , a schematic flow chart of a method for managing prohibited PLMNs according to Embodiment 3 is described.
[0310] The SIM card of UE1 may include a forbidden PLMN list, and the forbidden PLMN list includes PLMN X.
[0311] S3001, UE1 receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0312] S3002: UE1 regards PLMN A as a prohibited PLMN, stores PLMN A in the prohibited PLMN list in the SIM card of UE1, starts timer A (denoted as T_A), and records the start time information of timer A in the SIM card.
[0313] S3003, UE1 receives a rejection message sent by a network device in PLMN B, which carries a rejection reason #11 or #35, indicating that PLMN B is prohibited.
[0314] S3004: UE1 regards PLMN B as a prohibited PLMN, stores PLMN B in the prohibited PLMN list in the NVM of UE1, starts timer B (denoted as T_B), and records the start time information of timer B in the SIM card.
[0315] S3005: A first event occurs, such as the SIM card being pulled out or the phone being turned off.
[0316] In this case, UE1 may not operate on the prohibited PLMN list and timer related information in the SIM card.
[0317] S3006: A second event occurs, for example, the SIM card of UE1 is removed from UE1 and inserted into UE2.
[0318] S3007: UE2 obtains the prohibited PLMN list and timer related information in the SIM card, and manages the PLMN list according to the timer related information. For specific management methods, refer to the relevant description in method 300.
[0319] S3008: If UE2 reselects to camp on the cell of PLMN A, but PLMN A is included in the prohibited PLMN list, it cannot initiate registration with the cell of PLMN A.
[0320] S3009: When the timer T_A corresponding to PLMN A times out, the PLMN A and the corresponding T_A related information in the forbidden PLMN list of the SIM card are deleted.
[0321] S3010: Since PLMN A is not included in the prohibited PLMN list, UE2 can initiate registration with PLMN A.
[0322] The following describes, with reference to FIG15 , the behavior of the UE side when a second event (eg, powering on or inserting a SIM card) occurs in Example 3. FIG15 shows a block diagram of a UE side embodiment.
[0323] As shown in FIG15 , the process may include at least some of the following steps:
[0324] S3101, read SIM card files, such as EF_NASCONFIG.
[0325] S3102: Determine whether the UE is configured to allow the use of a timer to manage the PLMN. For details on the determination method, refer to the relevant description of the above embodiment. If yes, execute S3103; otherwise, end the process.
[0326] S3103: Obtain the prohibited PLMN list and timer related information in the SIM card.
[0327] Assume that the forbidden PLMN list in the storage unit includes information related to PLMN A and its corresponding timer (ie, T_A), and information related to PLMN B and its corresponding timer (ie, T_B).
[0328] Optionally, the timer-related information here may include the start time information of the timer and the total duration information of the timer.
[0329] S3104: Determine whether the timer has timed out based on the timer-related information. For details on how to determine whether the timer has timed out, refer to the descriptions in method 200 or method 300. If the timer has not timed out, proceed to S3105; otherwise, terminate the process.
[0330] S3105, determine the actual remaining duration of the timer, for example, determine the difference between the total duration of the timer and the second duration as the actual remaining duration of the timer, wherein the second duration is the duration from the start time of the timer to the current time or the occurrence time of the second event.
[0331] S3106: Start the timer and set the timer duration to the actual remaining time of the timer.
[0332] For example, if the timer T_A has not timed out, the timer T_A' is started. When the timer T_A' times out, the PLMN A is deleted from the forbidden PLMN list.
[0333] The following describes, with reference to FIG. 16 , the behavior of the UE side in the case of receiving rejection reason #11 or #35 in Example 3.
[0334] As shown in FIG16 , the process may include at least some of the following steps:
[0335] S3201: The UE receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0336] S3202: The UE determines whether it is configured to allow the use of a timer to manage the PLMN.
[0337] For example, if the Timer T3245Behaviour value in the configuration file in the SIM card of the UE is configured as 1, or if the Timer T3245Behaviour value in the configuration file in the storage unit of the UE is configured as 1, it is determined that the UE is configured to allow the use of a timer to manage the PLMN.
[0338] Furthermore, if the UE is configured to allow the use of a timer to manage the PLMN, S3203 is executed; otherwise, S3204 is executed.
[0339] S3203: Write PLMN A into the forbidden PLMN list of the SIM card of the UE, start timer T_A, and record the current time information (eg, current system time) or the start time information of timer T_A in the SIM card.
[0340] S3204: Store PLMN A in the prohibited PLMN list in the SIM card, and record the current time information (eg, the current system time).
[0341] The following describes, with reference to FIG17 , the behavior of the UE side when the timer times out in Example 3.
[0342] As shown in FIG17 , the process may include at least some of the following steps:
[0343] S3301: Determine whether the timer has timed out. For a specific determination method, refer to the relevant implementation of determining whether the first timer has timed out in method 200, which will not be described here for brevity.
[0344] S3302: When the timer times out, the PLMN managed by the timer is deleted from the prohibited PLMN list.
[0345] For example, the forbidden PLMN list of the SIM card of the UE includes PLMN A and information related to a timer (T_A) corresponding to PLMN A. When T_A times out, PLMN A is deleted from the forbidden PLMN list.
[0346] Furthermore, the network is searched again according to the updated forbidden PLMN list, or the registered PLMN is reselected.
[0347] Therefore, in an embodiment of the present application, upon receiving rejection reason #11 or #35, the UE may add the prohibited PLMN to the prohibited PLMN list, and store the prohibited PLMN list and timer-related information in the SIM of the first terminal. In this way, when the SIM card is inserted into other UEs, the other UEs may also manage the prohibited PLMN list according to the timer-related information stored in the SIM card, which is helpful in preventing the problem of the added PLMN being permanently retained in the prohibited PLMN list due to the replacement of the SIM during the operation of the timer.
[0348] Example 4:
[0349] In this embodiment 4, the terminal device may store a prohibited PLMN list via a SIM card.
[0350] In conjunction with FIG18 , a schematic flow chart of a method for managing prohibited PLMNs based on Example 4 is illustrated.
[0351] S4001, UE1 receives a rejection message sent by a network device in PLMN A, which carries a rejection reason #11 or #35, indicating that PLMN A is prohibited.
[0352] S4002: UE1 regards PLMN A as a forbidden PLMN, stores PLMN A in a forbidden PLMN list in the SIM card of UE1, starts timer T3245, and records information related to timer T3245 in a storage unit of UE1.
[0353] S4003, UE1 receives a rejection message sent by a network device in PLMN B, which carries a rejection reason #11 or #35, indicating that PLMN B is prohibited.
[0354] S4004: UE1 regards PLMN B as a prohibited PLMN, stores PLMN B in a prohibited PLMN list in the SIM card of UE1, starts timer T3245, and records information related to timer T3245 in a storage unit of UE1.
[0355] S4005: A first event occurs, such as the SIM card being pulled out or the phone being turned off.
[0356] In this case, UE1 may not operate on the prohibited PLMN list and timer related information in the SIM card.
[0357] S4006: A second event occurs, for example, the SIM card of UE1 is removed from UE1 and inserted into UE2.
[0358] S4007, UE2 obtains the forbidden PLMN list in the SIM card, and determines to start timer T3245 according to the forbidden PLMN list.
[0359] For example, when the prohibited PLMN list is not empty, timer T3245 is started.
[0360] S4008: If UE2 reselects to camp on the cell of PLMN A, but PLMN A is included in the prohibited PLMN list, it cannot initiate registration with the cell of PLMN A.
[0361] S4009: When T3245 times out, delete all PLMNs in the prohibited PLMN list in the SIM card.
[0362] S4010: Since PLMN A is not included in the prohibited PLMN list, UE2 can initiate registration with PLMN A.
[0363] Therefore, in an embodiment of the present application, when the SIM card of the UE is changed, the UE starts a timer according to the prohibited PLMN list stored in the SIM card. When the timer times out, all PLMNs in the prohibited PLMN list are deleted, which helps to prevent the problem of changing the SIM card during the timer running, causing the added PLMN to remain permanently in the prohibited PLMN list.
[0364] In Example 4, when receiving rejection reason #11 or #35, the UE's behavior is consistent with that in Example 3, except that the timer-related information in Example 3 is stored in the UE's SIM card, while the timer-related information in Example 4 is stored in the UE's storage unit. For a detailed implementation, please refer to the relevant description in Figure 16 and will not be repeated here for the sake of brevity.
[0365] In Example 4, when the timer times out, the behavior of the UE side in Example 4 is consistent with the behavior of the UE side in Example 3. For specific implementation, please refer to the relevant description in Figure 17. For the sake of brevity, it will not be repeated here.
[0366] It should be understood that in the embodiments of the present application, embodiments 1-4 can be implemented separately or in combination, and the present application does not limit this.
[0367] For example, in embodiment 4, the prohibited PLMN list and timer related information may be stored in the SIM card of the UE, for example, the storage may be based on the method in embodiment 3.
[0368] For another example, in Example 4, the prohibited PLMN list may be stored in the SIM card of the UE, and the prohibited PLMN list and timer related information may also be stored in the storage unit of the UE, for example, based on the method in Example 1 or Example 2.
[0369] 19 and 20 , the behavior of the UE side in the case where the second event (eg, power on or insertion of a SIM card) occurs in Example 4 will be described.
[0370] As shown in FIG19 , the steps may include at least some of the following:
[0371] S4101, read SIM card files, such as EF_NASCONFIG.
[0372] Optionally, S4101 may be executed when the SIM card of the UE is changed.
[0373] S4102: Determine whether the UE is configured to allow the use of a timer to manage the PLMN. For a specific determination method, refer to the relevant description of the above embodiment.
[0374] S4103, obtain the prohibited PLMN list in the SIM card.
[0375] Assume that the prohibited PLMN list in the storage unit includes PLMN A and PLMN B.
[0376] S4104, determine to start the timer according to the prohibited PLMN list.
[0377] After the timer expires, PLMN A and PLMN B are deleted from the forbidden PLMN list.
[0378] As shown in FIG20 , the process may include at least some of the following steps:
[0379] S4101, UE determines whether to replace the SIM card.
[0380] The specific determination method is referred to the relevant description of the above embodiment and will not be repeated here.
[0381] Optionally, before S4101, a second event occurs.
[0382] Optionally, before the second event occurs, the SIM card of the UE stores a prohibited PLMN list, and the storage unit of the UE stores timer-related information. Optionally, the SIM card of the UE may also store timer-related information, and the storage unit of the UE may also store a prohibited PLMN list.
[0383] If the SIM card is replaced, execute S4211 to S4215 ; if the SIM card is not replaced, execute S4202 to S4205 .
[0384] S4202: Determine whether the timer has timed out based on the timer-related information in the storage unit of the UE. For a specific determination method, refer to the relevant description of the aforementioned embodiment and will not be repeated here.
[0385] S4203: Determine the actual remaining duration of the timer. For specific determination methods, refer to Method 1 or Method 2 in the above-mentioned embodiment.
[0386] S4204: Start a timer, and manage the PLMNs in the prohibited PLMN list based on the started timer.
[0387] S4211: Clear the timer-related information stored in the storage unit of the UE. Optionally, if a forbidden PLMN list is stored in the storage unit, the forbidden PLMN list is also cleared.
[0388] S4212, read the card file of the replaced SIM card.
[0389] S4213: Determine whether the UE is configured to use a timer to manage the PLMN. If so, execute 4214; otherwise, end the process.
[0390] S4214: Determine whether the prohibited PLMN list in the SIM card is empty. If not, execute S4215; otherwise, terminate the process.
[0391] S4215: Start a timer, with the duration of the timer set to a default duration, a predefined duration, or a duration determined according to the prohibited PLMNs, and manage the PLMNs in the prohibited PLMN list based on the timer.
[0392] That is, in this embodiment 4, when the prohibited PLMN list is not empty, the UE starts a timer to manage the PLMNs in the prohibited PLMN list, which helps to avoid the problem of replacing the SIM card during the timer running, causing the prohibited PLMN to remain permanently in the prohibited PLMN list.
[0393] The above text, in combination with Figures 4 to 20, describes in detail the method embodiment of the present application. The following text, in combination with Figures 21 to 25, describes in detail the device embodiment of the present application. It should be understood that the device embodiment and the method embodiment correspond to each other, and similar descriptions can refer to the method embodiment.
[0394] FIG21 shows a schematic block diagram of a terminal device 500 according to an embodiment of the present application. As shown in FIG21 , the terminal device 500 includes:
[0395] The processing unit 510 is configured to start a first timer when the first PLMN is added to the forbidden PLMN list; and
[0396] When a first event occurs, storing information related to the first timer;
[0397] The prohibited PLMN list and the first timer related information are stored in the same storage unit.
[0398] In some embodiments, the processing unit 510 is further configured to:
[0399] When the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0400] In some embodiments, the target PLMN includes only the first PLMN; or
[0401] The target PLMN includes all PLMNs in the forbidden PLMN list; or
[0402] The target PLMN includes multiple PLMNs in the forbidden PLMN list.
[0403] In some embodiments, the same storage unit is a storage unit in the terminal device or a storage unit in a subscriber identity module SIM card of the terminal device.
[0404] In some embodiments, the first event includes at least one of the following:
[0405] The terminal device is shut down;
[0406] The SIM card of the terminal device is pulled out;
[0407] The SIM card of the terminal device is powered off;
[0408] The first PLMN is barred.
[0409] In some embodiments, the first timer related information includes at least one of the following:
[0410] remaining duration information of the first timer;
[0411] Total duration information of the first timer;
[0412] start time information of the first timer;
[0413] Time information of occurrence of the first event;
[0414] Running status information of the first timer when the first event occurs.
[0415] In some embodiments, the first event includes failure of a SIM card of the terminal device, and the processing unit 510 is further configured to:
[0416] In the event that the SIM card of the terminal device expires, the remaining duration information of the first timer and / or the first time information are stored in the storage unit of the terminal device, where the first time information is used to indicate the time when the SIM card of the terminal device expires.
[0417] In some embodiments, the first event includes that the first PLMN is prohibited, and the processing unit 510 is further configured to:
[0418] In a case where the first PLMN is prohibited, the start time information and / or total duration information of the first timer is stored in the SIM card of the terminal device.
[0419] In some embodiments, the prohibited PLMN list and the first timer related information are stored in a storage unit of the terminal device, and the processing unit 510 is further configured to:
[0420] When a second event occurs and the SIM card of the terminal device is changed, deleting the prohibited PLMN list and the first timer related information in the terminal device; or
[0421] When a second event occurs and the SIM card of the terminal device has not been changed, the target PLMN in the prohibited PLMN list is managed according to the first timer related information.
[0422] In some embodiments, the second event includes at least one of the following:
[0423] The terminal device is powered on, a SIM card is inserted into the terminal device, and the SIM card in the terminal device is powered on.
[0424] In some embodiments, the processing unit 510 is further configured to:
[0425] Determine whether the first timer has timed out based on the first timer-related information; if the first timer has timed out, delete the target PLMN from the prohibited PLMN list; or
[0426] If the first timer has not timed out, a second timer is started; if the second timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0427] In some embodiments, the duration of the second timer is set to the difference between the remaining duration of the first timer and the first duration, where the first duration is the duration from the occurrence time of the first event to the occurrence time of the second event, or the first duration is the duration from the occurrence time of the first event to the current time.
[0428] In some embodiments, the processing unit 510 is further configured to:
[0429] If the remaining duration of the first timer is less than or equal to the first duration, determine that the first timer has timed out; or
[0430] If the remaining duration of the first timer is greater than the first duration, it is determined that the first timer has not timed out.
[0431] In some embodiments, the duration of the second timer is set to the difference between the total duration of the first timer and the second duration, wherein the second duration is the interval from the start time of the first timer to the second time, and the second time is the current time or the occurrence time of the second event.
[0432] In some embodiments, the processing unit 510 is further configured to:
[0433] When the duration of the interval from the start time of the first timer to the second time is greater than or equal to the total duration of the first timer, determining that the first timer has timed out; or
[0434] If the interval between the start time of the first timer and the second time is less than the total duration of the first timer, it is determined that the first timer has not timed out.
[0435] In some embodiments, the terminal device is configured to allow the use of a timer to manage the barring of the PLMN.
[0436] Optionally, in some embodiments, the processing unit may be one or more processors.
[0437] It should be understood that the terminal device 500 according to the embodiment of the present application may correspond to the first terminal in the method embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the terminal device 500 are respectively for implementing the corresponding processes of the first terminal or UE1 in the method embodiment shown in Figures 4 to 20. For the sake of brevity, they will not be repeated here.
[0438] FIG22 shows a schematic block diagram of a terminal device 600 according to an embodiment of the present application. As shown in FIG22 , the terminal device 600 includes:
[0439] The processing unit 610 is configured to obtain a prohibited PLMN list and first timer related information when a second event occurs, wherein the prohibited PLMN list and the first timer related information are stored in the same storage unit;
[0440] The first PLMN in the prohibited PLMN list is managed according to the first timer related information.
[0441] In some embodiments, the processing unit 610 is further configured to:
[0442] managing the target PLMNs in the prohibited PLMN list according to the first timer related information, wherein the target PLMNs include the first PLMN. In some embodiments, the target PLMN includes only one PLMN; or
[0443] The target PLMN includes all PLMNs in the forbidden PLMN list; or
[0444] The target PLMN includes multiple PLMNs in the forbidden PLMN list.
[0445] In some embodiments, the same storage unit is a storage unit in the subscriber identity module SIM card.
[0446] In some embodiments, the first timer related information includes at least one of the following:
[0447] The start time information of the first timer and the total duration information of the first timer.
[0448] In some embodiments, the processing unit 610 is further configured to:
[0449] determining whether the first timer has timed out based on the information related to the first timer;
[0450] When the first timer times out, delete the at least one PLMN in the forbidden PLMN list; or
[0451] If the first timer has not timed out, a second timer is started; if the second timer times out, the at least one PLMN in the prohibited PLMN list is deleted.
[0452] In some embodiments, the duration of the second timer is set to the difference between the total duration of the first timer and a third duration, and the third duration is the duration from the start time of the first timer to the third time, wherein the third time is the current time or the occurrence time of the second event.
[0453] In some embodiments, determining whether the first timer has timed out according to the information related to the first timer includes:
[0454] When the total duration of the first timer is less than or equal to the third duration, determining that the first timer has timed out; or
[0455] When the total duration of the first timer is greater than the third duration, it is determined that the first timer has not timed out.
[0456] In some embodiments, the second terminal is configured to allow use of a timer corresponding to the PLMN.
[0457] In some embodiments, the second event includes at least one of the following:
[0458] Turning on the second terminal;
[0459] Insert a SIM card into the second terminal;
[0460] The SIM card of the second terminal is powered on.
[0461] Alternatively, in some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0462] It should be understood that the terminal device 600 according to the embodiment of the present application may correspond to the second terminal in the method embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the terminal device 600 are respectively for realizing the corresponding processes of the second terminal or UE2 in the method embodiment shown in Figures 4 to 20. For the sake of brevity, they will not be repeated here.
[0463] FIG23 shows a schematic block diagram of a terminal device 700 according to an embodiment of the present application. As shown in FIG23 , the terminal device 700 includes:
[0464] The processing unit 710 is configured to start a first timer when a subscriber identity module SIM card of the terminal device is changed;
[0465] When the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
[0466] In some embodiments, the target PLMN includes only one PLMN; or
[0467] The target PLMN includes all PLMNs in the forbidden PLMN list; or
[0468] The target PLMN includes multiple PLMNs in the prohibited PLMN list
[0469] In some embodiments, before the SIM card of the terminal device is changed, the processing unit 710 is further configured to:
[0470] A second event occurs on the terminal device, wherein the second event includes at least one of the following:
[0471] The terminal device is powered on, a SIM card is inserted into the terminal device, and the SIM card of the terminal device is powered on.
[0472] In some embodiments, the terminal device is configured to allow the use of a timer to manage the barring of the PLMN.
[0473] In some embodiments, the first timer related information is stored in a storage unit of the terminal device.
[0474] In some embodiments, the processing unit 710 is further configured to:
[0475] When a subscriber identity module (SIM) card of a terminal device is changed and a prohibited PLMN list in the SIM card of the terminal device includes at least one PLMN, a first timer is started.
[0476] Alternatively, in some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0477] It should be understood that the terminal device 700 according to the embodiment of the present application may correspond to the second terminal in the method embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the terminal device 700 are respectively for implementing the corresponding processes of the second terminal or UE2 in the method embodiment shown in Figures 4 to 20. For the sake of brevity, they will not be repeated here.
[0478] Figure 24 is a schematic structural diagram of a communication device 800 provided in an embodiment of the present application. The communication device 800 shown in Figure 24 includes a processor 810, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0479] Optionally, as shown in FIG24 , the communication device 800 may further include a memory 820. The processor 810 may call and execute a computer program from the memory 820 to implement the method in the embodiment of the present application.
[0480] The memory 820 may be a separate device independent of the processor 810 , or may be integrated into the processor 810 .
[0481] Optionally, as shown in FIG24 , the communication device 800 may further include a transceiver 830 , and the processor 810 may control the transceiver 830 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.
[0482] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of antennas may be one or more.
[0483] Optionally, the communication device 800 may specifically be the first terminal or the second terminal of an embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the first terminal or the second terminal in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0484] Optionally, the communication device 800 may specifically be a mobile terminal / terminal device in an embodiment of the present application, and the communication device 800 may implement the corresponding processes implemented by the mobile terminal / terminal device in each method in the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0485] Figure 25 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 900 shown in Figure 25 includes a processor 910, which can call and run a computer program from a memory to implement the method according to the embodiment of the present application.
[0486] Optionally, as shown in FIG25 , the chip 900 may further include a memory 920 , wherein the processor 910 may call and execute a computer program from the memory 920 to implement the method in the embodiment of the present application.
[0487] The memory 920 may be a separate device independent of the processor 910 , or may be integrated into the processor 910 .
[0488] Optionally, the chip 900 may further include an input interface 930. The processor 910 may control the input interface 930 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0489] Optionally, the chip 900 may further include an output interface 940. The processor 910 may control the output interface 940 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0490] Optionally, the chip can be applied to the first terminal or the second terminal in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the first terminal or the second terminal in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0491] Optionally, the chip can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0492] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0493] It should be understood that the processor of the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by hardware integrated logic circuits in the processor or software instructions. The above processor can be a general-purpose 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, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0494] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, 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 synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0495] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be 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 synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0496] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0497] Optionally, the computer-readable storage medium can be applied to the first terminal or the second terminal in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first terminal or the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0498] Optionally, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0499] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0500] Optionally, the computer program product can be applied to the first terminal or the second terminal in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first terminal or the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0501] Optionally, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0502] The embodiment of the present application also provides a computer program.
[0503] Optionally, the computer program can be applied to the first terminal or the second terminal in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the first terminal or the second terminal in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0504] Optionally, the computer program can be applied to the mobile terminal / terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0505] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0506] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0507] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0508] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0509] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0510] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0511] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for managing a prohibited public land mobile network (PLMN), characterized in that: Applied to the first terminal, including: When the first PLMN is added to the prohibited PLMN list, starting a first timer; When a first event occurs, storing information related to the first timer; The prohibited PLMN list and the first timer related information are stored in the same storage unit.
2. The method according to claim 1, characterized in that The method further comprises: When the first timer times out, the target PLMN in the prohibited PLMN list is deleted, where the target PLMN includes the first PLMN.
3. The method according to claim 2, characterized in that The target PLMN includes only the first PLMN; or The target PLMN includes all PLMNs in the forbidden PLMN list; or The target PLMN includes multiple PLMNs in the forbidden PLMN list.
4. The method according to any one of claims 1 to 3, characterized in that The same storage unit is a storage unit in the first terminal or a storage unit in a subscriber identity module SIM card of the first terminal.
5. The method according to any one of claims 1 to 4, characterized in that The first event includes at least one of the following: The first terminal is shut down; The SIM card of the first terminal is pulled out; The SIM card of the first terminal is powered off; The first PLMN is barred.
6. The method according to any one of claims 1 to 5, characterized in that The first timer related information includes at least one of the following: remaining duration information of the first timer; Total duration information of the first timer; start time information of the first timer; Time information of occurrence of the first event; Running status information of the first timer when the first event occurs.
7. The method according to any one of claims 1 to 6, characterized in that The first event includes failure of a SIM card of the first terminal, and storing the first timer-related information when the first event occurs includes: When the SIM card of the first terminal expires, the remaining duration information of the first timer and / or first time information are stored in the storage unit of the first terminal, where the first time information is used to indicate the time when the SIM card of the first terminal expires.
8. The method according to any one of claims 1 to 6, characterized in that The first event includes that the first PLMN is prohibited, and when the first event occurs, storing the first timer related information includes: In a case where the first PLMN is prohibited, the start time information and / or total duration information of the first timer is stored in the SIM card of the first terminal.
9. The method according to any one of claims 1 to 7, characterized in that The prohibited PLMN list and the first timer-related information are stored in a storage unit of the first terminal, and the method further includes: When a second event occurs and the SIM card of the first terminal is changed, deleting the prohibited PLMN list and the first timer related information in the first terminal; or When a second event occurs and the SIM card of the first terminal has not been changed, the target PLMN in the prohibited PLMN list is managed according to the relevant information of the first timer.
10. The method according to claim 9, characterized in that The second event includes at least one of the following: The first terminal is powered on, a SIM card is inserted into the first terminal, and the SIM card in the first terminal is powered on.
11. The method according to claim 9 or 10, characterized in that Managing the target PLMN in the prohibited PLMN list according to the first timer related information includes: Determine whether the first timer has timed out based on the first timer-related information; if the first timer has timed out, delete the target PLMN from the prohibited PLMN list; or If the first timer has not timed out, a second timer is started; if the second timer times out, the target PLMN is deleted from the prohibited PLMN list.
12. The method according to claim 11, characterized in that The duration of the second timer is set to the difference between the remaining duration of the first timer and the first duration, where the first duration is the duration from the occurrence time of the first event to the occurrence time of the second event, or the first duration is the duration from the occurrence time of the first event to the current time.
13. The method according to claim 12, characterized in that The determining whether the first timer has timed out according to the first timer related information includes: If the remaining duration of the first timer is less than or equal to the first duration, determine that the first timer has timed out; or If the remaining duration of the first timer is greater than the first duration, it is determined that the first timer has not timed out.
14. The method according to claim 11, characterized in that The duration of the second timer is set to the difference between the total duration of the first timer and the second duration, wherein the second duration is the interval between the start time of the first timer and the second time, and the second time is the current time or the occurrence time of the second event.
15. The method according to claim 14, characterized in that The determining whether the first timer has timed out according to the first timer related information includes: When the duration of the interval from the start time of the first timer to the second time is greater than or equal to the total duration of the first timer, determining that the first timer has timed out; or If the interval between the start time of the first timer and the second time is less than the total duration of the first timer, it is determined that the first timer has not timed out.
16. The method according to any one of claims 1 to 15, characterized in that The first terminal is configured to allow use of a timer to manage the prohibited PLMN.
17. A method for managing a barred public land mobile network (PLMN), characterized in that: Applied to the second terminal, including: When a second event occurs, obtaining a prohibited PLMN list and first timer related information, wherein the prohibited PLMN list and the first timer related information are stored in the same storage unit; The first PLMN in the prohibited PLMN list is managed according to the first timer related information.
18. The method according to claim 17, characterized in that Managing the first PLMN in the prohibited PLMN list according to the first timer related information includes: According to the first timer related information, the target PLMN in the prohibited PLMN list is managed, wherein: The target PLMN includes only the first PLMN; or The target PLMN includes all PLMNs in the forbidden PLMN list; or The target PLMN includes multiple PLMNs in the forbidden PLMN list, wherein the multiple PLMNs include the first PLMN.
19. The method according to claim 17 or 18, characterized in that The same storage unit is a storage unit in a subscriber identity module SIM card of the second terminal.
20. The method according to any one of claims 17 to 19, characterized in that The first timer related information includes at least one of the following: The start time information of the first timer and the total duration information of the first timer.
21. The method according to any one of claims 18 to 20, characterized in that Managing the target PLMN in the prohibited PLMN list according to the first timer related information includes: determining whether the first timer has timed out based on the information related to the first timer; When the first timer times out, delete the target PLMN from the prohibited PLMN list; or When the first timer has not timed out, a second timer is started; when the second timer times out, the target PLMN in the prohibited PLMN list is deleted.
22. The method according to claim 21, characterized in that The duration of the second timer is set to the difference between the total duration of the first timer and a third duration, where the third duration is the duration from the start time of the first timer to the third time, wherein the third time is the current time or the occurrence time of the second event.
23. The method according to claim 22, characterized in that The determining whether the first timer has timed out according to the first timer related information includes: When the total duration of the first timer is less than or equal to the third duration, determining that the first timer has timed out; or When the total duration of the first timer is greater than the third duration, it is determined that the first timer has not timed out.
24. The method according to any one of claims 17 to 23, characterized in that The second terminal is configured to allow use of a timer corresponding to the PLMN.
25. The method according to any one of claims 17 to 24, characterized in that The second event includes at least one of the following: Turning on the second terminal; Insert a SIM card into the second terminal; The SIM card of the second terminal is powered on.
26. A method for managing a prohibited public land mobile network (PLMN), characterized in that: Applied to the second terminal, including: When a user identification module (SIM) card of the second terminal is changed, starting a first timer; When the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
27. The method according to claim 26, characterized in that The target PLMN includes only one PLMN; or The target PLMN includes all PLMNs in the forbidden PLMN list; or The target PLMN includes multiple PLMNs in the forbidden PLMN list.
28. The method according to claim 26 or 27, characterized in that Before the SIM card of the second terminal is changed, the method further includes: A second event occurs on the second terminal, wherein the second event includes at least one of the following: The second terminal is powered on, a SIM card is inserted into the second terminal, and the SIM card in the second terminal is powered on.
29. The method according to any one of claims 26 to 28, characterized in that The first timer related information is stored in a storage unit of the second terminal.
30. The method according to any one of claims 26 to 29, characterized in that When the subscriber identity module (SIM) card of the second terminal is changed, starting a first timer includes: When a subscriber identity module (SIM) card of the second terminal is changed and the prohibited PLMN list in the SIM card of the second terminal includes at least one PLMN, a first timer is started.
31. The method according to any one of claims 27 to 30, characterized in that The second terminal is configured to allow use of a timer to manage the prohibited PLMN.
32. A terminal device, characterized in that: include: a processing unit, configured to start a first timer when the first PLMN is added to the prohibited PLMN list; and storing the first timer related information in the event of a first event; The prohibited PLMN list and the first timer related information are stored in the same storage unit.
33. A terminal device, characterized in that: include: a processing unit, configured to obtain, when a second event occurs, a prohibited PLMN list and information related to a first timer, wherein the prohibited PLMN list and information related to the first timer are stored in the same storage unit; The first PLMN in the prohibited PLMN list is managed according to the first timer related information.
34. A terminal device, characterized in that: include: a processing unit, configured to start a first timer when a SIM card of the second terminal is changed; as well as When the first timer times out, the target PLMN in the prohibited PLMN list is deleted.
35. A terminal device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to perform the method according to any one of claims 1 to 16, or the method according to any one of claims 17 to 25, or the method according to any one of claims 26 to 31.
36. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory so that a device equipped with the chip performs the method according to any one of claims 1 to 16, or the method according to any one of claims 17 to 25, or the method according to any one of claims 26 to 31.
37. A computer-readable storage medium, characterized in that Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 16, or the method according to any one of claims 17 to 25, or the method according to any one of claims 26 to 31.
38. A computer program product, characterized in that Comprising computer program instructions, the computer program instructions causing a computer to perform the method of any one of claims 1 to 16, or the method of any one of claims 17 to 25, or the method of any one of claims 26 to 31.
39. A computer program, characterized in that The computer program causes a computer to execute the method of any one of claims 1 to 16, or the method of any one of claims 17 to 25, or the method of any one of claims 26 to 31.
