Task registration method and device, terminal equipment and computer readable storage medium
By detecting whether the LTE only device has the permission to roam the mobile network and determining the target roaming mobile network, the problem of the IMS re-registration failure when the device is connected to the ePDG is solved, and the stable service recovery of the device is achieved.
Patent Information
- Application Number
- CN202510224415.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-06-13
AI Technical Summary
When the LTE only device is connected to the ePDG, the IMS re-registration fails, resulting in the device being unserviced for a long time.
Provide a task registration method to detect whether the device has the permission to roam the mobile network. If so, determine the target roaming the mobile network and re-register the task to avoid the device being unserviced for a long time.
By detecting and utilizing roaming mobile networks, the device can successfully re-register tasks, avoiding the problem of long-term servicelessness.
Smart Images

Figure CN120152007A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and particularly to a task registration method, apparatus, terminal device, and computer-readable storage medium. Background Art
[0002] The disadvantage of the prior art is that when an LTE only device fails to re-register with the IMS (IP Multimedia Subsystem) while connected to an ePDG (Evolved Packet Data Gateway), and the device has only one Home PLMN (Public Land Mobile Network), the device will start the TPlmn timer_barring timer to prohibit the current PLMN, resulting in the device being without service for a long time. Summary of the Invention
[0003] This application provides a task registration method that can re-register the service in case of a service task registration failure, avoiding the problem of the device being without service for a long time.
[0004] In a first aspect, this application provides a task registration method, which includes:
[0005] If the registration of the target task fails in the current network, detect whether there is permission to roam on the mobile network;
[0006] If there is permission to roam on the mobile network, determine the target roaming mobile network;
[0007] Register the target task according to the target roaming mobile network.
[0008] In some embodiments of this application, the step of if there is permission to roam on the mobile network, determine the target roaming mobile network includes:
[0009] If there is permission to roam on the mobile network, obtain multiple roaming mobile networks;
[0010] Determine the target roaming mobile network according to the current signal strength, current network load, and historical connection success rate corresponding to each roaming mobile network.
[0011] In some embodiments of this application, after detecting whether there is permission to roam on the mobile network, the method further includes:
[0012] If there is no permission to roam on the mobile network, detect the wireless network in the current environment and determine the target wireless network;
[0013] Register the target task according to the target wireless network.
[0014] In some embodiments of the present application, the method further includes:
[0015] Monitoring the network status of each roaming mobile network and the wireless network in the current environment;
[0016] If the network status of each of the roaming mobile networks and the wireless network in the current environment is unavailable, switching to the emergency mode.
[0017] In some embodiments of the present application, after the permission of the roaming mobile network is not available, the method further includes:
[0018] If no wireless network is detected, caching the current temporary data;
[0019] If the registration of the target task is re-completed under the current network, synchronizing the current temporary data.
[0020] In some embodiments of the present application, the detecting the wireless network in the current environment and determining the target wireless network includes:
[0021] Detecting the wireless network in the current environment and determining the historical success rate and the current signal strength corresponding to each of the wireless networks;
[0022] Determining the target wireless network according to the historical success rate and the current signal strength corresponding to each of the wireless networks.
[0023] In some embodiments of the present application, the method further includes:
[0024] When performing network switching and / or registering the target task, outputting a prompt message; the prompt message is used to prompt the user of the current network status and / or a suggestion message.
[0025] In a second aspect, the present application further provides a task registration device, where the device includes:
[0026] A detection module, configured to detect whether the permission of a roaming mobile network is available if the registration of the target task fails under the current network;
[0027] A determination module, configured to determine a target roaming mobile network if the permission of the roaming mobile network is available;
[0028] A registration module, configured to register the target task according to the target roaming mobile network.
[0029] In a third aspect, the present application further provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in any one of the task registration methods described above.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps in any one of the task registration methods described above.
[0031] The task registration method provided by the present application can detect whether the device has the permission to roam the mobile network when the registration of the target task fails under the current network. If the device has the permission to roam the mobile network, an optimal target roaming mobile network can be determined, and the target task can be re-registered through the target roaming mobile network, avoiding the problem of the device being without service for a long time. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0033] Figure 1 is a schematic diagram of the scenario of the task registration system provided in the embodiment of the present application;
[0034] Figure 2 is a schematic flowchart of an embodiment of the task registration method in the embodiment of the present application;
[0035] Figure 3 is a schematic diagram of a functional module of the task registration device in the embodiment of the present application;
[0036] Figure 4 is a schematic diagram of the structure of the terminal device in the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0038] In the description of the present application, it should be understood that the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.
[0039] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or instance". Any embodiment described as "exemplary" in this application is not necessarily to be construed as more preferred or advantageous than other embodiments. At the same time, it can be understood that in the specific implementation of this application, when it comes to relevant data such as user information and user data, when the above embodiments of this application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.
[0040] In order to enable any person skilled in the art to implement and use this application, the following description is given. In the following description, details are set forth for purposes of explanation. It should be understood that those of ordinary skill in the art can recognize that this application can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of this application with unnecessary details. Therefore, this application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in this application.
[0041] This application provides a task registration method, apparatus, device, and storage medium, which will be described in detail below.
[0042] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the scenario of the task registration system provided by an embodiment of this application. The task registration system may include a terminal device 100 and a server 200, and the server 200 may transmit data to the terminal device 100. As the terminal device 100 in Figure 1 can perform task registration with the server according to the network signal, so as to execute the task registration method in this application.
[0043] In an embodiment of this application, the terminal device 100 may include, but is not limited to, a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a tablet computer, a wireless terminal device, an embedded device, a mobile phone, etc.
[0044] In an embodiment of the present application, the terminal device 100 and the server 200 can communicate through any communication method, including but not limited to mobile communication based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP / IP Protocol Suite (TCP / IP), User Datagram Protocol (UDP), etc.
[0045] It should be noted that Figure 1 The schematic diagram of the scenario of the task registration system shown is only an example. The task registration system and scenario described in the embodiments of the present application are for more clearly explaining the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those of ordinary skill in the art know that with the evolution of the task registration system and the emergence of new service scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0046] As Figure 2 shown, Figure 2 This is a schematic flowchart of an embodiment of the task registration method in the embodiments of the present application. The task registration method may include the following steps 201 to 203:
[0047] 201. If the target task registration fails under the current network, detect whether there is permission to roam the mobile network.
[0048] In an embodiment of the present application, the target task may be IMS task registration. In some cases, if there are problems such as network fluctuations or failures in the device's current primary network, such as Home PLMN, it will cause the IMS task registration to fail. At this time, the device will be in a long-term no-service state. Therefore, it is possible to detect whether the device has roaming permission, and then use the roaming network to restore the device's connection to the server.
[0049] Among them, determining whether the device has roaming permission can be determined according to the service activation status of the operator. For example, the device can send a roaming network usage request to the operator network. If the operator feedbacks a rejection message, it can be determined that the device does not have the permission to roam the mobile network. Specifically, the present application does not limit the specific detection method.
[0050] 202. If there is permission to roam the mobile network, determine the target roaming mobile network.
[0051] In the embodiments of the present application, if it is determined that the device has the permission to roam on the mobile network, the optimal target roaming mobile network can be determined according to each roaming network provided by the operator's base station. Among them, each roaming mobile network provided by the current base station can be filtered according to the signal strength, so as to filter out the target roaming mobile network with the best signal. Or, the roaming mobile network automatically assigned by the base station can be used as the target roaming mobile network. Specifically, the embodiments of the present application do not limit the specific scheme for determining the target roaming mobile network.
[0052] 203. Register the target task according to the target roaming mobile network.
[0053] After successfully connecting to the target roaming mobile network, the IMS task can be registered according to the normal IMS task registration process. Among them, the IMS task registration process can refer to any technical solution, and the embodiments of the present application do not limit it.
[0054] The task registration method provided by the present application can detect whether the device has the permission to roam on the mobile network when the target task registration fails under the current network. If the device has the permission to roam on the mobile network, an optimal target roaming mobile network can be determined, and the target task can be re-registered through the target roaming mobile network, avoiding the problem of the device being without service for a long time.
[0055] In order to better implement the embodiments of the present application, in one embodiment of the present application, if the device has the permission to roam on the mobile network, determining the target roaming mobile network includes:
[0056] If the device has the permission to roam on the mobile network, obtain multiple roaming mobile networks; determine the target roaming mobile network according to the current signal strength, current network load and historical connection success rate corresponding to each roaming mobile network.
[0057] In order to increase the stability of using the roaming mobile network, the embodiments of the present application also provide a better solution for determining a better target roaming mobile network.
[0058] Specifically, if the device has the permission to roam on the mobile network, then when determining the target roaming mobile network from each roaming mobile network, the scheme can not only combine the current signal strength, but also combine the current network load and historical connection success rate of the roaming mobile network to determine the target roaming mobile network.
[0059] Optionally, the first roaming mobile network with a signal strength greater than the signal strength threshold can be determined according to the current signal strength corresponding to each roaming mobile network first; then, from the first roaming mobile networks, the second roaming mobile network with a current network load less than the target load threshold can be determined; finally, from the second roaming mobile networks, the roaming mobile network with the highest historical connection success rate can be determined as the target roaming mobile network. Of course, it is also possible to first screen according to the current network load, then screen according to the historical connection success rate, and then determine the final target roaming mobile network according to the current signal strength. Therefore, this application does not limit the order of determination of the current signal strength, the current network load, and the historical connection success rate.
[0060] In order to better implement the embodiments of the present application, in one embodiment of the present application, after detecting whether there is a permission for the roaming mobile network, the method further includes:
[0061] If there is no permission for the roaming mobile network, detect the wireless network in the current environment to determine the target wireless network; register the target task according to the target wireless network.
[0062] The above embodiments provide a solution for re-registering the target task through the roaming mobile network. However, in some application scenarios, the user may not have the roaming permission enabled. Therefore, when detecting the permission of the roaming mobile network, a detection result of no roaming permission may be obtained. If the user does not have the roaming permission enabled, the roaming mobile network provided by the operator cannot be used. At this time, the IMS task registration can also be considered according to the wireless wifi network.
[0063] Specifically, if it is determined that the device does not have the permission for the roaming mobile network, it is possible to detect whether there is a target wireless network that has been successfully connected historically in the environment where the device is currently located. If there is such a target wireless network, the device can automatically connect to the target wireless network. After successfully connecting to the target wireless network, the IMS task can be registered according to the target wireless network.
[0064] In order to better implement the embodiments of the present application, in one embodiment of the present application, the method further includes:
[0065] Monitor the network status of each roaming mobile network and the wireless network in the current environment; if the network status of each roaming mobile network and the wireless network in the current environment is in an unavailable state, switch to the emergency mode.
[0066] In the above embodiments, a solution for task registration based on a roaming mobile network or a wireless network is provided. However, in some scenarios, after the wireless network is successfully connected, there may be a situation where the wireless network cannot access the Internet, or after the roaming mobile network is connected, the user is in an overdue state, resulting in the inability to use the corresponding network. To avoid the loss of the basic communication function of the user due to the unavailable network, in the embodiments of the present application, if it is detected that both the wireless network and the roaming mobile network are unavailable, the device can be switched to an emergency mode that can make emergency calls.
[0067] It should be noted that in any embodiment of the present application, for example, when switching to a target roaming mobile network or switching to a target wireless network, during the network switching process, the user will generate temporary network data. Therefore, to avoid data loss caused by network switching, in any embodiment of the present application, the temporary data generated by the user can be cached during network switching, and after the network is successfully switched, the temporary data can be synchronized.
[0068] To better implement the embodiments of the present application, in one embodiment of the present application, after the permission of the roaming mobile network is not available, the method further includes:
[0069] If the wireless network is not detected, cache the current temporary data; if the registration of the target task is re-completed under the current network, synchronize the current temporary data.
[0070] The above embodiments provide a solution for task registration using a wireless network when the roaming mobile network permission is not available. However, there are still some situations, that is, in the current environment where the device is located, there is no target wireless network. At this time, the device is in a no-service state, and the device is still generating temporary data that requires services according to the user's operations. Therefore, to avoid data loss of the user in the no-service state, the temporary data generated by the user during this period can also be cached. If the current network is restored and the registration of the IMS task is re-completed under the current network, the temporary data generated during the no-service period can be synchronized at this time, so as to avoid the problem of user data loss.
[0071] Among them, the current temporary data can be cached in the target storage area. When the data is synchronized, feedback to the operator server or after the interaction is completed, the target storage area can be emptied to avoid the occupation of storage space by temporary data.
[0072] To better implement the embodiments of the present application, in one embodiment of the present application, detecting the wireless network in the current environment and determining the target wireless network includes:
[0073] Detect the wireless networks in the current environment, and determine the historical success rate and the current signal strength corresponding to each wireless network; determine the target wireless network according to the historical success rate and the current signal strength corresponding to each wireless network.
[0074] In the above embodiments, a solution for re-registering the target task according to the target wireless network is provided. However, in some scenarios, there are multiple available wireless networks in the current environment that the user has connected to historically. Therefore, in response to this situation, the embodiments of the present application also provide a solution for determining the target wireless network.
[0075] Optionally, first determine the first wireless networks with a current signal strength greater than the signal strength threshold according to the current signal strength corresponding to each wireless network; then, from the first wireless networks, determine the second wireless networks with a current network load less than the target load threshold; finally, from the second wireless networks, determine the wireless network with the highest historical connection success rate as the target wireless network. Of course, it is also possible to first screen according to the current network load, then screen according to the historical connection success rate, and then determine the final target wireless network according to the current signal strength. Therefore, the present application does not limit the order of determination of the current signal strength, the current network load, and the historical connection success rate.
[0076] To better implement the embodiments of the present application, in one embodiment of the present application, the method further includes:
[0077] When performing network switching and / or target task registration, output a prompt message; the prompt message is used to prompt the user of the current network status and / or a suggestion message.
[0078] In the above embodiments, a solution for re-registering the target task is provided, and network switching is involved at the same time. When switching networks, the current network status can be displayed for the user to autonomously select available networks. If the user does not perform a selection operation, the system can automatically select. In addition, since temporary data generated by the user will be stored when switching networks or re-registering tasks. Therefore, relevant suggestion messages can be appropriately reminded. For example, if the current storage space is insufficient to store too much temporary data, it can be suggested that the user wait until the network is restored before performing the operation task, etc.; or, it can also be combined with the network status. For example: if the network status is poor, it can be suggested that the user operate temporarily, etc. The specific embodiments of the present application are not limited.
[0079] To better implement the task registration method in the embodiments of the present application, on top of the task registration method, the embodiments of the present application also provide a task registration device, as Figure 3 shown, the device 300 includes:
[0080] The detection module 301 is used to detect whether the device has the permission to roam on the mobile network if the registration of the target task fails under the current network;
[0081] The determination module 302 is used to determine the target roaming mobile network if the device has the permission to roam on the mobile network;
[0082] The registration module 303 is used to register the target task according to the target roaming mobile network.
[0083] The task registration device provided by this application can, if the registration of the target task fails under the current network, the detection module 301 detects whether the device has the permission to roam on the mobile network. If the device has the permission to roam on the mobile network, the determination module 302 can determine an optimal target roaming mobile network, and then the registration module 303 can re-register the target task through the target roaming mobile network, avoiding the problem of the device being without service for a long time.
[0084] In some embodiments of this application, the determination module 302 is specifically used for:
[0085] If the device has the permission to roam on the mobile network, obtain multiple roaming mobile networks;
[0086] Determine the target roaming mobile network according to the current signal strength, current network load, and historical connection success rate corresponding to each roaming mobile network.
[0087] In some embodiments of this application, the registration module 303 is specifically used for:
[0088] If the device does not have the permission to roam on the mobile network, detect the wireless network in the current environment and determine the target wireless network;
[0089] Register the target task according to the target wireless network.
[0090] In some embodiments of this application, the detection module 301 is specifically used for:
[0091] Monitor the network status of each roaming mobile network and the wireless network in the current environment;
[0092] If the network status of each roaming mobile network and the wireless network in the current environment is in an unavailable state, switch to the emergency mode.
[0093] In some embodiments of this application, the registration module 303 is specifically further used for:
[0094] If no wireless network is detected, cache the current temporary data;
[0095] If the registration of the target task is successfully completed again under the current network, synchronize the current temporary data.
[0096] In some embodiments of the present application, the determining module 302 is specifically configured to:
[0097] Detect the wireless networks in the current environment, and determine the historical success rate and the current signal strength corresponding to each wireless network;
[0098] Determine the target wireless network according to the historical success rate and the current signal strength corresponding to each wireless network.
[0099] In some embodiments of the present application, the registering module 303 is further specifically configured to:
[0100] When performing network switching and / or target task registration, output a prompt message; the prompt message is used to prompt the user of the current network status and / or a suggestion message.
[0101] Embodiments of the present application further provide a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor executes the computer program to implement the steps in the task registration method according to any one of the embodiments of the present application. Among them, the terminal device integrates any one of the task registration methods provided by the embodiments of the present application. As Figure 4 shown, it shows a schematic structural diagram of the terminal device involved in the embodiments of the present application. Specifically:
[0102] The terminal device may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input unit 404, and other components. Those skilled in the art can understand that Figure 4 the structural diagram of the terminal device shown in
[0103] The processor 401 is the control center of the terminal device, connecting various parts of the entire terminal device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 402, and by invoking the data stored in the memory 402, it executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 401 may include one or more processing cores; the processor 401 may be a central processing unit (CPU), or it may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Preferably, the processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either.
[0104] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. Among them, the program storage area may store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area may store the data created according to the use of the terminal device. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0105] The terminal device also includes a power supply 403 that powers each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, a power status indicator, etc.
[0106] The terminal device may further include an input unit 404, which may be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0107] Although not shown, the terminal device may further include a display unit and the like, which will not be elaborated here. Specifically, in this embodiment, the processor 401 in the terminal device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402 to implement various functions, such as:
[0108] If the registration of the target task fails under the current network, detect whether there is permission to roam the mobile network;
[0109] If there is permission to roam the mobile network, determine the target roaming mobile network;
[0110] Register the target task according to the target roaming mobile network.
[0111] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0112] For this reason, an embodiment of the present application provides a computer-readable storage medium, which may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the task registration methods provided by the embodiments of the present application. For example, when the computer program is loaded by a processor, the following steps may be executed:
[0113] If the registration of the target task fails under the current network, detect whether there is permission to roam the mobile network;
[0114] If there is permission to roam the mobile network, determine the target roaming mobile network;
[0115] Register the target task according to the target roaming mobile network.
[0116] In the above embodiments, the descriptions of the various embodiments have their own focuses. For parts not elaborated in a certain embodiment, reference may be made to the detailed descriptions of other embodiments above, which will not be elaborated here.
[0117] In specific implementation, each of the above units or structures can be implemented as an independent entity, or can be arbitrarily combined and implemented as the same or several entities. For the specific implementation of each of the above units or structures, reference can be made to the foregoing method embodiments and will not be elaborated herein.
[0118] For the specific implementation of each of the above operations, reference can be made to the foregoing embodiments and will not be elaborated herein.
[0119] The foregoing has introduced in detail a task registration method and apparatus provided by an embodiment of the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, 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 application.
Claims
1. A task registration method, characterized in that: The method comprises: If the target task registration fails under the current network, check whether the roaming mobile network permission is available; If the roaming mobile network permission is available, determining the target roaming mobile network; The target task is registered according to the target roaming mobile network.
2. The task registration method according to claim 1, characterized in that: If the roaming mobile network has the authority, determining the target roaming mobile network includes: If the roaming mobile network authority is possessed, obtaining multiple roaming mobile networks; The target roaming mobile network is determined according to the current signal strength, current network load and historical connection success rate corresponding to each of the roaming mobile networks.
3. The task registration method according to claim 1, characterized in that: After detecting whether the user has the permission to roam on a mobile network, the method further includes: If the user does not have the permission to roam the mobile network, detecting wireless networks in the current environment and determining a target wireless network; The target task is registered according to the target wireless network.
4. The task registration method according to any one of claims 1 to 3, characterized in that: The method further comprises: Monitor the network status of each roaming mobile network and wireless network in the current environment; If the network status of each of the roaming mobile networks and the wireless network in the current environment is unavailable, switch to the emergency mode.
5. The task registration method according to claim 3, characterized in that: If the user does not have the permission of the mobile network, the method further includes: If no wireless network is detected, cache the current temporary data; If the target task is registered again under the current network, the current temporary data is synchronized.
6. The task registration method according to claim 3, characterized in that: The detecting of wireless networks in the current environment and determining the target wireless network includes: Detecting wireless networks in the current environment, and determining the historical success rate and current signal strength corresponding to each of the wireless networks; The target wireless network is determined according to the historical success rate and the current signal strength corresponding to each of the wireless networks.
7. The task registration method according to any one of claims 1 to 6, characterized in that: The method further comprises: When performing network switching and / or registering the target task, a prompt message is output; the prompt message is used to prompt the user of the current network status and / or suggestion information.
8. A task registration device, characterized in that: The device comprises: A detection module is used to detect whether the user has the permission to roam the mobile network if the target task registration fails under the current network; A determination module, configured to determine a target roaming mobile network if the roaming mobile network authority is available; A registration module is used to register the target task according to the target roaming mobile network.
9. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the task registration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the task registration method according to any one of claims 1 to 7.