A network access method and related device

By using the first CID and the second CID in the SIM card to obtain the account opening information of the APN, determine the APN that meets the user's needs, and switch the APN when the service is idle, solving the problem of poor APN selection in the prior art and improving the network Efficiency and user experience.

CN116828562BActive Publication Date: 2024-12-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310787223.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-28
Publication Date
2024-12-27
Estimated Expiration
2040-03-28

AI Technical Summary

Technical Problem

In the prior art, the SIM card selects an APN through the polling method when connecting to the network, which may result in the connected APN not having the best Internet access rate or the lowest Internet access fee, affecting the user's Internet access experience.

Method used

The first CID and the first APN access network to obtain account opening information, and then obtain account opening information of other APNs through the second CID. The second APN is determined based on the account opening information to meet user needs, improve the Internet experience, and switch the APN when the service is idle to reduce the impact.

Benefits of technology

It improves the efficiency of network transmission and reduces the cost of accessing the Internet, improves the user's online experience, and reduces the impact of the APN determination process on service data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116828562B_ABST
    Figure CN116828562B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a network access method and related devices, the method comprising: accessing the network through a first packet data protocol context identifier CID and a first APN among multiple access point names APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each ANP includes at least one of the network rate and network charges of the network provided by each APN; obtaining the account opening information corresponding to the first APN; obtaining the account opening information corresponding to at least one APN among the multiple APNs except the first APN through a second CID; determining the second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN; accessing the network through the first CID and the second APN. By adopting the embodiment of the present application, it is possible to determine an APN that meets the needs to access the network, thereby improving the user's Internet experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network access method and related devices. Background Art

[0002] With the advancement of the times and technology, the demand for terminal devices and network information has increased dramatically, and mobile communications and the Internet have become the business areas with the greatest development potential and market prospects today. In the process of mobile communications and Internet services, the subscriber identification module (SIM) card carries the operator's code resources and is also the identity of terminal devices, such as user equipment (UE) and Internet of Things (IOT) devices, to access the wireless network. At the same time, it can also provide secure communication and storage services, and can carry and process various value-added applications. Therefore, with the development of mobile communications and the Internet industry, the application and development of SIM cards are getting faster and faster. It has been more widely used in finance, logistics, home furnishing, etc., and also provides seamless information processing capabilities for the majority of users.

[0003] Commonly used SIM cards include ordinary SIM cards and IoT cards. Ordinary SIM cards are communication cards provided by telecom operators for individual users, mainly used in mobile phones, while IoT cards are communication access cards provided by telecom operators for IoT enterprise users, mainly used in IoT devices. Whether it is an ordinary SIM card or an IoT card, when connecting to the network, you need to configure an access point name (APN) to connect to the network. APN determines the access method used by electronic devices to access the network. Commonly used access point names include China Mobile Network (CMNET), China Telecom Internet (CTNET), etc.

[0004] When an electronic device needs to access the network, it can select an APN through polling. The specific process of the polling scheme is that each time you need to connect to the Internet, the APN corresponding to the SIM card is polled in the order in the database to try, find an APN that can access the Internet, use this APN to access the Internet, and stop polling. Since the polling query scheme does not continue to search after finding the APN, the APN used when connecting to the network may not have the best Internet speed, or may not have the lowest rate, which makes it difficult to meet user needs and affects the user's Internet experience. Summary of the invention

[0005] The embodiment of the present application discloses a network access method and related devices, which can determine an APN that meets the requirements to access the network and improve the user's Internet experience.

[0006] In a first aspect, an embodiment of the present application discloses a network access method, the method comprising: accessing a network through a first packet data protocol context identifier CID and a first APN among multiple access point names APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each ANP includes at least one of a network rate and a network fee of a network provided by each APN;

[0007] Obtain the account opening information corresponding to the first APN;

[0008] Acquire account opening information corresponding to at least one APN other than the first APN among the multiple APNs through the second CID;

[0009] Determine a second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN;

[0010] Access the network through the first CID and the second APN.

[0011] In the above method, the network is first accessed through the first CID and the first APN dial-up to obtain the account opening information of the first APN, and then the account opening information of the remaining APNs is obtained through the second CID, so as to determine the APN that meets the needs to access the network according to the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the process of determining the APN on the service data transmission.

[0012] In a possible implementation of the first aspect, determining the second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN includes:

[0013] Determine an APN with the fastest Internet access speed or the lowest Internet access fee among at least one APN according to account opening information corresponding to at least one APN;

[0014] If the account opening information corresponding to the first APN and the account opening information of the APN with the fastest Internet speed or the APN with the lowest Internet charges indicate that the APN with the fastest Internet speed or the APN with the lowest Internet charges has a faster Internet speed or a lower Internet charge than the first APN, then the APN with the fastest Internet speed or the APN with the lowest Internet charges is determined to be the second APN.

[0015] It can be seen that, when the account opening information includes the Internet speed, the APN with the fastest Internet speed among multiple APNs can be determined as the second APN, thereby improving the efficiency of data transmission through the network. Similarly, when the account opening information includes the network fee, the APN with the lowest Internet speed fee among multiple APNs can be determined as the second APN, thereby reducing Internet fees and saving Internet costs.

[0016] In another possible implementation of the first aspect, accessing the network through the first CID and the second APN includes:

[0017] If the amount of service data uploaded or downloaded through the network within the preset time period is less than or equal to the first threshold, the network is accessed through the first CID and the second APN.

[0018] It can be seen that when it is necessary to change the APN access network, the APN can be switched during the service idle period. The service idle period can be detected by the service data volume. When it is detected that the service data volume uploaded or downloaded through the network within a preset time period is less than or equal to the first threshold, it indicates that the current service is in the idle period. At this time, switching the APN may not affect the transmission of service data.

[0019] In another possible implementation of the first aspect, after determining the second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN, and before accessing the network through the first CID and the second APN, the method further includes:

[0020] Outputting a reminder message, where the reminder message is used to prompt the user to select a second APN to access the network;

[0021] An input selection operation for a second APN is received.

[0022] It can be seen that the user can be reminded to switch APN through the user interface. After the user confirms to switch APN, the network is switched to access the network through the second APN according to the user's wishes, which makes it easier for the user to decide whether to switch APN according to their own needs and wishes, thereby improving the user's Internet experience.

[0023] In another possible implementation of the first aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN.

[0024] In another possible implementation of the first aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN and at least one common APN.

[0025] In the above method, since the Internet of Things APN has lower charges than ordinary APNs, the APN determined from at least one Internet of Things APN and the second APN determined based on the account opening information are more suitable for accessing the network, thereby better meeting the needs of users.

[0026] In another possible implementation of the first aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN is any Internet of Things APN except the first APN.

[0027] In the above method, since the Internet of Things APN has a lower tariff than the ordinary APN, when the first APN is ordinary, one of the multiple APNs can be determined as the second APN. For example, the first Internet of Things APN is determined as the second APN, and the account opening information of the remaining APNs does not need to be obtained at this time, saving computing resources.

[0028] In a second aspect, an embodiment of the present application discloses a terminal, including a memory and a processor, wherein a computer program is stored in the memory, and the processor calls the computer program stored in the memory to perform the following operations:

[0029] Accessing a network through a first packet data protocol context identifier CID and a first APN among multiple access point names APN; wherein each of the multiple APNs has corresponding account opening information, and the account opening information corresponding to each ANP includes at least one of a network rate and a network fee of a network provided by each APN;

[0030] Obtain the account opening information corresponding to the first APN;

[0031] Acquire account opening information corresponding to at least one APN other than the first APN among the multiple APNs through the second CID;

[0032] Determine a second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN;

[0033] Access the network through the first CID and the second APN.

[0034] It can be seen that the above terminal first dials up to access the network through the first CID and the first APN, obtains the account opening information of the first APN, and then obtains the account opening information of the remaining APNs through the second CID, thereby determining the APN that meets the needs to access the network based on the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the process of determining the APN on the transmission of business data.

[0035] In a possible implementation of the second aspect, the processor is specifically configured to:

[0036] Determine an APN with the fastest Internet access speed or the lowest Internet access fee among at least one APN according to account opening information corresponding to at least one APN;

[0037] If the account opening information corresponding to the first APN and the account opening information of the APN with the fastest Internet speed or the APN with the lowest Internet charges indicate that the APN with the fastest Internet speed or the APN with the lowest Internet charges has a faster Internet speed or a lower Internet charge than the first APN, then the APN with the fastest Internet speed or the APN with the lowest Internet charges is determined to be the second APN.

[0038] It can be seen that, when the account opening information includes the Internet speed, the above terminal can determine the APN with the fastest Internet speed among multiple APNs as the second APN, thereby improving the efficiency of data transmission through the network. Similarly, when the account opening information includes the network fee, the APN with the lowest Internet speed fee among multiple APNs can be determined as the second APN, thereby reducing Internet fees and saving Internet costs.

[0039] In yet another possible implementation of the second aspect, the processor is specifically configured to:

[0040] If the amount of service data uploaded or downloaded through the network within the preset time period is less than or equal to the first threshold, the network is accessed through the first CID and the second APN.

[0041] It can be seen that when it is necessary to change the APN access network, the APN can be switched during the service idle period. The service idle period can be detected by the service data volume. When it is detected that the service data volume uploaded or downloaded through the network within a preset time period is less than or equal to the first threshold, it indicates that the current service is in the idle period. At this time, switching the APN may not affect the transmission of service data.

[0042] In yet another possible implementation of the second aspect, the terminal further includes a communication interface, and the processor is further configured to:

[0043] Outputting a reminder message through the communication interface, the reminder message is used to prompt to select a second APN to access the network;

[0044] A selection operation for a second APN is received through the communication interface.

[0045] It can be seen that the user can be reminded to switch APN through the user interface. After the user confirms to switch APN, the network is switched to access the network through the second APN according to the user's wishes, which makes it easier for the user to decide whether to switch APN according to their own needs and wishes, thereby improving the user's Internet experience.

[0046] In yet another possible implementation of the second aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN.

[0047] In yet another possible implementation of the second aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN and at least one common APN.

[0048] It can be seen that since the IoT APN has lower charges than ordinary APNs, the APN determined from at least one IoT APN and the second APN determined based on the account opening information is more suitable for accessing the network, thereby better meeting the needs of users.

[0049] In another possible implementation of the second aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN is any Internet of Things APN except the first APN.

[0050] It can be seen that since the IoT APN has a lower tariff than the ordinary APN, the terminal can determine an IoT APN among multiple APNs as the second APN when the first APN is ordinary. For example, the first IoT APN is determined as the second APN, and the account opening information of the remaining APNs can no longer be obtained, saving computing resources.

[0051] In a third aspect, an embodiment of the present application discloses a device, which includes: a first communication unit, configured to access a network through a first packet data protocol context identifier CID and a first APN in a plurality of access point names APN; wherein each of the plurality of APNs corresponds to account opening information, and the account opening information corresponding to each ANP includes at least one of a network rate and a network fee of a network provided by each APN;

[0052] The first communication unit is further used to obtain account opening information corresponding to the first APN;

[0053] A second communication unit is used to obtain account opening information corresponding to at least one APN other than the first APN among the multiple APNs through the second CID;

[0054] A determining unit, configured to determine a second APN according to account opening information corresponding to the first APN and account opening information corresponding to at least one APN;

[0055] The first communication unit is further used to access the network through the first CID and the second APN.

[0056] It can be seen that the above device first dials up to access the network through the first CID and the first APN, obtains the account opening information of the first APN, and then obtains the account opening information of the remaining APNs through the second CID, thereby determining the APN that meets the needs to access the network based on the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the process of determining the APN on the transmission of service data.

[0057] In a possible implementation manner of the third aspect, the determining unit is further configured to:

[0058] Determine an APN with the fastest Internet access speed or the lowest Internet access fee among at least one APN according to account opening information corresponding to at least one APN;

[0059] If the account opening information corresponding to the first APN and the account opening information of the APN with the fastest Internet speed or the APN with the lowest Internet charges indicate that the APN with the fastest Internet speed or the APN with the lowest Internet charges has a faster Internet speed or a lower Internet charge than the first APN, then the APN with the fastest Internet speed or the APN with the lowest Internet charges is determined to be the second APN.

[0060] It can be seen that, when the account opening information includes the Internet speed, the above device can determine the APN with the fastest Internet speed among multiple APNs as the second APN, thereby improving the efficiency of data transmission through the network. Similarly, when the account opening information includes the network fee, the APN with the lowest Internet speed fee among multiple APNs can be determined as the second APN, thereby reducing Internet fees and saving Internet costs.

[0061] In yet another possible implementation manner of the third aspect, the first communication unit is further configured to:

[0062] If the amount of service data uploaded or downloaded through the network within the preset time period is less than or equal to the first threshold, the network is accessed through the first CID and the second APN.

[0063] It can be seen that when it is necessary to change the APN access network, the APN can be switched during the service idle period. The service idle period can be detected by the service data volume. When it is detected that the service data volume uploaded or downloaded through the network within a preset time period is less than or equal to the first threshold, it indicates that the current service is in the idle period. At this time, switching the APN may not affect the transmission of service data.

[0064] In yet another possible implementation manner of the third aspect, the first communication unit is further configured to:

[0065] Outputting a reminder message, where the reminder message is used to prompt the user to select a second APN to access the network;

[0066] An input selection operation for a second APN is received.

[0067] It can be seen that the user can be reminded to switch APN through the user interface. After the user confirms to switch APN, the network is switched to access the network through the second APN according to the user's wishes, which makes it easier for the user to decide whether to switch APN according to their own needs and wishes, thereby improving the user's Internet experience.

[0068] In yet another possible implementation of the third aspect, the multiple APNs include common APNs and IoT APNs, and the at least one APN includes at least one IoT APN.

[0069] In another possible implementation of the third aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN and at least one common APN.

[0070] It can be seen that since the IoT APN has lower charges than ordinary APNs, the APN determined from at least one IoT APN and the second APN determined based on the account opening information is more suitable for accessing the network, thereby better meeting the needs of users.

[0071] In another possible implementation of the third aspect, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN is any Internet of Things APN except the first APN.

[0072] It can be seen that since the Internet of Things APN has a lower tariff than the ordinary APN, the above device can determine an Internet of Things APN among multiple APNs as the second APN when the first APN is ordinary. For example, the first Internet of Things APN is determined as the second APN, and the account opening information of the remaining APNs does not need to be obtained at this time, saving computing resources.

[0073] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, in which a computer program is stored. When the computer program runs on one or more processors, the method described in the first aspect or any possible implementation method of the first aspect is executed.

[0074] In a fifth aspect, an embodiment of the present application discloses a computer program product. When the computer program product runs on one or more processors, it can implement the method described in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] The following is an introduction to the drawings used in the embodiments of the present application.

[0076] Figure 1 It is a flowchart of a network access method provided by an embodiment of the present application;

[0077] Figure 2 is a schematic diagram of an APN provided in an embodiment of the present application;

[0078] Figure 3 It is a flowchart of a method for obtaining account opening information provided in an embodiment of the present application;

[0079] Figure 4 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0080] Figure 5 It is a structural schematic diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0081] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. It should be noted that in the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0082] The system architecture and business scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided by this application. A person of ordinary skill in the art will appreciate that, with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by this application are equally applicable to similar technical problems.

[0083] The following is a brief introduction to the relevant technologies and professional terms involved in this application to facilitate understanding.

[0084] 1. Access point name (APN)

[0085] APN is a parameter that must be configured when mobile phones and other terminal devices access the Internet. It determines the access method used by the terminal device to access the network. For terminal devices, there are many types of external networks that can be accessed, such as the Internet, wireless application protocol (WAP) websites, group enterprise internal networks, and industry-specific networks. Different APNs have different access ranges and access methods. The network side can use APN to distinguish which network the terminal device will access after activation, so as to facilitate the allocation of the IP of the corresponding network segment. That is, APN determines what kind of network the terminal device accesses through which access method. The Internet access speed and tariff information of networks accessed by different APNs are usually different.

[0086] 2. Packet Data Protocol (PDP)

[0087] The packet data protocol is a protocol used by terminal equipment when sending and receiving packet data. For example, in general packet radio service (GPRS), PDP is the protocol used by the GPRS interface.

[0088] If the terminal device requests to connect to an external PDN (such as the Internet, X.25, etc.), a PDP address corresponding to the PDN will be included in its subscription data. Generally speaking, a PDP address corresponds to a PDP context, which usually stores information about tunnel forwarding on the user plane, such as the user plane Internet protocol (IP) address of the gateway GPRS support node (GGSN), a tunnel identifier, and one or more of the quality of service (QoS).

[0089] A terminal device usually stores multiple PDP context identifiers (CIDs) for requesting one or more external PDNs.

[0090] See also Figure 1 , Figure 1 1 is a flow chart of a network access method provided in an embodiment of the present application, and the network access method includes at least the following steps:

[0091] Step S101: A terminal device accesses a network through a first CID and a first APN among multiple APNs.

[0092] Specifically, the terminal device is an electronic device with data receiving and sending capabilities, including one or more of network devices, communication devices, terminals, etc. For example, the terminal device can be a network device, such as a router, a bridge or a switch, etc., or various types of user equipment (UE), mobile phones, tablet computers (pad), desktop computers, headphones, speakers, etc., and can also include machine intelligence devices such as self-driving equipment, transportation safety equipment, virtual reality (VR) terminal equipment, augmented reality (AR) terminal equipment, machine type communication (MTC) equipment, industrial control equipment, remote medical equipment, smart grid equipment, smart city equipment, and can also include wearable devices (such as smart watches, smart bracelets, pedometers, etc.) and the like. Among them, these devices can be wired or wireless. In some technical scenarios, the name of the device with similar data transmission and reception capabilities may not be called terminal devices. However, for the convenience of description, electronic devices with data transmission and reception capabilities are collectively referred to as terminal devices in the embodiments of the present application.

[0093] The first CID can be the CID corresponding to the default PDN in the terminal device, and the first APN is the first APN that successfully accesses the network among multiple APNs. Generally speaking, multiple APNs are stored in the terminal device. After the power-on registration is successful, the network is connected in sequence through the polling scheme. The first APN that successfully accesses the network is the first APN.

[0094] Optionally, the multiple APNs may include at least one IoT APN and at least one common APN. The terminal may pre-store or be configured with an algorithm or unit module for identifying the APN category, or the terminal may pre-store a correspondence between the APN name and the type, and the APN name may be used to determine whether the APN is a common APN or an IoT APN. Generally speaking, common APNs may include one or more of China Mobile Network (CMNET), China Telecom Internet (CTNET), China Unicom Internet (3GNET), etc., while IoT APNs may carry IoT-related logos, such as "IoT Card 1".

[0095] See also Figure 2 , Figure 2 This is a schematic diagram of multiple APNs that may be obtained by a terminal device provided in an embodiment of the present application. For example, see area 201, where "46009" is an identity identifier or an identity identifier prefix of a SIM card, which can be used to find the corresponding APN. It can be seen that "46009" can correspond to three APNs, one of which is a common APN, namely "China Unicom 3gnet", and two are IoT APNs, namely "Unicom IoT Card 1" and "Unicom IoT Card 1".

[0096] Step S102: The terminal device obtains the account opening information corresponding to the first APN.

[0097] Specifically, the account opening information is information corresponding to the Internet service activated by the SIM card in the terminal device, which can also be called contract information. Among the above multiple APNs, each APN corresponds to account opening information, and the account opening information corresponding to each APN includes at least one of the network rate and network fee of the network provided by each APN.

[0098] Refer to Table 1, which is the account opening information corresponding to a possible APN provided in an embodiment of the present application, including the number, APN name, APN type, network speed and network fee, wherein one APN corresponds to one account opening information, such as China Unicom 3gnet, the corresponding network speed is 18 megabits per second (Mbps), and the network fee is 0.05 yuan / M.

[0099] Table 1 APN corresponding account opening information

[0100] SIM card identification APN Name APN Type Network speed Network charges 46009 China Unicom 3gnet Common APN 18Mbps 0.05 yuan / M 46009 China Unicom IoT Card 1 IoT APN 40Mbps 0.02 yuan / M 46009 China Unicom IoT Card 2 IoT APN 80Mbps 0.01 yuan / M

[0101] The terminal device accesses the network through the first CID and the first APN among multiple APNs, and can obtain the account opening information corresponding to the first APN. The account opening information of the first APN may include at least one of the Internet access speed and the Internet access fee.

[0102] Step S103: The terminal device obtains the account opening information of at least one APN among the multiple APNs except the first APN through the second CID.

[0103] Specifically, since the first CID is being used to access the network through the first APN, the terminal device can obtain the account opening information of other APNs among the multiple APNs except the first APN through the second CID.

[0104] Optionally, for other APNs, the terminal device can sequentially obtain information of multiple APNs through the second CID. Figure 3Taking the example of a terminal device acquiring two APNs other than the first APN through the second CID, the steps may include steps as shown in S311 to S314:

[0105] Step S311: The terminal device obtains the account opening information of APN2 through CID2.

[0106] Specifically, CID2 is a second CID stored in the terminal device, and APN2 is an APN other than the first APN in the multiple APNs. Optionally, the terminal device can perform dial-up networking through CID2 and APN2 by probing the PDN, and obtain the APN2 account opening information after networking.

[0107] Step S312: The terminal device releases CID2.

[0108] Specifically, after the terminal device obtains the account opening information through CID2, before obtaining the next APN through CID2, the occupied CID2 is released first.

[0109] Step S313: The terminal device obtains the account opening information of APN3 through CID2.

[0110] Optionally, the terminal device may obtain the account opening information of APN3 through CID2 by probing PDN.

[0111] Step S314: The terminal device releases CID2.

[0112] Optionally, for other APNs, account opening information of multiple APNs may also be obtained in the order of sequential detection.

[0113] Step S104: The terminal device determines the second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to the at least one APN.

[0114] Specifically, the terminal device may determine the second APN according to the account opening information of multiple APNs in the following ways:

[0115] Method 1: Determine the second APN based on the account opening information and / or the tariff information. For example, the terminal device may sort the multiple APNs from fast to slow according to the rate information in the account opening information, and determine the APN with the fastest rate as the second APN. For another example, the terminal device may sort the multiple APNs from low to high according to the tariff information in the account opening information, and determine the APN with the lowest rate as the second APN. For another example, the terminal device may determine the second APN through a preset algorithm based on the rate information and tariff information in the account opening information. For example, sort the multiple APNs from low to high according to the tariff, and select the APN with the highest rate from the N APNs with lower tariffs.

[0116] Method 2: Determine the second APN based on the APN type. Since the network rate of IoT APN is usually faster than that of ordinary APN, and the network fee is usually lower than that of ordinary APN, the terminal device can determine one of the IoT APNs as the second APN. Among them, determining the second APN by the type of APN includes at least the following solutions:

[0117] Solution 1: If there is at least one IoT APN among multiple APNs, and the first APN is a common APN, the terminal device can determine one of the at least one IoT APN as the second APN. For example, the terminal device determines the first IoT APN as the second APN. At this time, the terminal device may no longer obtain the account opening information of other APNs.

[0118] Optionally, when there are multiple IoT APNs, the terminal device may also compare the speeds and charges of the multiple IoT APNs, and determine the IoT APN with a faster speed and / or lower charge as the second APN.

[0119] Solution 2: If there are multiple IoT APNs among the multiple APNs, and the first APN is an IoT APN, the terminal device can determine one of the IoT APNs as the second APN. The terminal device can also compare the speeds and charges of multiple IoT APNs and determine the IoT APN with a faster speed and / or lower charges as the second APN.

[0120] Step S105: The terminal device accesses the network through the first CID and the second APN.

[0121] Specifically, since the second APN is an APN determined by the terminal device that better meets the user's needs, the terminal device uses the first CID and the second APN to access the network. Optionally, accessing the network through the first CID and the second APN may be as follows:

[0122] Case 1: The terminal device switches the APN during the service idle period and accesses the network through the first CID and the second APN. For example, the terminal device can detect whether it is currently in the service idle state, and if it is in the idle state, the APN is switched. For another example, the terminal device can detect the amount of service data currently being processed. If the amount of service data uploaded (or sent) or downloaded (or received) through the network within a preset period is less than or equal to a first threshold, the network is accessed through the first CID and the second APN. For example, the terminal device detects the amount of service data processed within 5 seconds (s). If the amount of data uploaded (or sent) or downloaded (or received) is less than 1 megabyte (M), it indicates that it is currently in the service idle period and the APN can be switched. In this case, the operation of switching the APN can reduce the impact on the normal operation of the terminal device and improve the operational stability of the terminal device.

[0123] In case 2, the terminal device outputs a reminder message through the user interface, switches the APN after receiving the user's confirmation operation, and accesses the network through the first CID and the second APN. In this case, after the terminal device determines the second APN, it outputs a reminder message through the first interface, and the reminder message is used to indicate to the user that it is recommended to access the network through the second APN. Correspondingly, the terminal device also receives an input confirmation operation for the second APN, and the confirmation operation is used to indicate that access to the network through the second APN is allowed, thereby accessing the network through the first CID and the second APN.

[0124] exist Figure 1 In the method shown, the terminal device first dials up to access the network through the first CID and the first APN, obtains the account opening information of the first APN, and then obtains the account opening information of the remaining APNs through the second CID, thereby determining the APN that meets the needs to access the network based on the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the APN determination process on service data transmission.

[0125] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0126] See also Figure 4 , Figure 4 is a schematic diagram of a terminal 40 provided in an embodiment of the present application, and the terminal 40 may be the above-mentioned Figure 1In the terminal device or a module in the terminal device in the embodiment shown, such as a chip or an integrated circuit, the terminal 40 may include a memory 401, a processor 402, and a communication interface 403. Further optionally, a bus 404 may be included, wherein the memory 401, the processor 402, and the communication interface 403 are connected via the bus 404.

[0127] The memory 401 is used to provide a storage space, and the storage space can store data such as an operating system and a computer program. The memory 401 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM).

[0128] The processor 402 is a module for performing arithmetic operations and logical operations, and may be one or a combination of multiple processing modules such as a central processing unit (CPU), a graphics processing unit (GPU), or a microprocessor unit (MPU).

[0129] The communication interface 403 is used to receive data sent from the outside and / or send data to the outside, and can be a wired link interface such as an Ethernet cable, or a wireless link (WIFI, Bluetooth, etc.) interface. Optionally, the communication interface can also include a transmitter (such as a radio frequency transmitter, etc.) coupled to the interface, or a receiver, etc.

[0130] The processor 402 in the terminal 40 is used to read the computer program code stored in the memory 401 and perform the following operations:

[0131] Accessing a network through a first packet data protocol context identifier CID and a first APN among multiple access point names APN; wherein each of the multiple APNs has corresponding account opening information, and the account opening information corresponding to each ANP includes at least one of a network rate and a network fee of a network provided by each APN;

[0132] Obtain the account opening information corresponding to the first APN;

[0133] Acquire account opening information corresponding to at least one APN other than the first APN among the multiple APNs through the second CID;

[0134] Determine a second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN;

[0135] Access the network through the first CID and the second APN.

[0136] It can be seen that the terminal 40 first dials up to access the network through the first CID and the first APN, obtains the account opening information of the first APN, and then obtains the account opening information of the remaining APNs through the second CID, thereby determining the APN that meets the needs to access the network based on the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the process of determining the APN on the service data transmission.

[0137] In a possible implementation manner, the processor is specifically configured to:

[0138] Determine an APN with the fastest Internet access speed or the lowest Internet access fee among at least one APN according to account opening information corresponding to at least one APN;

[0139] If the account opening information corresponding to the first APN and the account opening information of the APN with the fastest Internet speed or the APN with the lowest Internet charges indicate that the APN with the fastest Internet speed or the APN with the lowest Internet charges has a faster Internet speed or a lower Internet charge than the first APN, then the APN with the fastest Internet speed or the APN with the lowest Internet charges is determined to be the second APN.

[0140] It can be seen that, when the account opening information includes the Internet speed, the above terminal can determine the APN with the fastest Internet speed among multiple APNs as the second APN, thereby improving the efficiency of data transmission through the network. Similarly, when the account opening information includes the network fee, the APN with the lowest Internet speed fee among multiple APNs can be determined as the second APN, thereby reducing Internet fees and saving Internet costs.

[0141] In yet another possible implementation, the processor 402 is specifically configured to:

[0142] If the amount of service data uploaded or downloaded through the network within the preset time period is less than or equal to the first threshold, the network is accessed through the first CID and the second APN.

[0143] It can be seen that when it is necessary to change the APN access network, the APN can be switched during the service idle period. The service idle period can be detected by the service data volume. When it is detected that the service data volume uploaded or downloaded through the network within a preset time period is less than or equal to the first threshold, it indicates that the current service is in the idle period. At this time, switching the APN may not affect the transmission of service data.

[0144] In yet another possible implementation, the processor 402 is further configured to:

[0145] Outputting a reminder message through the communication interface 403, the reminder message is used to prompt to select the second APN to access the network;

[0146] An input selection operation for the second APN is received through the communication interface 403 .

[0147] It can be seen that the user can be reminded to switch APN through the user interface. After the user confirms to switch APN, the network is switched to access the network through the second APN according to the user's wishes, which makes it easier for the user to decide whether to switch APN according to their own needs and wishes, thereby improving the user's Internet experience.

[0148] In another possible implementation, the multiple APNs include common APNs and IoT APNs, and the at least one APN includes at least one IoT APN.

[0149] In another possible implementation, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN and at least one common APN.

[0150] It can be seen that since the IoT APN has lower charges than ordinary APNs, the APN determined from at least one IoT APN and the second APN determined based on the account opening information is more suitable for accessing the network, thereby better meeting the needs of users.

[0151] In another possible implementation, the multiple APNs include common APNs and IoT APNs, and the at least one APN is any IoT APN except the first APN.

[0152] It can be seen that since the Internet of Things APN has a lower tariff than the ordinary APN, when the first APN is ordinary, the terminal 40 can determine an Internet of Things APN among the multiple APNs as the second APN. For example, the first Internet of Things APN is determined as the second APN, and the account opening information of the remaining APNs does not need to be obtained at this time, saving computing resources.

[0153] See also Figure 5 , Figure 5is a schematic diagram of a structure of a device 50 provided in an embodiment of the present application, and the device 50 can be the above-mentioned Figure 1 The terminal device or a module in the terminal device in the embodiment shown. The apparatus 50 includes a first communication unit 501, a second communication unit 502 and a determination unit 503, wherein the description of each unit is as follows:

[0154] The first communication unit 501 is used to access the network through the first packet data protocol context identifier CID and the first APN in multiple access point names APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each ANP includes at least one of the network rate and network tariff of the network provided by each APN;

[0155] The first communication unit 501 is further used to obtain account opening information corresponding to the first APN;

[0156] The second communication unit 502 is used to obtain account opening information corresponding to at least one APN other than the first APN among the multiple APNs through the second CID;

[0157] A determining unit 503, configured to determine a second APN according to the account opening information corresponding to the first APN and the account opening information corresponding to at least one APN;

[0158] The first communication unit 501 is further configured to access the network through the first CID and the second APN.

[0159] It can be seen that the above device 50 first dials up to access the network through the first CID and the first APN, obtains the account opening information of the first APN, and then obtains the account opening information of the remaining APNs through the second CID, thereby determining the APN that meets the needs to access the network based on the account opening information, thereby improving the user's Internet experience. Furthermore, since the account opening information of other APNs is obtained through the second CID after accessing the network through the first CID and the first APN, it will not consume too much time before accessing the network, thereby reducing the impact of the process of determining the APN on the transmission of service data.

[0160] It should be noted here that the division of the above-mentioned multiple units is only a logical division based on function, and does not serve as a limitation on the specific structure of the device 50. In a specific implementation, some functional modules may be subdivided into more small functional modules, and some functional modules may be combined into one functional module, but no matter whether these functional modules are subdivided or combined, the general process executed by the device 50 during the communication process is the same. Usually, each unit corresponds to its own program code (or program instruction), and when the program codes corresponding to these units are run on the processor, the unit executes the corresponding process to achieve the corresponding function.

[0161] In a possible implementation manner, the determining unit 503 is further configured to:

[0162] Determine an APN with the fastest Internet access speed or the lowest Internet access fee among at least one APN according to account opening information corresponding to at least one APN;

[0163] If the account opening information corresponding to the first APN and the account opening information of the APN with the fastest Internet speed or the APN with the lowest Internet charges indicate that the APN with the fastest Internet speed or the APN with the lowest Internet charges has a faster Internet speed or a lower Internet charge than the first APN, then the APN with the fastest Internet speed or the APN with the lowest Internet charges is determined to be the second APN.

[0164] It can be seen that, when the account opening information includes the Internet access rate, the above device 50 can determine the APN with the fastest Internet access rate among multiple APNs as the second APN, thereby improving the efficiency of data transmission through the network. Similarly, when the account opening information includes network charges, the APN with the lowest Internet access rate among multiple APNs can be determined as the second APN, thereby reducing Internet access fees and saving Internet access costs.

[0165] In yet another possible implementation, the first communication unit 501 is further configured to:

[0166] If the amount of service data uploaded or downloaded through the network within the preset time period is less than or equal to the first threshold, the network is accessed through the first CID and the second APN.

[0167] It can be seen that when it is necessary to change the APN access network, the APN can be switched during the service idle period. The service idle period can be detected by the service data volume. When it is detected that the service data volume uploaded or downloaded through the network within a preset time period is less than or equal to the first threshold, it indicates that the current service is in the idle period. At this time, switching the APN may not affect the transmission of service data.

[0168] In yet another possible implementation, the first communication unit 501 is further configured to:

[0169] Outputting a reminder message, where the reminder message is used to prompt the user to select a second APN to access the network;

[0170] An input selection operation for a second APN is received.

[0171] It can be seen that the above-mentioned device 50 can remind the user to switch APN through the user interface. After the user confirms to switch APN, it switches to accessing the network through the second APN according to the user's wishes, so that the user can decide whether to switch APN according to their own needs and wishes, thereby improving the user's Internet experience.

[0172] In another possible implementation, the multiple APNs include common APNs and IoT APNs, and the at least one APN includes at least one IoT APN.

[0173] In another possible implementation, the multiple APNs include common APNs and Internet of Things APNs, and the at least one APN includes at least one Internet of Things APN and at least one common APN.

[0174] It can be seen that since the IoT APN has lower charges than ordinary APNs, the APN determined from at least one IoT APN and the second APN determined based on the account opening information is more suitable for accessing the network, thereby better meeting the needs of users.

[0175] In another possible implementation, the multiple APNs include common APNs and IoT APNs, and the at least one APN is any IoT APN except the first APN.

[0176] It can be seen that since the Internet of Things APN has a lower tariff than the ordinary APN, when the first APN is ordinary, the above device 50 can determine an Internet of Things APN among multiple APNs as the second APN. For example, the first Internet of Things APN is determined as the second APN, and the account opening information of the remaining APNs does not need to be obtained at this time, saving computing resources.

[0177] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed on one or more processors, Figure 1 The method described in the illustrated embodiment.

[0178] The embodiment of the present application also provides a chip system, which includes at least one processor, a memory and an interface circuit, wherein the interface circuit is used to provide information input / output for the at least one processor, and at least one memory stores a computer program, and when the computer program is run on one or more processors, the execution Figure 1 The method described in the illustrated embodiment.

[0179] The present application also provides a computer program product, which includes: a computer-readable storage medium, which then contains a computer-readable program code, and the computer-readable program code is executed by one or more processors to execute Figure 1 The method described in the illustrated embodiment.

[0180] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application can be implemented in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted via a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.

[0181] The steps in the method embodiments of the present application can be adjusted in order, combined, and deleted according to actual needs.

[0182] The modules in the device embodiment of the present application can be merged, divided and deleted according to actual needs.

[0183] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. A network access method, characterized in that: Applied to terminals, including: After the terminal is powered on and registered successfully, the terminal accesses the network in sequence with multiple access point names APN in a polling manner through the first packet data protocol context identifier CID, and the first APN that successfully accesses the network is the first APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each APN includes at least one of the network rate and network tariff of the network provided by each APN, and the account opening information also includes the APN type; In the process that the terminal is in a network access state, dial-up networking is performed in sequence through the second CID and other APNs to successively obtain account opening information of each APN in the other APNs, the other APNs are APNs other than the first APN in the multiple APNs, and after obtaining the account opening information of one APN in the other APNs, the occupied second CID is released so as to obtain the account opening information of the next APN in the other APNs through the second CID; A second APN is selected according to the account opening information corresponding to the multiple APNs, wherein if there is at least one IoT APN among the multiple APNs and the first APN is a common APN, one of the at least one IoT APN is determined as the second APN; if there are multiple IoT APNs among the multiple APNs and the first APN is an IoT APN, an IoT APN with the fastest speed and / or the lowest tariff among the multiple IoT APNs is determined as the second APN; Control the first CID and the first APN access network to switch to the second APN access network.

2. The method according to claim 1, characterized in that After selecting the second APN according to the account opening information corresponding to the multiple APNs, and before controlling the first CID and the first APN to switch access to the network to the second APN, the method further includes: Outputting a reminder message, where the reminder message is used to prompt selecting the second APN to access the network; An input selection operation for the second APN is received.

3. The method according to claim 1 or 2, characterized in that: The accessing a network through the first CID and the second APN includes: If the amount of service data uploaded or downloaded through the network within a preset time period is less than or equal to a first threshold, accessing the network through the first CID and the second APN.

4. A terminal, characterized in that: The terminal includes a memory and a processor, the memory stores a computer program, and the processor calls the computer program stored in the memory to perform the following operations: After the terminal is powered on and registered successfully, the terminal accesses the network in sequence with multiple access point names APN in a polling manner through the first packet data protocol context identifier CID, and the first APN that successfully accesses the network is the first APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each APN includes at least one of the network rate and network tariff of the network provided by each APN, and the account opening information also includes the APN type; In the process that the terminal is in a network access state, dial-up networking is performed in sequence through the second CID and other APNs to successively obtain account opening information of each APN in the other APNs, the other APNs are APNs other than the first APN in the multiple APNs, and after obtaining the account opening information of one APN in the other APNs, the occupied second CID is released so as to obtain the account opening information of the next APN in the other APNs through the second CID; A second APN is selected according to the account opening information corresponding to the multiple APNs, wherein if there is at least one IoT APN among the multiple APNs and the first APN is a common APN, one of the at least one IoT APN is determined as the second APN; if there are multiple IoT APNs among the multiple APNs and the first APN is an IoT APN, an IoT APN with the fastest speed and / or the lowest tariff among the multiple IoT APNs is determined as the second APN; Control the first CID and the first APN access network to switch to the second APN access network.

5. The terminal according to claim 4, characterized in that: The terminal further includes a communication interface, and the processor is further configured to: Outputting a reminder message through the communication interface, wherein the reminder message is used to prompt the user to select the second APN to access the network; A selection operation for the second APN is received through the communication interface.

6. The terminal according to claim 4 or 5, characterized in that: In terms of controlling the first CID and the first APN access network to switch to the second APN access network, the processor is specifically used to control the first CID and the first APN access network to switch to the second APN access network if the amount of service data uploaded or downloaded through the network within a preset time period is less than or equal to a first threshold.

7. A device, characterized in that: Applied to terminals, including: A first communication unit is used to access the network in sequence with multiple access point names APN in a polling manner through a first packet data protocol context identifier CID after the terminal is successfully powered on and registered, and the first APN that successfully accesses the network is the first APN; wherein each of the multiple APNs corresponds to account opening information, and the account opening information corresponding to each APN includes at least one of a network rate and a network tariff of the network provided by each APN, and the account opening information also includes an APN type; a second communication unit, configured to, during the process in which the terminal is in a network access state, sequentially dial up networking through a second CID and other APNs to obtain account opening information of each APN in the other APNs, wherein the other APNs are APNs other than the first APN in the multiple APNs, and after obtaining the account opening information of one APN in the other APNs, release the occupied second CID so as to obtain the account opening information of the next APN in the other APNs through the second CID; A determination unit, configured to select a second APN according to the account opening information corresponding to the multiple APNs, wherein if there is at least one IoT APN among the multiple APNs and the first APN is a common APN, one of the at least one IoT APN is determined as the second APN; if there are multiple IoT APNs among the multiple APNs and the first APN is an IoT APN, the IoT APN with the fastest rate and / or the lowest tariff among the multiple IoT APNs is determined as the second APN; The first communication unit is further used to control the first CID and the first APN access network to switch to the second APN access network.

8. The device according to claim 7, characterized in that The first communication unit is further configured to: Outputting a reminder message, where the reminder message is used to prompt selecting the second APN to access the network; An input selection operation for the second APN is received.

9. The device according to claim 7 or 8, characterized in that In the controlling the first CID and the first APN access network to switch to the second APN access network, the first communication unit is specifically used to: If the amount of service data uploaded or downloaded through the network within a preset time period is less than or equal to a first threshold, the first CID and the first APN access network are controlled to switch to the second APN access network.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run on one or more processors, the method according to any one of claims 1 to 3 is executed.