CN105307195B - A kind of method and device updating access point name parameter - Google Patents

A kind of method and device updating access point name parameter Download PDF

Info

Publication number
CN105307195B
CN105307195B CN201510608648.1A CN201510608648A CN105307195B CN 105307195 B CN105307195 B CN 105307195B CN 201510608648 A CN201510608648 A CN 201510608648A CN 105307195 B CN105307195 B CN 105307195B
Authority
CN
China
Prior art keywords
apn
file
user
parameter
update
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
CN201510608648.1A
Other languages
Chinese (zh)
Other versions
CN105307195A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510608648.1A priority Critical patent/CN105307195B/en
Publication of CN105307195A publication Critical patent/CN105307195A/en
Application granted granted Critical
Publication of CN105307195B publication Critical patent/CN105307195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The invention discloses a kind of method and devices for updating access point name APN parameter, comprising: receives the APN parameter more new command of user's input;Obtain the download path of APN file;The APN file is downloaded from server according to the download path;It checks whether the APN script in the APN file matches with the APN script in the former APN profile in mobile terminal, if so, being loaded to the APN file, otherwise, is loaded using former APN profile and user is prompted to update failure;Check whether APN catalogue parsing mistake occur during loading the APN file, if, former APN profile is then reused to load and user is prompted to update failure, otherwise, continue to load the APN file, to solve because of the problem of downloading file error and downloading file do not cause to update the failure of access point name parameter entirely, and user is not available data service.

Description

A kind of method and device updating access point name parameter
Technical field
The present invention relates to mobile terminal data service technical fields, and in particular to a kind of update access point name (Access Point Name, APN) parameter method and device.
Background technique
APN is a kind of network access technique, and APN parameter is the parameter that must be configured when mobile terminal networks.
In the prior art, there are two types of the mode of configuration of APN parameter, first way is: by all operators in the whole world A configuration file is all written in APN parameter, and the configuration file is preset in mobile phone, is identified according to the user that mobile phone is inserted into International mobile subscriber identity (International in module (Subscriber Identity Module, SIM) card Mobile Subscribe Identification Number, IMSI) preceding 5 or preceding 6, searched from the configuration file Matched APN parameter.The shortcomings that this mode is since all APN parameters of global operator are stored in a configuration file In, it is relatively time consuming when searching;If another aspect cannot normally match or parameter error, mobile terminal can be all influenced Data network function.And the defect of preset configuration file also resides in, and since the network of operator constantly upgrades, APN parameter Also it can irregularly be updated, if mobile phone still uses old APN parameter request for data business in this case, can lose It loses, ameliorative way is that the new APN parameter provided according to operator changes the parameter in this terminal manually, but efficiency Very low, inconvenient, user experience is bad.Another way is online updating method, can be kept at any time by online updating It is consistent with the APN parameter of server end, it solves the problems, such as that preset configuration file is unfavorable for updating to a certain extent, but works as Because network cause causes to download file error or downloading file is not full-time, APN parameter can all be caused all to be lost.If occurring Such situation will lead to user and not be available data service completely, and user experience is not high.
In conclusion needing to improve the existing method for updating APN parameter, to promote the operating experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of method and device for updating access point name parameter, to solve because of downloading file The problem of mistake and downloading file do not cause to update the failure of access point name parameter entirely, and user is not available data service.
In a first aspect, the embodiment of the invention provides a kind of methods for updating access point name parameter, comprising:
Receive the APN parameter more new command of user's input;
The download path of APN file is obtained, the APN file includes the APN information for needing to update;
The APN file is downloaded from server according to the download path;
Check whether is APN script in APN script in the APN file and the former APN profile in mobile terminal Matching, if so, loading to the APN file, otherwise, is loaded using former APN profile and prompts user more New failure;
Check whether APN catalogue parsing mistake occur during loading the APN file, if so, reusing Former APN profile loads and user is prompted to update failure, otherwise, continues to load the APN file.
Second aspect, the embodiment of the invention provides a kind of devices for updating access point name parameter, comprising:
Command reception module is updated, for receiving the APN parameter more new command of user's input;
Download path obtains module, and for obtaining the download path of APN file, the APN file includes needing to update APN information;
APN file download module, for downloading the APN file from server according to the download path;
APN file checking module, for checking the APN script in the APN file and the preset text of mobile terminal Central Plains APN Whether the APN script in part matches, if so, loading to the APN file, otherwise, is carried out using former APN profile It loads and user is prompted to update failure;Check whether APN catalogue parsing mistake occur during loading the APN file, It loads if so, reusing former APN profile and user is prompted to update failure, otherwise, continue to load the APN file.
A kind of method and device updating access point name parameter provided in an embodiment of the present invention, by described in the load Whether APN file checks the APN script in APN script and mobile terminal Central Plains APN profile in the APN file before Matching is loaded if mismatching using former APN profile, is solved because the APN file error of downloading is led The problem of update access point name parameter of cause fails, and user is not available data service;By loading the APN file Check whether APN catalogue parsing mistake occur in the process, if so, reusing the load of former APN profile, solve because The problem of update access point name parameter failure caused by the APN file of downloading is not complete, user is not available data service.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of method flow diagram for update APN parameter that the embodiment of the present invention one provides;
Fig. 2 is a kind of method flow diagram for updating APN parameter provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural block diagram of the device for update access point name parameter that the embodiment of the present invention three provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just In description, only some but not all contents related to the present invention are shown in the drawings.
Embodiment one
Fig. 1 is a kind of method flow diagram for update access point name parameter that the embodiment of the present invention one provides.The present embodiment In the case that a kind of method of the update APN parameter provided needs to update APN parameter for mobile terminal.This method can be by more The device of new access point name parameter executes, which can be realized in the form of hardware and/or software.As shown in Figure 1, The described method includes:
Step 110, the APN parameter more new command for receiving user's input;
The present embodiment is not defined the mode for the APN parameter more new command for receiving user's input, it is preferred that above-mentioned behaviour Make specifically to can be user and be sent out by clicking the shortcut menu button that the APN parameter that is arranged updates in mobile terminal to mobile terminal Send APN parameter more new command, or the APN upgrade button by being arranged in the update device in mobile terminal is to the movement Terminal sends APN parameter more new command.
APN parameter generally comprises: APN typonym, proxy information, port information, user name, password, server, more matchmakers Body message service center (Multimedia Message Service Center, MMSC), multimedia message proxy information, multimedia message port Information, Motor Control Center (MOTOR CONTROL CENTER, MCC) information and APN agreement etc..
The mobile terminal include mobile phone and other call functions possessed with mobile phone, sending and receiving function of multimedia message and on The terminal of net function.
Step 120, the download path for obtaining APN file, the APN file include the APN information for needing to update;
After the APN parameter more new command for receiving user's transmission, mobile terminal is obtained from preset address and is wrapped on server The download path of the file containing APN obtains current newest APN file from address indicated by the download path.The APN File generally comprises the newest APN parameter of each operator, including updated APN parameter and newly-increased APN parameter.
Step 130 downloads the APN file according to the download path from server;
Preferably, according to the download path before downloading the APN file in server further include:
Detect whether the mobile terminal accesses network, if so, downloading institute from server by the download path State APN file;Otherwise, prompt user updates after please networking again currently without network connection.
Step 140 checks the APN script in the APN file and the APN in the former APN profile in mobile terminal Whether script matches, if so, loading to the APN file, otherwise, is loaded and is mentioned using former APN profile Show that user updates failure;
In some cases, for example, network signal it is bad or it is unstable easily cause network interruption, if such situation Occur during downloading APN file, easily leads to the APN file error or incomplete of downloading.In order to avoid from server The APN file error of middle downloading leads to the problem of load failure, and checking step is increased before loading the APN file: inspection Whether the APN script looked into the APN file matches with the APN script in the former APN profile in mobile terminal, if so, Then the APN file is loaded, otherwise, illustrates the APN file error of downloading, is loaded using former APN profile And user is prompted to update failure.
It should be noted that because APN script, that is, apns version is specific to APN file i.e. apn-conf.xml Content can determine whether the APN file is correct by Keywords matching.
Further, before being loaded to the APN file further include: by APN original in the mobile terminal APN information in database is deleted.
Step 150 checks whether APN catalogue parsing mistake occur during loading the APN file, if so, It reuses former APN profile to load and user is prompted to update failure, otherwise, continues to load the APN file.
If the APN file downloaded from server is not complete, during loading the APN file, it may appear that APN catalogue parses mistake, at this point, system meeting throw exception, adds step in throw exception --- it is preset to reuse former APN File is loaded, to guarantee that user can also use the data service of the mobile terminal.If loading the APN file In the process, there is not APN catalogue parsing mistake and then illustrate that the APN file is completely, to continue to load the APN file.
A kind of method updating access point name parameter provided in an embodiment of the present invention, by loading the APN file Check whether the APN script in the APN file matches with the APN script in the APN profile of mobile terminal Central Plains before, such as Fruit is mismatched and is then loaded using former APN profile, is solved because updating caused by the APN file error of downloading The problem of access point name parameter failure, user is not available data service;By being examined during loading the APN file It looks into and APN catalogue parsing mistake whether occurs, if so, reusing former APN profile load, solve the institute because of downloading State the problem of APN file is not entirely caused to update the failure of access point name parameter, and user is not available data service;Work as operator APN parameter when updating, user can avoid the inconvenience updated manually by mobile terminal one-key update;It is mobile whole End manufacturer only needs to update the server comprising APN file.
Embodiment two
Fig. 2 is the detailed method flow diagram for updating APN parameter of one kind provided by Embodiment 2 of the present invention.This method packet It includes:
Step 210, user use one-key update APN function;
The step specifically can be the shortcut menu button that user updates by clicking the APN parameter being arranged in mobile terminal APN parameter more new command is sent to mobile terminal, or the upgrading of the APN by being arranged in the update device in mobile terminal is pressed Button sends APN parameter more new command to the mobile terminal.
Whether step 220, detection currently have network available;
The step is specifically to detect whether the mobile terminal accesses network, if so then execute step 230-download services The APN file at device end is to locally, and no to then follow the steps 221-prompt users' inspection networks, further execution step 222-exits APN more new procedures.
Step 230, download server end APN file to local;
The mobile terminal that the local, that is, user uses, the step are specifically to be downloaded according to download path from server end APN file.
Whether step 240, comparison apns version match;
After the completion of the APN file download, whether APN script i.e. apns version in the APN file of downloading is compared It is matched with the apns version of the former APN profile in mobile terminal, if so then execute step 250-parsing loads item by item APN file, it is no to then follow the steps 251-prompt users' update failures, it is loaded using local original APN profile, is further held Row step 252-exits APN parameter more new procedures;
Step 250, item by item parsing load APN file;
If parsing loads the APN file success item by item, that is, the update operation for completing APN parameter is represented, step is executed 260-complete, and prompt user to update and complete;It is no to then follow the steps 251-prompt users and update failure, it is pre- using local original APN File load is set, step 252-is further executed and exits APN parameter more new procedures.
Step 260 is completed.
The step is completed for prompting user's APN parameter to update.The step can be used and be popped up in the mobile terminal The mode of the dialog box of display " update and complete " prompts user's update operation to complete.
A kind of method updating access point name parameter provided in an embodiment of the present invention, by loading the APN file Check whether the APN script in the APN file matches with the APN script in the APN profile of mobile terminal Central Plains before, such as Fruit is mismatched and is then loaded using former APN profile, is solved because updating caused by the APN file error of downloading The problem of access point name parameter failure, user is not available data service;By being examined during loading the APN file It looks into and APN catalogue parsing mistake whether occurs, if so, reusing former APN profile load, solve the institute because of downloading State the problem of APN file is not entirely caused to update the failure of access point name parameter, and user is not available data service.
Embodiment three
Fig. 3 is a kind of structural block diagram of the device for update access point name parameter that the embodiment of the present invention three provides, such as Fig. 3 Shown, which specifically includes: updating command reception module 310, download path obtains module 320, APN file download module 330 and APN file checking module 340.
Wherein, command reception module 310 is updated, for receiving the APN parameter more new command of user's input;Download path obtains Modulus block 320, for obtaining the download path of APN file, the APN file includes the APN information for needing to update;APN file Download module 330, for downloading the APN file from server according to the download path;APN file checking module 340, For checking whether the APN script in the APN file matches with the APN script in the APN profile of mobile terminal Central Plains, if It is then to be loaded to the APN file, otherwise, is loaded using former APN profile and user is prompted to update failure; Check whether APN catalogue parsing mistake occur during loading the APN file, if so, it is preset to reuse former APN File loads and user is prompted to update failure, otherwise, continues to load the APN file.
A kind of device updating access point name parameter provided in an embodiment of the present invention, by loading the APN file Check whether the APN script in the APN file matches with the APN script in the APN profile of mobile terminal Central Plains before, such as Fruit is mismatched and is then loaded using former APN profile, is solved because updating caused by the APN file error of downloading The problem of access point name parameter failure, user is not available data service;By being examined during loading the APN file It looks into and APN catalogue parsing mistake whether occurs, if so, reusing former APN profile load, solve the institute because of downloading State the problem of APN file is not entirely caused to update the failure of access point name parameter, and user is not available data service;Work as operator APN parameter when updating, user can avoid the inconvenience updated manually by mobile terminal one-key update;It is mobile whole End manufacturer only needs to update the server comprising APN file.
Further, described device further include networking detection module, for according to the download path from server Before downloading the APN file, detect whether the mobile terminal accesses network, if so, passing through the download path from clothes The APN file is downloaded in business device;Otherwise, prompt user updates after please networking again currently without network connection.
Further, described device further includes removing module, for before loading to the APN file, by institute The APN information stated in APN database original in mobile terminal is deleted.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (4)

1. a kind of method for updating access point name APN parameter characterized by comprising
Receive the APN parameter more new command of user's input;
The download path of APN file is obtained, the APN file includes the APN information for needing to update;
The APN file is downloaded from server according to the download path;
Check whether the APN script in the APN file matches with the APN script in the former APN profile in mobile terminal, If so, being loaded to the APN file, otherwise, is loaded using former APN profile and user is prompted to update and lost It loses;Wherein, by Keywords matching, determine whether the APN file is correct;
Check whether APN catalogue parsing mistake occur during loading the APN file, if so, reusing former APN Profile loads and user is prompted to update failure, otherwise, continues to load the APN file;
Wherein, before being loaded to the APN file further include: will be in APN database original in the mobile terminal APN information delete.
2. the method according to claim 1, wherein described in being downloaded from server according to the download path Before APN file further include:
Detect whether the mobile terminal accesses network, if so, downloading the APN from server by the download path File;Otherwise, prompt user updates after please networking again currently without network connection.
3. a kind of device for updating access point name APN parameter characterized by comprising
Command reception module is updated, for receiving the APN parameter more new command of user's input;
Download path obtains module, and for obtaining the download path of APN file, the APN file includes the APN letter for needing to update Breath;
APN file download module, for downloading the APN file from server according to the download path;
APN file checking module, for checking in the APN script in the APN file and mobile terminal Central Plains APN profile APN script whether match, if so, being loaded to the APN file, otherwise, loaded using former APN profile And user is prompted to update failure;Wherein, by Keywords matching, determine whether the APN file is correct;
Check whether APN catalogue parsing mistake occur during loading the APN file, if so, reusing former APN Profile loads and user is prompted to update failure, otherwise, continues to load the APN file;
Removing module, for before being loaded to the APN file, by APN database original in the mobile terminal In APN information delete.
4. device according to claim 3, which is characterized in that further include networking detection module, for according under described Path is carried before downloading the APN file in server, detects whether the mobile terminal accesses network, if so, passing through The download path downloads the APN file from server;Otherwise, prompt user is currently without network connection, after please networking again It updates.
CN201510608648.1A 2015-09-22 2015-09-22 A kind of method and device updating access point name parameter Active CN105307195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510608648.1A CN105307195B (en) 2015-09-22 2015-09-22 A kind of method and device updating access point name parameter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510608648.1A CN105307195B (en) 2015-09-22 2015-09-22 A kind of method and device updating access point name parameter

Publications (2)

Publication Number Publication Date
CN105307195A CN105307195A (en) 2016-02-03
CN105307195B true CN105307195B (en) 2019-02-19

Family

ID=55203828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510608648.1A Active CN105307195B (en) 2015-09-22 2015-09-22 A kind of method and device updating access point name parameter

Country Status (1)

Country Link
CN (1) CN105307195B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250548A (en) * 2016-08-12 2016-12-21 福建中金在线信息科技有限公司 A kind of code update method
CN106657428A (en) * 2016-09-29 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Access point name update method, device and system
CN106506728B (en) * 2016-12-30 2019-10-11 宇龙计算机通信科技(深圳)有限公司 A kind of access point name configuration method and mobile terminal
CN107426718A (en) * 2017-08-30 2017-12-01 深圳传音通讯有限公司 A kind of mobile terminal and its APN update method
CN108093396B (en) * 2017-12-15 2021-09-21 深圳市沃特沃德股份有限公司 Method and device for updating APN (Access Point name) of vehicle-mounted system
CN110417830B (en) * 2018-04-27 2022-06-10 上海晨兴希姆通电子科技有限公司 Method and system for updating APN (access point name) of terminal equipment
CN109862555A (en) * 2019-03-04 2019-06-07 环球天成科技(无锡)有限公司 User terminal A PN update method, server and user terminal
CN111652465A (en) * 2020-04-22 2020-09-11 杭州传化智能制造科技有限公司 Method, device and system for scheduling processing, computer equipment and storage medium
CN111966373B (en) * 2020-08-11 2023-09-12 Oppo(重庆)智能科技有限公司 APN resetting method, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409074A (en) * 2008-11-24 2009-04-15 杭州鑫方软件有限公司 Method for updating embedded speech identification system function
CN103906092A (en) * 2014-03-28 2014-07-02 宇龙计算机通信科技(深圳)有限公司 Method and device for updating access point information
CN104105077A (en) * 2014-07-25 2014-10-15 广东欧珀移动通信有限公司 Mobile phone upgrading method and device
CN104602363A (en) * 2014-12-25 2015-05-06 联想(北京)有限公司 Electronic equipment and APN information updating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409074A (en) * 2008-11-24 2009-04-15 杭州鑫方软件有限公司 Method for updating embedded speech identification system function
CN103906092A (en) * 2014-03-28 2014-07-02 宇龙计算机通信科技(深圳)有限公司 Method and device for updating access point information
CN104105077A (en) * 2014-07-25 2014-10-15 广东欧珀移动通信有限公司 Mobile phone upgrading method and device
CN104602363A (en) * 2014-12-25 2015-05-06 联想(北京)有限公司 Electronic equipment and APN information updating method thereof

Also Published As

Publication number Publication date
CN105307195A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105307195B (en) A kind of method and device updating access point name parameter
US8045971B2 (en) Communications network capable of determining SIM card changes in electronic devices
CN107547239B (en) Configuration object updating method and device
US8572599B2 (en) Provisioning device make and model information for firmware over-the-air (FOTA)
CN107748668B (en) Method and device for upgrading application program
US20090124251A1 (en) Method of Assessing Compatibility Between Applications and Processor Devices
US7809366B2 (en) Mobile device client
US20060200658A1 (en) Agent framework for mobile devices
US9585033B2 (en) System and method for enhanced diagnostics on mobile communication devices
US20130152069A1 (en) Method, apparatus and system for initiating terminal operation
CN106815049B (en) Method and device for upgrading feature library
CN105530130A (en) Method and device for upgrading Over-The-Air downloading technology
CN106897166A (en) A kind of mobile terminal and its restorative procedure
CN112202920A (en) Vehicle machine system upgrading method and device
CN112615747A (en) Method and device for automatically deploying and configuring network equipment
CN112115049A (en) Application program testing method, device, equipment and computer readable storage medium
CN113872812B (en) Information processing method, network equipment and terminal equipment
CN108958785A (en) A kind of application program updating method and device
CN110147246A (en) Version checking method and device, storage medium and the terminal of space download technology
CN104104701A (en) Online service configuration updating method and system
CN108881320B (en) Authentication processing method for user login, server and client
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium
CN111246447A (en) eUICC signed data management method, eUICC signed data management module, eUICC signed data management terminal and eUICC signed data management storage medium
CN103984541A (en) Method and system for generating application procedure based on terminal source codes
CN113064611B (en) Method for realizing data analysis software upgrading aiming at wireless equipment and updating method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant