[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113225725B - Access point name loading method, access point name loading device and computer readable storage medium - Google Patents

Access point name loading method, access point name loading device and computer readable storage medium Download PDF

Info

Publication number
CN113225725B
CN113225725B CN202110104007.8A CN202110104007A CN113225725B CN 113225725 B CN113225725 B CN 113225725B CN 202110104007 A CN202110104007 A CN 202110104007A CN 113225725 B CN113225725 B CN 113225725B
Authority
CN
China
Prior art keywords
apn
sim card
information
access point
point name
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.)
Active
Application number
CN202110104007.8A
Other languages
Chinese (zh)
Other versions
CN113225725A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110104007.8A priority Critical patent/CN113225725B/en
Publication of CN113225725A publication Critical patent/CN113225725A/en
Application granted granted Critical
Publication of CN113225725B publication Critical patent/CN113225725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an access point name loading method, access point name loading equipment and a computer readable storage medium, wherein the access point name loading method comprises the following steps: when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module; when the monitoring state is card-free, APN loading is canceled; and loading the APN when the monitoring state is card-on. The access point name loading method provided by the invention has the effect of improving the APN loading efficiency.

Description

Access point name loading method, access point name loading device and computer readable storage medium
Technical Field
The invention provides the field of access point name loading equipment, and particularly relates to an access point name loading method, access point name loading equipment and a computer readable storage medium.
Background
The access point name (access point name, APN) is a set of parameters that must be configured when a User Equipment (UE) is surfing the internet, determining how the UE accesses the public data network (public datanetwork, PDN).
In daily use, short messages, multimedia messages, data services, call making and the like relate to the use and loading of APNs. However, the existing mobile phone does not optimize the APN, or uses the previous method for loading all the power-on, so that the scheme is time-consuming and labor-consuming, the power-on time and the power-on burden are increased, the APN is loaded under the condition of not inserting a card, and the system resource is consumed.
Disclosure of Invention
The invention mainly aims to provide an access point name loading method, access point name loading equipment and a computer readable storage medium, aiming at improving APN loading efficiency.
The invention provides an access point name loading method which is used for a mobile terminal and comprises the following steps:
when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module;
when the monitoring state is card-free, APN loading is canceled;
and loading the APN when the monitoring state is card-on.
Optionally, the step of loading the APN includes:
obtaining information of the SIM card;
searching a corresponding area form in a pre-stored APN form according to the information of the SIM card;
and loading the area form and obtaining APN configuration matched with the SIM card.
Optionally, the triggering information includes: the mobile terminal is powered on, the SIM card changes, or the APN configuration is manually refreshed.
Optionally, the information of the SIM card includes: the country code MCC to which the mobile user belongs;
the step of searching the corresponding area form in the pre-stored APN form according to the information of the SIM card comprises the following steps:
and searching a region form of the corresponding MCC in a pre-stored APN form according to the country code MCC of the mobile subscriber of the SIM card.
Optionally, the information of the SIM card includes: mobile network number MNC;
the step of loading the area form and obtaining the APN configuration matched with the SIM card comprises the following steps:
and loading the area form and obtaining APN configuration matched with the MNC.
Optionally, the method for loading the access point name further comprises the steps of;
obtaining a pre-stored APN form and historical SIM card information;
and screening APN (access point name) form contents according to the historical SIM card information, obtaining and storing an area form matched with the historical SIM card, and storing the area form.
The invention also provides an access point name loading method, which comprises the following steps:
the server obtains APN forms which are classified by the country in advance;
the mobile terminal requests the APN form to a server side and stores the APN form locally;
when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module;
when the monitoring state is card-free, APN loading is canceled;
when the monitoring state is that a card exists, acquiring information of the SIM card, wherein the information of the SIM card comprises a country code MCC to which a mobile user belongs;
searching a region form of the corresponding MCC in a pre-stored APN form according to the MCC of the SIM card;
and loading the area form and obtaining APN configuration matched with the SIM card.
Optionally, the method for loading the access point names includes:
the maintenance end uploads an APN form which is classified by the country in advance to the server.
The invention also provides an access point name loading device, which comprises:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program when executed by the processor performs the steps of the access point name loading method as described above. .
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the access point name loading method when being executed by a processor.
According to the access point name loading method provided by the invention, when the mobile terminal obtains trigger information and needs to load the APN, the state of the SIM card is judged, and the corresponding APN is loaded only when the SIM card is detected. Compared with the prior art, the scheme of loading the APN only by starting up has the advantages of reducing the traversal time required by loading the APN when no card exists, reducing the memory consumption required by loading the APN and reducing the loss of system resources required by loading the APN.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of an alternative hardware architecture of a mobile terminal implementing various embodiments of the present invention;
fig. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in fig. 1;
FIG. 3 is a flowchart of a first embodiment of an access point name loading method according to the present invention;
FIG. 4 is a flowchart of a second embodiment of an access point name loading method according to the present invention;
FIG. 5 is a flowchart of a third embodiment of an access point name loading method according to the present invention;
FIG. 6 is a flowchart of a fourth embodiment of an access point name loading method according to the present invention;
FIG. 7 is a flowchart of a fifth embodiment of an access point name loading method according to the present invention;
fig. 8 is a flowchart of a sixth embodiment of an access point name loading method according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication system, various embodiments of the method of the present invention are provided.
The application provides an access point name loading method, which specifically comprises a method for a mobile terminal and a method for jointly matching a server and the mobile terminal. The present application will be described in detail with reference to a method for a mobile terminal alone as an example.
Referring to fig. 3, a first embodiment of an access point name loading method according to the present invention is shown.
An access point name loading method for a mobile terminal, the access point name loading method comprising:
step S101, when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module;
step S102, when the monitoring state is card-free, APN loading is canceled;
step S103, loading APN when the monitoring state is card.
In this embodiment, firstly, when the mobile terminal obtains trigger information and needs to load an APN, a monitoring state for a SIM card of a subscriber identity module is obtained. Wherein, the triggering information may be: 1, when the mobile terminal is started, for example, a long-time power supply is started, a terminal system is restarted, or a terminal communication system is reloaded; 2 when the SIM card is changed, for example, the SIM card is replaced by hot plug, or the loading state is changed from two inserted SIM cards through the system; 3 when it is manual refresh APN configuration. When the trigger information is generated, the system executes a preset flow, and can execute the operation of loading the APN when the condition allows. The monitoring state of the SIM card is original in the current mobile terminal operating system, monitoring can be carried out at any time, and the program does not need to be additionally added and only needs to obtain the corresponding monitoring state.
In this embodiment, when the monitoring state of the SIM card is obtained, the state represented by the monitoring state is determined, and when the monitoring state is no card, APN loading is canceled. The monitoring state is no card, and the no card can include that the local SIM card is inserted, the damaged SIM card is inserted, the SIM card inserted by the local SIM card cannot be identified, and the like. After judging that no card exists, the loading of the APN is canceled, namely the system cancels searching for the APN and loads the APN into the action running in the system.
In this embodiment, when the monitoring state of the SIM card is obtained, the state represented by the monitoring state is determined, and when the monitoring state is a card, the information of the SIM card is obtained. Wherein, if the monitoring state is card, it should be: a SIM card capable of normal identification and use has been inserted. After determining that there is a card, the APN is loaded.
As can be seen from the above, in the access point name loading method provided in this embodiment, when the mobile terminal obtains the trigger information and needs to load the APN, the state of the SIM card is determined, and only when the SIM card is detected, the corresponding APN is loaded. Compared with the prior art, the scheme of loading the APN only by starting up has the advantages of reducing the traversal time required by loading the APN when no card exists, reducing the memory consumption required by loading the APN and reducing the loss of system resources required by loading the APN.
Referring to fig. 4, a second embodiment of an access point name loading method according to the present invention is shown. The present embodiment is based on the first embodiment, and the portion of step S103 is specifically defined.
The step S103, the step of loading the APN includes:
step S201, obtaining the information of the SIM card;
step S202, searching a corresponding area form in a pre-stored APN form according to the information of the SIM card;
step S203, loading the area form and obtaining APN configuration matched with the SIM card.
In this embodiment, in the process of loading the APN, the information of the SIM card is obtained first. The information of the SIM card may include a plurality of SIM card information such as IMSI (International Mobile Subscriber Identification Number, international mobile subscriber identity), MCC (Mobile Country Code, country code number to which the mobile subscriber belongs) or MNC (Mobile Network Code, mobile network number).
In this embodiment, after obtaining the information of the SIM card, the corresponding area form is searched for in the pre-stored APN form. The area form can be an area form corresponding to the SIM card internet surfing area after classification; for example, a SIM card of a Z mobile company, the area form is preferably an area form including only APN information of a Z operator; or the region form is a region form of asian region, eastern asian region, or south asian region country operator APN information.
The area form may preferably be a separate form, e.g. an APN form divided into a plurality of small forms:
small table 1: conf-MCC460.Xml
Small table 2: conf-MCC244.Xml
……
Small table N: conf-MCC325.Xml
Of course, in other embodiments, the area form may also be a partition in a form having all APN information. For example, a large table: conf.xml, including the contents:
the region form obtained by matching is the content in the large table, for example: the content of conf-MCC244.
Compared with the traditional scheme, namely when the mobile terminal is started each time, all APNs in the original large table are traversed and stored into own APN configuration files. Then, after inserting the card, the APN configuration file is traversed again according to mcc and mnc of the inserted card, and the correct APN is obtained and then used. The mobile terminal will walk through the APN configuration table again each time the SIM card changes or the user manually refreshes the APN configuration interface. Each traversal is time-consuming and labor-consuming. According to the access point name loading method, on one hand, a large table does not need to be traversed by starting up, on the other hand, all tables do not need to be traversed when the access point name is changed, only the required area table needs to be traversed and loaded, and the occupied memory after loading is less than that of the original access point name loading method.
Referring to fig. 5, a third embodiment of an access point name loading method according to the present invention is shown. The present embodiment is based on the second embodiment, and adds limitation of SIM card information, and the portion of step S202 is specifically limited.
The information of the SIM card comprises: the country code MCC to which the mobile subscriber belongs.
Step S202, according to the information of the SIM card, the step of searching the corresponding area form in the pre-stored APN form includes:
in step S2021, the regional form of the corresponding MCC is searched in the pre-stored APN form according to the country code MCC to which the mobile subscriber of the SIM card belongs.
In this embodiment, the country code MCC to which the mobile subscriber belongs in the SIM card is explicitly obtained; for example, MCC460 represents country Z.
In this embodiment, after obtaining the MCC, the area table of the corresponding MCC is searched in the pre-stored APN table according to the MCC. The regional form of MCC represents the regional form of a specific country, for example, Z country mcc=460 is a regional form. The area form may preferably be a separate form, or may be a partition in a form having all APN information. The area table contains information of three major operators, namely a first operator (mnc=00, 02, 13 and …), a second operator and a third operator.
Referring to fig. 6, a fourth embodiment of an access point name loading method according to the present invention is shown. The present embodiment is based on the third embodiment, and adds limitation of SIM card information, and limitation of part of step S203 is performed.
The information of the SIM card comprises: mobile network number MNC;
the step S203, the step of loading the area form and obtaining the APN configuration matched with the SIM card includes:
step S2031, loading the area form, and obtaining an APN configuration matched with the MNC.
In this embodiment, loading is performed after the region form corresponding to the MCC is found, and then the correct APN configuration item is found by matching with the MNC of the operator in the loaded file. The scheme has the effect of conveniently and simply searching APN configuration.
Referring to fig. 7, a fifth embodiment of an access point name loading method according to the present invention is shown. This embodiment is based on the first embodiment and adds steps.
Step S301, a pre-stored APN form and historical SIM card information are obtained;
step S302, screening APN form contents according to the historical SIM card information to obtain and store an area form matched with the historical SIM card.
In this embodiment, a pre-stored APN table is obtained, along with historical SIM card information. The APN table may be a large table, i.e. a table including all APN information; the APN table may be an area table including only partial APN information. The historical SIM card information is the previous time, the previous ten times or the previous hundred times of inserted SIM information.
In this embodiment, after obtaining the APN form and the historical SIM card information, the content of the APN form is screened according to the historical SIM card information, so as to obtain and store the area form matching the historical SIM card. The obtained area form may be:
1. including all APN information of the corresponding country; for example, if the history SIM card information includes a Z country SIM card, a R country SIM card, and a H country SIM card, all APNs of the 3 countries may be collected and stored as a regional form.
2. Including all APN information of the corresponding operators; for example, in the historical SIM card information, the first operator in the Z country, the second operator in the Z country, the third operator in the Z country, and the R country telephone telegram company may aggregate APNs corresponding to the 4 operators and store the APNs as a single area form.
The screened and stored area form is used as a preferred loading form when a new SIM card is inserted next time and APN information is required to be loaded; and when the APN information matched with the new SIM card cannot be found in the content of the area form, searching the APN information matched with the new SIM card through other forms.
As can be seen from the above, the access point name loading method provided in this embodiment may automatically screen APN information and obtain a new area form, so that the APN configuration may be more efficient in the future.
Referring to fig. 8, a sixth embodiment of an access point name loading method according to the present invention is shown.
The present embodiment acts on a server, as well as a mobile terminal.
In this embodiment, the method for loading the access point name includes:
step S402, the server obtains APN forms classified by country in advance;
step S403, the mobile terminal requests the APN form to the server side and stores the APN form locally;
step S404, when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module;
step S405, when the monitoring state is card-free, APN loading is canceled;
step S406, when the monitoring state is card, obtaining the information of the SIM card, wherein the information of the SIM card comprises the country code MCC to which the mobile user belongs;
step S407, searching a corresponding MCC area form in a pre-stored APN form according to the MCC of the SIM card;
step S408, loading the area form and obtaining APN configuration matched with the SIM card.
In the present embodiment, an APN table in which APN information is classified in advance is stored in a server. The specific classification scheme is classification according to countries. The classification operation may be performed by a maintenance worker. Of course, classification can also be performed by artificial intelligence of the computer. After classification, APN forms for different countries will be obtained. For example, table 1: conf-mcc460.Xml; small table 2: conf-mcc244.Xml; … …; small table N: conf-MCC325.Xml.
Then, the mobile terminal obtains the APN form in the server through the request. Then, according to the different SIM cards, APN forms of different countries can be loaded, and then APN information matching is carried out.
The steps for the mobile terminal are substantially the same as those of the above embodiment, and in the case of no obvious conflict, the above explanation and improvement of the mobile terminal can be applied to this embodiment, and specific reference may be made to the above embodiment, which is not repeated here.
The access point name loading device provided by the embodiment changes the traditional maintenance method of the APN form.
In this embodiment, the large table including all APN information is divided into a plurality of small tables in units of countries according to country codes MCC of different countries, each small table containing all operators of the country. For example, mcc=460 in country Z is a single table containing three major operators, namely, a first operator (mnc=00, 02, 13, …), a second operator, and a third operator. This avoids the difficulty of maintaining large tables, which can lead to easy omission of some operators. Dividing the large table of APN into small tables with country as unit is convenient for terminal research personnel to maintain and update on one hand, and can reduce omission on the other hand, and avoid deletion of APN configuration.
In addition, at the mobile terminal, by searching and loading the regional form (the small form of the APN information is collected by the country), the situation that the APN large form is loaded to occupy too much memory and waste system resources can be avoided.
Further, in this embodiment, the method for loading the access point name includes the steps of:
in step S401, the maintenance end uploads an APN table classified by country in advance to the server.
The maintenance end may be a developer belonging to the mobile terminal or an operator. The server can be a developer of the mobile terminal to contact the mobile terminal for maintenance and upgrading use of the mobile terminal system; the server can also be an operator contact mobile terminal for maintenance and use of communication parameters.
In the embodiment, the maintenance end is added, so that a complete system of the maintenance end, the server and the mobile terminal is formed. The system constitutes a complete technical scheme for solving the technical problem that the existing APN loads excessive contents and consumes mobile terminal system resources. Thereby achieving the effects of improving APN traversal efficiency and reducing resources occupied by APN loading.
The invention relates to a first embodiment of an access point name loading device.
An access point name loading device, the access point name loading device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program when executed by the processor performs the steps of the access point name loading method as described above.
The access point name loading device also has the beneficial effects of the embodiment because the access point name loading device adopts the technical characteristics of the embodiment. Reference may be made specifically to the above embodiments, and details are not repeated here.
The first embodiment of the invention is a computer-readable storage medium.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the access point name loading method described above.
The present computer-readable storage medium also has the advantageous effects of the above-described embodiments, since the technical features of the above-described embodiments are adopted. Reference may be made specifically to the above embodiments, and details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (3)

1. The access point name loading method is characterized by comprising the following steps of:
the server obtains an access point name APN form which is classified by the country in advance;
the mobile terminal requests the APN form to a server side and stores the APN form locally;
when the mobile terminal obtains trigger information and needs to load APN, obtaining a monitoring state aiming at a SIM card of a client identification module;
when the monitoring state is card-free, APN loading is canceled;
loading APN when the monitoring state is card-present, wherein the information of the SIM card is obtained, the information of the SIM card comprises country code MCC of the mobile user, searching a region form of corresponding MCC in a pre-stored APN form according to the MCC of the SIM card, loading the region form, and obtaining APN configuration matched with the SIM card;
the trigger information includes: starting up the mobile terminal, changing the SIM card, or manually refreshing APN configuration;
the step of searching the corresponding area form in the pre-stored APN form according to the information of the SIM card comprises the following steps:
searching a regional form of the corresponding MCC in a pre-stored APN form according to the country code MCC of the mobile subscriber of the SIM card, wherein the regional form is an independent small form or a large form with one partition in forms with all APN information;
the information of the SIM card comprises: mobile network number MNC; the step of loading the area form and obtaining the APN configuration matched with the SIM card comprises the following steps:
loading the area form and obtaining APN configuration matched with the MNC;
obtaining a pre-stored APN form and historical SIM card information, wherein the historical SIM card information is the previous time, the previous ten times or the previous hundred times of inserted SIM information;
screening APN form contents according to the historical SIM card information, obtaining and storing a region form matched with the historical SIM card, and storing the region form, wherein the region form comprises all APN information of a corresponding country and all APN information of a corresponding operator;
the maintenance end uploads an APN form which is classified by the country in advance to the server.
2. An access point name loading device, the access point name loading device comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
the computer program when executed by the processor performs the steps of the access point name loading method as claimed in claim 1.
3. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the access point name loading method of claim 1.
CN202110104007.8A 2021-01-26 2021-01-26 Access point name loading method, access point name loading device and computer readable storage medium Active CN113225725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110104007.8A CN113225725B (en) 2021-01-26 2021-01-26 Access point name loading method, access point name loading device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110104007.8A CN113225725B (en) 2021-01-26 2021-01-26 Access point name loading method, access point name loading device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113225725A CN113225725A (en) 2021-08-06
CN113225725B true CN113225725B (en) 2024-03-19

Family

ID=77084575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110104007.8A Active CN113225725B (en) 2021-01-26 2021-01-26 Access point name loading method, access point name loading device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113225725B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281430A (en) * 2012-01-16 2013-09-04 三星电子株式会社 Apparatus and method for setting up an interface in a mobile terminal
CN107333255A (en) * 2017-06-28 2017-11-07 深圳市沃特沃德股份有限公司 Network parameter matching process and its device and system
CN108112010A (en) * 2017-12-28 2018-06-01 宇龙计算机通信科技(深圳)有限公司 Access method, apparatus, terminal and the computer readable storage medium of network
CN110213765A (en) * 2019-04-23 2019-09-06 努比亚技术有限公司 APN information acquisition methods, terminal, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281430A (en) * 2012-01-16 2013-09-04 三星电子株式会社 Apparatus and method for setting up an interface in a mobile terminal
CN107333255A (en) * 2017-06-28 2017-11-07 深圳市沃特沃德股份有限公司 Network parameter matching process and its device and system
CN108112010A (en) * 2017-12-28 2018-06-01 宇龙计算机通信科技(深圳)有限公司 Access method, apparatus, terminal and the computer readable storage medium of network
CN110213765A (en) * 2019-04-23 2019-09-06 努比亚技术有限公司 APN information acquisition methods, terminal, server and storage medium

Also Published As

Publication number Publication date
CN113225725A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN108391025B (en) Network access management method, mobile terminal and computer readable storage medium
CN107027114A (en) A kind of SIM card switching method, equipment and computer-readable recording medium
CN109982402B (en) Terminal voice calling method, mobile terminal and computer readable storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN109618316B (en) Network sharing method, mobile terminal and storage medium
CN108512625B (en) Anti-interference method for camera, mobile terminal and storage medium
CN109144705B (en) Application management method, mobile terminal and computer readable storage medium
CN109890022B (en) Data transmission control method, mobile terminal and computer readable storage medium
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN110300420B (en) Quick network searching method, mobile terminal and storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN107818022B (en) Application program interface merging method, mobile terminal and computer readable storage medium
CN107682916B (en) Network searching connection adaptation method and device and computer readable storage medium
CN112766444B (en) Antenna tuning method, device, terminal and storage medium of electronic price tag
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN109388947B (en) Background management method, device and computer readable storage medium
CN110069320B (en) Classification correction method, terminal, system and storage medium for application program
CN109684020B (en) Theme switching method, device and computer readable storage medium
CN108900696B (en) Data processing method, terminal and computer readable storage medium
CN109062688B (en) Memory allocation method, server and mobile terminal
CN108040330B (en) WiFi directional transmission method, mobile terminal and readable storage medium
CN108566476B (en) Information processing method, terminal and computer readable storage medium
CN113225725B (en) Access point name loading method, access point name loading device and computer readable storage medium
CN112887195B (en) Voice calling method, voice calling device and computer 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
GR01 Patent grant
GR01 Patent grant