CN114339961A - Network access method, network access device, electronic equipment, storage medium and computer program product - Google Patents

Network access method, network access device, electronic equipment, storage medium and computer program product Download PDF

Info

Publication number
CN114339961A
CN114339961A CN202111541217.XA CN202111541217A CN114339961A CN 114339961 A CN114339961 A CN 114339961A CN 202111541217 A CN202111541217 A CN 202111541217A CN 114339961 A CN114339961 A CN 114339961A
Authority
CN
China
Prior art keywords
apn information
network access
apn
sim card
access
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
CN202111541217.XA
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.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software 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 Shenzhen Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN202111541217.XA priority Critical patent/CN114339961A/en
Publication of CN114339961A publication Critical patent/CN114339961A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to a network access method, a network access device, an electronic device, a storage medium and a computer program product. The method comprises the following steps: acquiring a plurality of APN information, wherein the plurality of APN information is obtained by configuration of at least two APN configuration modes; and sequentially performing network access of the SIM card through the APN information, and ending the network access until preset conditions are met, wherein the preset conditions comprise that one APN information is successfully accessed or the APN information fails to be accessed. The method can improve the access success rate of network access.

Description

Network access method, network access device, electronic equipment, storage medium and computer program product
Technical Field
The present application relates to the field of network access technologies, and in particular, to a network access method, an apparatus, an electronic device, a storage medium, and a computer program product.
Background
With the development of network access technology, how to ensure the normal access of the network becomes more and more important. When network Access is performed, network Access needs to be performed through an APN (Access Point Name) parameter, and the APN parameter determines which Access method the electronic device accesses the network through.
In the related art, when a network access needs to be performed through an APN parameter, an APN parameter in APN information pre-stored by an electronic device is generally selected for network access by reading APN information pre-stored by the electronic device.
However, in a manner of performing network access by reading APN information pre-stored in the electronic device, there is still a case of network access failure.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a network access method, an apparatus, an electronic device, a storage medium, and a computer program product, which can improve the access success rate of network access.
In a first aspect, the present application provides a network access method, which is applied to an electronic device, into which a SIM card is inserted, and the method includes:
acquiring a plurality of APN information, wherein the plurality of APN information is obtained by configuration of at least two APN configuration modes;
and sequentially performing network access of the SIM card through the APN information, and ending the network access until preset conditions are met, wherein the preset conditions comprise that one APN information is successfully accessed or the APN information fails to be accessed.
In one embodiment, the performing, by using the APN information in sequence, network access to the SIM card includes:
acquiring priority information of the plurality of APN information, wherein the priority information comprises access priorities corresponding to the APN information, and the higher the access priority is, the earlier the access sequence of the APN information is;
and performing network access of the SIM card sequentially through the APN information according to the access priority corresponding to the APN information.
In one embodiment, the multiple APN information includes first APN information, second APN information, and third APN information, the first APN information is obtained by a visual interface configuration of a user on the electronic device, the second APN information is obtained by an automatic configuration of an operating system of the electronic device, and the third APN information is pre-stored APN information.
In one embodiment, the accessing priority corresponding to the first APN information is higher than the accessing priority corresponding to the second APN information, the accessing priority corresponding to the second APN information is higher than the accessing priority corresponding to the third APN information, and the network access of the SIM card is performed sequentially through the APN information according to the accessing priority corresponding to each APN information, including:
performing network access of the SIM card through the first APN information;
under the condition that the first APN information fails to be accessed, performing network access on the SIM card through the second APN information;
and under the condition that the second APN information fails to be accessed, performing network access on the SIM card through the third APN information.
In one embodiment, the performing network access to the SIM card through the first APN information includes:
acquiring first APN information input by a user on a visual interface;
performing network access of the SIM card through the input first APN information;
and under the condition that the input first APN information fails to be accessed, outputting a prompt of re-inputting the first APN information so as to perform network access of the SIM card through the re-input first APN information.
In one embodiment, the performing network access to the SIM card through the second APN information includes:
acquiring access failure times of the first APN information;
and under the condition that the access failure times exceed a failure time threshold, performing network access of the SIM card through the second APN information.
In one embodiment, the storing of the third APN information in the SIM card, the performing of network access to the SIM card through the third APN information includes:
reading the third APN information from the SIM card;
and performing network access of the SIM card through the third APN information read from the SIM card.
In one embodiment, the method further comprises:
acquiring a target APN parameter successfully accessed, wherein the target APN parameter comprises an APN parameter in at least one APN information of the first APN information and the second APN information;
updating the target APN parameter to the third APN information.
In a second aspect, the present application provides a network access apparatus, which is applied to an electronic device, into which a SIM card is inserted, and the apparatus includes:
the APN information acquisition module is used for acquiring a plurality of APN information, and the APN information is obtained by configuring at least two APN configuration modes;
and the network access module is used for performing network access on the SIM card sequentially through the APN information until a preset condition is met, wherein the preset condition comprises that one APN information is successfully accessed or the APN information fails to be accessed.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described above.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method described above.
The network access method, the network access device, the electronic equipment, the storage medium and the computer program product are characterized in that the network access method comprises the following steps: acquiring a plurality of APN information, wherein the plurality of APN information is obtained by configuration of at least two APN configuration modes; the network access of the SIM card is sequentially carried out through the APN information, the network access is finished until the preset condition is met, the preset condition comprises that one APN information is successfully accessed or the multiple APN information is failed to be accessed, because the network access can be carried out through the multiple APN information configured in different APN configuration modes, when one APN information of the multiple APN information is failed to be accessed, the network access can be carried out through another one of the multiple APN information, which is equivalent to the network access process, the access can be carried out through the multiple APN information, the problem that the network access fails because the mode of carrying out the network access through reading the APN information prestored in the electronic equipment is single is solved, and the access success rate of the network access is improved.
Drawings
Fig. 1 is a diagram illustrating a network access method according to an embodiment;
fig. 2 is a detailed flowchart of network access sequentially through APN information in one embodiment;
fig. 3 is a flowchart illustrating a detailed process of performing network access to the SIM card sequentially through APN information according to an access priority corresponding to each APN information in one embodiment;
fig. 4 is a flow chart illustrating a network access method in another embodiment;
fig. 5 is a schematic structural diagram of a network access device in one embodiment;
FIG. 6 is an internal block diagram of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first APN information may be referred to as second APN information, and similarly, the second APN information may be referred to as first APN information, without departing from the scope of the present application. Both the first APN information and the second APN information are APN information, but they are not the same APN information.
"plurality" means more than two.
Referring to fig. 1, fig. 1 is a flowchart illustrating a network access method in an embodiment. In an embodiment, as shown in fig. 1, a network access method is provided, and this embodiment is illustrated by applying the method to an electronic device, and it is to be understood that the method may also be applied to a server, and may also be applied to a system including the electronic device and the server, and is implemented by interaction between the electronic device and the server. In this embodiment, a Subscriber Identity Module (SIM) card is inserted into the electronic device, and the network access method includes steps 110 to 120.
Step 110, obtaining a plurality of APN information, wherein the plurality of APN information is obtained by configuring at least two APN configuration modes.
The APN information refers to information for instructing the electronic device to perform network access. Optionally, the APN information includes one or more APN parameters. The APN configuration mode refers to a mode of configuring APN information. Optionally, the APN configuration mode includes, but is not limited to, at least two configuration modes of user configuration on a UI interface, automatic configuration of an operating system of the electronic device, pre-storage in the electronic device, and pre-storage in a SIM card. Optionally, the APN information is obtained by configuring in different configuration modes.
It should be noted that, if the APN information includes multiple APN parameters, the network access may be performed through another APN information after all APN parameters of one APN information fail to be accessed.
And step 120, performing network access of the SIM card sequentially through the APN information, and ending the network access until preset conditions are met, wherein the preset conditions comprise successful access of one APN information or failure of access of all the APN information.
In the step, firstly, network access of the SIM card is carried out through one of the APN information, and if the network access is successful, the network access is ended; if the network access fails, performing the network access of the SIM card through another one of the APN information, and if the access of the other APN information is successful, finishing the network access; and if the network access fails, switching the APN information again to carry out the network access until one APN information is successfully accessed or all the APN information fails to be accessed, and ending the network access.
Exemplarily, assuming that the multiple APN information includes first APN information and second APN information, a network access of the SIM card may be performed through the first APN information; if the first APN information is successfully accessed, the access is ended; if the first APN information fails to be accessed, the network access of the SIM card is carried out through the second APN information; if the second APN information is successfully accessed, the network access of the SIM card is ended; if the second APN information fails to be accessed and other APN information does not exist, the network access of the SIM card is ended; and if the second APN information fails to be accessed and other APN information except the first APN information and the second APN information exists, performing network access through the other APN information until a preset condition is met.
In the technical scheme of this embodiment, a plurality of pieces of APN information are acquired, network access of the SIM card is performed sequentially through the APN information, and the network access is terminated when a preset condition is satisfied, where the plurality of pieces of APN information are configured through at least two APN configuration modes, and the preset condition includes that one of the APN information is successfully accessed or all the APN information is unsuccessfully accessed, that is, the present embodiment may perform network access by using a plurality of pieces of APN information configured in different APN configuration modes, and then when one of the plurality of pieces of APN information is unsuccessfully accessed, network access may be performed through another one of the plurality of pieces of APN information, which is equivalent to performing network access through the plurality of pieces of APN information in the network access process, thereby solving the problem that the network access fails due to a single mode of performing network access by reading APN information pre-stored in the electronic device, the access success rate of network access is improved.
The network access of the SIM card is performed sequentially through the APN information, and may be performed by randomly selecting APN information or by selecting APN information according to a specific rule.
The following embodiments are based on any of the above embodiments, and describe how to sequentially perform network access of the SIM card through each APN information.
Referring to fig. 2, fig. 2 is a flowchart illustrating a detailed process of sequentially performing network access via APN information according to an embodiment. In one embodiment, as shown in fig. 2, the network access of the SIM card is performed sequentially through the APN information, which includes steps 210 to 220.
Step 210, obtaining priority information of the plurality of APN information, wherein the priority information includes access priority corresponding to each APN information.
Wherein, the higher the access priority, the earlier the access order of the APN information.
And step 220, sequentially passing through the APN information according to the access priority corresponding to the APN information to perform network access of the SIM card.
In this embodiment, network access may be performed through the APN information of the highest priority, and in the case of access failure, network access may be performed through the APN information of the secondary priority until a preset condition is satisfied.
For example, if the access priority of the first APN information is higher than the access priority of the second APN information, the network access is performed through the first APN information, and if the network access of the first APN information fails, the network access is performed through the second APN information.
In one possible embodiment, the multiple APN information includes a first APN information, a second APN information, and a third APN information. Wherein:
the first APN information is obtained through configuration of a user on a visual interface of the electronic equipment, the second APN information is obtained through automatic configuration of an operating system of the electronic equipment, and the third APN information is pre-stored APN information.
In this embodiment, the user may input APN information on a visual interface of the electronic device, thereby obtaining the first APN information. Taking the operating system as an example of a Windows system, the APN information may be configured through cosa (country and Operator Settings asset) data of the Windows system. The APN information pre-stored in the electronic device may be used as the third APN information, or the APN information pre-stored in the SIM card may be used as the third APN information. Generally, the pre-stored third APN information is APN information corresponding to a predetermined SIM card.
Referring to fig. 3, fig. 3 is a flowchart illustrating a detailed process of performing network access to the SIM card sequentially through APN information according to an access priority corresponding to each APN information in an embodiment. In this embodiment, the multiple APN information includes a first APN information, a second APN information, and a third APN information. In this embodiment, the access priority corresponding to the first APN information is higher than the access priority corresponding to the second APN information, the access priority corresponding to the second APN information is higher than the access priority corresponding to the third APN information, and network access to the SIM card is performed sequentially through each APN information according to the access priority corresponding to each APN information, which includes steps 310 to 360.
And 310, performing network access of the SIM card through the first APN information.
Step 320, determining whether the first APN information is successfully accessed.
In this step, if the first APN information access is successful, step 360 is executed; if the access of the first APN information fails, step 330 is performed.
And step 330, performing network access of the SIM card through the second APN information.
In this step, when the access of the first APN information fails, the network access of the SIM card is performed through the second APN information.
Step 340, judging whether the second APN information is accessed successfully.
In this step, if the second APN information access is successful, step 360 is executed; if the access of the second APN information fails, go to step 350.
And 350, performing network access of the SIM card through the third APN information.
In this step, when the access of the second APN information fails, the network access of the SIM card is performed through the third APN information.
And step 360, ending the network access of the SIM card.
In this embodiment, since the access priority of the third APN information is the lowest, after the network access is performed on the third APN information with the lowest priority, the network access of the SIM card is ended regardless of success or failure.
In a possible implementation manner, if the third APN information with the lowest priority also fails to access, a network access error message is reported, and the error message is used for indicating that all APN information fails to access.
The access priority of the APN information may relate to the importance of the configuration, the access success rate of the configuration, the user's desire, or the number of APN parameters in the APN information. Optionally, the access priority may be defined by the user on the electronic device, or may be determined by the electronic device according to various priority definition reference parameters (e.g., access success rate, number of APN parameters, etc.), for example, an access priority is set for each APN information according to the access success rate of each APN information.
Specifically, the higher the access success rate, the higher the access priority; the greater the number of APN parameters, the higher the access priority.
In one possible embodiment, the access priority is related to the access success rate of the configuration mode, and the higher the access success rate of the configuration mode is, the higher the access priority is.
In some exemplary cases, the access success rate of some APN information may be higher than that of other APN information, and when network access of the SIM card is performed sequentially through the APN information, if network access is performed through APN information with a low access success rate first, it is likely that access is not successful, at this time, network access of the SIM card needs to be performed through another APN confidence, although access may be successful at last, the number of rounds of APN information is increased, which results in a long network access process and a non-optimal network access efficiency.
Therefore, it can be understood that the access priority is set by the access success rate, and the higher the access success rate is, the higher the access priority is, the number of times of training of the APN information can be reduced, the time consumption of the network access process is shortened, and the network access efficiency is improved.
The following embodiments respectively describe how to perform network access through the first APN information, how to perform network access through the second APN information, and how to perform network access through the third APN information on the basis of any of the above embodiments.
In one possible embodiment, performing network access of the SIM card through the first APN information includes:
acquiring first APN information input by a user on a visual interface;
performing network access of the SIM card through the input first APN information;
and under the condition that the input first APN information fails to be accessed, outputting a prompt of re-inputting the first APN information so as to perform network access of the SIM card through the re-input first APN information.
In this embodiment, when the user inputs the first APN information on the visual interface of the electronic device, the electronic device performs network access to the SIM card through the first APN information input by the user. And if the first APN information fails to be accessed, prompting the user to input the first APN information again.
It can be understood that, if the first APN information input by the user fails to access the network successfully, and possibly the user inputs an error, the user is prompted to re-input the first APN information, so that the network access is performed through the re-input first APN information.
It should be noted that, in this embodiment, optionally, if the user does not re-input the first APN information after timeout, the network access of the SIM card may be performed through the second APN information.
In one possible embodiment, the performing network access to the SIM card through the second APN information includes:
acquiring access failure times of the first APN information;
and under the condition that the access failure times exceed a failure time threshold, performing network access of the SIM card through the second APN information.
The number of failures refers to the number of times of access failure of the first APN information. Generally, the number of failures is the same as the number of times the user inputs the first APN information. And if the access failure times exceed the failure time threshold, determining that the network cannot be successfully accessed through the first APN information input by the user on the visual interface, and therefore, performing network access on the SIM card through the second APN information. Specifically, the failure number threshold may be set according to needs, for example, may be 3 times, and this embodiment is not particularly limited.
In the embodiment, the network input of the SIM card is performed through the second APN information only when the access failure times exceed the failure time threshold, so as to avoid the situation that the input first APN information cannot access the network due to the error of the user inputting the first APN information, thereby ensuring that the network access is performed according to the first APN information expected by the user, and improving the user experience.
In one possible embodiment, the storing of the third APN information in the SIM card, the performing of the network access of the SIM card through the third APN information includes:
reading the third APN information from the SIM card;
and performing network access of the SIM card through the third APN information read from the SIM card.
In this embodiment, the third APN information is stored in the SIM card, and the electronic device may directly read the third APN information from the SIM card to perform network access to the SIM card. In some exemplary cases, if the third APN information is stored in the electronic device, when the electronic device obtains the third APN information corresponding to the SIM card for network access, it needs to first read the identification number of the SIM card, and then query the third APN information corresponding to the SIM card from the electronic device through the identification number of the SIM card.
It can be understood that, by storing the third APN information in the SIM card, the identification number of the SIM card does not need to be read in the process of acquiring the third APN information, so that the acquisition time of the third APN information can be shortened, the time for performing network access through the third APN information is shortened, and the network access efficiency of the SIM card is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a network access method in another embodiment. In one embodiment, as illustrated in fig. 4, the network access method includes steps 410 to 470.
And step 410, performing network access of the SIM card through the first APN information.
Step 420, determining whether the first APN information is successfully accessed.
In this step, if the first APN information access is successful, step 460 is executed, and step 470 is executed; if the access of the first APN information fails, step 430 is performed.
Step 430, performing network access of the SIM card through the second APN information
In this step, when the access of the first APN information fails, the network access of the SIM card is performed through the second APN information.
Step 440, determining whether the second APN information is successfully accessed.
In this step, if the second APN information access is successful, step 460 is executed, and step 470 is executed; if the access of the second APN information fails, step 450 is performed.
And step 450, performing network access of the SIM card through the third APN information.
In this step, when the access of the second APN information fails, the network access of the SIM card is performed through the third APN information.
And step 460, ending the network access of the SIM card.
And 470, acquiring the target APN parameter successfully accessed, and updating the target APN parameter to the third APN information.
The target APN parameter may be an APN parameter for which network access is successful in the first APN information, or an APN parameter for which network access is successful in the second APN information. In this step, if one of the first APN information and the second APN information is successfully accessed, the successfully accessed target APN parameter is updated to the third APN information. Optionally, before the third APN information is updated, whether the target APN parameter exists in the third APN information may be further queried, and the target APN parameter is updated to the third APN information only when the target APN parameter does not exist in the third APN information.
It should be noted that, each time the third APN information is updated, which is equivalent to updating a new target APN parameter that is successfully accessed into the third APN information, each time the third APN information is updated, the access success rate equivalent to the third APN information and the number of APN parameters in the third APN information may increase, and at this time, the access priorities corresponding to the multiple pieces of APN information may be adjusted. Optionally, when the number of updates exceeds the update number threshold, the access priority corresponding to the third APN information may be adjusted to the highest priority.
It can be understood that, by updating the new target APN parameter successfully accessed into the third APN information, the access success rate and the number of APN parameters in the third APN information become higher and higher, and along with the iteration of the update times, the third APN information includes more APN parameters, and the access success rate of the third APN information is gradually increased, at this time, the access priority of the third APN information is increased, so that network access can be preferentially performed through the third APN information, the time of successful network access can be shortened, and the efficiency of network access is further increased.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a network access apparatus for implementing the above-mentioned network access method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the network access apparatus provided below may refer to the limitations on the network access method in the foregoing, and details are not described here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a network access device in an embodiment. In one embodiment, as shown in fig. 5, a network access apparatus is provided, which includes an APN information obtaining module 510 and a network access module 520, where:
the APN information obtaining module 510 is configured to obtain multiple APN information, where the multiple APN information is obtained by configuring at least two APN configuration modes;
the network access module 520 is configured to perform network access to the SIM card sequentially through the APN information, and terminate the network access until a preset condition is met, where the preset condition includes that one of the APN information is successfully accessed or all of the APN information is failed to be accessed.
In one embodiment, the network access module 520 includes:
the priority acquiring unit is used for acquiring priority information of the APN information, the priority information comprises access priorities corresponding to the APN information, and the higher the access priority is, the earlier the access sequence of the APN information is;
and the network access unit is used for sequentially performing network access on the SIM card through the APN information according to the access priority corresponding to the APN information.
In one embodiment, the multiple APN information includes first APN information, second APN information, and third APN information, the first APN information is obtained by a visual interface configuration of a user on the electronic device, the second APN information is obtained by an automatic configuration of an operating system of the electronic device, and the third APN information is pre-stored APN information.
In one embodiment, an access priority corresponding to the first APN information is higher than an access priority corresponding to the second APN information, and an access priority corresponding to the second APN information is higher than an access priority corresponding to the third APN information, and a network access unit includes:
the first network access subunit is used for performing network access on the SIM card through the first APN information;
a second network access subunit, configured to perform network access to the SIM card through the second APN information when the access of the first APN information fails;
and the third network access subunit is configured to perform network access to the SIM card through the third APN information when the access of the second APN information fails.
In one embodiment, the first network access subunit is specifically configured to acquire first APN information input by a user on a visual interface; performing network access of the SIM card through the input first APN information; and under the condition that the input first APN information fails to be accessed, outputting a prompt of re-inputting the first APN information so as to perform network access of the SIM card through the re-input first APN information.
In one embodiment, the second network access subunit is specifically configured to acquire the number of access failures of the first APN information; and under the condition that the access failure times exceed a failure time threshold, performing network access of the SIM card through the second APN information.
In one embodiment, the third APN information is stored in the SIM card, and the third network access subunit is specifically configured to read the third APN information from the SIM card; and performing network access of the SIM card through the third APN information read from the SIM card.
In one embodiment, the apparatus further comprises:
a target APN parameter obtaining module, configured to obtain a target APN parameter that is successfully accessed, where the target APN parameter includes an APN parameter in at least one of the first APN information and the second APN information; updating the target APN parameter to the third APN information.
The modules in the network access device may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 6, fig. 6 is an internal structural diagram of an electronic device in one embodiment. In one embodiment, an electronic device is provided, and the electronic device includes, but is not limited to, a personal computer, a laptop, a smartphone, a tablet, an internet of things device, and a portable wearable device, and the internet of things device may be a smart speaker, a smart television, a smart air conditioner, a smart car device, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The internal structure of the electronic device may be as shown in fig. 6. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external electronic device, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a network access method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A network access method is applied to an electronic device, wherein a SIM card is inserted into the electronic device, and the method comprises the following steps:
acquiring a plurality of APN information, wherein the plurality of APN information is obtained by configuration of at least two APN configuration modes;
and sequentially performing network access of the SIM card through the APN information, and ending the network access until preset conditions are met, wherein the preset conditions comprise that one APN information is successfully accessed or the APN information fails to be accessed.
2. The method of claim 1, wherein the performing network access of the SIM card sequentially through the APN information comprises:
acquiring priority information of the plurality of APN information, wherein the priority information comprises access priorities corresponding to the APN information, and the higher the access priority is, the earlier the access sequence of the APN information is;
and performing network access of the SIM card sequentially through the APN information according to the access priority corresponding to the APN information.
3. The method of claim 2, wherein the multiple APN information includes a first APN information, a second APN information, and a third APN information, the first APN information is configured through a visual interface of the user on the electronic device, the second APN information is automatically configured through an operating system of the electronic device, and the third APN information is pre-stored APN information.
4. The method of claim 3, wherein an access priority corresponding to the first APN information is higher than an access priority corresponding to the second APN information, an access priority corresponding to the second APN information is higher than an access priority corresponding to the third APN information, and the network access of the SIM card is performed sequentially through the APN information according to the access priorities corresponding to the APN information, comprising:
performing network access of the SIM card through the first APN information;
under the condition that the first APN information fails to be accessed, performing network access on the SIM card through the second APN information;
and under the condition that the second APN information fails to be accessed, performing network access on the SIM card through the third APN information.
5. The method of claim 4, wherein the accessing the network of the SIM card through the first APN information comprises:
acquiring first APN information input by a user on a visual interface;
performing network access of the SIM card through the input first APN information;
and under the condition that the input first APN information fails to be accessed, outputting a prompt of re-inputting the first APN information so as to perform network access of the SIM card through the re-input first APN information.
6. The method of claim 5, wherein the performing network access of the SIM card through the second APN information comprises:
acquiring access failure times of the first APN information;
and under the condition that the access failure times exceed a failure time threshold, performing network access of the SIM card through the second APN information.
7. The method of claim 4, wherein the third APN information is stored in the SIM card, and wherein the accessing the network of the SIM card through the third APN information comprises:
reading the third APN information from the SIM card;
and performing network access of the SIM card through the third APN information read from the SIM card.
8. The method according to any one of claims 3 to 7, further comprising:
acquiring a target APN parameter successfully accessed, wherein the target APN parameter comprises an APN parameter in at least one APN information of the first APN information and the second APN information;
updating the target APN parameter to the third APN information.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202111541217.XA 2021-12-16 2021-12-16 Network access method, network access device, electronic equipment, storage medium and computer program product Pending CN114339961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111541217.XA CN114339961A (en) 2021-12-16 2021-12-16 Network access method, network access device, electronic equipment, storage medium and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111541217.XA CN114339961A (en) 2021-12-16 2021-12-16 Network access method, network access device, electronic equipment, storage medium and computer program product

Publications (1)

Publication Number Publication Date
CN114339961A true CN114339961A (en) 2022-04-12

Family

ID=81053068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111541217.XA Pending CN114339961A (en) 2021-12-16 2021-12-16 Network access method, network access device, electronic equipment, storage medium and computer program product

Country Status (1)

Country Link
CN (1) CN114339961A (en)

Similar Documents

Publication Publication Date Title
US9801017B2 (en) Method of managing geo-fence and electronic device thereof
US10149161B2 (en) Electronic device for authenticating based on biometric data and operating method thereof
US20120295588A1 (en) Mobile device and nfc service protection method of the mobile device
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
US20170337560A1 (en) System for providing and employing recommended resolution paths
CN110231923B (en) Data management method and device
US20160086138A1 (en) Method and apparatus for providing function by using schedule information in electronic device
CN114422226A (en) Token processing method and device, computer equipment and storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN113886496A (en) Data synchronization method and device of block chain, computer equipment and storage medium
CN114339961A (en) Network access method, network access device, electronic equipment, storage medium and computer program product
CN117112941A (en) Dictionary acquisition method, dictionary acquisition device, computer device, storage medium, and program product
CN111245940A (en) Method and device for processing mobile communication signal data in communication module of Internet of things
US20160127194A1 (en) Electronic device and method for setting network model
CN108121580A (en) The implementation method and device of application notification service
CN107665292B (en) Developer profile based license information access
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN115480912A (en) Memory frequency configuration method and device, electronic equipment and storage medium
CN108073559B (en) Method, device and system for realizing table data updating
CN112882734B (en) Upgrading method and device, computer equipment and medium
CN115456568A (en) Process approval method, apparatus, computer device, storage medium, and program product
CN114374688A (en) Application program deployment method and device, computer equipment and storage medium
CN116823269A (en) Resource scheduling method, device, computer equipment and storage medium
CN116701895A (en) Information comparison method, device and computer equipment
CN107016041B (en) Method and device for controlling single data to be exported

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