CN110708740A - Network access method and device, and storage medium - Google Patents

Network access method and device, and storage medium Download PDF

Info

Publication number
CN110708740A
CN110708740A CN201910890960.2A CN201910890960A CN110708740A CN 110708740 A CN110708740 A CN 110708740A CN 201910890960 A CN201910890960 A CN 201910890960A CN 110708740 A CN110708740 A CN 110708740A
Authority
CN
China
Prior art keywords
priority
identity
network environment
access point
environment parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910890960.2A
Other languages
Chinese (zh)
Inventor
姚坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910890960.2A priority Critical patent/CN110708740A/en
Publication of CN110708740A publication Critical patent/CN110708740A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network access method, which comprises the following steps: acquiring a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name; searching for the identity identifier in the first priority corresponding relation by using the current network environment parameter; when the first identity identification corresponding to the current network environment parameter is found from the first priority corresponding relation, the name of a first priority access point represented by the first identity identification is obtained; and performing network access on the first user card by using the first priority access point name.

Description

Network access method and device, and storage medium
Technical Field
The embodiment of the application relates to the technical field of electronic communication, in particular to a network access method and device and a storage medium.
Background
The Access Point Name (APN) is a parameter that must be configured when the terminal accesses the internet, and determines which Access method the terminal accesses the network through.
In the prior art, for a Subscriber Identity Module (SIM) card, the terminal only allows setting a priority APN. An APN has two attributes, the Mobile Country Code (MCC) and the Mobile Network Code (MNC). When the terminal selects the APN on the internet, whether the MCC and MNC of the current network environment are the same as those of the MCC and MNC in the priority APN set by the user is judged, if so, the priority APN is used for network access, if not, the APN with the same MCC and MNC is selected from all stored APNs for network access, and the selected APN is set as the priority APN to cover the priority APN set by the user, so that the network access efficiency is low.
Disclosure of Invention
The embodiment of the application provides a network access method, a device and a storage medium, which aim at the situation that a user card stores corresponding relations of different priority access point names corresponding to different network environment parameters, so that in the process of network access, the priority access point names do not need to be additionally reset and can be directly searched, the network access efficiency is improved, and the situation that the network cannot be accessed because the priority access point names are covered is avoided.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a network access method, which comprises the following steps:
acquiring a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name;
searching for an identity identifier in the first priority corresponding relation by using the current network environment parameter;
when a first identity corresponding to the current network environment parameter is found from the first priority corresponding relation, acquiring a first priority access point name represented by the first identity;
and performing network access on the first user card by using the first priority access point name.
In the above method, the obtaining a first priority correspondence corresponding to the first user card includes:
acquiring a first user card identifier corresponding to the first user card;
and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
In the above method, after the identifier is found in the first priority mapping relationship by using the current network environment parameter, the method further includes:
when the identity corresponding to the current network environment parameter is not found in the first priority corresponding relation, at least one access point name with the same network environment parameter as the current network environment parameter is selected from a preset access point name library;
and sequentially utilizing each access point name in the at least one access point name to perform network access on the first user card until the first user card is detected to be successfully accessed into the network.
In the above method, the network access is performed on the first user card sequentially using each of the at least one access point name until it is detected that the first user card successfully accesses the network, and the method further includes:
acquiring a second identity mark representing the name of a second priority access point; the second priority access point name is an access point name which is used for realizing the successful network access of the first user card in the at least one access point name;
and correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
In the above method, after obtaining the first priority correspondence corresponding to the first user card, the method further includes:
searching for the identity identifier in the first priority corresponding relation by using the received network environment parameter to be added;
and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relationship, correspondingly storing the network environment parameter to be added and the received third identity representing the name of a third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relationship.
In the above method, after the identifier is found in the first priority mapping relationship by using the received network environment parameter to be added, the method further includes:
and when the identity corresponding to the network environment parameter to be added is found in the first priority corresponding relation, replacing the found identity with the third identity.
An embodiment of the present application provides a network access apparatus, where the apparatus includes:
the first acquisition module is used for acquiring a first priority corresponding relation corresponding to the first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between a preset network environment parameter and the identity of a priority access point;
the identifier searching module is used for searching for the identity identifier in the first priority corresponding relation by using the current network environment parameter;
a second obtaining module, configured to obtain a first priority access point name represented by a first identity identifier when the first identity identifier corresponding to the current network environment parameter is found from the first priority correspondence;
and the network access module is used for accessing the first user card by using the first priority access point name.
In the above apparatus, the first obtaining module is specifically configured to obtain a first user card identifier corresponding to the first user card; and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
In the above apparatus, the second obtaining module is further configured to select, when the identity corresponding to the current network environment parameter is not found in the first priority correspondence, at least one access point name having a network environment parameter that is the same as the current network environment parameter from a preset access point name library;
the network access module is further configured to perform network access on the first user card sequentially using each access point name in the at least one access point name until it is detected that the first user card successfully accesses the network.
In the device, the device also comprises an information setting module,
the information setting module is used for acquiring a second identity mark representing a second priority access point name; the second priority access point name is an access point name which is used for realizing the successful network access of the first user card in the at least one access point name; and correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
In the device, the device also comprises an information setting module,
the information setting module is used for searching the identity in the first priority corresponding relation by using the received network environment parameters to be added; and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relationship, correspondingly storing the network environment parameter to be added and the received third identity representing the name of a third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relationship.
In the above apparatus, the information setting module is further configured to, when the identity corresponding to the network environment parameter to be added is found in the first priority correspondence, replace the found identity with the third identity.
The embodiment of the application provides a network access device, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the network access program stored in the memory so as to realize the network access method.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the network access method described above.
The embodiment of the application provides a network access method, which comprises the steps of obtaining a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name; searching for the identity identifier in the first priority corresponding relation by using the current network environment parameter; when the first identity identification corresponding to the current network environment parameter is found from the first priority corresponding relation, the name of a first priority access point represented by the first identity identification is obtained; and performing network access on the first user card by using the first priority access point name. According to the technical scheme, the corresponding relation of different priority access point names corresponding to different network environment parameters is stored for the user card, so that the priority access point names do not need to be additionally reset in the network access process, the network access efficiency is improved by directly searching, and the situation that the network cannot be accessed due to the fact that the priority access point names are covered is avoided.
Drawings
Fig. 1 is a first flowchart illustrating a network access method according to an embodiment of the present application;
fig. 2 is a second flowchart illustrating a network access method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an exemplary network access process provided in an embodiment of the present application;
fig. 4 is a first schematic structural diagram of a network access device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a network access device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
Example one
The embodiment of the application provides a network access method. Fig. 1 is a first flowchart illustrating a network access method according to an embodiment of the present application. As shown in fig. 1, the method mainly comprises the following steps:
s101, acquiring a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name.
In an embodiment of the present application, a network access device may first obtain a first priority correspondence corresponding to a first user card and a current network environment parameter.
It should be noted that, in an embodiment of the present application, the network access apparatus may be configured with a plurality of user cards, and for each user card, a corresponding priority correspondence may be stored in advance, where the priority correspondence is a correspondence between a preset network environment parameter and an identity of a priority APN for the user card, and may be preset in the network access apparatus by a user according to an actual requirement, and the embodiment of the present application is not limited.
It should be noted that, in the embodiment of the present application, the network access apparatus may be located in different network environments for network access, and before performing network access, it is required to acquire current network environment parameters to perform matching of subsequent priority APNs. The specific current network environment parameter may be a number composed of MCC and MNC corresponding to the current network environment. For example, if the MCC is 460 and the MNC is 01, the current network environment parameter is 46001. In addition, different MCC and MNC numbers are actually used for different network environment parameters included in the first priority correspondence. The specific current network environment parameters are determined according to the actual network environment, and the embodiments of the present application are not limited.
It should be noted that, in the embodiment of the present application, in the first priority correspondence, different preset network environment parameters and identities (APN IDs) of different priority APNs may be stored in the network access device according to a data table format. Illustratively, the first priority correspondence is as shown in table 1 below:
TABLE 1
Network environment parameter (MCCMNC) Identity (APN ID) with priority access point name
46011 1
46003 2
As shown in table 1, the first priority correspondence actually includes two sets of correspondence, that is, the APN ID corresponding to the network environment parameter 46011 is 1, and the APN ID corresponding to the network environment parameter 460003 is 2. In the first priority correspondence, one identity actually characterizes one priority APN. Since the MCC, MNC, priority access point name and their corresponding relations can be standardized by using numbers to characterize the network environment parameters and the identities, the corresponding relations can be stored by using less storage space (number of bytes). Specifically, in an embodiment of the present application, the acquiring, by the network access device, the first priority correspondence corresponding to the first user card includes: acquiring a first user card identifier corresponding to a first user card; and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
It should be noted that, in the embodiment of the present application, the network access apparatus may support network access to different user cards, where the first user card is a user card that currently needs to access a network. For each user card, a corresponding user card identifier is configured to represent the identity of the corresponding user card, and the network access device can directly acquire the corresponding user card identifier from the user card. The embodiment of the present application is not limited to a specific first user card, and a first user card identifier corresponding to a user card.
It should be noted that, in the embodiment of the present application, a correspondence between a subscriber card identifier and a priority correspondence is preset in a network access device in advance, that is, a subscriber card identifier is assigned with a corresponding priority correspondence. Therefore, the network access device can directly obtain the first user card identifier corresponding to the first user card, so as to search the priority corresponding relation corresponding to the first user card identifier in the corresponding relation between the preset user card identifier and the priority corresponding relation, wherein the corresponding relation is the first priority corresponding relation.
S102, identity identification searching is carried out in the first priority corresponding relation by using the current network environment parameters.
In the embodiment of the present application, the network access device may perform identity lookup in the first priority correspondence when obtaining the first priority correspondence and the current network environment parameter.
It can be understood that, in the embodiment of the present application, the network access apparatus performs the identifier lookup in the first priority correspondence by using the current network environment parameter, and actually, in the first priority correspondence, it is determined whether an identifier corresponding to the current network environment parameter exists.
For example, in the embodiment of the present application, the first priority correspondence is a correspondence shown in table 1, and after obtaining the current network environment parameter, the network access device may search whether an identity corresponding to the current network environment parameter exists in the first priority correspondence. If the current network environment parameter is 46011, the network access apparatus may find the corresponding APN ID of 1 from table 1, and if the current network environment parameter is 46003, the network access apparatus may find the corresponding APN ID of 2 from table 1. Of course, the current network environment parameter may also be other numbers, such as 46001, and at this time, the network access apparatus will not look up the corresponding APN ID from table 1.
S103, when the first identity corresponding to the current network environment parameter is found from the first priority corresponding relation, the first priority access point name represented by the first identity is obtained.
In the embodiment of the application, after the network access device searches the identity identifier in the first priority correspondence by using the current network environment parameter, when the first identity identifier corresponding to the current network environment parameter is found from the first priority correspondence, the network access device obtains the first priority APN represented by the first identity identifier.
It is understood that, in the embodiment of the present application, the first priority correspondence is a correspondence between a preset network environment parameter and an identity of a priority APN. Therefore, when the network access device finds the first identity identifier corresponding to the current network environment parameter, the network access device can actually further acquire the first priority APN represented by the first identity identifier. Specific first priority APN the embodiments of the present application are not limited.
For example, in an embodiment of the present application, the first pre-correspondence relationship is shown in table 1, if the current network environment parameter is 46011, the network access apparatus may acquire the corresponding first identity identifier 1, and further, the network access apparatus may acquire a priority APN represented by the first identity identifier 1, where the priority APN is the first priority APN. If the current network environment parameter is 46003, the network access apparatus may acquire the corresponding first identity identifier 2, further, the network access apparatus may acquire the priority APN represented by the first identity identifier 2, and similarly, determine the priority APN as the first priority APN.
And S104, performing network access on the first user card by using the first priority access point name.
In an embodiment of the present application, after acquiring the first priority APN represented by the first identity, the network access apparatus may perform network access on the first user card by using the first priority APN.
It should be noted that, in the embodiment of the present application, the first priority APN is determined based on the first priority correspondence, and the correspondence between the preset network environment parameter stored in the first priority correspondence and the identifier of the priority access point name is a different correspondence that is predetermined to enable network access.
It should be noted that, in the prior art, only one priority access point name is allowed to be set for one user card, and actually, only one set of priority correspondence relationships can be set. For example, only one priority APN corresponding to 46011 can be set as the network environment parameter. Therefore, when the current network environment parameter is not matched with the priority APN, the network access device selects another matched access point name for network access, and replaces the set priority APN, and the corresponding relationship between the user-set priority APN and the network environment parameter 46011 is covered, which may result in the failure of accessing the internet under severe conditions. In the embodiment of the application, a corresponding priority corresponding relationship, namely a corresponding relationship between different network environment parameters and the identities of different priority APNs, is stored for one user card, so that when network switching is performed, the corresponding priority APN can be directly searched according to the real-time network environment parameters without sequentially trying, and the network access efficiency is improved.
It should be noted that, in the embodiment of the present application, after the network access apparatus uses the current network environment parameter to perform the identity lookup in the first priority correspondence, the network access apparatus may not find the identity corresponding to the current network environment parameter, and at this time, the network access apparatus needs to execute a corresponding method to perform network access.
Fig. 2 is a flowchart illustrating a network access method according to an embodiment of the present application. As shown in fig. 2, after step S102, the following steps may be further included:
s201, when the identity corresponding to the current network environment parameter is not found in the first priority corresponding relation, at least one access point name with the same network environment parameter as the current network environment parameter is selected from a preset access point name library.
In the embodiment of the application, when the network access apparatus does not find the identity corresponding to the current network environment parameter from the first priority correspondence, at least one access point name having the same network environment parameter as the current network environment parameter is selected from a preset access point name library.
It should be noted that, in the embodiment of the present application, a preset access point name library may be stored in a network access device, and different access point names may be stored in the access point name library, which is not limited in the embodiment of the present application.
It should be noted that the access point name includes corresponding MCC and MNC parameters, and may also constitute network environment parameters, so that the network access apparatus may search the access point name according to the current network environment parameters, that is, the numbers formed by the MCC and the MNC, so as to search for at least one access point name. Specific at least one access point name embodiments of the present application are not limited.
S202, sequentially utilizing each access point name in the at least one access point name to perform network access on the first user card until the first user card is detected to be successfully accessed into the network.
In an embodiment of the application, after selecting the at least one access point name, the network access apparatus may sequentially use each of the at least one access point name to perform network access on the first user card until it is detected that the first user card successfully accesses the network.
For example, in the embodiment of the present application, the network access apparatus selects 5 access point names, and therefore, the first user card may be network-accessed by using the 5 access point names in sequence. And when the first user card is detected to be successfully accessed into the network after the first user card is subjected to network access by using one access point name in the 5 access point names, stopping subsequent attempts of accessing the network. Of course, if none of the 5 access point names enables the first user card to successfully access the network, the first user card cannot actually access the network under the current network environment.
S203, acquiring a second identity which represents the name of a second priority access point; the second priority access point name is the access point name of the at least one access point name for realizing the successful network access of the first user card.
In an embodiment of the present application, after the network access apparatus successfully accesses the first user card to the network by using the second priority access point name in the selected at least one access point name, the network access apparatus may obtain a second identity representing the second priority access point name.
It should be noted that, in the embodiment of the present application, the network access apparatus performs a network access attempt on the first user card by sequentially using each of the at least one selected access point name, where the second priority access point name is an access point name that successfully enables the first user card to access the network in this process. Specific second priority access point names embodiments of the present application are not limited.
S204, correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
In the embodiment of the present application, after acquiring the second identity representing the name of the second priority access point, the network access apparatus may correspondingly store the second identity and the current network environment parameter in the first priority correspondence.
It should be noted that, in the embodiment of the present application, the network access apparatus stores the second identity and the current network environment parameter in the first priority corresponding relationship in a corresponding manner, so that when performing network access at a certain subsequent time, if the same network environment parameter is obtained, the second identity may be directly obtained from the first priority corresponding relationship to determine the name of the second priority access point, and the first user card is subjected to network access by using the name of the second priority access point.
It can be understood that, in the embodiment of the present application, for the case that the identity corresponding to the current network environment parameter is not found in the first priority correspondence, after the network access device performs network access by using the name of the second priority access point, the network access device does not cover any one group of correspondence in the first priority correspondence, but adds the correspondence, so that different priority APNs are actually set for different network environment parameters, thereby avoiding a situation that the network cannot be accessed because the priority APN is continuously covered.
It should be noted that, in this embodiment of the application, before step S101, the network access apparatus may further receive a to-be-added network environment parameter sent by the user, and a third identity of a third preferred access point name corresponding to the to-be-added network environment parameter. Correspondingly, the network access device can also execute the corresponding relation adding operation. Specifically, after step S101, the following steps may be further included: searching for the identity identifier in the first priority corresponding relation by using the received network environment parameter to be added; and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relation, correspondingly storing the network environment parameter to be added and the received third identity representing the name of the third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relation.
It can be understood that, in the embodiment of the present application, a user may autonomously set different priority APNs corresponding to different network environment parameters, and in the first priority correspondence, there may already be a parameter that is the same as the network environment parameter to be added, and at this time, the network access apparatus first performs identity lookup from the first priority correspondence. If the first priority correspondence relationship does not set the priority APN corresponding to the network environment parameter to be added, that is, the identity corresponding to the network environment parameter to be added does not exist, the network access device may automatically store the network environment parameter to be added and the third identity into the first priority correspondence relationship. And the third identity is the identity of a third preferred access point name which is specified in advance by the user and corresponds to the network environment parameter to be added.
It should be noted that, in the embodiment of the present application, after the network access apparatus performs identity lookup in the first priority correspondence by using the received network environment parameter to be added, the method further includes: and when the identity corresponding to the network environment parameter to be added is found in the first priority corresponding relation, replacing the found identity with a third identity.
It can be understood that, in the embodiment of the present application, network environment parameters completely the same as the network environment parameters to be added and the identity of the corresponding priority access point may already be stored in the first priority correspondence, and at this time, the stored identity of the priority access point may be replaced by a third identity, that is, the update of the priority APN is implemented.
Fig. 3 is a schematic diagram of an exemplary network access process provided in an embodiment of the present application. As shown in fig. 3, the first user card is a SIM1 card, and the corresponding first user card identifier is ID1, and the network access apparatus may obtain the corresponding first priority correspondence, that is, the correspondence shown in table 1, according to the ID1 of the SIM1 card, then perform query according to the pre-obtained current network environment parameter MCCMNC, and perform network access by using the corresponding APN after finding the corresponding APN ID. In addition, when the APN is not found, the APN which is the same as the MCCMNC is automatically selected to perform network access attempt, and when the network is successfully accessed, the corresponding relation between the APN ID and the MCCMNC is established and stored in the first priority corresponding relation.
The embodiment of the application provides a network access method, which comprises the steps of obtaining a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name; searching for the identity identifier in the first priority corresponding relation by using the current network environment parameter; when the first identity identification corresponding to the current network environment parameter is found from the first priority corresponding relation, the name of a first priority access point represented by the first identity identification is obtained; and performing network access on the first user card by using the first priority access point name. According to the technical scheme, the corresponding relation of different priority access point names corresponding to different network environment parameters is stored for the user card, so that the priority access point names do not need to be additionally reset in the network access process, the network access efficiency is improved by directly searching, and the situation that the network cannot be accessed due to the fact that the priority access point names are covered is avoided.
Example two
The embodiment of the application provides a network access device. Fig. 4 is a first schematic structural diagram of a network access device according to an embodiment of the present application. As shown in fig. 4, the network access apparatus includes:
a first obtaining module 401, configured to obtain a first priority correspondence corresponding to a first user card and a current network environment parameter; the first priority corresponding relation is the corresponding relation between a preset network environment parameter and the identity of a priority access point;
an identifier searching module 402, configured to perform identifier searching in the first priority correspondence by using the current network environment parameter;
a second obtaining module 403, configured to obtain a first priority access point name represented by a first identity identifier when the first identity identifier corresponding to the current network environment parameter is found from the first priority correspondence;
a network access module 404, configured to access a network access to the first user card by using the first priority access point name.
Optionally, the first obtaining module 401 is specifically configured to obtain a first user card identifier corresponding to the first user card; and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
In the above apparatus, the second obtaining module 403 is further configured to select, when the identity corresponding to the current network environment parameter is not found in the first priority correspondence, at least one access point name having a network environment parameter that is the same as the current network environment parameter from a preset access point name library;
the network access module 404 is further configured to perform network access on the first user card sequentially using each of the at least one access point name until it is detected that the first user card successfully accesses the network.
Optionally, the apparatus further comprises an information setting module 405,
the information setting module is used for acquiring a second identity mark representing a second priority access point name; the second priority access point name is an access point name which is used for realizing the successful network access of the first user card in the at least one access point name; and correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
Optionally, the apparatus further comprises an information setting module 405,
the information setting module 405 is configured to perform identity identifier lookup in the first priority correspondence by using the received network environment parameter to be added; and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relationship, correspondingly storing the network environment parameter to be added and the received third identity representing the name of a third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relationship.
Optionally, the information setting module 405 is further configured to, when the identity corresponding to the network environment parameter to be added is found in the first priority correspondence, replace the found identity with the third identity.
Fig. 5 is a schematic structural diagram of a network access device according to an embodiment of the present application. As shown in fig. 5, the apparatus includes a processor 501, a memory 502, and a communication bus 503;
the communication bus 503 is used for realizing communication connection between the processor 501 and the memory 502;
the processor 501 is configured to execute the network access program stored in the memory 502 to implement the network access method.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the network access method described above. The computer-readable storage medium may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or may be a respective device, such as a mobile phone, computer, tablet device, personal digital assistant, etc., that includes one or any combination of the above-mentioned memories.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A method for network access, the method comprising:
acquiring a first priority corresponding relation corresponding to a first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between the preset network environment parameter and the identity of the priority access point name;
searching for an identity identifier in the first priority corresponding relation by using the current network environment parameter;
when a first identity corresponding to the current network environment parameter is found from the first priority corresponding relation, acquiring a first priority access point name represented by the first identity;
and performing network access on the first user card by using the first priority access point name.
2. The method of claim 1, wherein the obtaining the first priority correspondence corresponding to the first user card comprises:
acquiring a first user card identifier corresponding to the first user card;
and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
3. The method of claim 1, wherein after performing the identity lookup in the first preferred correspondence using the current network environment parameter, the method further comprises:
when the identity corresponding to the current network environment parameter is not found in the first priority corresponding relation, at least one access point name with the same network environment parameter as the current network environment parameter is selected from a preset access point name library;
and sequentially utilizing each access point name in the at least one access point name to perform network access on the first user card until the first user card is detected to be successfully accessed into the network.
4. The method of claim 3, wherein the network access to the first user card is performed sequentially using each of the at least one access point name until the first user card is detected to successfully access the network, and wherein the method further comprises:
acquiring a second identity mark representing the name of a second priority access point; the second priority access point name is an access point name which is used for realizing the successful network access of the first user card in the at least one access point name;
and correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
5. The method of claim 1, wherein after obtaining the first preferred correspondence corresponding to the first user card, the method further comprises:
searching for the identity identifier in the first priority corresponding relation by using the received network environment parameter to be added;
and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relationship, correspondingly storing the network environment parameter to be added and the received third identity representing the name of a third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relationship.
6. The method according to claim 5, wherein after performing the id lookup in the first preferred correspondence using the received network environment parameter to be added, the method further comprises:
and when the identity corresponding to the network environment parameter to be added is found in the first priority corresponding relation, replacing the found identity with the third identity.
7. A network access apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a first priority corresponding relation corresponding to the first user card and current network environment parameters; the first priority corresponding relation is the corresponding relation between a preset network environment parameter and the identity of a priority access point;
the identifier searching module is used for searching for the identity identifier in the first priority corresponding relation by using the current network environment parameter;
a second obtaining module, configured to obtain a first priority access point name represented by a first identity identifier when the first identity identifier corresponding to the current network environment parameter is found from the first priority correspondence;
and the network access module is used for accessing the first user card by using the first priority access point name.
8. The apparatus of claim 7,
the first obtaining module is specifically configured to obtain a first user card identifier corresponding to the first user card; and searching the first priority corresponding relation from the corresponding relation between the preset user card identification and the priority corresponding relation according to the first user card identification.
9. The apparatus of claim 7,
the second obtaining module is further configured to select at least one access point name having a network environment parameter that is the same as the current network environment parameter from a preset access point name library when the identity corresponding to the current network environment parameter is not found in the first priority correspondence;
the network access module is further configured to perform network access on the first user card sequentially using each access point name in the at least one access point name until it is detected that the first user card successfully accesses the network.
10. The apparatus of claim 9, further comprising an information setting module,
the information setting module is used for acquiring a second identity mark representing a second priority access point name; the second priority access point name is an access point name which is used for realizing the successful network access of the first user card in the at least one access point name; and correspondingly storing the second identity and the current network environment parameter in the first priority corresponding relation.
11. The apparatus of claim 7, further comprising an information setting module,
the information setting module is used for searching the identity in the first priority corresponding relation by using the received network environment parameters to be added; and when the identity corresponding to the network environment parameter to be added is not found in the first priority corresponding relationship, correspondingly storing the network environment parameter to be added and the received third identity representing the name of a third priority access point corresponding to the network environment parameter to be added into the first priority corresponding relationship.
12. The apparatus of claim 11,
the information setting module is further configured to, when the identity corresponding to the network environment parameter to be added is found in the first priority correspondence, replace the found identity with the third identity.
13. A network access apparatus, the apparatus comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor configured to execute a network access program stored in the memory to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201910890960.2A 2019-09-23 2019-09-23 Network access method and device, and storage medium Pending CN110708740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910890960.2A CN110708740A (en) 2019-09-23 2019-09-23 Network access method and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910890960.2A CN110708740A (en) 2019-09-23 2019-09-23 Network access method and device, and storage medium

Publications (1)

Publication Number Publication Date
CN110708740A true CN110708740A (en) 2020-01-17

Family

ID=69195799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910890960.2A Pending CN110708740A (en) 2019-09-23 2019-09-23 Network access method and device, and storage medium

Country Status (1)

Country Link
CN (1) CN110708740A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050064889A1 (en) * 2002-01-08 2005-03-24 Serge Haumont Selecting ggsn in shared mobile network
CN101404827A (en) * 2008-11-20 2009-04-08 深圳华为通信技术有限公司 Mobile terminal, network server and method for launching grouping service by mobile terminal
CN101754324A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Wireless network access method and driving device
CN105246132A (en) * 2015-09-29 2016-01-13 广东欧珀移动通信有限公司 Parameter matching method and device for network access point
CN107567011A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of network insertion service implementation method, device and communication terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050064889A1 (en) * 2002-01-08 2005-03-24 Serge Haumont Selecting ggsn in shared mobile network
CN101404827A (en) * 2008-11-20 2009-04-08 深圳华为通信技术有限公司 Mobile terminal, network server and method for launching grouping service by mobile terminal
CN101754324A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Wireless network access method and driving device
CN105246132A (en) * 2015-09-29 2016-01-13 广东欧珀移动通信有限公司 Parameter matching method and device for network access point
CN107567011A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of network insertion service implementation method, device and communication terminal

Similar Documents

Publication Publication Date Title
JP5968516B2 (en) Method and terminal for loading operator configuration information
CN103813295B (en) A kind of method and device for automatically configuring and updating APN parameter
CN111510909B (en) Communication module configuration processing method and device, computer equipment and storage medium
CN107015985B (en) Data storage and acquisition method and device
CN105188048A (en) Method, device and terminal equipment for loading customized applications for mobile terminal
CN104869615A (en) Network access method and mobile communication terminal
WO2021129446A1 (en) Network searching method and device, and storage medium
CN104484206A (en) Method, terminal and system for setting up application program
CN104902533A (en) Network access method and mobile communication terminal
CN104320833A (en) Automatic network selecting method and system of mobile terminal
CN103813439A (en) Method for terminal register and terminal
CN102272743A (en) Management method for information of universal integrated circuit card and device thereof
US10015727B2 (en) Automatic detection of a network operator for a mobile network device
CN105578566A (en) Terminal network searching method and terminal
CN105554850A (en) Network searching method and electronic equipment
CN110780944B (en) Method and device for starting application permission and machine-readable storage medium
CN111954300A (en) Offline positioning method, device, equipment and storage medium
CN110708740A (en) Network access method and device, and storage medium
CN110990427A (en) Statistical method, system and storage medium for application program affiliated area
US20170127229A1 (en) Method and apparatus for searching mobile network
CN112784318A (en) Method, device and storage medium for generating unique identification code of equipment
CN112423288B (en) Dialing analysis method, device, computer equipment and storage medium
CN110875960A (en) Address book updating method, server and terminal
CN110138890B (en) Method, device, computer equipment and storage medium for acquiring IP address
CN108763498B (en) User identity identification method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117