CN103813295A - Method and device for automatically configuring and updating access point name parameters - Google Patents
Method and device for automatically configuring and updating access point name parameters Download PDFInfo
- Publication number
- CN103813295A CN103813295A CN201210454061.6A CN201210454061A CN103813295A CN 103813295 A CN103813295 A CN 103813295A CN 201210454061 A CN201210454061 A CN 201210454061A CN 103813295 A CN103813295 A CN 103813295A
- Authority
- CN
- China
- Prior art keywords
- mccmnc
- value
- subfile
- apn parameter
- apn
- 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method and a device for automatically configuring and updating APN (Access Point Name) parameters. The method comprises splitting an APN list parent file into more than one sub-file; storing one or more than one MCCMNC (Mobile Country Code and Mobile Network Code) value and the corresponding APN parameter in every sub-file; extracting the MCCMNC values stored in the sub-files and storing the MCCMNC value information; reading and comparing the stored MCCMNC values and MCCMNC values in an SIM/USIM (Subscriber Identity Module/Universal Subscriber Identity Module) card of a mobile terminal after startup of the mobile terminal to obtain the corresponding sub-files; searching the corresponding sub-files to obtain the APN parameters which are corresponding to the MCCMNC values. According to the technical scheme of the method and the device for automatically configuring and updating the APN parameters, the automatic configuration and update speed of the APN parameters is greatly improved and the user experience is improved.
Description
Technical field
The present invention relates to mobile terminal device data service technology, be specifically related to method and the device of a kind of configuration automatically and renewal APN (Access Point Name, APN) parameter.
Background technology
The parameter that APN parameter must configure while being mobile terminal networking, in prior art, mobile terminal is configuration of APN parameter automatically, concrete configuration method comprises: read subscriber identification module (Subscriber Identity Module, SIM) card/global subscriber identification module (Universal Subscriber Identity Module, USIM) the MCCMNC value in card, according to the MCCMNC value search APN listing file obtaining, obtain the APN parameter of mating with MCCMNC value.Wherein, MCCMNC value comprises Mobile Country Code MCC (Mobile Country Code, MCC) and Mobile Network Code (Mobile Network Code, MNC).
But, because all APN list storage of global operator are in a file, quite consuming time in the time searching; When after APN parameter matching success, the registration of mobile terminal and enter network process and can finish because of the delay in APN parameter matching process, in order to allow the APN parameter of coupling come into force, must restart mobile terminal.Therefore,, for the APN parameter that makes Auto-matching comes into force, must accelerate the matching speed of APN parameter.
Summary of the invention
In view of this, method and device that main purpose of the present invention is to provide a kind of automatic configuration and upgrades APN parameter, improved the speed that APN parameter automatically configures and upgrades greatly, promoted user's experience.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of automatic configuration of APN parameter, APN list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and store M CCMNC value information; The method also comprises:
After mobile terminal-opening, read and compare the MCCMNC value in MCCMNC value and the SIM/USIM card in file, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.
In such scheme, each subfile stores multiple MCCMNC values and corresponding APN parameter thereof;
MCCMNC value in described extraction subfile, and store M CCMNC value information is:
Extract first MCCMNC value in each subfile, the mapping relations of first MCCMNC value in each subfile and subfile sequence number are stored in a file;
Describedly read and compare MCCMNC value in file and obtain corresponding subfile with the MCCMNC value in SIM/USIM card, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value and be:
The mapping relations of MCCMNC value and subfile sequence number in file reading, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in MCCMNC value in SIM/USIM card and file is compared, obtain corresponding subfile sequence number according to the mapping relations of MCCMNC value and subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value.
In such scheme, described APN list mother file is split as more than one before subfile, the method also comprises:
APN parameter list in APN mother file is arranged from small to large by corresponding MCCMNC value.
In such scheme, MCCMNC value of each subfile storage and corresponding APN parameter thereof;
MCCMNC value in described extraction subfile, and store M CCMNC value information is:
Extract MCCMNC value in the each subfile filename as subfile, filename is stored in a file;
Describedly read and compare MCCMNC value in file and obtain corresponding subfile with the MCCMNC value in SIM/USIM card, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value and be:
Filename in file reading, read the MCCMNC value in mobile terminal SIM/USIM card, filename in MCCMNC value in SIM/USIM card and file is compared, obtained corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value.
In such scheme, the method also comprises:
If APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, searching corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile.
In such scheme, the method also comprises:
If APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the filename of storing in corresponding MCCMNC value and file is compared, obtain corresponding filename, searching corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile.
In such scheme, the method also comprises:
Searching corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value time, the APN parameter of change is being added in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value.
In such scheme, the method also comprises:
MCCMNC value in corresponding MCCMNC value and file is compared, inquiry is during less than corresponding subfile sequence number, a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and by the mapping relations storage of MCCMNC value and subfile sequence number hereof.
The present invention also provides a kind of device of automatic configuration of APN parameter, and this device comprises data processing module, memory module and matching module; Wherein,
Described data processing module, for APN parameter list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and MCCMNC value information is stored to memory module;
Described memory module, for storing APN parameter list subfile, store M CCMNC value information;
Described matching module, for reading the MCCMNC value information that memory module is stored, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.
In such scheme, each subfile stores multiple MCCMNC values and corresponding APN parameter;
Described data processing module, for the APN parameter list of APN mother file is arranged from small to large by the value of corresponding MCCMNC, and is split as more than one subfile by APN mother file; Extract first MCCMNC value in each subfile, first MCCMNC value in each subfile and the mapping relations of subfile sequence number are stored to memory module;
Accordingly, described memory module, for storing APN parameter list subfile, the mapping relations of store M CCMNC value and subfile sequence number;
Accordingly, described matching module, for reading MCCMNC value that memory module stores and the mapping relations of subfile sequence number, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, obtain corresponding subfile sequence number according to the mapping relations of MCCMNC value and subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value.
In such scheme,
Described matching module, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
In such scheme, MCCMNC value of each subfile storage and corresponding APN parameter;
Described data processing module, for APN list mother file is split as to more than one subfile, extracts MCCMNC value in the each subfile filename as subfile, and filename is stored to memory module;
Accordingly, described memory module, for storing APN parameter list subfile, storage is with the filename of MCCMNC value name;
Accordingly, described matching module, for reading the filename that memory module is stored, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the filename of storage are compared, obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value.
In such scheme, described matching module, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, filename in corresponding MCCMNC value and file is compared, obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
In such scheme,
Described data processing module, also for searching corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value time, adds the APN parameter of change in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value.
In such scheme,
Described data processing module, also for the MCCMNC value of corresponding MCCMNC value and file is being compared, inquiry is during less than corresponding subfile, and a newly-built subfile, adds the APN parameter of change and corresponding MCCMNC value in newly-built subfile to.
Accordingly, described memory cell, also for storing newly-built subfile.
Method and the device of automatic configuration provided by the invention and renewal APN parameter, APN list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and store M CCMNC value information; After mobile terminal-opening, read and compare the MCCMNC value in MCCMNC value and the mobile terminal SIM/USIM card in file, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.Visible, in the present invention by setting up the mapping relations of MCCMNC value and subfile sequence number, can realize fast finding subfile sequence number, and then by the subfile sequence number Rapid matching APN parameter corresponding with MCCMNC value, greatly improve the speed that APN parameter automatically configures and upgrades, promoted user's experience.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of the automatic configuration of APN parameter of the present invention;
Fig. 2 is the installation composition configuration diagram of the automatic configuration of APN parameter of the present invention;
The method flow schematic diagram of the automatic configuration of APN parameter that Fig. 3 provides for first embodiment of the invention;
The method flow schematic diagram of the automatic configuration of APN parameter that Fig. 4 provides for second embodiment of the invention;
The method flow schematic diagram of the automatic renewal APN parameter that Fig. 5 provides for third embodiment of the invention;
The method flow schematic diagram of the automatic renewal APN parameter that Fig. 6 provides for fourth embodiment of the invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
Fig. 1 is the method flow schematic diagram of the automatic configuration of APN parameter of the present invention, as shown in Figure 1, comprises the following steps:
Step 101: APN list mother file is split as to more than one subfile, and each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and store M CCMNC value information;
In this step, if each subfile is stored multiple MCCMNC values and corresponding APN parameter, this step comprises:
APN list mother file is split as to more than one subfile, and each subfile is stored multiple MCCMNC values and corresponding APN parameter thereof;
Extract first MCCMNC value in each subfile, the mapping relations of first MCCMNC value in each subfile and subfile sequence number are stored in a file;
Wherein, can split mother file according to the quantity of the quantity of the APN parameter comprising in subfile or MCCMNC value, but all APN parameters corresponding to same MCCMNC value all need be split in a subfile, so that in follow-up matching process, can match all APN parameters corresponding to MCCMNC value;
Wherein, what in described file, store is the mapping relations of MCCMNC value and subfile sequence number, and file is stored in binary mode.
Further, described APN list mother file is split as more than one before subfile, this step also comprises: the APN parameter list in APN mother file is arranged from small to large by corresponding MCCMNC value.
Here,, if MCCMNC value of each subfile storage and corresponding APN parameter thereof, this step comprises:
APN list mother file is split as to more than one subfile, MCCMNC value of each subfile storage and corresponding APN parameter thereof;
Extract MCCMNC value in the each subfile filename as subfile, filename is stored in a file.
Accordingly, described store M CCMNC value information can be that MCCMNC value information is stored in a binary file; Wherein, described MCCMNC value information comprises: the mapping relations of MCCMNC value and subfile sequence number or the filename with the name of MCCMNC value.
Step 102: after mobile terminal-opening, the MCCMNC value information in file reading;
Here the MCCMNC value reading, can be kept in an array; Described MCCMNC value information comprises: the mapping relations of MCCMNC value and subfile sequence number or the filename with the name of MCCMNC value.
Step 103: read the MCCMNC value in mobile terminal SIM/USIM card, the MCCMNC value in the MCCMNC value in SIM/USIM card and file is compared, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value;
Here, if the MCCMNC value information in file is the mapping relations of MCCMNC value and subfile sequence number, in the MCCMNC value comparison process in MCCMNC value and the file with reading in SIM/USIM card, can obtain the subfile sequence number corresponding with MCCMNC value by dichotomy, and search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value;
Further, if APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, searching corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile;
If searching in corresponding subfile according to subfile sequence number, cannot obtain the APN parameter corresponding with MCCMNC value, the APN parameter of change is added in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value;
If the MCCMNC value in corresponding MCCMNC value and file is compared, inquiry is less than corresponding subfile sequence number, newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and by MCCMNC to and the mapping relations storage of subfile sequence number hereof.
If what store in array is the filename with the name of MCCMNC value, can directly the MCCMNC value reading and the filename in array be compared and obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value;
Further, if APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the filename of storing in corresponding MCCMNC value and file is compared, obtain corresponding filename, searching corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile;
If searching according to filename in corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value, the APN parameter of change is added in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value;
If the MCCMNC value in corresponding MCCMNC value and file is compared, inquiry is less than corresponding subfile, newly-built subfile, adds the APN parameter of change and corresponding MCCMNC value in newly-built subfile to, and newly-built subfile is named with corresponding MCCMNC value.
For realizing said method, the present invention also provides a kind of device of automatic configuration of APN parameter, and as shown in Figure 2, this device comprises data processing module 21, memory module 22 and matching module 23; Wherein,
Described data processing module 21, for APN list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and MCCMNC value information is stored to memory module 22;
Here, described MCCMNC value information comprises: the mapping relations of MCCMNC value and subfile sequence number or the filename with the name of MCCMNC value;
Described memory module 22, for storing APN list subfile, store M CCMNC value information;
Described matching module 23, for reading the MCCMNC value information of memory module 22 storages, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.
Further, if each subfile is stored multiple MCCMNC values and corresponding APN parameter:
Described data processing module 21, for the APN parameter list of APN mother file is arranged from small to large by the value of corresponding MCCMNC, and is split as more than one subfile by APN mother file; Extract first MCCMNC value in each subfile, first MCCMNC value in each subfile and the mapping relations of subfile sequence number are stored to memory module 22;
Accordingly, described memory module 22, for storing APN parameter list subfile, the mapping relations of store M CCMNC value and subfile sequence number;
Accordingly, described matching module 23, for reading the MCCMNC value of memory module 22 storages and the mapping relations of subfile sequence number, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, and obtain corresponding subfile sequence number according to the mapping relations of MCCMNC value and subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value.
Further, described matching module 23, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module 21, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
Further, if MCCMNC value of each subfile storage and corresponding APN parameter,
Described data processing module 21, for APN list mother file is split as to more than one subfile, extracts MCCMNC value in the each subfile filename as subfile, and filename is stored to memory module 22;
Accordingly, described memory module 22, for storing APN parameter list subfile, storage is with the filename of MCCMNC value name;
Accordingly, described matching module 23, for reading the filename of memory module 22 storages, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the filename of storage are compared, obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value.
Further, described matching module 23, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, filename in corresponding MCCMNC value and file is compared, obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module 21, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
Further, described data processing module 21, also for searching corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value time, adds the APN parameter of change in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value.
Further, described data processing module 21, also for the MCCMNC value of corresponding MCCMNC value and file is being compared, inquiry is during less than corresponding subfile, a newly-built subfile, adds the APN parameter of change and corresponding MCCMNC value in newly-built subfile to.
Accordingly, described memory cell 22, also for storing newly-built subfile.
The method flow schematic diagram of the automatic configuration of APN parameter that Fig. 3 provides for first embodiment of the invention, as shown in Figure 3, comprises the following steps:
Step 301: the APN parameter list in APN mother file is arranged from small to large by corresponding MCCMNC value;
Step 302~303: APN list mother file is split as to more than one subfile, each subfile is stored multiple MCCMNC values and corresponding APN parameter thereof, extract first MCCMNC value in each subfile, the mapping relations of first MCCMNC value in each subfile and subfile sequence number are stored in a file;
Here, can APN list mother file be split according to the quantity of APN parameter, as can be by every 10 APN parameters APN list mother file is split as to more than one subfile; Wherein, the APN parameter corresponding with same MCCMNC value need split in same subfile, so that follow-up matching process can match all APN parameter corresponding to MCCMNC value;
Wherein, the mode that the mapping relations of described MCCMNC value and subfile sequence number can binary file is stored.
Step 304: after mobile terminal-opening, the mapping relations of MCCMNC value and subfile sequence number being kept in an array in file reading;
Step 305~306: read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in the MCCMNC value reading and array is compared, obtain corresponding subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value;
Here can obtain corresponding subfile by corresponding MCCMNC value in binary search array;
For example, if the MCCMNC value in the SIM/USIM card obtaining is 46002, and in array, N MCCMNC value corresponding to sub-file sequence number is that 46000, the N+1 MCCMNC values corresponding to sub-file sequence number are 46010, therefore the MCCMNC value that, numerical value is 46002 is arranged in N subfile; By searching N the sub-file acquisition APN parameter corresponding with MCCMNC value, if this MCCMNC value is to should have multiple APN parameter time, automatically choosing first APN parameter is default parameters.
The method flow schematic diagram of the automatic configuration of APN parameter that Fig. 4 provides for second embodiment of the invention, as shown in Figure 4, comprises the following steps:
Step 401~402: APN list mother file is split as to more than one subfile, MCCMNC value of each subfile storage and corresponding APN parameter thereof, extract MCCMNC value in the each subfile filename as each subfile, filename is kept in a file;
Here the mode that, described filename can binary file is stored.
Step 403: after standby communication terminal start, the filename in file reading is also kept in an array;
Step 404~405: read the MCCMNC value in mobile terminal SIM/USIM card, the MCCMNC value reading and the filename in array are compared and obtained corresponding subfile, search subfile and obtain the APN parameter corresponding with MCCMNC value;
Here, because filename is MCCMNC value, therefore, can directly the filename in the MCCMNC value reading and array be compared, obtain corresponding subfile;
For example, the MCCMNC value that SIM/USIM card reads is 46002, the MCCMNC value reading 46002 and the element in array are compared, can directly be obtained the subfile 46002.xml of 46002 correspondences, search 46002.xml and obtain the APN parameter corresponding with MCCMNC value 46002; Wherein, if this MCCMNC value is to should have multiple APN parameter time, automatically choosing first APN parameter is default parameters.
The method flow schematic diagram of the automatic renewal APN parameter that Fig. 5 provides for third embodiment of the invention, as shown in Figure 5, comprises the following steps:
Step 501: MCCMNC value corresponding to APN parameter that record changes;
Here MCCMNC value corresponding to APN parameter for example changing, is 46002;
Step 502: the MCCMNC value of storing in file reading and the corresponding relation of subfile sequence number, search subfile sequence number corresponding to the MCCMNC value corresponding with the APN parameter changing;
Here can obtain corresponding subfile sequence number by the MCCMNC value of storing in binary search file; For example, in file, N MCCMNC value corresponding to subfile is that MCCMNC value corresponding to 46000, a N+1 subfile is 46010, and therefore, the MCCMNC value that numerical value is 46002 is arranged in N subfile.
Step 503: judge whether to find the subfile sequence number corresponding with MCCMNC value, if the result judging is yes, execution step 505; Otherwise execution step 504;
Step 504: a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and by the mapping relations storage of MCCMNC value and subfile sequence number hereof, finish current handling process;
Here, if do not find the subfile sequence number corresponding with MCCMNC value, the explanation MCCMNC value corresponding with the APN parameter changing is newly-increased MCCMNC value, need a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and by the mapping relations storage of MCCMNC value and subfile sequence number hereof.
Step 505: search APN parameter corresponding with MCCMNC value in corresponding subfile according to subfile sequence number;
Here, if find the subfile sequence number corresponding with MCCMNC value; For example, sequence number is N, searches APN parameter corresponding with MCCMNC value in N subfile.
Step 506: judge whether to find the APN parameter corresponding with MCCMNC value, if the result judging is yes, execution step 507; Otherwise execution step 508;
Step 507: by the APN parameter replacement changing for the APN parameter of storing in subfile, finish current handling process;
Here, if find the APN parameter corresponding with MCCMNC value, by the APN parameter replacement changing for the APN parameter of storage.
Step 508: the APN parameter of change is added in APN parameter list corresponding to the affiliated subfile of corresponding MCCMNC value;
Here, if do not find the APN parameter corresponding with MCCMNC value, the APN parameter of change is added in the corresponding A PN parameter list of the affiliated subfile of corresponding MCCMNC value.
The method flow schematic diagram of the automatic renewal APN parameter that Fig. 6 provides for fourth embodiment of the invention, as shown in Figure 6, comprises the following steps:
Step 601: MCCMNC value corresponding to APN parameter that record changes;
For example, MCCMNC value corresponding to the APN parameter of change is 46002;
Step 602: the filename of storing in file reading, search filename corresponding to the MCCMNC value corresponding with the APN parameter changing;
Here, the filename of storing in file reading, searching with MCCMNC value is 46002 corresponding filename 46002.xml.
Step 603: judge whether to find the filename corresponding with MCCMNC value, if the result judging is yes, execution step 604; Otherwise execution step 605;
Step 604: by the APN parameter replacement changing for the APN parameter in the subfile of file MCCMNC value by name, finish current handling process;
Here, if found 46002 filename, find corresponding subfile, by the APN parameter replacement changing for the APN parameter in subfile.
Step 605: a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and newly-built subfile is named with corresponding MCCMNC value;
Here, if do not find 46002 filename, the explanation MCCMNC value corresponding with the APN parameter changing is newly-increased MCCMNC value, needs a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in subfile, and newly-built subfile is named with this MCCMNC value.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and scope of the present invention, be equal to and replace and improvement etc., within being all included in protection scope of the present invention.
Claims (15)
1. the method for an automatic configuring name of access point APN parameter, it is characterized in that, APN list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extract the MCCMNC value in subfile, and store M CCMNC value information; The method also comprises:
After mobile terminal-opening, read and compare the MCCMNC value in MCCMNC value and the subscriber identification module SIM/ whole world subscriber identification module usim card in file, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.
2. method according to claim 1, is characterized in that, each subfile stores multiple MCCMNC values and corresponding APN parameter thereof;
MCCMNC value in described extraction subfile, and store M CCMNC value information is:
Extract first MCCMNC value in each subfile, the mapping relations of first MCCMNC value in each subfile and subfile sequence number are stored in a file;
Describedly read and compare MCCMNC value in file and obtain corresponding subfile with the MCCMNC value in SIM/USIM card, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value and be:
The mapping relations of MCCMNC value and subfile sequence number in file reading, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in MCCMNC value in SIM/USIM card and file is compared, obtain corresponding subfile sequence number according to the mapping relations of MCCMNC value and subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value.
3. method according to claim 1 and 2, is characterized in that, described APN list mother file is split as more than one before subfile, and the method also comprises:
APN parameter list in APN mother file is arranged from small to large by corresponding MCCMNC value.
4. method according to claim 1, is characterized in that, MCCMNC value of each subfile storage and corresponding APN parameter thereof;
MCCMNC value in described extraction subfile, and store M CCMNC value information is:
Extract MCCMNC value in the each subfile filename as subfile, filename is stored in a file;
Describedly read and compare MCCMNC value in file and obtain corresponding subfile with the MCCMNC value in SIM/USIM card, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value and be:
Filename in file reading, read the MCCMNC value in mobile terminal SIM/USIM card, filename in MCCMNC value in SIM/USIM card and file is compared, obtained corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value.
5. method according to claim 2, is characterized in that, the method also comprises:
If APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, searching corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile.
6. method according to claim 4, is characterized in that, the method also comprises:
If APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the filename of storing in corresponding MCCMNC value and file is compared, obtain corresponding filename, searching corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value, is the APN parameter changing by the APN parameter replacement of storing in subfile.
7. according to the method described in claim 5 or 6, it is characterized in that, the method also comprises:
Searching corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value time, the APN parameter of change is being added in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value.
8. according to the method described in claim 5 or 6, it is characterized in that, the method also comprises:
MCCMNC value in corresponding MCCMNC value and file is compared, inquiry is during less than corresponding subfile sequence number, a newly-built subfile, the APN parameter of change and corresponding MCCMNC value are added in newly-built subfile, and by the mapping relations storage of MCCMNC value and subfile sequence number hereof.
9. a device for automatic configuration of APN parameter, is characterized in that, this device comprises data processing module, memory module and matching module; Wherein,
Described data processing module, for APN parameter list mother file is split as to more than one subfile, each subfile is stored one or more MCCMNC values and corresponding APN parameter thereof, extracts the MCCMNC value in subfile, and MCCMNC value information is stored to memory module;
Described memory module, for storing APN parameter list subfile, store M CCMNC value information;
Described matching module, for reading the MCCMNC value information that memory module is stored, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, obtain corresponding subfile, search corresponding subfile and obtain the APN parameter corresponding with MCCMNC value.
10. device according to claim 9, is characterized in that, each subfile stores multiple MCCMNC values and corresponding APN parameter;
Described data processing module, for the APN parameter list of APN mother file is arranged from small to large by the value of corresponding MCCMNC, and is split as more than one subfile by APN mother file; Extract first MCCMNC value in each subfile, first MCCMNC value in each subfile and the mapping relations of subfile sequence number are stored to memory module;
Accordingly, described memory module, for storing APN parameter list subfile, the mapping relations of store M CCMNC value and subfile sequence number;
Accordingly, described matching module, for reading MCCMNC value that memory module stores and the mapping relations of subfile sequence number, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the MCCMNC value of storage are compared, obtain corresponding subfile sequence number according to the mapping relations of MCCMNC value and subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value.
11. devices according to claim 10, is characterized in that,
Described matching module, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, the MCCMNC value of storing in corresponding MCCMNC value and file is compared, obtain corresponding subfile sequence number, search corresponding subfile according to subfile sequence number and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
12. devices according to claim 9, is characterized in that, MCCMNC value of each subfile storage and corresponding APN parameter;
Described data processing module, for APN list mother file is split as to more than one subfile, extracts MCCMNC value in the each subfile filename as subfile, and filename is stored to memory module;
Accordingly, described memory module, for storing APN parameter list subfile, storage is with the filename of MCCMNC value name;
Accordingly, described matching module, for reading the filename that memory module is stored, read the MCCMNC value in mobile terminal SIM/USIM card, MCCMNC value in SIM/USIM card and the filename of storage are compared, obtain corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value.
13. devices according to claim 12, it is characterized in that, described matching module, also in the time that APN parameter changes, MCCMNC value corresponding to APN parameter that record changes, filename in corresponding MCCMNC value and file is compared, obtained corresponding filename, search corresponding subfile according to filename and obtain the APN parameter corresponding with MCCMNC value;
Accordingly, described data processing module, is also the APN parameter changing for the APN parameter replacement that subfile is stored.
14. according to the device described in claim 11 or 13, it is characterized in that,
Described data processing module, also for searching corresponding subfile, cannot obtain the APN parameter corresponding with MCCMNC value time, adds the APN parameter of change in the corresponding APN parameter list of the affiliated subfile of corresponding MCCMNC value.
15. according to the device described in claim 11 or 13, it is characterized in that,
Described data processing module, also for the MCCMNC value of corresponding MCCMNC value and file is being compared, inquiry is during less than corresponding subfile, and a newly-built subfile, adds the APN parameter of change and corresponding MCCMNC value in newly-built subfile to;
Accordingly, described memory cell, also for storing newly-built subfile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210454061.6A CN103813295B (en) | 2012-11-13 | 2012-11-13 | A kind of method and device for automatically configuring and updating APN parameter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210454061.6A CN103813295B (en) | 2012-11-13 | 2012-11-13 | A kind of method and device for automatically configuring and updating APN parameter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103813295A true CN103813295A (en) | 2014-05-21 |
CN103813295B CN103813295B (en) | 2017-06-13 |
Family
ID=50709399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210454061.6A Active CN103813295B (en) | 2012-11-13 | 2012-11-13 | A kind of method and device for automatically configuring and updating APN parameter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103813295B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104640135A (en) * | 2015-01-07 | 2015-05-20 | 宇龙计算机通信科技(深圳)有限公司 | User configuration information acquiring method and device |
CN105100025A (en) * | 2014-05-22 | 2015-11-25 | 中兴通讯股份有限公司 | Service distribution method and service distribution system |
CN105430142A (en) * | 2015-11-13 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Access point parameter detection method and system, and mobile terminal |
WO2016049142A1 (en) * | 2014-09-24 | 2016-03-31 | Blackberry Limited | Methods and apparatus for configuring network connections using a memory |
WO2016078407A1 (en) * | 2014-11-19 | 2016-05-26 | 中兴通讯股份有限公司 | Access point name (apn) parameter configuration processing method and device |
CN106413039A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | APN adaptive configuration device and method |
CN106658673A (en) * | 2015-10-29 | 2017-05-10 | 中兴通讯股份有限公司 | APN selection method and device |
WO2017181465A1 (en) * | 2016-04-21 | 2017-10-26 | 中兴通讯股份有限公司 | Access point name configuration method and device |
CN107302760A (en) * | 2017-07-07 | 2017-10-27 | 上海汇尔通信息技术有限公司 | The switching method and terminal of a kind of POS version |
CN108156600A (en) * | 2017-12-20 | 2018-06-12 | 中国移动通信集团江苏有限公司 | Method, apparatus, equipment and the medium that Internet of Things network interface card APN is automatically configured |
CN108829459A (en) * | 2018-05-31 | 2018-11-16 | 康键信息技术(深圳)有限公司 | Configuration method, device, computer equipment and storage medium based on Nginx server |
WO2019091355A1 (en) * | 2017-11-09 | 2019-05-16 | 捷开通讯(深圳)有限公司 | Apn data format conversion method, smart device, and storage apparatus |
US11601871B2 (en) * | 2016-09-27 | 2023-03-07 | Huawei Technologies Co., Ltd. | Data connection establishment method and terminal device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101516123A (en) * | 2008-12-05 | 2009-08-26 | 中国移动通信集团广东有限公司 | Data service packet access roaming control method and system |
US20120099578A1 (en) * | 2009-06-23 | 2012-04-26 | Sharp Kabushiki Kaisha | Mobile station, position management apparatus, subscriber information management apparatus, mobile communication system, access control apparatus, home base station and communication method |
-
2012
- 2012-11-13 CN CN201210454061.6A patent/CN103813295B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101516123A (en) * | 2008-12-05 | 2009-08-26 | 中国移动通信集团广东有限公司 | Data service packet access roaming control method and system |
US20120099578A1 (en) * | 2009-06-23 | 2012-04-26 | Sharp Kabushiki Kaisha | Mobile station, position management apparatus, subscriber information management apparatus, mobile communication system, access control apparatus, home base station and communication method |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100025A (en) * | 2014-05-22 | 2015-11-25 | 中兴通讯股份有限公司 | Service distribution method and service distribution system |
US10321391B2 (en) | 2014-09-24 | 2019-06-11 | Blackberry Limited | Methods and apparatus for configuring network connections using a memory |
WO2016049142A1 (en) * | 2014-09-24 | 2016-03-31 | Blackberry Limited | Methods and apparatus for configuring network connections using a memory |
WO2016078407A1 (en) * | 2014-11-19 | 2016-05-26 | 中兴通讯股份有限公司 | Access point name (apn) parameter configuration processing method and device |
CN104640135B (en) * | 2015-01-07 | 2018-05-15 | 宇龙计算机通信科技(深圳)有限公司 | A kind of user configuration information acquisition methods and device |
US10321302B2 (en) | 2015-01-07 | 2019-06-11 | Nanchang Coolpad Intelligent Technology Company Limited | Method for acquiring use configuration information and terminal |
US10470033B2 (en) | 2015-01-07 | 2019-11-05 | Nanchang Coolpad Intelligent Technology Company Limited | Method for acquiring user configuration information and terminal |
CN104640135A (en) * | 2015-01-07 | 2015-05-20 | 宇龙计算机通信科技(深圳)有限公司 | User configuration information acquiring method and device |
CN106658673A (en) * | 2015-10-29 | 2017-05-10 | 中兴通讯股份有限公司 | APN selection method and device |
CN105430142B (en) * | 2015-11-13 | 2019-07-19 | 上海斐讯数据通信技术有限公司 | Detection method, system and the mobile terminal of access point parameters |
CN105430142A (en) * | 2015-11-13 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Access point parameter detection method and system, and mobile terminal |
CN107306388A (en) * | 2016-04-21 | 2017-10-31 | 中兴通讯股份有限公司 | A kind of APN APN collocation method and device |
WO2017181465A1 (en) * | 2016-04-21 | 2017-10-26 | 中兴通讯股份有限公司 | Access point name configuration method and device |
CN107306388B (en) * | 2016-04-21 | 2021-07-27 | 中兴通讯股份有限公司 | Configuration method and device of Access Point Name (APN) |
US11601871B2 (en) * | 2016-09-27 | 2023-03-07 | Huawei Technologies Co., Ltd. | Data connection establishment method and terminal device |
CN106413039A (en) * | 2016-10-31 | 2017-02-15 | 努比亚技术有限公司 | APN adaptive configuration device and method |
CN107302760A (en) * | 2017-07-07 | 2017-10-27 | 上海汇尔通信息技术有限公司 | The switching method and terminal of a kind of POS version |
WO2019091355A1 (en) * | 2017-11-09 | 2019-05-16 | 捷开通讯(深圳)有限公司 | Apn data format conversion method, smart device, and storage apparatus |
CN108156600A (en) * | 2017-12-20 | 2018-06-12 | 中国移动通信集团江苏有限公司 | Method, apparatus, equipment and the medium that Internet of Things network interface card APN is automatically configured |
CN108156600B (en) * | 2017-12-20 | 2021-11-23 | 中国移动通信集团江苏有限公司 | Method, device, equipment and medium for automatically configuring APN (access point name) of Internet of things card |
CN108829459A (en) * | 2018-05-31 | 2018-11-16 | 康键信息技术(深圳)有限公司 | Configuration method, device, computer equipment and storage medium based on Nginx server |
CN108829459B (en) * | 2018-05-31 | 2023-03-21 | 康键信息技术(深圳)有限公司 | Nginx server-based configuration method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103813295B (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103813295A (en) | Method and device for automatically configuring and updating access point name parameters | |
EP2830339B1 (en) | Method and terminal for loading configuration information of mobile network operator | |
CN101179472B (en) | Network resource searching method and searching system | |
CN105682126B (en) | Configuration processing method and device for APN (access point name) parameter | |
EP3169113B1 (en) | Network access method and mobile communications terminal | |
CN102724657A (en) | Method and system for automatically configuring mobile terminal parameters of Android system | |
CN110177392B (en) | Cell selection method and device | |
CN106162813A (en) | A kind of small region search method and device | |
CN101754186A (en) | Method and system for residing when mobile terminal is powered on | |
WO2016202262A1 (en) | Network access method and mobile terminal | |
CN104320833A (en) | Automatic network selecting method and system of mobile terminal | |
CN104902533A (en) | Network access method and mobile communication terminal | |
EP3145230B1 (en) | Method and device for controlling subscriber identity module card of mobile terminal | |
CN103051768A (en) | Method and system for updating contact ways in address book | |
CN104484206A (en) | Method, terminal and system for setting up application program | |
CN103813439A (en) | Method for terminal register and terminal | |
CN101399873B (en) | Method, apparatus and communication terminal device for processing index information of phone book | |
CN104853409A (en) | Network access method and mobile communication terminal | |
CN103324551A (en) | Application data migration method and system | |
CN103124404A (en) | Information reading method, information reading terminal, information management method and subscriber identification module | |
CN101345848A (en) | Method and device for searching TV program, and mobile terminal | |
CN105554850A (en) | Network searching method and electronic equipment | |
WO2016173070A1 (en) | Terminal network searching method and terminal | |
CN102272743A (en) | Management method for information of universal integrated circuit card and device thereof | |
CN104038985A (en) | Communication network searching method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |