A network registration method, related device, equipment and readable storage medium
By querying and updating APN information in electronic devices, the problem of network registration failure caused by using incorrect APN information is solved, the registration success rate is improved and the troubleshooting process is simplified.
Patent Information
- Application Number
- CN202210882824.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-07-26
AI Technical Summary
When electronic devices use incorrect APN information for network registration, registration fails, affecting the success rate of network connections.
Query the user identification card information through the host, compare the modem's preset APN information with the information in the APN list stored by the host, update the modem's APN information to ensure that it uses the correct APN for network registration, and prompt the user when registration fails Check APN configuration.
It improves the network registration success rate of electronic devices, avoids network connection failures caused by incorrect APN information, and enhances the efficiency of user diagnosis and problem solving.
Smart Images

Figure CN115243363B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network registration, and in particular to a network registration method, related devices, equipment and computer-readable storage medium. Background Art
[0002] Before an electronic device can access the Internet, it needs to connect to an access point (APN). APN is a network access technology and a parameter that must be configured when an electronic device accesses the Internet. It determines the access method used by the electronic device to access the network.
[0003] For users, there are many types of external networks that can be accessed, such as the Internet, WAP websites, internal corporate networks, and private networks within industries. Different access points have different access ranges and access methods. How does the network know which network to access after the mobile phone is activated and which network segment IP to allocate? This depends on the APN, which determines what kind of network the user's electronic device can access through which access method.
[0004] However, in some cases, the APN information used by the electronic device may be incorrect APN information. This means that when the electronic device uses the wrong APN to register the network, the network registration may fail, resulting in the problem that the electronic device cannot successfully connect to the network. Therefore, how to improve the success rate of electronic devices registering the network is an issue that technicians are increasingly concerned about. Summary of the invention
[0005] The embodiment of the present application provides a method for network registration, which solves the problem that a modem uses incorrect APN information for network registration, resulting in failure of an electronic device to register with the network.
[0006] In a first aspect, an embodiment of the present application provides a method for network registration, which is applied to an electronic device, wherein the electronic device includes a modem and a host, and the method includes: the host queries the information of a user identity card; when the host does not have the first APN information and the modem has the second APN information, the modem sends the second APN information to the host; when the host determines that the second APN information is inconsistent with the third APN information in the first APN list, the host sends the third APN information to the modem; the modem initiates network registration using the third APN information; wherein the first APN information is preset APN information related to the user identity card, the first APN list is a regularly updated APN list, and the second APN information and the third APN information are related to the user identity card.
[0007] In the above embodiment, before the electronic device initiates network registration through the APN information preset by the modem, the APN information preset in the modem is compared with the APN information in the APN list stored in the host. If the two are inconsistent, the modem updates its preset APN information to the APN information in the APN list in the host, and initiates network registration using the updated APN information. This avoids the modem using the wrong APN information to register the network, resulting in the failure of the electronic device to access the network, and improves the success rate of the electronic device registering the network.
[0008] In a possible implementation, after the host sends the third APN information to the modem, the method includes: the modem updates the second APN information to the third APN information. In this way, the second APN information stored in the modem is the latest APN information, and the next time the modem uses the APN information to register a network, the APN information is not updated again, thereby improving the efficiency of the modem registering a network.
[0009] In a possible implementation, before the modem sends the second APN information to the host, it also includes: the host determines whether the first APN information exists; if the first APN information exists, the host sends the first APN information to the modem; the modem uses the first APN information to initiate network registration; if the network registration fails, the modem receives and parses the first information; the modem sends the parsed first information to the host; the host receives the first information and converts the first information into a first prompt information; the host controls the display screen of the communication device to display the first prompt information; the first prompt information is used to prompt that the first APN information is wrong. In this way, after the modem fails to initiate network registration using the APN, the user can know that the reason for the failure of network registration is due to the wrong APN configured by the host, and the user is prompted to check the configuration of the APN. This allows the user to promptly discover and solve the problem of network registration failure, thereby improving the efficiency of network registration.
[0010] In one possible implementation, before the modem sends the second APN information to the host, it includes: if the host does not have the first APN information, the modem determines whether the second APN information exists; if the modem does not have the second APN information, the modem initiates network registration using the empty APN information.
[0011] In one possible implementation, before the modem sends the second APN information to the host, the following steps are included: if the host does not have the first APN information, the modem determines whether the second APN information exists; if the modem does not have the second APN information, the modem sends a first request message to the host, the first request message includes the information of the user identity card; the host searches for the third APN information in the first APN list based on the first request message; if the third APN information is found, the host sends the third APN information to the modem; the modem initiates network registration using the third APN information. In this way, if the APN information related to the user identity card is lost in the modem, the modem can obtain the related APN information from the host and use the APN information to register with the network, thereby improving the success rate of network registration.
[0012] In one possible implementation, after the host searches for the third APN information in the first APN list based on the first request information, it also includes: if the third APN information is not found, the host sends a first instruction to the modem; the first instruction is used to instruct the modem to register the network using empty APN information; the modem receives the first instruction and registers the network using the empty APN information.
[0013] In a second aspect, an embodiment of the present application provides a network registration device, the device comprising a host and a modem, wherein:
[0014] Host, used to query the information of user identification card;
[0015] The modem is used to send the second APN information to the host if the host does not have the first APN information and the modem has the second APN information;
[0016] The host is further configured to send the third APN information to the modem when it is determined that the second APN information is inconsistent with the third APN information in the first APN list;
[0017] The modem is further configured to initiate network registration using third APN information.
[0018] In a possible implementation, the modem is further configured to update the second APN information to the third APN information after the host sends the third APN information to the modem.
[0019] In a possible implementation manner, the host is further configured to determine whether the first APN information exists;
[0020] In case the first APN information exists, the host sends the first APN information to the modem;
[0021] The modem initiates network registration using the first APN information;
[0022] In case of network registration failure, the modem receives and parses the first information;
[0023] The modem sends the parsed first information to the host;
[0024] The host receives the first information and converts the first information into first prompt information;
[0025] The host controls the display screen of the communication device to display the first prompt information; the first prompt information is used to prompt that the first APN information is wrong.
[0026] In a possible implementation manner, before the modem sends the second APN information to the host, the following steps are included:
[0027] In the case that the host does not have the first APN information, the modem determines whether the second APN information exists;
[0028] In the case that the modem does not have the second APN information, the modem initiates network registration using empty APN information.
[0029] In a possible implementation manner, before the modem sends the second APN information to the host, the following steps are included:
[0030] In the case that the host does not have the first APN information, the modem determines whether the second APN information exists;
[0031] In the case that the second APN information does not exist in the modem, the modem sends a first request message to the host, where the first request message includes the information of the user identity card;
[0032] The host searches for third APN information in the first APN list based on the first request information;
[0033] When the third APN information is found, the host sends the third APN information to the modem;
[0034] The modem initiates network registration using the third APN information.
[0035] In a possible implementation manner, after the host searches for the third APN information in the first APN list based on the first request information, the method further includes:
[0036] In the case where the third APN information is not found, the host sends a first instruction to the modem; the first instruction is used to instruct the modem to register the network using the empty APN information;
[0037] The modem receives the first instruction and registers the network using empty APN information.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;
[0039] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the steps executed by the host in the above-mentioned first aspect and various possible implementation methods thereof.
[0040] In a fourth aspect, an embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed by a computer, the host executes the steps performed by the host in the above-mentioned first aspect and various possible implementation methods thereof.
[0041] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps performed by the host as described in the above-mentioned first aspect and its various possible implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The following is an introduction to the drawings used in the embodiments of the present application.
[0043] Figure 1 A flowchart of a network registration method provided in an embodiment of the present application;
[0044] Figure 2 An example diagram of a rejection code provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the structure of a network registration device provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various positions in the specification is not necessarily the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] The terms "first", "second", "third", etc. in the specification and claims of the present application and the drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or optionally, steps or units not listed are included, or optionally, other steps or units inherent to these processes, methods, products or devices are included.
[0049] Only the part relevant to the present application but not all content is shown in the accompanying drawings.Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods described as flow charts.Although flow charts describe various operations (or steps) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously.In addition, the order of various operations can be rearranged.Described processing can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings.Described processing can correspond to method, function, procedure, subroutine, subprogram etc.
[0050] As used in this specification, the terms "component", "module", "system", "unit", etc. are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. In addition, these units can be executed from various computer-readable media having various data structures stored thereon. Units can communicate through local and / or remote processes, for example, based on signals having one or more data packets (e.g., data from a second unit interacting with another unit in a local system, a distributed system, and / or a network. For example, the Internet interacts with other systems via signals).
[0051] Electronic devices usually configure APN information before connecting to the network, and use the APN information to register with the network to access the Internet. There are generally two ways for electronic devices to use APN information to register with the network: the first way is that the electronic device uses the historical APN information stored by the host. When registering with the network, the host will send the APN information corresponding to the user information identification card to the modem of the electronic device, and the modem will use the APN information to register with the network. The second way is that the electronic device uses the APN information preset by the modem. Based on the user information identification card, the modem selects the APN information related to the user information identification card, and uses the APN information to register with the network to connect to the network.
[0052] However, in some cases, the APN information preset in the modem is often incomplete (for example, some preset APNs may have incomplete mobile country codes), or the APN information preset in the modem is invalid (for example, operators will update APN information regularly, and when the APN information is updated, the original version of the APN information becomes invalid). Therefore, when the electronic device uses the second method to register the network, if the modem uses incomplete APN information or invalid APN information to register the network, the electronic device will fail to register the network, resulting in the electronic device being unable to access the Internet.
[0053] Therefore, in order to solve the problem that an electronic device uses wrong APN information to register a network, thereby causing the electronic device to fail to register a network, an embodiment of the present application provides a method for network registration, which is applied to an electronic device. Among them, the electronic device can be a terminal device such as a smart phone and a tablet, and the electronic device includes a host and a modem. The method includes: after the electronic device is turned on, the electronic device reads the information of the user identity card and determines whether the host has APN information related to the user identity card. In the case that there is no APN information related to the user identity card, the electronic device determines whether there is preset APN information corresponding to the user identity card in the modem. If it exists, the preset APN information is sent to the host through the modem. The host compares the APN information sent by the modem with the APN information in its stored APN list. If the two are consistent, the host prompts the modem to initiate network registration using its preset APN information. If the two are inconsistent, the host sends the APN information in its APN list to the modem. The modem updates its preset APN information to the APN information sent by the host, and uses the updated APN information to register with the network. Through the above method, the problem of network registration failure due to invalid or wrong APN information preset by the modem when using the APN information preset by the modem for network registration is solved, and the success rate of network registration of electronic equipment is improved.
[0054] Next, combine Figure 1 The process of a network registration method described in an embodiment of the present application is described in detail. The network registration method is applied to an electronic device, and the electronic device includes a modem and a host. Figure 1 , Figure 1 A flowchart of a network registration method provided in an embodiment of the present application, the specific process is as follows:
[0055] Step S101: the host reads the information of the user's identity card.
[0056] Specifically, after the electronic device is turned on, the host will read the information of the user identity card. The user identity card can be a subscriber identity module (SIM) card, a universal subscriber identity module (USIM) card, a user identity module (User Identity Module) card, etc. The embodiment of the present application takes the user identity card as a SIM card as an example for explanation.
[0057] The SIM card is an IC card held by a mobile user of the global mobile communication system. The global mobile communication system uses the SIM card to identify the user. The same SIM card can be used on different electronic devices. The SIM card is related to the network operator. Exemplarily, the network operator may be China Mobile, China Unicom, China Telecom, China Broadcasting and Television, etc. The information of the user identity card is used to characterize the operator information of the user identity card. Exemplarily, the information of the user identity card may be the public land mobile network (PLMN) information, or the international mobile subscriber identity (IMSI), or other information that can identify the user identity card, which is not limited in the embodiments of the present application.
[0058] Step S102: The host determines whether there is first APN information.
[0059] Specifically, the first APN information is the APN information related to the operator corresponding to the user identity card. The first APN information stored in the host can be the APN information of the user's historical configuration and stored in the host, and the embodiment of the present application does not limit this. If the first APN information exists, execute step S103, and if the first APN information does not exist, execute step S108.
[0060] Step S103: the host sends the first APN information to the modem.
[0061] Step S104: The modem initiates network registration using the first APN information.
[0062] Step S105: When the modem fails to register the network using the first APN, the modem receives and parses the first information.
[0063] Specifically, the first information is sent by a server on the network side and includes a first field. The first field is used to indicate the reason why the current electronic device fails to register with the network. The modem can parse the first field in the first information according to its built-in field mapping table. Exemplarily, the embodiment of the present application takes the example that the first information can be a rejection code sent by the network side device. Figure 2The figure shows an example of a rejection code, in which the rejection code includes a header and field content. The header includes a target field, and the field content part includes a first field. After receiving the rejection code, the modem can read the target field of the header to determine that the first information is a rejection code. Then, the modem determines its preset rejection code field mapping table based on the read target field. The rejection code field mapping table includes a mapping relationship between each field in the rejection code and its meaning. Exemplarily, the mapping relationship can be "0034-APN error". When the modem reads the first field as "0034", it can be known from the mapping relationship that the reason for the current network registration failure is an APN error.
[0064] Step S106: the modem sends the parsed first information to the host.
[0065] Step S107: the host converts the parsed first information into first prompt information, and controls the display screen to display the first prompt information, where the first prompt information is used to indicate that the APN information of the registered network is wrong.
[0066] Specifically, after receiving the parsed first information sent by the modem, the host converts the first information into a first prompt information, and controls the screen to display the first prompt information, which is used to indicate that the APN information used by the current registered network is wrong. Exemplary. The first prompt information can be "APN information error, network registration failed". In this way, after the modem fails to initiate network registration using APN, the user can know that the reason for the network registration failure is due to the APN error configured by the host, and the user is prompted to check the configuration of the APN. This allows the user to promptly discover and solve the problem of network registration failure, thereby improving the efficiency of network registration.
[0067] Step S108: The modem determines whether there is second APN information based on the information of the user identity card.
[0068] Specifically, the second APN information may be APN information related to the operator corresponding to the user identity card. The modem has a preset APN list, which is a local APN list, and includes APN information of multiple network operators. The modem can search for the APN information of the corresponding operator in the APN list based on the information of the user identity card it reads. If the APN information related to the operator corresponding to the user identity card is found, the APN information is the second APN information. If the second APN information does not exist, execute step S109. If the second APN information exists, execute step S110.
[0069] In some embodiments, before the modem determines whether it has the second APN information based on the information of the user identification card, it receives a network registration instruction sent by the host, where the network registration instruction is used to instruct the modem to use its stored APN information to perform network registration.
[0070] Step S109: The modem initiates network registration using empty APN information.
[0071] Step S110: The modem sends the second APN information to the host.
[0072] Step S111: The host determines whether the second APN information is consistent with the third APN information.
[0073] Specifically, the third APN information is the information in the first APN list stored by the host, and the third APN information is the APN information related to the operator corresponding to the user identity card. The operator will periodically publish its updated APN information. When the electronic device is connected to the Internet, it will periodically (for example, every month) download the latest APN information published by the operator from the network end and store the APN information in the second APN information table. In other words, the electronic device will periodically update the first APN information table to ensure that the APN information of the operator stored in the APN information table is the latest APN information. If the host determines that the second APN information is consistent with the third APN information, step S112 is executed; if the host determines that the second APN information is inconsistent with the third APN information, step S114 is executed.
[0074] Step S112: the host sends second indication information to the modem.
[0075] Specifically, the second indication information is used to instruct the modem to initiate network registration using the second APN information. If the second APN information is consistent with the third APN information, it means that the second APN information preset in the modem is the latest APN information updated by the operator, not the invalid APN information, and the modem can use the second APN information for network registration.
[0076] Step S113: The modem initiates network registration using the second APN information.
[0077] Step S114: the host sends first indication information to the modem.
[0078] Specifically, the first indication information includes the third APN information, and the first indication information is used to instruct the modem to update the second APN information. If the second APN information is inconsistent with the third APN information, it means that the second APN information preset in the modem is not the latest APN information updated by the operator, and is incorrect APN information. At this time, the host will send the latest APN information updated by the operator to the modem, so that the modem updates its preset second APN information to the third APN information, so that the modem can use the correct APN information to register with the network this time or the next time.
[0079] Step S115: The modem updates the second APN information to the third APN information.
[0080] Step S116: The modem uses the third APN information to perform network registration.
[0081] In a possible implementation, in the above step S108, if the modem determines that the second APN information does not exist in its preset APN list based on the information of the user identity card, the modem can send a first request message to the host. The first request message includes the information of the operator corresponding to the user identity card, and the first request message is used to instruct the host to search for the APN information (third APN information) corresponding to the operator in the first APN information table based on the information of the operator. The host searches for the third APN information in the first APN information list based on the first request message, and when the third APN information is found, the host sends the third APN information to the modem; the modem uses the third APN information to initiate network registration and stores the third APN information in its preset APN information list. When the host does not find the third APN information, the host sends a response message to the modem, and the modem still uses the empty APN information to initiate network registration. In this way, when the modem does not have the second APN information, the modem can avoid the modem using the empty APN information to initiate network registration to the greatest extent by querying the host for the APN information related to the operator corresponding to the user identity card, thereby improving the success rate of network registration.
[0082] In the embodiment of the present application, before the electronic device initiates network registration through the APN information preset in the modem, the APN information preset in the modem is compared with the APN information in the APN list stored in the host. If the two are inconsistent, the modem updates its preset APN information to the APN information in the APN list in the host, and initiates network registration using the updated APN information. This avoids the modem using the wrong APN information to register the network, resulting in the failure of the electronic device to access the network, and improves the success rate of the electronic device registering the network.
[0083] The above describes in detail the method of the embodiment of the present application. The following provides the relevant devices, equipment, computer-readable storage media, computer programs and chip systems of the embodiment.
[0084] See also Figure 3 , Figure 3 3 is a schematic diagram of the structure of a network registration device provided in an embodiment of the present application. The network registration device 30 includes a host 301 and a modem 302, wherein:
[0085] The host 301 is used to query the information of the user's identity card;
[0086] The modem 302 is used to send the second APN information to the host 301 when the host 301 does not have the first APN information and the modem has the second APN information;
[0087] The host 301 is further configured to, when it is determined that the second APN information is inconsistent with the third APN information in the first APN list, send the third APN information to the modem;
[0088] The modem 302 is also used to initiate network registration using the third APN information; wherein the first APN information is preset APN information related to the user identity card, the first APN list is a regularly updated APN list, and the second APN information and the third APN information are related to the user identity card.
[0089] In a possible implementation manner, the modem 302 is further configured to update the second APN information to the third APN information after the host sends the third APN information.
[0090] In a possible implementation, the host 301 is further configured to determine whether the first APN information exists; if the first APN information exists, send the first APN information to the modem 302;
[0091] The modem 302 is also used to initiate network registration using the first APN information; in the case of network registration failure, receive and parse the first information; and send the parsed first information to the host;
[0092] The host 301 is also used to receive the first information and convert the first information into the first prompt information; control the display screen of the communication device to display the first prompt information; the first prompt information is used to prompt that the first APN information is wrong.
[0093] In a possible implementation, the modem 302 is further used to determine whether the second APN information exists when the host does not have the first APN information; and to initiate network registration using the empty APN information when the second APN information does not exist.
[0094] In a possible implementation, the modem 302 is further used to, when the host does not have the first APN information, determine whether the second APN information exists; when the second APN information does not exist, send the first request information to the host, the first request information including the information of the user identity card;
[0095] The host 301 is further configured to search for third APN information in the first APN list based on the first request information; and send the third APN information to the modem when the third APN information is found.
[0096] The modem 302 is further configured to initiate network registration using the third APN information.
[0097] In a possible implementation, the host 301 is further configured to, when the third APN information is not found, send a first instruction to the modem; the first instruction is configured to instruct the modem to register the network using the empty APN information;
[0098] The modem 302 is further configured to receive the first instruction and register the network using empty APN information.
[0099] See also Figure 4 , Figure 4 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, wherein the electronic device 40 includes a memory 401 and a processor 402. The memory 401 is used to store program codes, and the processor 402 is used to call the program codes stored in the memory 401 to implement the steps executed by the host in the above embodiment and various possible implementations thereof.
[0100] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps executed by the host in the above embodiment and its various possible implementation methods are implemented.
[0101] An embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed by a computer, the host executes the process executed by the host in the above embodiment and various possible implementations thereof.
[0102] It should be noted that the memory in the above embodiments may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may be integrated with the processor.
[0103] The processor in the above embodiments may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
[0104] For the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, and the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0106] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional unit.
[0108] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of software, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (ROM) or random access memory (RAM) and other media that can store program codes.
[0109] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A network registration method, characterized in that: Applied to an electronic device, the electronic device includes a modem and a host, and the method includes: The host queries the information of the user identification card; In the case that the host has first APN information, the host sends the first APN information to the modem, where the first APN information is APN information historically configured by a user and stored in the host; The modem initiates network registration using the first APN information; In the case where the modem fails to register with the network using the first APN information, the modem receives and parses the first information, the first information including a first field; The parsing of the first information includes: The modem parses the first field in the first information according to a field mapping table, wherein the field mapping table includes a mapping relationship between each field in the first information and its meaning; The modem sends the parsed first information to the host; The host receives the first information and converts the first information into first prompt information; The host controls the display screen of the electronic device to display the first prompt information; the first prompt information is used to prompt that the first APN information is wrong; In a case where the host does not have the first APN information and the modem has the second APN information, the modem sends the second APN information to the host; In a case where the host determines that the second APN information is inconsistent with the third APN information in the first APN list, the host sends the third APN information to the modem; The modem initiates network registration using the third APN information; In a case where the host does not have the first APN information and the modem does not have the second APN information, the modem sends a first request message to the host, where the first request message includes the information of the user identity card; The host searches for the third APN information in the first APN list based on the first request information; In case the third APN information is found, the host sends the third APN information to the modem; The modem initiates network registration using the third APN information; The first APN information is preset APN information related to the user identity card, the first APN list is a regularly updated APN list, and the second APN information and the third APN information are related to the user identity card.
2. The method according to claim 1, characterized in that After the host sends the third APN information to the modem, the method includes: The modem updates the second APN information to the third APN information.
3. The method according to claim 1, characterized in that After the host searches for the third APN information in the first APN list based on the first request information, the method further includes: In the case where the third APN information is not found, the host sends a first instruction to the modem; the first instruction is used to instruct the modem to register a network using empty APN information; The modem receives the first instruction and registers a network using the empty APN information.
4. A network registration device, characterized in that: The device comprises a host and a modem, wherein: The host is used to query the information of the user's identity card; The host is further configured to send the first APN information to the modem when the host has the first APN information, wherein the first APN information is the APN information historically configured by the user and stored in the host; The modem is used to initiate network registration using the first APN information; In the case where the modem fails to register with the network using the first APN information, the modem is further configured to receive and parse first information, the first information comprising a first field; The modem parsing the first information specifically includes: The modem parses the first field in the first information according to a field mapping table, wherein the field mapping table includes a mapping relationship between each field in the first information and its meaning; The modem is further used to send the parsed first information to the host; The host is further used to receive the first information and convert the first information into first prompt information; The host is further used to control the display screen of the device to display the first prompt information; the first prompt information is used to prompt that the first APN information is wrong; The modem is further configured to send the second APN information to the host if the host does not have the first APN information and the modem has the second APN information; The host is configured to send the third APN information to the modem when it is determined that the second APN information is inconsistent with the third APN information in the first APN list; The modem is used to initiate network registration using the third APN information; In the case that the host does not have the first APN information and the modem does not have the second APN information, the modem is further used to send a first request message to the host, where the first request message includes the information of the user identity card; The host is further configured to search for the third APN information in the first APN list based on the first request information; In case the third APN information is found, the host is further configured to send the third APN information to the modem; The modem is further used to initiate network registration using the third APN information; The first APN information is preset APN information related to the user identity card, the first APN list is a regularly updated APN list, and the second APN information and the third APN information are related to the user identity card.
5. An electronic device, characterized in that: including memory and processor; The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the steps executed by the host in the network registration method as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps performed by the host in the network registration method according to any one of claims 1 to 3 are implemented.
