Network access information processing method, storage medium and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-30
- Publication Date
- 2026-08-11
AI Technical Summary
但在终端使用物联网卡的情况下,不能直接使用预设的APN参数,需要使用网络运营商提供的物联网专有APN接入,并且需要用户手动添加并配置APN才能进行数据联网
[0017]This application obtains a configuration write request, which requests the writing of first configuration information into a specified database. The specified database stores the configuration information of the access point of the terminal device. The first configuration information records the configuration parameters of the first access point, and the access point name and APN type in the configuration parameters of the first access point are the first APN type. If the first APN type does not belong to a preset set of APN types, a set of APN types is used to perform a correction operation on the first APN type in the configuration parameters of the first access point. If the correction of the first APN type in the configuration parameters of the first access point is successful, the first configuration information is updated, and the updated first configuration information is written to the specified database. For newly created APNs, automatically detecting and correcting errors in the APN type field based on a preset set of APN types can improve the accuracy of the access point configuration information stored in the database. This ensures that the correct access point configuration information can be retrieved from the database during network connection, achieving the technical effect of improving the success rate of network access and solving the technical problem of low network access success rate in related technologies' network access information processing methods.
Smart Images

Figure CN122554923A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile communications, and more specifically, to a method for processing network access information, a storage medium, and an electronic device. Background Technology
[0002] When a terminal device requests mobile data, it needs to register with the network first and then send a data connection request. The data connection request carries parameters related to the Access Point Name (APN). Terminal devices typically have pre-set APN parameters based on the Mobile Country Code (MCC) and Mobile Network Code (MNC) of different networks, eliminating the need for manual user configuration. However, when the terminal uses an IoT SIM card, the pre-set APN parameters cannot be used directly. Instead, a dedicated IoT APN provided by the network operator must be used, and the user must manually add and configure the APN to establish a data connection.
[0003] Because APN parameter configuration is relatively complex, users are prone to errors when configuring parameters themselves, leading to network connectivity issues. Furthermore, related technologies lack automatic error detection and handling mechanisms for APN parameter input; errors cannot be automatically corrected, resulting in network connection failures. Therefore, the network access information processing methods in related technologies suffer from low network access success rates. Summary of the Invention
[0004] This application provides a method for processing network access information, a storage medium, and an electronic device to at least solve the technical problem of low network access success rate in related technologies.
[0005] According to one aspect of the embodiments of this application, a method for processing network access information is provided. The method includes: obtaining a configuration write request, wherein the configuration write request is used to request that first configuration information be written to a specified database, the specified database is used to store configuration information of an access point of a terminal device, the first configuration information is used to record configuration parameters of a first access point, and the access point name APN type in the configuration parameters of the first access point is a first APN type; if the first APN type does not belong to a preset set of APN types, a correction operation is performed on the first APN type in the configuration parameters of the first access point using the set of APN types; if the correction of the first APN type in the configuration parameters of the first access point is successful, the first configuration information is updated, and the updated first configuration information is written to the specified database.
[0006] According to another aspect of the embodiments of this application, a network access information processing apparatus is also provided. The apparatus includes: a first acquisition unit, configured to acquire a configuration write request, wherein the configuration write request is used to request that first configuration information be written to a specified database, the specified database being used to store configuration information of an access point of a terminal device, the first configuration information being used to record configuration parameters of a first access point, and the access point name APN type in the configuration parameters of the first access point being a first APN type; a first execution unit, configured to perform a correction operation on the first APN type in the configuration parameters of the first access point using the set of APN types when the first APN type does not belong to a preset set of APN types; and a second execution unit, configured to update the first configuration information and write the updated first configuration information to the specified database when the correction of the first APN type in the configuration parameters of the first access point is successful.
[0007] In an exemplary embodiment, the APN type in the configuration parameters of the first access point is indicated by the APN type field of the first configuration information. The apparatus further includes at least one of the following: a first conversion unit, configured to, after the configuration write request is obtained, convert the symbols in the APN type field of the first configuration information in the first language format to symbols in the second language format if the APN type field of the first configuration information contains symbols in the first language format, wherein the first language format and the second language format are different formats, and the second language format is a specified language format used to record the APN type; a third execution unit, configured to, if the APN type field of the first configuration information contains a specified interval symbol, split the APN type field of the first configuration information into at least two sub-APN type fields according to the specified interval symbol, and update the APN type field of the first configuration information to the at least two sub-APN type fields, wherein the specified interval symbol is a symbol used to separate APN type fields corresponding to different APN types; a fourth execution unit, configured to, if the APN type field of the first configuration information contains spaces, delete the spaces in the APN type field of the first configuration information; and a second conversion unit, configured to, if the APN type field of the first configuration information contains uppercase characters, convert the uppercase characters in the APN type field of the first configuration information to the corresponding lowercase characters.
[0008] In an exemplary embodiment, the first execution unit includes: a calculation module, configured to calculate the similarity between the first APN type and each APN type in the set of APN types when the first APN type does not belong to the preset set of APN types, to obtain a similarity corresponding to each APN type; a correction module, configured to correct the first APN type in the configuration parameters of the first access point to the second APN type when there is a corresponding second APN type in the set of APN types with a similarity greater than or equal to a specified similarity threshold; and a marking module, configured to mark the first APN type in the configuration parameters of the first access point as an invalid type when there is no corresponding APN type in the set of APN types with a similarity greater than or equal to the specified similarity threshold.
[0009] In one exemplary embodiment, the correction module includes: a display submodule, configured to display first prompt information via a display device, wherein the first prompt information is used to prompt whether it is permissible to correct the first APN type in the configuration parameters of the first access point to the second APN type; and a correction submodule, configured to correct the first APN type in the configuration parameters of the first access point to the second APN type upon receiving a correction permission instruction corresponding to the first prompt information.
[0010] In one exemplary embodiment, the apparatus further includes: a display unit, configured to display a second prompt message via a display device after the first APN type in the configuration parameters of the first access point is marked as an invalid type, wherein the second prompt message is configured to indicate that the first configuration information was not saved because the first APN type is an invalid type.
[0011] In one exemplary embodiment, the apparatus further includes: a first initiating unit, configured to initiate a network connection using a second access point via an IoT card in response to a received network connection request, wherein the network connection request is for requesting a network connection via the IoT card, and the APN type in the configuration parameters of the second access point is a third APN type; an adding unit, configured to add the third APN type as an APN type in the configuration parameters of the third access point when there is an abnormality in the network connection and there is a third access point with a normal network connection, thereby obtaining updated configuration parameters of the third access point; and a second initiating unit, configured to re-initiate a network connection using the third access point via the IoT card according to the updated configuration parameters of the third access point.
[0012] In one exemplary embodiment, the third APN type is not the default type. The apparatus further includes: a query unit, configured to query, in the event of a network connection anomaly, an access point in the configuration parameters whose APN type is the default type after the network connection is initiated using the second access point via the IoT card; and a detection unit, configured to detect the network status of at least one access point when at least one access point is found, wherein the network status of one of the at least one access point indicates whether the network status of the corresponding access point is normal, and the third access point is the access point among the at least one access point whose network status is normal.
[0013] In one exemplary embodiment, the apparatus further includes: a writing unit, configured to write second configuration information into the designated database after the network connection is re-initiated using the third access point via the IoT card according to the updated configuration parameters of the third access point, provided that the re-initiated network connection via the third access point via the IoT card is normal, wherein the second configuration information is used to record the updated configuration parameters of the third access point.
[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed by a processor.
[0015] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in any of the method embodiments described above.
[0016] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to perform the steps of any of the above method embodiments through the computer program.
[0017] This application obtains a configuration write request, which requests the writing of first configuration information into a specified database. The specified database stores the configuration information of the access point of the terminal device. The first configuration information records the configuration parameters of the first access point, and the access point name and APN type in the configuration parameters of the first access point are the first APN type. If the first APN type does not belong to a preset set of APN types, a set of APN types is used to perform a correction operation on the first APN type in the configuration parameters of the first access point. If the correction of the first APN type in the configuration parameters of the first access point is successful, the first configuration information is updated, and the updated first configuration information is written to the specified database. For newly created APNs, automatically detecting and correcting errors in the APN type field based on a preset set of APN types can improve the accuracy of the access point configuration information stored in the database. This ensures that the correct access point configuration information can be retrieved from the database during network connection, achieving the technical effect of improving the success rate of network access and solving the technical problem of low network access success rate in related technologies' network access information processing methods. Attached Figure Description
[0018] Figure 1 This is a schematic diagram illustrating an application scenario of a method for processing network access information according to an embodiment of this application;
[0019] Figure 2 This is a flowchart illustrating an optional method for processing network access information according to an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of an optional network access information processing method according to an embodiment of this application;
[0021] Figure 4 This is a flowchart illustrating another optional method for processing network access information according to an embodiment of this application;
[0022] Figure 5 This is a flowchart illustrating another optional method for processing network access information according to an embodiment of this application;
[0023] Figure 6 This is a structural block diagram of an optional network access information processing apparatus according to an embodiment of this application;
[0024] Figure 7 This is a computer system architecture block diagram of an optional electronic device according to an embodiment of this application. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] According to one aspect of the embodiments of this application, a method for processing network access information is provided. Optionally, in this embodiment, the above-described method for processing network access information may be applied, but is not limited to, to applications such as... Figure 1 The hardware environment shown includes terminal device 102 and server 104. Server 104 can connect to terminal device 102 via a wireless network and can be used to provide services (e.g., application services, etc.) to terminal device 102 or clients installed on terminal device 102. A database can be set up on server 104 or independently of server 104 to provide data storage services for server 104.
[0028] The aforementioned wireless network may include, but is not limited to, at least one of the following: Wireless Fidelity (WIFI) and Bluetooth. Terminal device 102 may be, but is not limited to, a personal computer (PC), mobile phone, tablet computer, walkie-talkie, etc. Server 104 may be, but is not limited to, a cloud server, server cluster, or other server types.
[0029] The network access information processing method of this application embodiment can be executed by terminal device 102 or server 104, or it can be executed collaboratively by terminal device 102 and server 104. Alternatively, the network access information processing method of this application embodiment executed by terminal device 102 can also be executed by a client installed on terminal device 102. Taking execution by terminal device 102 as an example... Figure 2 This is a flowchart illustrating an optional network access information processing method according to an embodiment of this application, as shown below. Figure 2 As shown, the process of this method may include the following steps:
[0030] Step S202: Obtain a configuration write request, wherein the configuration write request is used to request that the first configuration information be written to a specified database, the specified database is used to store the configuration information of the access point of the terminal device, the first configuration information is used to record the configuration parameters of the first access point, and the APN type in the configuration parameters of the first access point is the first APN type;
[0031] Step S204: If the first APN type does not belong to a preset set of APN types, perform a correction operation on the first APN type in the configuration parameters of the first access point using a set of APN types.
[0032] Step S206: If the first APN type in the configuration parameters of the first access point is successfully corrected, the first configuration information is updated and the updated first configuration information is written to the specified database.
[0033] The network access information processing method in this embodiment can be applied to the mobile communication field, specifically to scenarios involving intelligent processing such as verification, correction, and filling of APN configuration information. When a terminal device (such as a mobile network terminal) requests mobile data, it needs to register with the network first and then send a data connection request. The data connection request carries parameters related to the Access Point Name (APN). The APN is a key concept in mobile communication networks used to identify a set of network configuration parameters. It is a connection point identifier used for data services in mobile communication networks, primarily used to connect mobile devices to a specific data network. It contains a series of information required to access the data network, such as network address, port, authentication type, and protocol type, guiding the terminal device on how to correctly access the data service provider's network.
[0034] Terminal devices typically have pre-set APN parameters based on the Mobile Country Code (MCC) and Mobile Network Code (MNC) of different networks, eliminating the need for manual user configuration. However, when using an IoT SIM card, the pre-set APN parameters cannot be used directly. Instead, a dedicated IoT APN provided by the network operator is required, and the user must manually add and configure the APN for data connectivity. Network operators usually only provide the APN name, but an APN has many parameters, requiring manual configuration. Incorrect configuration of some parameters can lead to network connectivity issues or inability to connect. Furthermore, current technologies lack automatic error detection and handling mechanisms for APN parameter input, resulting in uncorrected errors and hindering network connection. Therefore, current network access information processing methods suffer from low network access success rates.
[0035] Terminal devices can be pre-configured with configuration information for multiple access points to meet most data service needs. Users can also manually add configuration information for new access points. Both pre-configured and user-added configuration information can be stored in a designated database and retrieved from the database in response to network requests. To at least partially address the aforementioned technical issues, when creating an APN, errors in the APN type field can be automatically detected and corrected based on a pre-defined set of APN types before the configuration information is written to the designated database. This improves the accuracy of the access point configuration information stored in the database, ensuring that the correct access point configuration information can be retrieved from the database during network connection, thus increasing the success rate of network access. Furthermore, the verification and correction of APN types are performed automatically, further enhancing the intelligence of network access information processing.
[0036] In this embodiment, a configuration write request is obtained. This configuration write request requests that first configuration information be written to a specified database. The specified database stores the configuration information of the access point of the terminal device. The first configuration information records the configuration parameters of the first access point, and the APN type in the configuration parameters of the first access point is a first APN type. Here, the configuration write request can be provided by the user; for example, the user can request configuration information from the terminal device's... Figure 3 Configure the first configuration information on the interface shown, and submit the corresponding configuration write request to the terminal device after the configuration is completed, requesting that the first configuration information be written to the specified database.
[0037] It's important to note that APN type is one of the configuration parameters for an APN. It's a label used to describe the specific purpose of an APN, providing classification and guidance for data flows and specific services within the network. Different APN types have different functions and application scenarios. For example, the `default` type can be used for general internet access, with typical applications including web browsing, application updates, and email; the `supl` type can be used for assisted GPS positioning, with typical applications including map navigation and emergency call location; and the `mss` type can be used for MMS transmission, with typical applications including sending / receiving pictures and videos. An access point's configuration parameters can include one or more APN types, and the primary APN type can also be one or more APN types.
[0038] If the first APN type does not belong to the preset set of APN types, a set of APN types can be used to perform a correction operation on the first APN type in the configuration parameters of the first access point. Here, the preset set of APN types is a predefined set of APN types that meet the specifications, which may include: default, supl, mms, ia, dun, fota, hipri, ims, cbs, xcap, enterprise, emergency, etc.
[0039] It should be noted that a set of APN types refers to the range of APN types in the configuration parameters of an access point. For an access point, its configuration parameters may contain one or more APN types, and do not necessarily include all APN types in a set of APN types. For different access points, the APN types in their configuration parameters may be exactly the same, partially the same, or completely different. In this embodiment, the number and specific types of APN types in the configuration parameters of an access point are not limited.
[0040] When configuring the first APN type, users may make mistakes and configure an APN type that does not belong to the preset set of APN types. For example, when configuring the default type, the user may mistakenly configure it as the "defalt" type (omitting the letter 'u'), which will cause the system to fail to recognize the APN type and thus cause network connection abnormalities. To avoid the above problems, a set of APN types can be used to perform a correction operation on the first APN type in the configuration parameters of the first access point, so that the corrected first APN type is the correct APN type that meets the specifications, that is, the corrected first APN type belongs to the preset set of APN types.
[0041] Optionally, a set of APN types can be used to perform a correction operation on the first APN type in the configuration parameters of the first access point. This can be achieved by comparing the first APN type with the APN types in the set of APN types in turn, finding the APN type with the highest similarity, and correcting the first APN type to the APN type with the highest similarity.
[0042] If the first APN type in the configuration parameters of the first access point is successfully corrected, the first configuration information is updated, and the updated first configuration information is written to the specified database. Here, updating the first configuration information may include updating the first APN type to an APN type belonging to a preset set of APN types.
[0043] The embodiments provided in this application obtain a configuration write request, wherein the configuration write request is used to request that first configuration information be written to a specified database. The specified database is used to store the configuration information of the access point of the terminal device. The first configuration information is used to record the configuration parameters of the first access point. The access point name APN type in the configuration parameters of the first access point is a first APN type. If the first APN type does not belong to a preset set of APN types, a set of APN types is used to perform a correction operation on the first APN type in the configuration parameters of the first access point. If the correction of the first APN type in the configuration parameters of the first access point is successful, the first configuration information is updated and the updated first configuration information is written to the specified database. This solves the technical problem of low network access success rate in the network access information processing methods of related technologies and improves the network access success rate.
[0044] In an exemplary embodiment, the APN type in the configuration parameters of the first access point can be indicated by the APN type field of the first configuration information. Similar to the aforementioned embodiments, the first configuration information is used to record the configuration parameters of the first access point. The first configuration information provides an overall framework for the configuration parameters of the first access point, and the APN type in the configuration parameters of the first access point is indicated by the APN type field of the first configuration information.
[0045] When configuring the APN type field, in addition to common spelling errors (e.g., misspelling "default" as "defalt"), formatting errors may also occur, which can also affect the system's correct recognition of the APN type. In this embodiment, to improve the accuracy of APN type detection and correction, after obtaining the configuration write request, the APN type field of the first configuration information can be normalized in terms of format (standardization processing) to avoid network connection anomalies caused by formatting errors. Standardization processing can be performed in one or more ways, including but not limited to at least one of the following: punctuation correction, whitespace removal, data segmentation, case conversion, etc.
[0046] As an optional implementation, if the APN type field of the first configuration information contains symbols in a first language format, the symbols in the first language format of the APN type field of the first configuration information are converted to symbols in a second language format. The first language format and the second language format are different formats, and the second language format is the specified language format used to record the APN type. Here, the second language format can be a format required by the format specification. Using symbols other than the second language format (in the first language format) may lead to incorrect recognition of the APN type. Therefore, the symbols in the first language format of the APN type field of the first configuration information can be converted to symbols in the second language format. For example, in the Android system, the specified language format used to record the APN type is English. English symbols are required in the APN type field of the first configuration information. If the user mistakenly enters Chinese symbols, the Chinese symbols can be converted to English symbols.
[0047] As another optional implementation, if the APN type field of the first configuration information contains a specified interval symbol, the APN type field of the first configuration information is split into at least two sub-APN type fields according to the specified interval symbol, and the APN type field of the first configuration information is updated to at least two sub-APN type fields. The specified interval symbol is a symbol used to separate APN type fields corresponding to different APN types. If the APN type field of the first configuration information contains a specified interval symbol, it can be determined that the user has configured at least two APN types, and the specified interval symbol is used for separation. Here, the APN type field can be split based on the specified interval symbol. For example, in the Android system, the specified interval symbol is a comma in English format. When the APN type field of the first configuration information is "default,supl,ia", it can be split into three sub-APN type fields, including "default", "supl", and "ia".
[0048] As another optional implementation, if the APN type field of the first configuration information contains spaces, the spaces in the APN type field of the first configuration information should be deleted. Since APN types that meet the specifications do not contain spaces, extra spaces may cause the APN type to be unable to be recognized correctly. Therefore, the spaces in the APN type field of the first configuration information can be deleted. For example, if the APN type field of the first configuration information includes "de fault" or "default", the spaces can be deleted to convert it to "default".
[0049] As another optional implementation, if the APN type field of the first configuration information contains uppercase characters, the uppercase characters in the APN type field of the first configuration information are converted to their corresponding lowercase characters. Since APN types that meet the specifications are all represented by lowercase characters, an APN type field containing uppercase characters may cause the APN type to be unrecognizable. Therefore, the uppercase characters in the APN type field of the first configuration information can be converted to their corresponding lowercase characters. For example, if the APN type field of the first configuration information includes "IA", it can be converted to "ia".
[0050] For example, if the APN type field in the first configuration information is "default, supl, IA", you can first convert the Chinese symbols to English symbols, i.e., "default, supl, IA"; then split it into three sub-APN type fields based on the English commas, i.e., "default", "supl", "IA"; then delete the spaces, i.e., "default", "supl", "IA"; finally, convert the uppercase characters to the corresponding lowercase characters, and finally get "default", "supl", "ia".
[0051] In this embodiment, by standardizing the format of the APN type field in the configuration information, the terminal device can correctly identify each APN type in the APN type field, thus avoiding network connection abnormalities caused by format errors.
[0052] In an exemplary embodiment, a correction operation is performed on the first APN type in the configuration parameters of the first access point using a set of APN types, including: if the first APN type does not belong to a preset set of APN types, calculating the similarity between the first APN type and each APN type in the set of APN types to obtain the similarity corresponding to each APN type; if there is a second APN type in the set of APN types with a similarity greater than or equal to a specified similarity threshold, correcting the first APN type in the configuration parameters of the first access point to the second APN type; if there is no APN type in the set of APN types with a similarity greater than or equal to the specified similarity threshold, marking the first APN type in the configuration parameters of the first access point as an invalid type.
[0053] To correct spelling errors in the first APN type, the first APN type can be corrected based on its similarity to each APN type in a preset set of APN types.
[0054] In this embodiment, when the first APN type does not belong to a preset set of APN types, the similarity between the first APN type and each APN type in the set is calculated to obtain the similarity corresponding to each APN type. Optionally, the similarity between the first APN type and each APN type can be represented based on edit distance. Edit distance is quantified by calculating the minimum number of operations required to convert one string into another. Here, the number of operations includes insertion, deletion, or replacement of characters. For example, converting "deefabl" to "default" requires one deletion, one modification, and one insertion, so the edit distance is 3. It should be noted that the larger the edit distance, the greater the difference before and after modification, and the lower the similarity. Therefore, edit distance is inversely proportional to similarity. By calculating the edit distance between the first APN type and each APN type in the set, the similarity corresponding to each APN type can be obtained by representing the edit distance.
[0055] If, within a set of APN types, a second APN type exists with a similarity greater than or equal to a specified similarity threshold, the first APN type in the configuration parameters of the first access point is corrected to the second APN type. Here, if the similarity between the first APN type and a second APN type in the set of APN types reaches the specified similarity threshold, it can be determined that the first APN type is a misspelled second APN type, and the first APN type in the configuration parameters of the first access point can be corrected to the second APN type. Optionally, when similarity is represented by edit distance, the edit distance between the second APN type and the first APN type is less than or equal to a specified edit distance threshold. Here, the specified edit distance threshold can be 2 or other values, such as 3, 4, etc. The specified edit distance threshold can be related to the length of the second APN type, for example, the product of the length of the second APN type and a preset coefficient.
[0056] Optionally, if multiple APN types in a set of APN types have a similarity greater than or equal to a specified similarity threshold, the APN type with the highest similarity can be identified as the second APN type. If multiple APN types have the same and highest similarity, the first APN type can be marked as an ambiguous type.
[0057] If, within a set of APN types, there is no corresponding APN type with a similarity greater than or equal to a specified similarity threshold, the first APN type in the configuration parameters of the first access point is marked as an invalid type. Here, if the similarity between the first APN type and any of the APN types in the set cannot reach the specified similarity threshold, it can be determined that the first APN type is dissimilar to every APN type and cannot be corrected. In this case, it can be marked as an invalid type without correction.
[0058] It should be noted that the APN type field of the first configuration information may be split into at least two sub-APN type fields, and the number of first APN types is also at least two. The above correction operation can be performed on each first APN type in sequence. For example, if the APN type field of the first configuration information is "dfault", "subla", or "ia", the correction operation will result in "default", "supl", or "ia".
[0059] For example, such as Figure 4As shown, after the user inputs an APN type, the system checks if it contains an APN type that does not belong to a preset set of APN types. If not, no correction is needed, and the system directly outputs the APN type and ends the process. If it does contain an APN type, the system compares the user-input APN type with the preset set of APN types to determine if a similar APN type exists. If not, the system deletes the APN type, outputs the APN type, and ends the process. If a similar APN type exists, the system automatically changes the APN type to a similar one, outputs the APN type, and ends the process. This completes the APN type correction.
[0060] In this embodiment, by performing a correction operation on the format of the APN type field of the configuration information, the terminal device can automatically correct spelling errors in the APN type field, thus avoiding network connection abnormalities caused by spelling errors.
[0061] In one exemplary embodiment, correcting the first APN type in the configuration parameters of the first access point to the second APN type includes: displaying a first prompt message through a display device, wherein the first prompt message is used to prompt whether it is allowed to correct the first APN type in the configuration parameters of the first access point to the second APN type; and correcting the first APN type in the configuration parameters of the first access point to the second APN type upon receiving a correction permission instruction corresponding to the first prompt message.
[0062] After identifying a second APN type similar to the first APN type, the user can be notified of the specific correction details. A first prompt message is displayed on the display device, asking whether the user is permitted to correct the first APN type in the configuration parameters of the first access point to the second APN type. Here, the first prompt message may include the original first APN type and a similar second APN type, asking the user whether to proceed with the correction to prevent incorrect correction. For example, if the first APN type is "dfault" and the second APN type is "default", the first prompt message could be: "An APN type spelling error has been detected; would you like to correct 'dfault' to 'default'?"
[0063] The user can respond to the first prompt message and give the corresponding permission correction instruction. Upon receiving the permission correction instruction corresponding to the first prompt message, the user can correct the first APN type in the configuration parameters of the first access point to the second APN type, and write the corresponding configuration information to the specified database for saving after the correction is completed.
[0064] Optionally, the first APN type may include multiple APN types, and the second APN type corresponding to each first APN type can be displayed in the first prompt message. The user can choose to allow some or all of them to be corrected. If there are unallowed corrections, since there are configuration errors of APN types that have not been corrected, in order to prevent network connection abnormalities, the writing of configuration information to the specified data can be prevented, and the user can be prompted to modify the APN type himself.
[0065] This embodiment demonstrates how by showing users the corrective action and requesting their decision-making confirmation, the accuracy of the configuration can be ensured, while also protecting the user's right to know and right to make decisions.
[0066] In one exemplary embodiment, after marking the first APN type in the configuration parameters of the first access point as an invalid type, the method further includes: displaying a second prompt message through a display device, wherein the second prompt message is used to indicate that the first configuration information was not saved because the first APN type is an invalid type.
[0067] Since an invalid APN type cannot be corrected by finding a similar APN type in a set of APN types, automatic repair of its error is not possible. In order to prevent network connection abnormalities caused by incorrect APN types, the configuration information can be prevented from being written to a specified database, and a second prompt message can be displayed on the display device. The second prompt message is used to indicate that the first configuration information was not saved because the first APN type was invalid, prompting the user to modify the APN type himself.
[0068] Optionally, similar to the aforementioned embodiments, in the presence of multiple APN types with the highest similarity, the first APN type can be marked as an ambiguous type. Here, a third prompt message can be displayed on the display device, wherein the third prompt message is used to indicate that the first configuration information was not saved because the first APN type is an ambiguous type.
[0069] Optionally, the first APN type may include one or more APN types. When the first APN type includes multiple APN types, different APN types may produce different correction results. In this case, the corresponding prompt information can be displayed simultaneously based on the correction result of each first APN type. That is, the first prompt information, the second prompt information, and the third prompt information can be displayed simultaneously through the display device.
[0070] By displaying a second prompt to the user indicating a save failure, this embodiment effectively prevents the saving of invalid configuration information, avoids network connection problems caused by configuration errors, and protects the user's right to know.
[0071] In one exemplary embodiment, the method further includes: responding to a received network connection request, initiating a network connection using a second access point via an IoT card, wherein the network connection request is used to request a network connection via the IoT card, and the APN type in the configuration parameters of the second access point is a third APN type; if the network connection is abnormal and a third access point with a normal network connection exists, adding the third APN type as an APN type in the configuration parameters of the third access point to obtain updated configuration parameters of the third access point; and re-initiating a network connection using the third access point via the IoT card according to the updated configuration parameters of the third access point.
[0072] In this embodiment, a user can trigger a network connection request to initiate a network connection using a specific access point. This specific access point can be a second access point, which can be the first access point mentioned above, or a different access point. The network connection request can be triggered before or after configuring the first access point; this embodiment does not impose any limitations on this.
[0073] For terminal devices, in response to the received network connection request, a network connection is initiated using the second access point via the IoT SIM card. Here, the Access Point Name APN type in the configuration parameters of the second access point is a third APN type. Initiating a network connection using the second access point via the IoT SIM card attempts to achieve the corresponding function of the third APN type through the second access point. If an anomaly occurs when using the second access point for network connection, other access points with normal network connections can be queried. Using these other access points with normal network connections can improve the success rate of the network connection. These other access points with normal network connections can be third access points.
[0074] Since different APN types correspond to different network functions, the APN type of the second access point can be added to the APN type of the third access point. That is, the third APN type can be added as an APN type in the configuration parameters of the third access point. This allows the network functions that the second access point originally intended to perform to be realized through the third access point, which helps to reduce the impact on network functions.
[0075] Here, the third APN type can belong to the group of APN types mentioned above, but the network connection initiated via the IoT card using the second access point is abnormal. The reason for the network connection abnormality may be that some parameters in the configuration parameters of the second access point are configured incorrectly, for example... Figure 3As shown, APN configuration includes, but is not limited to, the configuration of parameters such as MCC, MNC, authentication type, APN type, APN protocol, and APN roaming protocol. An error in configuring any of these parameters may lead to network connection problems for the second access point. Furthermore, since the third access point's network connection is normal, it can be assumed that all its configuration parameters are correctly configured. Therefore, network connection can be established using the correctly configured parameters of the third access point. The third access point can be the first access point mentioned above, or it can be another access point different from the first access point. Since the second and third access points are different access points, if one access point is the first access point, the other access point must be a different access point.
[0076] Since different access points serve different purposes, and their functions can be categorized and guided by APN type, to avoid affecting the original function of the second access point, a third APN type can be added as an APN type in the configuration parameters of the third access point. This results in updated configuration parameters for the third access point, allowing it to perform the original function of the second access point. Optionally, if the configuration parameters of the third access point already include a third APN type, the updated configuration parameters can be the same as those before the update. To do this, first search for the APN type in the configuration parameters of the third access point. If the third APN type is found, the network connection can be re-initiated using the IoT SIM card according to the third access point's configuration parameters. If not found, then the step of adding the third APN type of the second access point as an APN type in the configuration parameters of the third access point is performed. Alternatively, you can directly execute the step of adding the third APN type of the second access point as one of the APN types in the configuration parameters of the third access point. If the APN type in the configuration parameters of the third access point is duplicated, you can remove the duplicates. Alternatively, you can keep the duplicate APN types and remove the duplicates by iterating through the configuration parameters of all configured access points. As long as you can ensure that the configuration parameters of the third access point include the third APN type, it is acceptable.
[0077] According to the updated configuration parameters of the third access point, a new network connection is initiated using the third access point via the IoT card. Here, since the updated configuration parameters of the third access point include the third APN type, the successful network connection of the third access point can replace the second access point and perform its function. Optionally, the updated configuration parameters of the third access point can be temporary. If the service corresponding to the third APN type subsequently connects to the network using the third access point without any issues, the updated configuration parameters can be written to a database. This database can be a database used to store configuration information of access points (including but not limited to the first and second access points) on the terminal device, i.e., the aforementioned specified database. When establishing a network connection, the access point configuration information can be retrieved from the database. After the updated configuration parameters of the third access point are written to the database, they can be permanently retained and retrieved at any time.
[0078] In this embodiment, when a network connection using an access point fails, querying other access points with normal network connections and using those access points to establish a network connection can improve the success rate of the network connection. Furthermore, adding the APN type of the access point with the abnormal network connection to the APN type of other access points with normal network connections helps to reduce the impact on network functionality.
[0079] In one exemplary embodiment, the first APN type is not the default type. Here, the default type is used for general internet access, with typical applications including web browsing, application updates, and email. The default type is usually the preferred entry point for terminal devices to connect to the internet. It not only supports general data services but also automatically uses the default type access point for network connection when the user has not explicitly configured other types of APNs. This ensures that even without any special configuration by the user, the terminal device can access the internet and perform basic data interaction.
[0080] Optionally, after initiating a network connection using the second access point via the IoT card, the above method further includes: in the event of an abnormal network connection, querying the access points whose APN type is the default type in the configuration parameters; if at least one access point is found, detecting the network status of the access point among the at least one access point, wherein the network status of one of the at least one access point is used to indicate whether the network status of the corresponding access point is normal, and the third access point is one of the at least one access points whose network status is normal.
[0081] When users access network services, errors in input or missing configurations may cause network connection problems with non-default APN types (such as supl, mms, etc.), resulting in the inability of certain services (such as location services, multimedia messaging services, etc.) to function properly. To address this issue, this embodiment uses querying and using the default type APN to restore the connection, thereby correcting the configuration problems of non-default type APNs and ensuring the reliability and stability of various services.
[0082] In this embodiment, when a network connection is abnormal, the system queries the access points whose APN type is the default type in the configuration parameters. Optionally, the system can query the database used in the foregoing embodiment to store the configuration information of access points on the terminal device to find access points whose APN type is the default type in the configuration parameters. It should be noted that an access point can be configured with multiple APN types simultaneously. Here, the system can query access points whose APN type includes the default type, rather than access points whose APN type only includes the default type.
[0083] If at least one access point is found, the network status of the access point among the at least one access point is detected. The network status of one of the at least one access points is used to indicate whether the network status of the corresponding access point is normal. The third access point is one of the at least one access points whose network status is normal.
[0084] For example, taking a mobile terminal with an Android system as the terminal device, a DATA call can be initiated through the RIL (Radio Interface Layer) _SETUP_DATA_CALL command (which is used to set up and establish a data call). By obtaining the return result of the RIL_SETUP_DATA_CALL command carrying the default type APN, it can be confirmed whether the network status carrying the default type APN is normal.
[0085] Here, the third access point is one of at least one access point whose network connection status is normal. Optionally, if there are multiple access points with normal network connection status and the APN type in the configuration parameters is the default type, the network status of the above access points can be detected, and the access point with the best network status can be selected as the third access point; or, the network connection status of access points with the APN type in the configuration parameters being the default type can be detected sequentially, and the first access point confirmed to have a normal network connection status can be selected as the third access point.
[0086] This embodiment demonstrates how intelligently querying and switching to the default type of APN to restore network connection when a non-default type of APN experiences network connection failure. This helps improve the intelligence of network access information processing and also increases the success rate of network connection.
[0087] In an exemplary embodiment, after re-initiating a network connection using the third access point via an IoT card according to the updated configuration parameters of the third access point, the method further includes: if the network connection re-initiated via the third access point using the IoT card is normal, writing the second configuration information into a specified database, wherein the second configuration information is used to record the updated configuration parameters of the third access point.
[0088] Here, the configuration information of access points (including but not limited to second access points) on the terminal device can be stored in a database. When establishing a network connection, the configuration information of the access points (e.g., the second access point) can be retrieved from this database, which can be the aforementioned specified database.
[0089] When a network connection is re-initiated using the third access point via an IoT card according to the updated configuration parameters of the third access point, the updated configuration parameters used to initiate the network connection can be temporary and not saved to the designated database. The configuration parameters of the third access point in the designated database remain the same as before the update. After this connection ends, subsequent network connections cannot be initiated directly using the updated configuration parameters of the third access point. If the subsequent network connection of the second access point is still abnormal, the aforementioned steps of finding an access point with a normal network connection and adding the APN type need to be repeated, resulting in additional performance and time waste. Therefore, in this embodiment, if it is confirmed that the network connection re-initiated using the third access point can work normally, the updated configuration information of the third access point can be stored in the designated database.
[0090] Optionally, an association tag can be added to the second access point to associate it with the third access point. Subsequently, when a connection request using the second access point is received, the network connection can be established directly based on the association tag, retrieving the updated configuration parameters of the third access point from a specified database, thus improving network connection response speed.
[0091] In this embodiment, if the network connection re-initiated using the third access point via the IoT card is normal, the second configuration information is written to a designated database. This second configuration information records the updated configuration parameters of the third access point. Here, the configuration parameters of the third access point include, but are not limited to, all or part of the parameters used and verified in the network connection, such as the server address, authentication type, port, protocol, and APN type of the third access point. In addition to the configuration parameters of the third access point, the second configuration information may also include all or part of the data formats indicating the configuration file format (e.g., Extensible Markup Language (XML), JavaScript Object Notation (JSON), etc.), storage location, parameter update logic, etc., to provide an overall framework for the configuration of the third access point.
[0092] Optionally, such as Figure 5 As shown, if a non-default type APN (APN 1) fails to establish or the established network cannot access the internet (an example of a second access point), the system queries a default type APN (APN 2, an example of a third access point) that can connect to the network normally. APN 1's network access requests temporarily use APN 2. If APN 2 allows normal network access, the APN type of APN 1 is written to the configuration information of APN 2 in the specified database. For example, if the APN type of APN 1 is supl, and APN 1 can obtain an IP address normally, but the location service fails to connect to the server, a network service anomaly can be reported. If the default type APN 2 can connect to the internet normally, the supl type is temporarily added to the APN type configuration item of APN 2. If the location service subsequently connects to the internet using APN 2 without any anomalies, the APN type configuration item of APN 2 with the supl type added is written to the specified database for persistent storage.
[0093] In this embodiment, after confirming that the updated access point configuration parameters are valid for network connection without any issues, the updated access point configuration parameters are persistently saved in a designated database. This reduces performance and time wastage caused by repetitive operations, improves network connection response speed, and ensures long-term stable operation of network services.
[0094] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0096] According to another aspect of the embodiments of this application, a network access information processing apparatus is also provided. This apparatus can be used to implement the network access information processing method provided in the above embodiments, and details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0097] Figure 6 This is a structural block diagram of an optional network access information processing apparatus according to an embodiment of this application, such as... Figure 6 As shown, the network access information processing device includes:
[0098] The first acquisition unit 602 is used to acquire a configuration write request, wherein the configuration write request is used to request that the first configuration information be written to a specified database, the specified database is used to store the configuration information of the access point of the terminal device, the first configuration information is used to record the configuration parameters of the first access point, and the access point name APN type in the configuration parameters of the first access point is the first APN type;
[0099] The first execution unit 604 is used to perform a correction operation on the first APN type in the configuration parameters of the first access point using the set of APN types when the first APN type does not belong to a preset set of APN types.
[0100] The second execution unit 606 is used to update the first configuration information and write the updated first configuration information to the designated database if the first APN type in the configuration parameters of the first access point is successfully corrected.
[0101] It should be noted that the first acquisition unit 602 in this embodiment can be used to execute the above step S202, the first execution unit 604 in this embodiment can be used to execute the above step S204, and the second execution unit 606 in this embodiment can be used to execute the above step S206.
[0102] The embodiments provided in this application obtain a configuration write request, wherein the configuration write request is used to request that first configuration information be written to a specified database. The specified database is used to store the configuration information of the access point of the terminal device. The first configuration information is used to record the configuration parameters of the first access point. The access point name APN type in the configuration parameters of the first access point is a first APN type. If the first APN type does not belong to a preset set of APN types, a set of APN types is used to perform a correction operation on the first APN type in the configuration parameters of the first access point. If the correction of the first APN type in the configuration parameters of the first access point is successful, the first configuration information is updated and the updated first configuration information is written to the specified database. This solves the technical problem of low network access success rate in the network access information processing methods of related technologies and improves the network access success rate.
[0103] In one exemplary embodiment, the APN type in the configuration parameters of the first access point is indicated by the APN type field of the first configuration information. The device further includes at least one of the following: a first conversion unit, configured to, after obtaining the configuration write request, convert the symbols in the APN type field of the first configuration information in the first language format to symbols in the second language format if the APN type field of the first configuration information contains symbols in the first language format, wherein the first language format and the second language format are different formats, and the second language format is a specified language format used to record the APN type; a third execution unit, configured to, if the APN type field of the first configuration information contains a specified interval symbol, split the APN type field of the first configuration information into at least two sub-APN type fields according to the specified interval symbol, and update the APN type field of the first configuration information to the at least two sub-APN type fields, wherein the specified interval symbol is a symbol used to separate APN type fields corresponding to different APN types; a fourth execution unit, configured to, if the APN type field of the first configuration information contains spaces, delete spaces in the APN type field of the first configuration information; and a second conversion unit, configured to, if the APN type field of the first configuration information contains uppercase characters, convert uppercase characters in the APN type field of the first configuration information to corresponding lowercase characters.
[0104] In an exemplary embodiment, the first execution unit includes: a calculation module, configured to calculate the similarity between the first APN type and each APN type in the set of APN types when the first APN type does not belong to the preset set of APN types, to obtain the similarity corresponding to each APN type; a correction module, configured to correct the first APN type in the configuration parameters of the first access point to the second APN type when there is a corresponding second APN type in the set of APN types with a similarity greater than or equal to a specified similarity threshold; and a marking module, configured to mark the first APN type in the configuration parameters of the first access point as an invalid type when there is no corresponding APN type in the set of APN types with a similarity greater than or equal to the specified similarity threshold.
[0105] In one exemplary embodiment, the correction module includes: a display submodule, configured to display a first prompt message via a display device, wherein the first prompt message is configured to prompt whether it is permissible to correct the first APN type in the configuration parameters of the first access point to the second APN type; and a correction submodule, configured to correct the first APN type in the configuration parameters of the first access point to the second APN type upon receiving a correction permission instruction corresponding to the first prompt message.
[0106] In one exemplary embodiment, the apparatus further includes a display unit, configured to display a second prompt message via a display device after the first APN type in the configuration parameters of the first access point is marked as an invalid type, wherein the second prompt message is used to indicate that the first configuration information was not saved because the first APN type is an invalid type.
[0107] In one exemplary embodiment, the device further includes: a first initiating unit, configured to initiate a network connection using a second access point via an IoT card in response to a received network connection request, wherein the network connection request is for requesting a network connection via the IoT card, and the APN type in the configuration parameters of the second access point is a third APN type; an adding unit, configured to add the third APN type as an APN type in the configuration parameters of the third access point when there is an abnormality in the network connection and there is a third access point with a normal network connection, thereby obtaining updated configuration parameters of the third access point; and a second initiating unit, configured to re-initiate a network connection using the third access point via the IoT card according to the updated configuration parameters of the third access point.
[0108] In one exemplary embodiment, the third APN type is not the default type. The device further includes: a query unit, configured to query, in the event of an abnormal network connection after initiating a network connection using the second access point via the IoT card, an access point in the configuration parameters whose APN type is the default type; and a detection unit, configured to detect the network status of at least one access point when at least one access point is found, wherein the network status of one of the at least one access point is used to indicate whether the network status of the corresponding access point is normal, and the third access point is the access point among the at least one access point whose network status is normal.
[0109] In one exemplary embodiment, the apparatus further includes a writing unit, configured to write second configuration information into the designated database after the network connection is re-initiated using the third access point via the IoT card according to the updated configuration parameters of the third access point, and the network connection re-initiated using the third access point via the IoT card is normal, wherein the second configuration information is used to record the updated configuration parameters of the third access point.
[0110] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0111] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the steps in any of the above method embodiments when it is run.
[0112] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, ROMs, RAMs, portable hard drives, magnetic disks, or optical disks.
[0113] According to another aspect of the embodiments of this application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor is configured to perform the steps of any of the method embodiments described above via the computer program. In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0114] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0115] According to another aspect of the embodiments of this application, a computer program product is also provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit 701, it performs various functions provided in the embodiments of this application. The sequence numbers of the embodiments of this application above are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0116] Figure 7 A schematic block diagram of a computer system architecture for implementing embodiments of the present application is shown. Figure 7 As shown, the computer system 700 includes a Central Processing Unit (CPU) 701, which performs various appropriate actions and processes based on programs stored in ROM 702 or loaded into RAM 703 from storage section 708. Random access memory 703 also stores various programs and data required for system operation. The CPU 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.
[0117] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card, such as a local area network card or modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0118] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit 701, it performs various functions defined in the system of this application.
[0119] It should be noted that, Figure 7 The computer system 700 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0120] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0121] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for processing network access information, characterized in that, include: Obtain a configuration write request, wherein the configuration write request is used to request that first configuration information be written to a specified database, the specified database is used to store the configuration information of the access point of the terminal device, the first configuration information is used to record the configuration parameters of the first access point, and the access point name APN type in the configuration parameters of the first access point is the first APN type; If the first APN type does not belong to a preset set of APN types, the first APN type in the configuration parameters of the first access point is corrected using the set of APN types. If the first APN type in the configuration parameters of the first access point is successfully corrected, the first configuration information is updated and the updated first configuration information is written to the designated database.
2. The method according to claim 1, characterized in that, The APN type in the configuration parameters of the first access point is indicated by the APN type field of the first configuration information; After obtaining the configuration write request, the method further includes at least one of the following: If the APN type field of the first configuration information contains symbols in a first language format, the symbols in the first language format in the APN type field of the first configuration information are converted into symbols in a second language format, wherein the first language format and the second language format are different formats, and the second language format is the specified language format used to record the APN type; If the APN type field of the first configuration information contains a specified interval symbol, the APN type field of the first configuration information is split into at least two sub-APN type fields according to the specified interval symbol, and the APN type field of the first configuration information is updated to the at least two sub-APN type fields. The specified interval symbol is a symbol used to separate APN type fields corresponding to different APN types. If the APN type field of the first configuration information contains spaces, delete the spaces in the APN type field of the first configuration information; If the APN type field of the first configuration information contains uppercase characters, the uppercase characters in the APN type field of the first configuration information are converted to the corresponding lowercase characters.
3. The method according to claim 1, characterized in that, The step of performing a correction operation on the first APN type in the configuration parameters of the first access point using the set of APN types includes: If the first APN type does not belong to the preset set of APN types, calculate the similarity between the first APN type and each APN type in the set of APN types to obtain the similarity corresponding to each APN type; If, in the set of APN types, there exists a second APN type with a similarity greater than or equal to a specified similarity threshold, the first APN type in the configuration parameters of the first access point is corrected to the second APN type. If there is no APN type in the set of APN types with a similarity greater than or equal to the specified similarity threshold, the first APN type in the configuration parameters of the first access point will be marked as an invalid type.
4. The method according to claim 3, characterized in that, The step of correcting the first APN type in the configuration parameters of the first access point to the second APN type includes: The first prompt information is displayed on the display device, wherein the first prompt information is used to prompt whether it is allowed to correct the first APN type in the configuration parameters of the first access point to the second APN type; Upon receiving a correction permission instruction corresponding to the first prompt information, the first APN type in the configuration parameters of the first access point is corrected to the second APN type.
5. The method according to claim 3, characterized in that, After marking the first APN type in the configuration parameters of the first access point as an invalid type, the method further includes: The second prompt message is displayed on the display device, wherein the second prompt message is used to indicate that the first configuration information was not saved because the first APN type is invalid.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to the received network connection request, a network connection is initiated using a second access point via an IoT card, wherein the network connection request is used to request a network connection via the IoT card, and the APN type in the configuration parameters of the second access point is a third APN type; If there is an abnormal network connection but there is a third access point with a normal network connection, the third APN type is added as an APN type in the configuration parameters of the third access point to obtain the updated configuration parameters of the third access point. According to the updated configuration parameters of the third access point, the network connection is re-initiated using the third access point via the IoT card.
7. The method according to claim 6, characterized in that, The third APN type is not the default type; After initiating a network connection via the second access point using the IoT card, the method further includes: In the event of a network connection anomaly, query the access point whose APN type in the configuration parameters is the default type; If at least one access point is found, the network status of one of the access points is detected. The network status of one of the access points indicates whether the network status of the corresponding access point is normal. The third access point is one of the at least one access points whose network status is normal.
8. The method according to claim 6, characterized in that, After re-initiating a network connection using the third access point via the IoT card according to the updated configuration parameters of the third access point, the method further includes: If the network connection re-initiated using the third access point via the IoT card is normal, the second configuration information is written into the designated database, wherein the second configuration information is used to record the updated configuration parameters of the third access point.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.