Roaming network selection registration method, communication module, equipment and storage medium
By optimizing the classification and processing strategy of rejection reason values in the roaming network, the problem of excessive registration time of roaming network is solved, and fast registration and efficient network selection are achieved.
Patent Information
- Application Number
- CN202510625706.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-07-11
AI Technical Summary
In a roaming network, the terminal device has too many retries due to network rejection reasons during the registration process, resulting in too long registration time and reducing user experience.
The rejection reason value is classified through exception classification rules, and corresponding processing strategies are performed based on different types of rejection reason values, including new network registration policy and registration retry strategy. The target index function is used to calculate the retry interval time to avoid invalid retry.
It improves the efficiency of network registration, reduces registration time, and improves user experience, especially in multiple VPLMN network environments to achieve rapid registration.
Smart Images

Figure CN120302412A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile networks, and particularly relates to a roaming network network selection and registration method, a communication module, a device, and a storage medium. Background Art
[0002] When a roaming card is in a roaming network, the network selection logic is to perform PLMN (Public Land Mobile Network) selection and registration according to the network selection logic of 3GPP (3rd Generation Partnership Project). In the 3GPP protocol, the terminal (UE) may encounter network rejection during the process of registering for the VPLMN (Visited PLMN). At this time, a rejection reason value sent by the network side will be received. When processing according to the 3GPP protocol based on the rejection reason value, the terminal usually performs a maximum number of retries, and starts the T3402 timer after multiple registration retries fail. The timer duration is usually 12 minutes, which causes the registration time of the terminal after the first boot in the roaming network to be very long, seriously reducing the speed of roaming network network selection and registration and the user experience. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a roaming network network selection and registration method, a communication module, a device, and a storage medium, which can improve the efficiency of network registration and the user experience. The specific solutions are as follows:
[0004] In a first aspect, the present application discloses a roaming network network selection and registration method, including:
[0005] Receiving a rejection reason value sent by the network side; the rejection reason value is generated according to a registration request for the currently visited public land mobile network;
[0006] Determining the type of the rejection reason value according to an exception classification rule;
[0007] Performing a corresponding network registration operation according to the processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy.
[0008] Optionally, the performing a corresponding network registration operation according to the processing strategy corresponding to the type includes:
[0009] When the rejection reason value is a first type of reason value, sending a registration request for a newly visited public land mobile network to the network side according to the new network registration strategy; the first type of reason value is a reason value for permanent rejection.
[0010] Optionally, performing corresponding network registration operations according to the processing strategy corresponding to the type includes:
[0011] When the rejection reason value is a second - type reason value, obtaining a retry interval time according to the registration retry strategy, and re - initiating a registration request for the current visited public land mobile network according to the retry interval time; the second - type reason value is a reason value other than the first - type reason value.
[0012] Optionally, after re - initiating a registration request for the current visited public land mobile network according to the retry interval time, it further includes:
[0013] Judging whether the cumulative retry times for the current visited public land mobile network reach a retry times threshold;
[0014] If the retry times threshold is reached, sending a registration request for a newly visited public land mobile network to the network side.
[0015] Optionally, obtaining the retry interval time includes:
[0016] Determining a target exponential function corresponding to the rejection reason value; the target exponential function is constructed based on the target retry parameter corresponding to the rejection reason value and the retry times threshold;
[0017] Using the target exponential function to determine the retry interval time.
[0018] Optionally, performing corresponding network registration operations according to the processing strategy corresponding to the type includes:
[0019] When the rejection reason value is a third - type reason value, performing corresponding processing according to the processing flow corresponding to the rejection reason value in the communication protocol;
[0020] The third - type reason value is a reason value for which there is a corresponding target processing flow in the communication protocol, and the second - type reason value is a reason value other than the first - type reason value and the third - type reason value.
[0021] Optionally, before receiving the rejection reason value sent by the network side, it further includes:
[0022] Performing a network search;
[0023] If no equivalent home network, user - controlled network, or operator - controlled network is searched, sending a registration request for accessing a public land mobile network to the network side.
[0024] In a second aspect, the present application discloses a roaming network network - selection registration communication module, including:
[0025] A rejection reason value receiving module, configured to receive a rejection reason value sent by a network side; the rejection reason value is generated according to a registration request for accessing a public land mobile network currently;
[0026] A type determination module, configured to determine the type of the rejection reason value according to an exception classification rule;
[0027] A processing module, configured to perform a corresponding network registration operation according to a processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy.
[0028] In a third aspect, the present application discloses an electronic device, including:
[0029] A memory, configured to store a computer program;
[0030] A processor, configured to execute the computer program to implement the foregoing roaming network selection and registration method.
[0031] In a fourth aspect, the present application discloses a computer-readable storage medium, configured to store a computer program; wherein when the computer program is executed by a processor, the foregoing roaming network selection and registration method is implemented.
[0032] In the present application, a rejection reason value sent by a network side is received; the rejection reason value is generated according to a registration request for accessing a public land mobile network currently; the type of the rejection reason value is determined according to an exception classification rule; a corresponding network registration operation is performed according to a processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy. It can be seen that by classifying the rejection reason value using a preset exception classification rule, and then operating according to the processing strategy corresponding to the type to which the rejection reason value belongs, the processing strategy includes a new network registration strategy and a registration retry strategy. Therefore, by classifying the received rejection reason value, a more intelligent registration strategy can be selected, the efficiency of network registration can be improved, and the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.
[0034] Figure 1 It is a flowchart of a roaming network selection and registration method provided by the present application;
[0035] Figure 2 It is a flowchart of a specific roaming network selection and registration method provided by the present application;
[0036] Figure 3 A flowchart of a specific roaming network selection and registration method provided for this application;
[0037] Figure 4 A schematic structural diagram of a communication module for roaming network selection and registration provided for this application;
[0038] Figure 5 A structural diagram of an electronic device provided for this application. Detailed implementation manners
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0040] In the prior art, when the terminal processes according to the 3GPP protocol based on the rejection cause value, it usually performs the maximum number of retries, and starts the T3402 timer after multiple registration retries fail. The timer duration is usually 12 minutes, which will cause the registration time of the terminal after the first boot in the roaming network to be very long, seriously reducing the speed of roaming network selection and registration and the user experience. To overcome the above technical problems, this application proposes a roaming network selection and registration method, which can improve the efficiency of network registration and the user experience.
[0041] An embodiment of this application discloses a roaming network selection and registration method. Refer to Figure 1 As shown, the method may include the following steps:
[0042] Step S11: Receive a rejection cause value sent by the network side; the rejection cause value is generated according to a registration request for accessing the current public land mobile network.
[0043] It can be understood that in the 3GPP protocol, when a user equipment (UE) initiates a registration request to access a certain visited public land mobile network (VPLMN), if the network side detects that certain conditions are not met, the network side will send a rejection cause value to the UE.
[0044] Before receiving the rejection cause value sent by the network side, it further includes: performing a network search; if no equivalent home network, user control network, or operator control network is searched, sending a registration request for accessing the public land mobile network to the network side.
[0045] That is, first search for the Equivalent Home PLMN (EHPLMN), User Controlled PLMN (UPLMN), or Operator Controlled PLMN (OPLMN). The EHPLMN refers to other PLMNs that have an agreement with the Home PLMN (HPLMN); the UPLMN is the network manually set by the user; the OPLMN is the network selected by the operator. If the PLMN for roaming is not stored in the SIM (Subscriber Identity Module), when the device is powered on for the first time and is in a roaming area and the equivalent home PLMN, user controlled network, or operator controlled network cannot be searched, it attempts to search for and register on the VPLMN in the order of the reported VPLMN list. However, the selected VPLMN may not be subscribed.
[0046] When registering with an unsubscribed operator, the following situations may occur in the prior art: The cause value is not clear and the terminal retries registration. The terminal retries 5 times and is rejected by the network each time. The T3402 timer is started, with a duration of 12 minutes. After the timeout, it searches for the network again and may still register on the previous network, resulting in the terminal being unable to register successfully when in a roaming network; in some cases, according to the current protocol, the protocol stack needs to be restarted or the card needs to be unplugged and plugged in to initiate registration again.
[0047] Step S12: Determine the type of the rejection cause value according to the exception classification rule.
[0048] In this embodiment, the rejection cause value is classified using the exception classification rule. For example, it is divided into the first type of cause value for permanent rejection and the second type of cause value that does not belong to the first type. Through classification, it can be clarified which rejection cause values can be retried and which cannot.
[0049] Step S13: Perform corresponding network registration operations according to the processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy.
[0050] By configuring corresponding processing strategies for different types, such as the new network registration strategy and the registration retry strategy, the first type of cause value for permanent rejection can correspond to the new network registration strategy, that is, immediately register on a new VPLMN, and the second type of cause value can correspond to the registration retry strategy, that is, attempt to re-register on the current VPLMN. By classifying the received rejection cause values, a more intelligent registration strategy can be selected, improving the efficiency of network registration and the user experience.
[0051] As can be seen above, in this embodiment, a rejection reason value sent by the network side is received; the rejection reason value is generated based on a registration request for accessing a public land mobile network currently; the type of the rejection reason value is determined according to an exception classification rule; a corresponding network registration operation is performed according to a processing policy corresponding to the type; the processing policy includes a new network registration policy and a registration retry policy. It can be seen that the preset exception classification rule is used to classify the rejection reason value, and then an operation is performed according to the processing policy corresponding to the type to which the rejection reason value belongs. The processing policy includes a new network registration policy and a registration retry policy. Therefore, by classifying the received rejection reason value, a more intelligent registration policy can be selected, the efficiency of network registration can be improved, and the user experience can be improved.
[0052] An embodiment of the present application discloses a specific roaming network selection and registration method. Refer to Figure 2 as shown, the method may include the following steps:
[0053] Step S21: Receive a rejection reason value sent by the network side; the rejection reason value is generated based on a registration request for accessing a public land mobile network currently.
[0054] Step S22: Determine the type of the rejection reason value according to an exception classification rule.
[0055] Step S23: When the rejection reason value is a first type of reason value, send a registration request for a newly accessed public land mobile network to the network side according to the new network registration policy; the first type of reason value is a reason value for permanent rejection.
[0056] In this embodiment, for the cause values that are clearly defined in the 3GPP protocol and are permanent rejections, other VPLMNs are immediately retried; the specific cause values of the first category may include: #3 (Illegal UE), indicating that the IMSI or user identity of the user equipment (UE) is invalid or unrecognized in the core network; #6 (Illegal ME), indicating that the hardware of the user equipment (UE) (such as a mobile phone) is invalid or unrecognized in the core network; #8 (EPS services and non-EPS services not allowed), indicating that the user equipment (UE) is denied access to EPS (Evolved Packet System) services and non-EPS services by the network; #7 (EPS services not allowed), indicating that the user equipment (UE) is denied access to EPS services by the network. In the prior art, according to the 3GPP-24301 protocol, when these rejection cause values are received, the protocol stack needs to be restarted or the card needs to be unplugged and plugged in to initiate registration again, reducing the efficiency of network registration. In this embodiment, for these cause values, the current VPLMN is directly abandoned and a new VPLMN is registered, thereby avoiding wasting time and resources in the case of permanent rejection.
[0057] Step S24: When the rejection cause value is a second-category cause value, obtain the retry interval time according to the registration retry policy, and re-initiate a registration request for the current visited public land mobile network according to the retry interval time; the second-category cause value is a cause value other than the first-category cause value.
[0058] For cause values other than the first-category cause values, that is, the second-category cause values, they are all cause values for which re-registration can be attempted. In this embodiment, the retry interval time is obtained according to the registration retry policy, and then a registration request for the current visited public land mobile network is re-initiated according to the retry interval time. Among them, the above retry interval time can be calculated based on an exponential backoff function or a specified retry interval. Thus, the network rejection cause values are classified using the exception classification rule. The first-category cause values directly register a new visited public land mobile network, and the second-category cause values are retried according to the retry time interval; when a roaming card has multiple VPLMNs in a roaming network and the signal of the subscribed roaming VPLMN is poor, there may be problems such as slow registration or inability to register. Using the exception classification rule and the exponential function retry mechanism for retrying can enable the roaming card to initiate registration on all VPLMNs and can quickly register to the subscribed VPLMN.
[0059] In some embodiments, after reinitiating the registration request for the current visited public land mobile network according to the retry interval time, the following steps are further included: determining whether the cumulative retry count for the current visited public land mobile network reaches the retry count threshold; if the retry count threshold is reached, sending a registration request for a newly visited public land mobile network to the network side. That is, by configuring the retry count threshold, unlimited retries are avoided, which wastes resources and reduces the registration efficiency. After the retry count threshold is reached and the registration is still not successful, the current VPLMN is immediately abandoned and a new VPLMN is registered instead.
[0060] Among them, obtaining the retry interval time as described above includes: determining the target exponential function corresponding to the rejection reason value; the target exponential function is constructed based on the target retry parameter corresponding to the rejection reason value and the retry count threshold; using the target exponential function to determine the retry interval time; the retry interval time is directly proportional to the target retry parameter, and the retry interval time is directly proportional to the retry count threshold. For example, retry interval time = 2 n ×t, where n is the retry count threshold and t is the target retry parameter. Through this retry mechanism, ineffective retries can be effectively reduced and network interaction can be carried out quickly. Moreover, different target retry parameters and retry count thresholds are configured for different rejection reason values, so that the optimal retry interval time matching different rejection reason values can be obtained, thereby improving the network registration efficiency.
[0061] This application is also applicable to multi-IMSI (International Mobile Subscriber Identity) roaming cards. In the prior art, when the terminal of a multi-IMSI SIM card is in a roaming network and registers on the VPLMN, since it is not known which PLMN to sign a contract with, it starts trying to register from the first VPLMN. Once the signal of the non-signed operator is very good and the rejection reason value replied by the non-signed operator is unreasonable and triggers 5 retries, T3402 is started. When the multi-IMSI card switches to the next IMSI and then switches back to the IMSI that can be registered, it will still first try to register on the non-signed operator with a good signal, which will cause the multi-IMSI to be unable to register all the time. Through the solution of this application, the roaming card can be quickly registered to the roaming network when it is first powered on, and the multi-IMSI can also be sequentially registered on the VPLMN and successfully registered on the roaming operator quickly.
[0062] Among them, the specific processes of steps S21 and S22 as described above can refer to the corresponding content disclosed in the foregoing embodiments and will not be elaborated herein.
[0063] As can be seen from the above, in this embodiment, when the rejection reason value is a first - type reason value, a registration request for a newly accessed public land mobile network is sent to the network side according to the new network registration policy; the first - type reason value is a reason value for permanent rejection. When the rejection reason value is a second - type reason value, a retry interval time is obtained according to the registration retry policy, and a registration request for the currently accessed public land mobile network is re - initiated according to the retry interval time; the second - type reason value is a reason value other than the first - type reason value. The network rejection reason values are classified using an exception classification rule. The first - type reason value directly registers a new accessed public land mobile network, and the second - type reason value is retried according to the retry time interval; this solves the problem of slow subscription efficiency when a roaming card has multiple accessed public land mobile networks in a roaming network, and realizes fast registration of the accessed public land mobile network.
[0064] An embodiment of the present application discloses a specific roaming network network selection and registration method, and this method may include the following steps:
[0065] Step S31: Receive a rejection reason value sent by the network side; the rejection reason value is generated according to a registration request for the currently accessed public land mobile network.
[0066] Step S32: Determine the type of the rejection reason value according to the exception classification rule.
[0067] Step S33: When the rejection reason value is a first - type reason value, send a registration request for a newly accessed public land mobile network to the network side according to the new network registration policy; the first - type reason value is a reason value for permanent rejection.
[0068] Step S34: When the rejection reason value is a second - type reason value, obtain a retry interval time according to the registration retry policy, and re - initiate a registration request for the currently accessed public land mobile network according to the retry interval time.
[0069] Step S35: When the rejection reason value is a third - type reason value, perform corresponding processing according to the processing flow corresponding to the rejection reason value in the communication protocol; the third - type reason value is a reason value for which there is a corresponding target processing flow in the communication protocol, and the second - type reason value is a reason value other than the first - type reason value and the third - type reason value.
[0070] In this embodiment, the types of rejection reason values include: the first type of reason values for permanent rejection, the third type of reason values for which there are corresponding processing procedures in the protocol, and the second type of reason values that do not belong to the first type of reason values and do not belong to the third type of reason values. It can be understood that for the reason value processing procedures clearly defined in the 3GPP protocol, the procedure is to try other PLMNs. Such reason values are regarded as the third type of reason values and can be directly processed according to the protocol requirements, such as selecting a new tracking area or switching to other PLMNs. The third type of reason values include: #11 (PLMN not allowed), indicating that the PLMN attempted to be registered by the user equipment is not allowed; #35 (Requested service option not authorized in this PLMN), indicating that the requested service option is not authorized in this PLMN; #12 (Tracking area not allowed), indicating that the tracking area (TA) where the user equipment is located is not allowed; #13 (Roaming not allowed in this tracking area), indicating that roaming is not allowed in this tracking area; #14 (EPS services not allowed in this PLMN), indicating that EPS services are not allowed in this PLMN.
[0071] Classify the 3GPP rejection reason values according to the above exception classification rules, and form a combined policy by configuring corresponding processing strategies to clarify which rejection reason values need to register a new visited public land mobile network, which rejection reason values are processed according to the 3GPP protocol, and which reason values are retried according to the retry time interval. Utilize some of the original processing logics of the protocol to reduce the implementation complexity, solve the problem of slow subscription efficiency when a roaming card has multiple visited public land mobile networks in a roaming network, and achieve fast registration of the visited public land mobile network.
[0072] For example Figure 3The figure shows a specific flow chart of a roaming network selection and registration method. When the device is powered on for the first time, the HPLMN is used to search for the network first. If the EHPLMN / UPLMN / OPLMN network cannot be registered, the roaming VPLMN network is attempted for registration. After the registration fails on VPLMN1, the exception classification rule is first used to determine which case the rejection reason value belongs to, and the subsequent processing flow is confirmed. If the reason value belongs to the first type of reason value, the next VPLMN is immediately switched to try to re-register; if the reason value belongs to the second type of reason value, the retry interval time is calculated using exponential backoff to initiate registration, and the retry interval t and retry interval x are upper layer settings, such as the default configuration of 1s retry interval and 2 retries; if the number of retries is reached and the registration is not successful, the next VPLMN is switched to initiate registration. If the reason value belongs to the third type of reason value, it is processed according to the 3GPP protocol process, and the next PLMN is switched after the processing is completed.
[0073] For the specific process of the above steps S31-S33, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described again here.
[0074] As can be seen from the above, in this embodiment, when the rejection reason value is a first-class reason value, a registration request for a newly visited public land mobile network is sent to the network side according to the new network registration policy; the first-class reason value is a reason value for permanent rejection. When the rejection reason value is a second-class reason value, the retry interval is obtained according to the registration retry policy, and the registration request for the currently visited public land mobile network is re-initiated according to the retry interval. When the rejection reason value is a third-class reason value, corresponding processing is performed according to the processing flow corresponding to the rejection reason value in the communication protocol; the third-class reason value is a reason value for which a corresponding target processing flow exists in the communication protocol, and the second-class reason value is a reason value other than the first-class reason value and the third-class reason value. The original processing logic of some protocols is utilized to reduce the implementation complexity, solve the problem of slow signing efficiency when the roaming card has multiple visited public land mobile networks in the roaming network, and realize fast registration for visiting public land mobile networks.
[0075] Correspondingly, the embodiment of the present application also discloses a roaming network selection registration communication module, see Figure 4 As shown, the communication module includes:
[0076] A rejection reason value receiving module 11 is used to receive a rejection reason value sent by the network side; the rejection reason value is generated according to the current registration request for accessing the public land mobile network;
[0077] A type determination module 12, used to determine the type of the rejection reason value according to an abnormal classification rule;
[0078] A processing module 13, configured to perform corresponding network registration operations according to the processing policies corresponding to the types; the processing policies include a new network registration policy and a registration retry policy.
[0079] As can be seen from the above, in this embodiment, a rejection reason value sent by the network side is received; the rejection reason value is generated according to a registration request for accessing a public land mobile network currently; the type of the rejection reason value is determined according to an exception classification rule; corresponding network registration operations are performed according to the processing policies corresponding to the types; the processing policies include a new network registration policy and a registration retry policy. It can be seen that by using the preset exception classification rule to classify the rejection reason value, and then operating according to the processing policy corresponding to the type to which the rejection reason value belongs, the processing policies include a new network registration policy and a registration retry policy. Therefore, by classifying the received rejection reason value, a more intelligent registration policy can be selected, the efficiency of network registration can be improved, and the user experience can be improved.
[0080] In some specific embodiments, the processing module 13 may specifically include:
[0081] A new network registration unit, configured to, when the rejection reason value is a first type of reason value, send a registration request for a newly accessed public land mobile network to the network side according to the new network registration policy; the first type of reason value is a reason value for permanent rejection.
[0082] In some specific embodiments, the processing module 13 may specifically include:
[0083] A registration retry unit, configured to, when the rejection reason value is a second type of reason value, obtain a retry interval time according to the registration retry policy, and re-initiate a registration request for the currently accessed public land mobile network according to the retry interval time; the second type of reason value is a reason value other than the first type of reason value.
[0084] In some specific embodiments, the processing module 13 may specifically include:
[0085] A judgment unit, configured to, after re-initiating a registration request for the currently accessed public land mobile network according to the retry interval time, judge whether the cumulative retry times for the currently accessed public land mobile network reach a retry times threshold;
[0086] A request sending unit, configured to, if the retry times threshold is reached, send a registration request for a newly accessed public land mobile network to the network side.
[0087] In some specific embodiments, the registration retry unit may specifically include:
[0088] A function determination unit for determining a target exponential function corresponding to the rejection reason value; the target exponential function is constructed based on a target retry parameter corresponding to the rejection reason value and a retry count threshold;
[0089] A retry interval calculation unit for determining the retry interval using the target exponential function.
[0090] In some specific embodiments, the processing module 13 may specifically include:
[0091] A protocol processing unit for, when the rejection reason value is a third - type reason value, performing corresponding processing according to the processing flow corresponding to the rejection reason value in the communication protocol; the third - type reason value is a reason value for which there is a corresponding target processing flow in the communication protocol, and the second - type reason value is a reason value other than the first - type reason value and the third - type reason value.
[0092] In some specific embodiments, the roaming network selection and registration communication module may specifically include:
[0093] A network search unit for performing a network search before receiving the rejection reason value sent by the network side;
[0094] A request sending unit for, if an equivalent home network, user - controlled network, or operator - controlled network is not searched, sending a registration request to access a public land mobile network to the network side.
[0095] Furthermore, an embodiment of the present application also discloses an electronic device. Refer to Figure 5 As shown, the content in the figure cannot be considered as any limitation on the scope of use of the present application.
[0096] Figure 5 This is a schematic structural diagram of an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input - output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the roaming network selection and registration method disclosed in any of the foregoing embodiments.
[0097] In this embodiment, the power supply 23 is used to provide operating voltages for the various hardware devices on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and no specific limitation is imposed thereon herein; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and no specific limitation is imposed thereon herein.
[0098] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a magnetic disk, an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including rejection reason values, etc., and the storage method can be transient storage or permanent storage.
[0099] Among them, the operating system 221 is used to manage and control the various hardware devices and the computer program 222 on the electronic device 20 to enable the processor 21 to perform operations and processing on the massive data 223 in the memory 22. It can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the roaming network selection and registration method executed by the electronic device 20 disclosed in any of the foregoing embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0100] Furthermore, an embodiment of this application also discloses a computer storage medium in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the steps of the roaming network selection and registration method disclosed in any of the foregoing embodiments are implemented.
[0101] In this specification, the various embodiments are described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the communication module disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0102] The steps of the method or algorithm described in combination with the embodiments disclosed in this article can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0103] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.
[0104] The above has introduced in detail a roaming network selection and registration method, a communication module, a device and a storage medium provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A roaming network selection and registration method, characterized in that, including: receiving a rejection reason value sent by the network side; the rejection reason value is generated according to a registration request for accessing a public land mobile network currently; determining the type of the rejection reason value according to an exception classification rule; performing corresponding network registration operations according to a processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy.
2. The roaming network selection and registration method according to claim 1, wherein The performing corresponding network registration operations according to a processing strategy corresponding to the type includes: when the rejection reason value is a first type of reason value, sending a registration request for accessing a new public land mobile network to the network side according to the new network registration strategy; the first type of reason value is a reason value for permanent rejection.
3. The roaming network selection and registration method according to claim 2, wherein The performing corresponding network registration operations according to a processing strategy corresponding to the type includes: when the rejection reason value is a second type of reason value, obtaining a retry interval time according to the registration retry strategy, and reinitiating a registration request for the currently accessed public land mobile network according to the retry interval time; the second type of reason value is a reason value other than the first type of reason value.
4. The roaming network selection and registration method according to claim 3, characterized in that, After reinitiating a registration request for the currently accessed public land mobile network according to the retry interval time, it further includes: judging whether the cumulative retry times for the currently accessed public land mobile network reach a retry times threshold; if the retry times threshold is reached, sending a registration request for accessing a new public land mobile network to the network side.
5. The roaming network selection and registration method according to claim 3, characterized in that The obtaining a retry interval time includes: determining a target exponential function corresponding to the rejection reason value; the target exponential function is constructed based on a target retry parameter corresponding to the rejection reason value and a retry times threshold; using the target exponential function to determine the retry interval time.
6. The roaming network selection and registration method according to claim 3, characterized in that, The performing corresponding network registration operations according to a processing strategy corresponding to the type includes: when the rejection reason value is a third type of reason value, performing corresponding processing according to a processing process corresponding to the rejection reason value in a communication protocol; the third type of reason value is a reason value for which there is a corresponding target processing process in the communication protocol, and the second type of reason value is a reason value other than the first type of reason value and the third type of reason value.
7. The roaming network selection and registration method according to any one of claims 1 to 6, characterized in that, Before receiving a rejection reason value sent by the network side, it further includes: performing a network search; if an equivalent home network, a user control network, or an operator control network is not searched, sending a registration request for accessing a public land mobile network to the network side.
8. A communication module, characterized in that, including: a rejection reason value receiving module, configured to receive a rejection reason value sent by the network side; the rejection reason value is generated according to a registration request for accessing a public land mobile network currently; a type determination module, configured to determine the type of the rejection reason value according to an exception classification rule; a processing module, configured to perform corresponding network registration operations according to a processing strategy corresponding to the type; the processing strategy includes a new network registration strategy and a registration retry strategy.
9. An electronic device, characterized in that, including: a memory, configured to store a computer program; a processor, configured to execute the computer program to implement the roaming network selection and registration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, For storing a computer program; wherein when the computer program is executed by a processor, it implements the roaming network selection and registration method according to any one of claims 1 to 7.