WO2016078407A1 - Access point name (apn) parameter configuration processing method and device - Google Patents

Access point name (apn) parameter configuration processing method and device Download PDF

Info

Publication number
WO2016078407A1
WO2016078407A1 PCT/CN2015/081977 CN2015081977W WO2016078407A1 WO 2016078407 A1 WO2016078407 A1 WO 2016078407A1 CN 2015081977 W CN2015081977 W CN 2015081977W WO 2016078407 A1 WO2016078407 A1 WO 2016078407A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
sim card
apn
apn parameter
card information
Prior art date
Application number
PCT/CN2015/081977
Other languages
French (fr)
Chinese (zh)
Inventor
张井昆
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016078407A1 publication Critical patent/WO2016078407A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for configuring an Access Point Name (APN) parameter.
  • API Access Point Name
  • the carrier's network has multiple modes of coexistence, such as Global System for Mobile Communication (GSM), Code Division Multiple Access (CDMA), and Wideband Code Division Multiple Access. (Wideband Code Division Multiple Access, referred to as WCDMA), Long-Term Evolution (LTE), etc., and some special application data services require different Dedicated Access Point Names (APNs). Create multiple parallel data links.
  • GSM Global System for Mobile Communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long-Term Evolution
  • APIs Dedicated Access Point Names
  • OTA Over the Air Technology
  • APN parameters for data terminals
  • manual configuration is to let the user manually input the corresponding parameters on the UI.
  • the specific APN parameters can be set according to the network. It is more flexible, but requires the user to know the specific professional parameter values, which is inconvenient for ordinary users, and the user experience is not good.
  • the automatic matching method is that the data terminal is configured with a fixed APN information database of the major operators in the world at the time of shipment, and the operator information of the SIM card is read at the initial initialization, generally according to the Mobile Conuntry Code (MCC) & Mobile Network
  • MCC Mobile Conuntry Code
  • SPN Service Provider Name
  • This method does not require user intervention and is convenient.
  • the APN information database in the terminal is prefabricated at the factory, it is fixed and only applicable to the operator.
  • the SIM card APN matching between the two cannot meet the situation in which the APN parameters change during the use of the terminal.
  • the two APN configurations are not applicable to the case where the operator remotely configures the APN and other parameters of the SIM card that the terminal is using through the OMA DM during the user's use.
  • the embodiment of the invention provides a method and a device for configuring APN parameters, so as to solve at least the problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN in the process of replacing the SIM card in the terminal in the prior art.
  • a method for configuring APN parameters including: acquiring, by a terminal, user identification module SIM card information, and APN parameters corresponding to the SIM card information; and the SIM card information, and The APN parameter corresponding to the SIM card information is stored in a preset database of the terminal.
  • storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal includes: receiving, by the terminal, an APN parameter from an operator.
  • Command updating the APN parameter in the preset database according to the APN parameter parsed from the command.
  • storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal includes: during a shutdown process of the terminal, The terminal acquires the APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database.
  • the method further includes: determining, by the terminal, whether the APN parameter corresponding to the SIM card information is stored in the preset database; wherein, if the determination result is no, The terminal is set using a predetermined APN parameter.
  • the method further includes: determining the APN parameter stored in the preset database, and the APN parameter corresponding to the SIM card information currently used by the terminal. If the result of the determination is YES, the terminal is not set, and if the determination result is no, the APN parameter corresponding to the currently used SIM card information stored in the preset database is used. Set the terminal.
  • another method for configuring APN parameters including: acquiring, by a terminal, user identification module SIM card information currently used; and acquiring, by the terminal, a SIM from a local preset database The APN parameter corresponding to the card information; the terminal sets the terminal according to the APN parameter.
  • the APN parameter in the preset database is determined by: the terminal receiving a command for setting an APN parameter from an operator; and updating the preset according to an APN parameter parsed from the command.
  • APN parameters in the database are determined by: the terminal receiving a command for setting an APN parameter from an operator; and updating the preset according to an APN parameter parsed from the command.
  • the APN parameter in the preset database is determined by: in the shutdown process of the terminal, the terminal acquires an APN parameter corresponding to the currently used SIM card information, and obtains the acquired The APN parameter corresponding to the currently used SIM card information is updated into the preset database.
  • a configuration processing device for an APN parameter is provided.
  • the device is applied to a terminal, and includes: an acquiring module, configured to acquire user identification module SIM card information, and corresponding to the SIM card information.
  • the APN parameter is configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  • another configuration processing device for APN parameters is provided.
  • the device is applied to a terminal, and includes: a first acquiring module, configured to acquire currently used user identification module SIM card information;
  • the acquiring module is configured to obtain an APN parameter corresponding to the SIM card information from a local preset database, and the setting module is configured to set the terminal according to the APN parameter.
  • the terminal acquires the SIM card information of the user identification module and the APN parameter corresponding to the SIM card information; and stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  • the problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN is solved in the process of replacing the SIM card in the terminal in the prior art, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card. Effect.
  • FIG. 1 is a flowchart of a configuration processing method of an access point name APN parameter according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention
  • FIG. 3 is a flowchart 1 of a method for configuring an access point name APN parameter according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram 1 of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a database table according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of configuring a terminal APN according to a SIM card in a device when a terminal starts initializing according to an embodiment of the present invention
  • FIG. 7 is a sequence diagram of an operator DM server setting terminal APN according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of updating an APN database when a terminal is powered off according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for configuring an access point name APN parameter according to an embodiment of the present invention. As shown in FIG. The process includes the following steps:
  • Step S102 the terminal acquires the SIM card information of the user identification module, and the APN parameter corresponding to the SIM card information;
  • Step S104 The terminal stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal, where the APN parameter is used to perform configuration processing on the terminal.
  • the terminal stores the information of the SIM card used by the terminal and the APN parameter corresponding to the SIM card information in a preset database of the terminal, compared with the information of the SIM card and the SIM in the prior art.
  • the APN parameter corresponding to the card information is not stored in the database of the terminal.
  • the foregoing step S102 involves acquiring the user identification module SIM card information and the APN parameter corresponding to the SIM card information.
  • the APN parameter corresponding to the SIM card can be obtained in various manners, in an optional embodiment.
  • the terminal receives the command for setting the APN parameter from the operator, and presets the APN parameter in the database according to the APN parameter update obtained from the command.
  • the terminal acquires the APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database. in. Therefore, the terminal can update the APN parameter corresponding to the SIM card in real time according to the actual situation of the service included in the SIM card, and then set the terminal by using the updated APN parameter.
  • the terminal detects the currently used SIM card. In an optional embodiment, it is determined whether the APN parameter corresponding to the SIM card information is stored in the preset database; wherein, in the case that the determination result is no, the usage is scheduled.
  • the APN parameter is set for the terminal. Thereby, the terminal is guaranteed to be able to handle basic services.
  • the determination result is yes, it is further determined whether the APN parameter stored in the preset database is consistent with the APN parameter corresponding to the SIM card currently used by the terminal, and if the determination result is yes, The SIM card currently used by the terminal is the same as the SIM card used before the last shutdown. At this time, the terminal is not set. If the judgment result is no, the SIM card currently used by the terminal is used before the last shutdown. The SIM card is different. At this time, the terminal is set using the APN parameter corresponding to the currently used SIM card stored in the preset database.
  • a configuration processing device for the access point name APN parameter is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus includes: an obtaining module 22 configured to acquire a user identification module SIM. Card information, and an APN parameter corresponding to the SIM card information; the storage module 24 is configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  • an obtaining module 22 configured to acquire a user identification module SIM. Card information, and an APN parameter corresponding to the SIM card information
  • the storage module 24 is configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  • FIG. 3 is a flowchart 1 of a method for configuring an access point name APN parameter according to an embodiment of the present invention. The process includes the following steps:
  • Step S302 the terminal acquires the currently used user identification module SIM card information
  • Step S304 the terminal acquires an APN parameter corresponding to the SIM card information from the local preset database.
  • Step S306 the terminal sets the terminal according to the APN parameter.
  • the terminal stores the information of the SIM card used by the terminal and the APN parameter corresponding to the SIM card information in the preset database of the terminal, so that the terminal sets the terminal in real time according to the APN parameter, compared to the existing In the technology, the information about the SIM card and the APN parameter corresponding to the SIM card information are not stored in the database of the terminal.
  • the above steps solve the problem that the parameters such as APN are incompatible in the process of replacing the SIM card in the terminal in the prior art.
  • the problem that the network cannot be registered or the network cannot be connected, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card, and the terminal sets the terminal according to the APN parameter in real time.
  • the APN parameter corresponding to the SIM card can be obtained in a plurality of manners.
  • the terminal receives a command for setting an APN parameter from the operator, and updates the APN in the preset database according to the APN parameter parsed from the command. parameter.
  • the terminal acquires the APN parameter corresponding to the currently used SIM card, and updates the acquired APN parameter corresponding to the currently used SIM card to the preset database. .
  • FIG. 4 is a structural block diagram 1 of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention.
  • the device is applied to a terminal.
  • the apparatus includes: a first obtaining module 42 configured to acquire a current The user identification module SIM card information is used; the second obtaining module 44 is configured to obtain an APN parameter corresponding to the SIM card information from the local preset database; and the setting module 46 is configured to set the terminal according to the APN parameter.
  • This alternative embodiment proposes a method for configuring APN parameters of a terminal device according to a SIM card, on the terminal. Create a database of SIM card information corresponding to the APN parameters, and record each SIM used in the terminal and a set of APN parameters configured by the corresponding operator. That is, according to the method of configuring the terminal APN by the SIM card, the terminal records a parameter corresponding to a group of APNs according to the SIM card recording parameters, and when the device replaces the SIM card, the parameters such as the APN of the device are also updated.
  • the SIM card and the device APN parameters used in the terminal device are correspondingly recorded in the database while the operator sets the terminal through the OMA DM protocol.
  • the corresponding APN parameter information is queried in the database according to the IMSI of the SIM card in the device, and the terminal is set.
  • the terminal APN parameter is restored to the factory default value; if it is detected that the SIM card is replaced, the terminal is set according to the APN parameter corresponding to the SIM card IMSI in the database.
  • FIG. 5 is a schematic structural diagram of a database table according to an embodiment of the present invention, such as As shown in FIG. 5, 501 is an IMSI of a SIM card, and uniquely identifies a SIM card user. Each IMSI corresponds to a set of terminal APN parameters 502, and a plurality of different APNs are used to establish different application PDN links.
  • FIG. 6 is a flowchart of configuring a terminal APN according to a SIM card in a device when the terminal starts initializing according to an embodiment of the present invention. As shown in FIG. 6, the process includes the following steps:
  • Step S602 the terminal is powered on for initialization
  • Step S604 reading the IMSI of the SIM card in the device
  • Step S606 it is determined whether the IMSI of the SIM card is 0, if the determination is yes, step S608 is performed, and if the determination result is no, step S610 is performed;
  • Step S608 if the IMSI of the SIM card is 0, indicating that there is no SIM card or the SIM card is damaged in the device, the device APN parameter is restored to the factory default value;
  • Step S610 if the IMSI is not 0, the inserted SIM card is a valid card, and the terminal device APN parameter information is obtained from the database created above according to the acquired IMSI;
  • step S612 the result of the query determines whether the record can be obtained from the database. If the acquisition fails, the inserted SIM card is used for the first time on the terminal, and the factory default APN parameter is used for the SIM card, and step S608, APN is performed. Parameter recovery defaults;
  • Step S614 if the record corresponding to the SIM is obtained, the acquired APN parameter is compared with the current APN parameter of the device;
  • step S616 it is determined whether the two sets of parameters are the same. If the two are the same, the SIM card is not replaced. Step S620 is performed, and there is no need to perform a reset operation, and return; if the two are different, the SIM in the terminal and the last time before the shutdown. The SIM card used is different, and step S618 is performed, and the terminal is set by using the APN parameter corresponding to the SIM card obtained from the database;
  • Step S620 no operation, return.
  • FIG. 7 is a sequence diagram of an operator DM server setting terminal APN according to an embodiment of the present invention. As shown in FIG. 7, the sequence diagram includes the following steps:
  • Step S702 During the use of the user, if the operator detects that the APN parameter setting needs to be performed on the terminal, the DM server on the operator side establishes a session connection with the terminal through the OMA DM protocol;
  • Step S704 after the session is established, the DM server sends a command for setting an APN parameter, and after the terminal parses the command, performs a corresponding setting operation;
  • Step S706 after the setting action is completed, updating the IMSI of the SIM in the current terminal device and the newly updated APN parameter information as a record to the database, and if the data record of the SIM card already exists in the database, updating the original record. Item; if the record corresponding to the SIM card is not found in the database, the above record is inserted into the database table.
  • Step S708 after completing the above actions, the terminal feeds back the result of the setting action to the DM server.
  • FIG. 8 is a flowchart of updating an APN database when a terminal is powered off according to an embodiment of the present invention. As shown in FIG. 8, the flowchart includes the following steps;
  • Step S802 receiving a shutdown command
  • Step S804 reading parameters such as APN used by the current device
  • Step S806 querying corresponding records in the database according to the IMSI of the SIM card in the device;
  • Step S808 it is determined whether the above-mentioned record item is read, that is, whether there is a record according to the result of the query return, if the result of the determination is yes, step S810 is performed, and if the result of the determination is no, step S812 is performed;
  • Step S810 if the record of the SIM can be read, indicating that the record of the SIM already exists in the database, and updating the read current device APN parameter to the record item corresponding to the SIM card;
  • Step S812 if there is no record item of the SIM card in the database, it indicates that the SIM card is used on the terminal for the first time, and the current terminal device APN parameter and the IMSI component new record of the SIM are inserted into the database.
  • an alternative solution can achieve similar effects. Specifically, when the operator remotely sets the APN parameters of the terminal device through the OMA DM protocol, the terminal retains the parameters set by the operator and is only valid as the terminal. Parameters, regardless of what is done, always set the terminal with this set of APN parameters, unless the operator sets the terminal again. This way, when the data terminal SIM card is not replaced at all times, it is available.
  • this solution does not have the flexibility of the solution proposed by the present invention because the alternative does not take into account the card change situation.
  • Some data application services of operators are based on data links established by different APNs. Different users choose different data application services. Therefore, the APN parameters of one SIM card may not be applicable to another SIM card, even if they belong to the same carrier. . After replacing a new SIM card with a multi-mode data terminal, the previous APN parameters may need to be reset. When the original SIM card is reused, it is necessary to reset the APN parameters once, which is very inconvenient.
  • the optional embodiment of the present invention can make the APN parameter setting more convenient and flexible by using the OMA DM protocol to allow the operator to remotely set parameters such as APN and frequently replace the SIM card.
  • the terminal can remember the used SIM card and the corresponding APN and other parameter information. After the user replaces the original used SIM card, the terminal automatically configures the previous APN parameter, and the operator side does not need to re-issue the APN parameter. The command.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the terminal acquires the SIM card information of the user identification module and the APN parameter corresponding to the SIM card information; and stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  • the problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN is solved in the process of replacing the SIM card in the terminal in the prior art, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card. Effect

Abstract

Disclosed are an access point name (APN) parameter configuration processing method and device. The method comprises: a terminal obtaining information of a subscriber identity module (SIM) card and an APN parameter corresponding to the information of the SIM card; storing the information of the SIM card and the APN parameter corresponding to the information of the SIM card in a preset data base of the terminal. The present invention addresses the problem in the prior art of, when a SIM card is swapped at a terminal, due to a parameter, such as an APN not being compatible, a network cannot be logged in to or connected to; thus, in the invention, when a SIM card is swapped at a terminal, an APN parameter of the terminal can also be updated.

Description

接入点名称APN参数的配置处理方法及装置Access point name APN parameter configuration processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种接入点名称(Access Point Name,简称为APN)参数的配置处理方法及装置。The present invention relates to the field of communications, and in particular, to a method and an apparatus for configuring an Access Point Name (APN) parameter.
背景技术Background technique
目前运营商的网络存在多种制式共存,如,全球移动通信(Global system for Mobile Communication,简称为GSM)、码分多址(Code Division Multiple Access,简称为CDMA)、宽带码分多址接入(Wideband Code Division Multiple Access,简称为WCDMA)、长期演进(Long-Term Evolution,简称为LTE)等,并且一些特殊应用数据服务,需要不同专属接入点名称(Dedicated Access Point Name,简称为APN)建立多个并行数据链接。不同用户根据自身需要选择的数据服务不同,因此运营商的APN等网络参数不再像之前固定不变,而是随着终端设备使用的客户识别模块(Subscriber Identity Module,简称为SIM)卡、所处网络以及时间等因素不同发生变化。At present, the carrier's network has multiple modes of coexistence, such as Global System for Mobile Communication (GSM), Code Division Multiple Access (CDMA), and Wideband Code Division Multiple Access. (Wideband Code Division Multiple Access, referred to as WCDMA), Long-Term Evolution (LTE), etc., and some special application data services require different Dedicated Access Point Names (APNs). Create multiple parallel data links. The data services selected by different users according to their own needs are different. Therefore, the network parameters such as the APN of the operator are not fixed as before, but the Subscriber Identity Module (SIM) card used by the terminal device. Factors such as network and time have changed.
针对APN等网络参数实时变化的问题,运营商通过空中下载技术(Over the Air Technology,简称为OTA)方式,在用户感知不到的情况下,远程地对采用例如开放移动联盟(Open Mobile Alliance,简称为OMA)设备管理(Device Manage,简称为DM)等协议的数据终端进行APN等参数设置等管理操作,这样可以使数据终端的APN等参数可以按照运营商要求实时动态变化。In response to the real-time change of network parameters such as APN, operators use the Over the Air Technology (OTA) method to remotely adopt Open Mobile Alliance, for example, if they are not aware of the user. The data terminal of the protocol such as OMA (Device Management, DM for short) performs management operations such as parameter setting such as APN, so that parameters such as APN of the data terminal can be dynamically changed in real time according to the operator's requirements.
对于数据终端,为了满足运营商的网络要求,需要同时支持多种网络制式,并且可以兼容多种SIM卡。For data terminals, in order to meet the operator's network requirements, it is necessary to support multiple network standards at the same time, and can be compatible with a variety of SIM cards.
这样就会出现这样一个问题:当运营商通过OTA方式对终端进行APN设置可能仅适用于当前设备中正在使用的SIM卡,如果后面设备插入其他的SIM卡,则需要另外一套参数,否则会因APN等参数不兼容,导致网络无法注册或网络无法连接等问题,所以需要运营商重新通过远程方式下发设置APN等参数的指令,如果原来的SIM又被重新插回到终端设备上使用,还需要再次设置一次参数,恢复到SIM卡拔出前的参数状态,这样对于运营商和用户来说十分不便。This will cause such a problem: when the operator performs APN setting on the terminal through the OTA method, it may only be applied to the SIM card currently in use in the current device. If the latter device is inserted into another SIM card, an additional set of parameters is required, otherwise If the parameters such as APN are incompatible, the network cannot be registered or the network cannot be connected. Therefore, the operator needs to re-deliver the parameters such as APN in remote mode. If the original SIM is re-plugged back to the terminal device, It is also necessary to set the parameters again to restore the parameter state before the SIM card is pulled out, which is very inconvenient for the operator and the user.
目前数据终端配置APN参数的方式有手动配置和自动配置两种方式。手动方式是让用户在UI上手动输入设置相应参数,这种方式可以根据网络设置具体的APN参数, 比较灵活,但需要用户知道具体的专业参数值,这对于普通用户来说是否不便,用户体验不好。Currently, there are two methods for configuring APN parameters for data terminals: manual configuration and automatic configuration. The manual mode is to let the user manually input the corresponding parameters on the UI. This way, the specific APN parameters can be set according to the network. It is more flexible, but requires the user to know the specific professional parameter values, which is inconvenient for ordinary users, and the user experience is not good.
自动匹配方式是数据终端在出厂时配置了全球主要运营商固定APN信息数据库,开始初始化时读取SIM卡带有的运营商信息,一般根据移动国家码(Mobile Conuntry Code,简称为MCC)&移动网络码(Mobile Network Code,简称为MNC)(IMSI前5~7位表示的是MCC&MNC,)或运营商名称(Service Provider Name,简称为SPN)(SIM卡里文件标识)判断运营商信息,然后根据运营商信息从数据库查询到对应的APN等信息,这种方式不需要用户干预,是否方便,但由于终端中APN信息数据库在出厂时就预制了,是固定不变的,仅适用于运营商之间的SIM卡APN匹配,无法满足APN参数在终端使用过程中发生变化的情况。The automatic matching method is that the data terminal is configured with a fixed APN information database of the major operators in the world at the time of shipment, and the operator information of the SIM card is read at the initial initialization, generally according to the Mobile Conuntry Code (MCC) & Mobile Network The code (Mobile Network Code, MNC for short) (the first 5 to 7 digits of the IMSI indicates the MCC&MNC), or the Service Provider Name (SPN) (the file identifier in the SIM card) to determine the operator information, and then The operator information is queried from the database to the corresponding APN and other information. This method does not require user intervention and is convenient. However, since the APN information database in the terminal is prefabricated at the factory, it is fixed and only applicable to the operator. The SIM card APN matching between the two cannot meet the situation in which the APN parameters change during the use of the terminal.
这两种APN配置方式对于运营商在用户使用过程中通过OMA DM远程配置终端正在使用的SIM卡的APN等参数的情况是不适用的。The two APN configurations are not applicable to the case where the operator remotely configures the APN and other parameters of the SIM card that the terminal is using through the OMA DM during the user's use.
针对相关技术中,在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题,还未提出有效的解决方案。In the related art, in the process of replacing the SIM card by the terminal, the problem that the network cannot be registered or the network cannot be connected due to incompatibility of parameters such as APN has not yet provided an effective solution.
发明内容Summary of the invention
本发明实施例提供了一种APN参数的配置处理方法及装置,以至少解决现有技术中在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题。The embodiment of the invention provides a method and a device for configuring APN parameters, so as to solve at least the problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN in the process of replacing the SIM card in the terminal in the prior art.
根据本发明的一个实施例,提供了一种APN参数的配置处理方法,包括:终端获取用户识别模块SIM卡信息,以及与所述SIM卡信息对应的APN参数;将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中。According to an embodiment of the present invention, a method for configuring APN parameters is provided, including: acquiring, by a terminal, user identification module SIM card information, and APN parameters corresponding to the SIM card information; and the SIM card information, and The APN parameter corresponding to the SIM card information is stored in a preset database of the terminal.
在本发明实施例中,将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中包括:所述终端从运营商接收设置APN参数的命令;根据从所述命令中解析得到的APN参数更新所述预设数据库中的APN参数。In the embodiment of the present invention, storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal includes: receiving, by the terminal, an APN parameter from an operator. Command: updating the APN parameter in the preset database according to the APN parameter parsed from the command.
在本发明实施例中,将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中包括:在所述终端的关机过程中,所述终端获取与当前使用的SIM卡信息对应的APN参数,并将获取的所述当前使用的SIM卡信息对应的APN参数更新至所述预设数据库中。 In the embodiment of the present invention, storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal includes: during a shutdown process of the terminal, The terminal acquires the APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database.
在本发明实施例中,所述方法还包括:所述终端判断所述预设数据库中是否存储有与所述SIM卡信息对应的所述APN参数;其中,在判断结果为否的情况下,使用预定的APN参数对所述终端进行设置。In the embodiment of the present invention, the method further includes: determining, by the terminal, whether the APN parameter corresponding to the SIM card information is stored in the preset database; wherein, if the determination result is no, The terminal is set using a predetermined APN parameter.
在本发明实施例中,在判断结果为是的情况下,所述方法还包括:判断所述预设数据库中存储的所述APN参数,与所述终端当前使用的SIM卡信息对应的APN参数是否一致,在判断结果为是的情况下,不对所述终端进行设置,在判断结果为否的情况下,使用所述预设数据库中存储的与所述当前使用的SIM卡信息对应的APN参数对所述终端进行设置。In the embodiment of the present invention, if the determination result is yes, the method further includes: determining the APN parameter stored in the preset database, and the APN parameter corresponding to the SIM card information currently used by the terminal. If the result of the determination is YES, the terminal is not set, and if the determination result is no, the APN parameter corresponding to the currently used SIM card information stored in the preset database is used. Set the terminal.
根据本发明的另一个实施例,还提供了另一种APN参数的配置处理方法,包括:终端获取当前使用的用户识别模块SIM卡信息;所述终端从本地预设数据库中获取与所述SIM卡信息对应的APN参数;所述终端根据所述APN参数对所述终端进行设置。According to another embodiment of the present invention, another method for configuring APN parameters is provided, including: acquiring, by a terminal, user identification module SIM card information currently used; and acquiring, by the terminal, a SIM from a local preset database The APN parameter corresponding to the card information; the terminal sets the terminal according to the APN parameter.
在本发明实施例中,所述预设数据库中的APN参数通过以下方式确定:所述终端从运营商接收设置APN参数的命令;根据从所述命令中解析得到的APN参数更新所述预设数据库中的APN参数。In the embodiment of the present invention, the APN parameter in the preset database is determined by: the terminal receiving a command for setting an APN parameter from an operator; and updating the preset according to an APN parameter parsed from the command. APN parameters in the database.
在本发明实施例中,所述预设数据库中的APN参数通过以下方式确定:在所述终端的关机过程中,所述终端获取与当前使用的SIM卡信息对应的APN参数,并将获取的所述当前使用的SIM卡信息对应的APN参数更新至所述预设数据库中。In the embodiment of the present invention, the APN parameter in the preset database is determined by: in the shutdown process of the terminal, the terminal acquires an APN parameter corresponding to the currently used SIM card information, and obtains the acquired The APN parameter corresponding to the currently used SIM card information is updated into the preset database.
根据本发明的又一个实施例,提供了一种APN参数的配置处理装置,所述装置应用于终端,包括:获取模块,设置为获取用户识别模块SIM卡信息,以及与所述SIM卡信息对应的APN参数;存储模块,设置为将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中。According to still another embodiment of the present invention, a configuration processing device for an APN parameter is provided. The device is applied to a terminal, and includes: an acquiring module, configured to acquire user identification module SIM card information, and corresponding to the SIM card information. The APN parameter is configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
根据本发明的另一个实施例,还提供了另一种APN参数的配置处理装置,所述装置应用于终端,包括:第一获取模块,设置为获取当前使用的用户识别模块SIM卡信息;第二获取模块,设置为从本地预设数据库中获取与所述SIM卡信息对应的APN参数;设置模块,设置为根据所述APN参数对所述终端进行设置。According to another embodiment of the present invention, another configuration processing device for APN parameters is provided. The device is applied to a terminal, and includes: a first acquiring module, configured to acquire currently used user identification module SIM card information; The acquiring module is configured to obtain an APN parameter corresponding to the SIM card information from a local preset database, and the setting module is configured to set the terminal according to the APN parameter.
通过本发明实施例,采用终端获取用户识别模块SIM卡信息,以及与SIM卡信息对应的APN参数;将SIM卡信息,以及与SIM卡信息对应的APN参数存储在终端的预设数据库中。解决了现有技术中在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题,进而达到了当终端更换SIM卡时,终端的APN参数也会发生更新的效果。 Through the embodiment of the present invention, the terminal acquires the SIM card information of the user identification module and the APN parameter corresponding to the SIM card information; and stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal. The problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN is solved in the process of replacing the SIM card in the terminal in the prior art, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card. Effect.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的接入点名称APN参数的配置处理方法的流程图;1 is a flowchart of a configuration processing method of an access point name APN parameter according to an embodiment of the present invention;
图2是根据本发明实施例的接入点名称APN参数的配置处理装置的结构框图;2 is a structural block diagram of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention;
图3是根据本发明实施例的接入点名称APN参数的配置处理方法的流程图一;3 is a flowchart 1 of a method for configuring an access point name APN parameter according to an embodiment of the present invention;
图4是根据本发明实施例的接入点名称APN参数的配置处理装置的结构框图一;4 is a structural block diagram 1 of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention;
图5是根据本发明实施例的数据库表结构示意图;FIG. 5 is a schematic structural diagram of a database table according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的终端开始初始化时根据设备中的SIM卡配置终端APN的流程;6 is a flowchart of configuring a terminal APN according to a SIM card in a device when a terminal starts initializing according to an embodiment of the present invention;
图7是根据本发明实施例的运营商DM服务器设置终端APN顺序图;7 is a sequence diagram of an operator DM server setting terminal APN according to an embodiment of the present invention;
图8是根据本发明实施例的终端关机时更新APN数据库流程图。FIG. 8 is a flowchart of updating an APN database when a terminal is powered off according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种接入点名称APN参数的配置处理方法,图1是根据本发明实施例的接入点名称APN参数的配置处理方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for configuring an access point name APN parameter is provided. FIG. 1 is a flowchart of a method for configuring an access point name APN parameter according to an embodiment of the present invention. As shown in FIG. The process includes the following steps:
步骤S102,终端获取用户识别模块SIM卡信息,以及与该SIM卡信息对应的APN参数;Step S102, the terminal acquires the SIM card information of the user identification module, and the APN parameter corresponding to the SIM card information;
步骤S104,终端将SIM卡信息,以及与该SIM卡信息对应的APN参数存储在终端的预设数据库中,其中,所述APN参数用于对所述终端进行配置处理。Step S104: The terminal stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal, where the APN parameter is used to perform configuration processing on the terminal.
通过上述步骤,终端将其使用的SIM卡的信息,以及与该SIM卡信息对应的APN参数存储在终端的预设数据库中,相比于现有技术中,对于SIM卡的信息以及与该SIM 卡信息对应的APN参数没有在终端的数据库中进行存储,上述步骤解决了现有技术中在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题,进而达到了当终端更换SIM卡时,终端的APN参数也会发生更新的效果。Through the above steps, the terminal stores the information of the SIM card used by the terminal and the APN parameter corresponding to the SIM card information in a preset database of the terminal, compared with the information of the SIM card and the SIM in the prior art. The APN parameter corresponding to the card information is not stored in the database of the terminal. The above steps solve the problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN in the process of replacing the SIM card in the terminal in the prior art. When the terminal replaces the SIM card, the APN parameter of the terminal will also be updated.
上述步骤S102涉及到获取用户识别模块SIM卡信息,以及与该SIM卡信息对应的APN参数,需要说明的是,可以通过多种方式获取与SIM卡对应的APN参数,在一个可选实施例中,终端从运营商接收设置APN参数的命令,根据从该命令中解析得到的APN参数更新,预设数据库中的APN参数。在另一个可选实施例中,在终端的关机过程中,终端获取与当前使用的SIM卡信息对应的APN参数,并将获取的当前使用的SIM卡信息对应的APN参数更新至该预设数据库中。从而,终端可以根据SIM卡所包含业务的实际情况,实时的更新SIM卡所对应的APN参数,进而用使用更新后的APN参数对终端进行设置。The foregoing step S102 involves acquiring the user identification module SIM card information and the APN parameter corresponding to the SIM card information. It should be noted that the APN parameter corresponding to the SIM card can be obtained in various manners, in an optional embodiment. The terminal receives the command for setting the APN parameter from the operator, and presets the APN parameter in the database according to the APN parameter update obtained from the command. In another optional embodiment, during the shutdown process of the terminal, the terminal acquires the APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database. in. Therefore, the terminal can update the APN parameter corresponding to the SIM card in real time according to the actual situation of the service included in the SIM card, and then set the terminal by using the updated APN parameter.
终端会对当前使用的SIM卡进行检测,在一个可选实施例中,判断预设数据库中是否存储有与该SIM卡信息对应的APN参数;其中,在判断结果为否的情况下,使用预定的APN参数对该终端进行设置。从而,保证终端能够处理基本的业务。The terminal detects the currently used SIM card. In an optional embodiment, it is determined whether the APN parameter corresponding to the SIM card information is stored in the preset database; wherein, in the case that the determination result is no, the usage is scheduled. The APN parameter is set for the terminal. Thereby, the terminal is guaranteed to be able to handle basic services.
在另一个可选实施例中,在判断结果为是的情况下,进一步判断预设数据库中存储的APN参数与终端当前使用的SIM卡对应的APN参数是否一致,在判断结果为是的情况下,说明终端当前使用的SIM卡与上次关机前使用的SIM卡相同,这时不对该终端进行设置,在判断结果为否的情况下,说明终端当前使用的SIM卡与上次关机前使用的SIM卡不相同,这时,使用预设数据库中存储的与当前使用的SIM卡对应的APN参数对该终端进行设置。In another optional embodiment, if the determination result is yes, it is further determined whether the APN parameter stored in the preset database is consistent with the APN parameter corresponding to the SIM card currently used by the terminal, and if the determination result is yes, The SIM card currently used by the terminal is the same as the SIM card used before the last shutdown. At this time, the terminal is not set. If the judgment result is no, the SIM card currently used by the terminal is used before the last shutdown. The SIM card is different. At this time, the terminal is set using the APN parameter corresponding to the currently used SIM card stored in the preset database.
在本实施例中还提供了一种接入点名称APN参数的配置处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a configuration processing device for the access point name APN parameter is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的接入点名称APN参数的配置处理装置的结构框图,该装置应用于终端,如图2所示,该装置包括:获取模块22,设置为获取用户识别模块SIM卡信息,以及与SIM卡信息对应的APN参数;存储模块24,设置为将SIM卡信息,以及与该SIM卡信息对应的APN参数存储在该终端的预设数据库中。2 is a structural block diagram of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention. The apparatus is applied to a terminal. As shown in FIG. 2, the apparatus includes: an obtaining module 22 configured to acquire a user identification module SIM. Card information, and an APN parameter corresponding to the SIM card information; the storage module 24 is configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
在本实施例中还提供了另一种接入点名称APN参数的配置处理方法,图3是根据本发明实施例的接入点名称APN参数的配置处理方法的流程图一,如图3所示,该流程包括如下步骤: In this embodiment, another method for configuring an access point name APN parameter is provided. FIG. 3 is a flowchart 1 of a method for configuring an access point name APN parameter according to an embodiment of the present invention. The process includes the following steps:
步骤S302,终端获取当前使用的用户识别模块SIM卡信息;Step S302, the terminal acquires the currently used user identification module SIM card information;
步骤S304,终端从本地预设数据库中获取与该SIM卡信息对应的APN参数;Step S304, the terminal acquires an APN parameter corresponding to the SIM card information from the local preset database.
步骤S306,终端根据APN参数对终端进行设置。Step S306, the terminal sets the terminal according to the APN parameter.
通过上述步骤,终端将其使用的SIM卡的信息,以及与该SIM卡信息对应的APN参数存储在终端的预设数据库中,从而终端根据APN参数实时的对终端进行设置,相比于现有技术中,对于SIM卡的信息以及与该SIM卡信息对应的APN参数没有在终端的数据库中进行存储,上述步骤解决了现有技术中在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题,进而达到了当终端更换SIM卡时,终端的APN参数也会发生更新的效果,进而终端根据APN参数实时的对终端进行设置。Through the above steps, the terminal stores the information of the SIM card used by the terminal and the APN parameter corresponding to the SIM card information in the preset database of the terminal, so that the terminal sets the terminal in real time according to the APN parameter, compared to the existing In the technology, the information about the SIM card and the APN parameter corresponding to the SIM card information are not stored in the database of the terminal. The above steps solve the problem that the parameters such as APN are incompatible in the process of replacing the SIM card in the terminal in the prior art. The problem that the network cannot be registered or the network cannot be connected, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card, and the terminal sets the terminal according to the APN parameter in real time.
可以通过多种方式获取与SIM卡对应的APN参数,在一个可选实施例中,终端从运营商接收设置APN参数的命令,根据从该命令中解析得到的APN参数更新预设数据库中的APN参数。在另一个可选实施例中,在终端的关机过程中,终端获取与当前使用的SIM卡对应的APN参数,并将获取的该当前使用的SIM卡对应的APN参数更新至该预设数据库中。The APN parameter corresponding to the SIM card can be obtained in a plurality of manners. In an optional embodiment, the terminal receives a command for setting an APN parameter from the operator, and updates the APN in the preset database according to the APN parameter parsed from the command. parameter. In another optional embodiment, the terminal acquires the APN parameter corresponding to the currently used SIM card, and updates the acquired APN parameter corresponding to the currently used SIM card to the preset database. .
图4是根据本发明实施例的接入点名称APN参数的配置处理装置的结构框图一,该装置应用于终端,如图4所示,该装置包括:第一获取模块42,设置为获取当前使用的用户识别模块SIM卡信息;第二获取模块44,设置为从本地预设数据库中获取与该SIM卡信息对应的APN参数;设置模块46,设置为根据APN参数对终端进行设置。4 is a structural block diagram 1 of a configuration processing apparatus for an access point name APN parameter according to an embodiment of the present invention. The device is applied to a terminal. As shown in FIG. 4, the apparatus includes: a first obtaining module 42 configured to acquire a current The user identification module SIM card information is used; the second obtaining module 44 is configured to obtain an APN parameter corresponding to the SIM card information from the local preset database; and the setting module 46 is configured to set the terminal according to the APN parameter.
针对相关技术中存在的上述问题,下面结合可选实施例进行说明,本可选实施例结合了上述可选实施例及其可选实施方式。For the above problems in the related art, the following description will be made in conjunction with an alternative embodiment, which in combination with the above-described alternative embodiments and alternative embodiments thereof.
对于运营商使用OMA DM协议远程配置APN等参数的终端,传统配置APN等参数的方法已经不再适用,本可选实施例提出了一种根据SIM卡配置终端设备APN参数的方法,在终端上创建一个SIM卡信息对应APN参数的数据库,记录在终端上使用过的每一张SIM与对应着的运营商配置的一组APN参数。即,可以根据SIM卡配置终端APN的方法,终端根据SIM卡记录参数,一张SIM卡对应一组APN等参数,当设备更换SIM卡,设备的APN等参数也会发生更新。 For a terminal that uses the OMA DM protocol to remotely configure APN and other parameters, the traditional method of configuring parameters such as APN is no longer applicable. This alternative embodiment proposes a method for configuring APN parameters of a terminal device according to a SIM card, on the terminal. Create a database of SIM card information corresponding to the APN parameters, and record each SIM used in the terminal and a set of APN parameters configured by the corresponding operator. That is, according to the method of configuring the terminal APN by the SIM card, the terminal records a parameter corresponding to a group of APNs according to the SIM card recording parameters, and when the device replaces the SIM card, the parameters such as the APN of the device are also updated.
在运营商通过OMA DM协议对终端进行设置的同时将终端设备中使用的SIM卡和设备APN参数对应记录到数据库中。当数据终端开机初始化过程中,根据设备中SIM卡的IMSI在数据库中查询对应的APN参数信息,并设置终端。The SIM card and the device APN parameters used in the terminal device are correspondingly recorded in the database while the operator sets the terminal through the OMA DM protocol. During the initialization process of the data terminal, the corresponding APN parameter information is queried in the database according to the IMSI of the SIM card in the device, and the terminal is set.
如果检测到SIM卡拔出后,就将终端APN参数恢复到出厂时默认值;如果检测到SIM卡被更换后,就根据数据库中SIM卡IMSI对应的APN参数设置终端。If it is detected that the SIM card is removed, the terminal APN parameter is restored to the factory default value; if it is detected that the SIM card is replaced, the terminal is set according to the APN parameter corresponding to the SIM card IMSI in the database.
本可选实施例提出一种根据设备中SIM卡配置终端APN的方法,在终端上建立数据库记录具体的SIM卡和对应的APN参数,图5是根据本发明实施例的数据库表结构示意图,如图5所示,501是SIM卡的IMSI,唯一标识SIM卡用户,每一个IMSI对应一套终端APN参数502,多个不同的APN用来建立不同的应用PDN链接。终端出厂时数据库是空的,当设备插入一张SIM卡,数据库中就会增加一条记录503,当更换一张未在终端上使用过的SIM卡,数据库会相应增加新SIM卡的记录504,以此类推。The present invention provides a method for configuring a terminal to record a terminal APN according to a SIM card in a device, and establishing a database to record a specific SIM card and a corresponding APN parameter on the terminal. FIG. 5 is a schematic structural diagram of a database table according to an embodiment of the present invention, such as As shown in FIG. 5, 501 is an IMSI of a SIM card, and uniquely identifies a SIM card user. Each IMSI corresponds to a set of terminal APN parameters 502, and a plurality of different APNs are used to establish different application PDN links. When the terminal is shipped from the factory, the database is empty. When the device is inserted into a SIM card, a record 503 is added to the database. When a SIM card that has not been used on the terminal is replaced, the database will add a record 504 of the new SIM card. And so on.
图6是根据本发明实施例的终端开始初始化时根据设备中的SIM卡配置终端APN的流程,如图6所示,该流程包括如下步骤:FIG. 6 is a flowchart of configuring a terminal APN according to a SIM card in a device when the terminal starts initializing according to an embodiment of the present invention. As shown in FIG. 6, the process includes the following steps:
步骤S602,终端开机进行初始化;Step S602, the terminal is powered on for initialization;
步骤S604,读取设备中的SIM卡的IMSI;Step S604, reading the IMSI of the SIM card in the device;
步骤S606,判断SIM卡的IMSI是否为0,判断为是的情况下,执行步骤S608,在判断结果为否的情况下,执行步骤S610;Step S606, it is determined whether the IMSI of the SIM card is 0, if the determination is yes, step S608 is performed, and if the determination result is no, step S610 is performed;
步骤S608,如果SIM卡的IMSI为0说明此时设备中无SIM卡或者SIM卡已经损坏,就将设备APN参数恢复到出厂默认值;Step S608, if the IMSI of the SIM card is 0, indicating that there is no SIM card or the SIM card is damaged in the device, the device APN parameter is restored to the factory default value;
步骤S610,如果IMSI不为0,说明插入的SIM卡是有效卡,根据获取到的IMSI从上面创建的数据库中获取终端设备APN参数信息;Step S610, if the IMSI is not 0, the inserted SIM card is a valid card, and the terminal device APN parameter information is obtained from the database created above according to the acquired IMSI;
步骤S612,查询结果判断是否能够从数据库中获取到记录,如果获取失败,说明插入的SIM卡是第一次在此终端上使用,对于该SIM卡使用出厂时默认APN参数,执行步骤S608,APN参数恢复默认;In step S612, the result of the query determines whether the record can be obtained from the database. If the acquisition fails, the inserted SIM card is used for the first time on the terminal, and the factory default APN parameter is used for the SIM card, and step S608, APN is performed. Parameter recovery defaults;
步骤S614,如果获取到该SIM对应的记录,将获取的APN参数与设备当前的APN参数进行比较; Step S614, if the record corresponding to the SIM is obtained, the acquired APN parameter is compared with the current APN parameter of the device;
步骤S616,判断两组参数是否相同,如果两者相同,说明SIM卡没有更换,执行步骤S620,无需进行重复设置操作,返回;如果两者不相同,说明现在终端中的SIM和上次关机前使用的SIM卡不同,执行步骤S618,需要使用从数据库中获取到的该SIM卡对应的APN参数设置终端;In step S616, it is determined whether the two sets of parameters are the same. If the two are the same, the SIM card is not replaced. Step S620 is performed, and there is no need to perform a reset operation, and return; if the two are different, the SIM in the terminal and the last time before the shutdown. The SIM card used is different, and step S618 is performed, and the terminal is set by using the APN parameter corresponding to the SIM card obtained from the database;
步骤S618,设置相应的APN参数;Step S618, setting corresponding APN parameters;
步骤S620,无操作,返回。Step S620, no operation, return.
图7是根据本发明实施例的运营商DM服务器设置终端APN顺序图,如图7所示,所述顺序图包括如下步骤:FIG. 7 is a sequence diagram of an operator DM server setting terminal APN according to an embodiment of the present invention. As shown in FIG. 7, the sequence diagram includes the following steps:
步骤S702,在用户使用过程中,如果运营商检测到需要对终端进行APN参数设置,就通过OMA DM协议将运营商侧的DM服务器与终端建立会话连接;Step S702: During the use of the user, if the operator detects that the APN parameter setting needs to be performed on the terminal, the DM server on the operator side establishes a session connection with the terminal through the OMA DM protocol;
步骤S704,在会话建立后,DM服务器下发设置APN参数的命令,终端经过对命令进行解析后,进行相应的设置操作;Step S704, after the session is established, the DM server sends a command for setting an APN parameter, and after the terminal parses the command, performs a corresponding setting operation;
步骤S706,设置动作完成后,将当前终端设备中的SIM的IMSI与最新更新的APN参数信息作为一条记录更新到数据库中,如果数据库中已经有该SIM卡的数据记录,就更新原有的记录项;如果数据库中没有找到该SIM卡对应的记录项,就将上面记录插入到数据库表中。Step S706, after the setting action is completed, updating the IMSI of the SIM in the current terminal device and the newly updated APN parameter information as a record to the database, and if the data record of the SIM card already exists in the database, updating the original record. Item; if the record corresponding to the SIM card is not found in the database, the above record is inserted into the database table.
步骤S708,在做完上述动作后,终端将设置动作的结果反馈给DM服务器。Step S708, after completing the above actions, the terminal feeds back the result of the setting action to the DM server.
在终端关机时,还会对数据库进行一次更新动作,这样做的目的是防止有时候用户自己在UI上手动设置APN等参数没有被同步到数据库中。图8是根据本发明实施例的终端关机时更新APN数据库流程图,如图8所示,该流程图包括如下步骤;When the terminal is shut down, the database will be updated once. The purpose of this is to prevent the user from manually setting the APN and other parameters on the UI without being synchronized to the database. FIG. 8 is a flowchart of updating an APN database when a terminal is powered off according to an embodiment of the present invention. As shown in FIG. 8, the flowchart includes the following steps;
步骤S802,收到关机命令;Step S802, receiving a shutdown command;
步骤S804,读取当前设备使用的APN等参数;Step S804, reading parameters such as APN used by the current device;
步骤S806,根据设备中的SIM卡的IMSI查询数据库中对应的记录项;Step S806, querying corresponding records in the database according to the IMSI of the SIM card in the device;
步骤S808,判断是否读取到上述记录项,即根据查询返回结果判断是否有记录,在判断结果为是的情况下,执行步骤S810,在判断结果为否的情况下,执行步骤S812; Step S808, it is determined whether the above-mentioned record item is read, that is, whether there is a record according to the result of the query return, if the result of the determination is yes, step S810 is performed, and if the result of the determination is no, step S812 is performed;
步骤S810,如果能够读取到该SIM的记录,说明数据库中已经有该SIM的记录了,将读取到的当前设备APN参数更新到该SIM卡对应的记录项;Step S810, if the record of the SIM can be read, indicating that the record of the SIM already exists in the database, and updating the read current device APN parameter to the record item corresponding to the SIM card;
步骤S812,如果数据库中没有该SIM卡的记录项,说明该SIM卡第一次在终端上使用,将当前终端设备APN参数与SIM的IMSI组成新记录插入到数据库中。Step S812, if there is no record item of the SIM card in the database, it indicates that the SIM card is used on the terminal for the first time, and the current terminal device APN parameter and the IMSI component new record of the SIM are inserted into the database.
可替代的技术方案:Alternative technical solutions:
除了上述所述的方案外,一种替代方案可以达到类似效果,具体是,当运营商通过OMA DM协议远程设置终端设备APN参数时,终端会保留运营商设置的参数,并作为终端唯一有效的参数,不管进行什么操作,始终用这组APN参数设置终端,除非运营商再一次设置终端。这样当数据终端SIM卡始终不更换的情况是可用的。In addition to the solution described above, an alternative solution can achieve similar effects. Specifically, when the operator remotely sets the APN parameters of the terminal device through the OMA DM protocol, the terminal retains the parameters set by the operator and is only valid as the terminal. Parameters, regardless of what is done, always set the terminal with this set of APN parameters, unless the operator sets the terminal again. This way, when the data terminal SIM card is not replaced at all times, it is available.
但该方案没有本发明提出的方案灵活,因为替代方案没有考虑到换卡情况。现在运营商的一些数据应用服务是基于不同APN建立的数据链接,不同用户选择数据应用服务不同,这样一张SIM卡的APN参数可能就不适用另外一张SIM卡,即使它们属于同一个运营商。对于多模的数据终端更换一张新的SIM卡后,此前的APN参数可能就需要重新设置,当原来的SIM卡被重新使用时,还需要重新设置一次APN参数,十分不方便。However, this solution does not have the flexibility of the solution proposed by the present invention because the alternative does not take into account the card change situation. Some data application services of operators are based on data links established by different APNs. Different users choose different data application services. Therefore, the APN parameters of one SIM card may not be applicable to another SIM card, even if they belong to the same carrier. . After replacing a new SIM card with a multi-mode data terminal, the previous APN parameters may need to be reset. When the original SIM card is reused, it is necessary to reset the APN parameters once, which is very inconvenient.
本发明可选实施例同样适用于智能手机或者带有3G/LTE通信功能的平板电脑。Alternative embodiments of the present invention are equally applicable to smartphones or tablets with 3G/LTE communication capabilities.
综上所述,通过本发明可选实施例对于采用OMA DM协议允许运营商远程设置APN等参数并且经常更换SIM卡的数据终端,本发明可选实施例能够使得APN参数设置更加方便灵活,它能够使终端记住使用过的SIM卡以及对应的APN等参数信息,当用户更换回原来使用过的SIM卡后,终端会自动配置之前的APN参数,不需要运营商侧重新下发设置APN参数的命令。In summary, the optional embodiment of the present invention can make the APN parameter setting more convenient and flexible by using the OMA DM protocol to allow the operator to remotely set parameters such as APN and frequently replace the SIM card. The terminal can remember the used SIM card and the corresponding APN and other parameter information. After the user replaces the original used SIM card, the terminal automatically configures the previous APN parameter, and the operator side does not need to re-issue the APN parameter. The command.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
通过本发明实施例,采用终端获取用户识别模块SIM卡信息,以及与SIM卡信息对应的APN参数;将SIM卡信息,以及与SIM卡信息对应的APN参数存储在终端的预设数据库中。解决了现有技术中在终端更换SIM卡的过程中,因APN等参数不兼容导致网络无法注册或网络无法连接的问题,进而达到了当终端更换SIM卡时,终端的APN参数也会发生更新的效果 Through the embodiment of the present invention, the terminal acquires the SIM card information of the user identification module and the APN parameter corresponding to the SIM card information; and stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal. The problem that the network cannot be registered or the network cannot be connected due to incompatible parameters such as APN is solved in the process of replacing the SIM card in the terminal in the prior art, and the APN parameter of the terminal is also updated when the terminal replaces the SIM card. Effect

Claims (10)

  1. 一种接入点名称APN参数的配置处理方法,包括:A method for configuring an access point name APN parameter includes:
    终端获取用户识别模块SIM卡信息,以及与所述SIM卡信息对应的APN参数;The terminal acquires user identification module SIM card information, and an APN parameter corresponding to the SIM card information;
    所述终端将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中,其中,所述APN参数用于对所述终端进行配置处理。The terminal stores the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal, where the APN parameter is used to perform configuration processing on the terminal.
  2. 根据权利要求1所述的方法,其中,将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中包括:The method of claim 1, wherein storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal comprises:
    所述终端从运营商接收设置APN参数的命令;Receiving, by the terminal, a command for setting an APN parameter from an operator;
    根据从所述命令中解析得到的APN参数更新所述预设数据库中的APN参数。Updating the APN parameter in the preset database according to the APN parameter parsed from the command.
  3. 根据权利要求1所述的方法,其中,将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中包括:The method of claim 1, wherein storing the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal comprises:
    在所述终端的关机过程中,所述终端获取与当前使用的SIM卡信息对应的APN参数,并将获取的所述当前使用的SIM卡信息对应的APN参数更新至所述预设数据库中。During the shutdown process of the terminal, the terminal acquires an APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述终端判断所述预设数据库中是否存储有与所述SIM卡信息对应的所述APN参数;其中,在判断结果为否的情况下,使用预定的APN参数对所述终端进行设置。The terminal determines whether the APN parameter corresponding to the SIM card information is stored in the preset database; wherein, if the determination result is no, the terminal is set using a predetermined APN parameter.
  5. 根据权利要求4所述的方法,其中,在判断结果为是的情况下,所述方法还包括:The method according to claim 4, wherein, in a case where the determination result is YES, the method further comprises:
    判断所述预设数据库中存储的所述APN参数,与所述终端当前使用的SIM卡信息对应的APN参数是否一致,在判断结果为是的情况下,不对所述终端进行设置,在判断结果为否的情况下,使用所述预设数据库中存储的与所述当前使用的SIM卡信息对应的APN参数对所述终端进行设置。 Determining whether the APN parameter stored in the preset database is consistent with the APN parameter corresponding to the SIM card information currently used by the terminal, and if the determination result is yes, the terminal is not set, and the determination result is If not, the terminal is set by using an APN parameter corresponding to the currently used SIM card information stored in the preset database.
  6. 一种接入点名称APN参数的配置处理方法,包括:A method for configuring an access point name APN parameter includes:
    终端获取当前使用的用户识别模块SIM卡信息;The terminal acquires the SIM card information of the currently used subscriber identity module;
    所述终端从本地预设数据库中获取与所述SIM卡信息对应的APN参数;The terminal acquires an APN parameter corresponding to the SIM card information from a local preset database;
    所述终端根据所述APN参数对所述终端进行设置。The terminal sets the terminal according to the APN parameter.
  7. 根据权利要求6所述的方法,其中,所述预设数据库中的APN参数通过以下方式确定:The method according to claim 6, wherein the APN parameter in the preset database is determined by:
    所述终端从运营商接收设置APN参数的命令;Receiving, by the terminal, a command for setting an APN parameter from an operator;
    根据从所述命令中解析得到的APN参数更新所述预设数据库中的APN参数。Updating the APN parameter in the preset database according to the APN parameter parsed from the command.
  8. 根据权利要求6所述的方法,其中,所述预设数据库中的APN参数通过以下方式确定:The method according to claim 6, wherein the APN parameter in the preset database is determined by:
    在所述终端的关机过程中,所述终端获取与当前使用的SIM卡信息对应的APN参数,并将获取的所述当前使用的SIM卡信息对应的APN参数更新至所述预设数据库中。During the shutdown process of the terminal, the terminal acquires an APN parameter corresponding to the currently used SIM card information, and updates the acquired APN parameter corresponding to the currently used SIM card information to the preset database.
  9. 一种接入点名称APN参数的配置处理装置,所述装置应用于终端,所述装置包括:A configuration processing device for access point name APN parameters, the device is applied to a terminal, and the device includes:
    获取模块,设置为获取用户识别模块SIM卡信息,以及与所述SIM卡信息对应的APN参数;An acquiring module, configured to obtain user identification module SIM card information, and an APN parameter corresponding to the SIM card information;
    存储模块,设置为将所述SIM卡信息,以及与所述SIM卡信息对应的所述APN参数存储在所述终端的预设数据库中。And a storage module, configured to store the SIM card information and the APN parameter corresponding to the SIM card information in a preset database of the terminal.
  10. 一种接入点名称APN参数的配置处理装置,所述装置应用于终端,所述装置包括:A configuration processing device for access point name APN parameters, the device is applied to a terminal, and the device includes:
    第一获取模块,设置为获取当前使用的用户识别模块SIM卡信息;The first obtaining module is configured to obtain the currently used user identification module SIM card information;
    第二获取模块,设置为从本地预设数据库中获取与所述SIM卡信息对应的APN参数;The second obtaining module is configured to obtain an APN parameter corresponding to the SIM card information from a local preset database;
    设置模块,设置为根据所述APN参数对所述终端进行设置。 The setting module is configured to set the terminal according to the APN parameter.
PCT/CN2015/081977 2014-11-19 2015-06-19 Access point name (apn) parameter configuration processing method and device WO2016078407A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410665317.7 2014-11-19
CN201410665317.7A CN105682126B (en) 2014-11-19 2014-11-19 Configuration processing method and device for APN (access point name) parameter

Publications (1)

Publication Number Publication Date
WO2016078407A1 true WO2016078407A1 (en) 2016-05-26

Family

ID=56013232

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/081977 WO2016078407A1 (en) 2014-11-19 2015-06-19 Access point name (apn) parameter configuration processing method and device

Country Status (2)

Country Link
CN (1) CN105682126B (en)
WO (1) WO2016078407A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203267A (en) * 2020-09-10 2021-01-08 上海麦腾物联网技术有限公司 SIM IC self-adaptive solution of Internet of things embedded equipment
CN112203268A (en) * 2020-09-10 2021-01-08 上海麦腾物联网技术有限公司 SIM IC self-adaptive solution of Internet of things embedded equipment

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635243B (en) * 2016-07-14 2022-03-11 中兴通讯股份有限公司 Processing method and device for concurrent data service
CN106407762A (en) * 2016-09-26 2017-02-15 东莞酷派软件技术有限公司 A setting method for application freezing configuration and a terminal apparatus
CN106413039A (en) * 2016-10-31 2017-02-15 努比亚技术有限公司 APN adaptive configuration device and method
CN107231624B (en) * 2017-05-08 2021-02-19 惠州Tcl移动通信有限公司 Method for retaining data information, storage device and mobile terminal
CN107333255B (en) * 2017-06-28 2021-01-22 深圳市沃特沃德股份有限公司 Network parameter matching method, device and system thereof
CN107484150B (en) * 2017-07-05 2020-12-22 宇龙计算机通信科技(深圳)有限公司 EV-DO network connection method, device and terminal
CN107548057B (en) * 2017-10-13 2020-12-29 深圳市万普拉斯科技有限公司 APN (Access Point name) creating method and device of mobile terminal and mobile terminal
CN108093396B (en) * 2017-12-15 2021-09-21 深圳市沃特沃德股份有限公司 Method and device for updating APN (Access Point name) of vehicle-mounted system
CN109618329B (en) * 2018-12-20 2021-11-05 南京熊猫电子股份有限公司 Automatic dialing device and method compatible with multi-standard SIM card
CN109766135A (en) * 2019-01-09 2019-05-17 上海龙旗科技股份有限公司 The equipment of mobile terminal device switch operators brand message
CN110213765A (en) * 2019-04-23 2019-09-06 努比亚技术有限公司 APN information acquisition methods, terminal, server and storage medium
CN111615103A (en) * 2020-04-30 2020-09-01 展讯通信(上海)有限公司 Processing method and system for automatically configuring APN, electronic equipment and storage medium
CN113079514B (en) * 2021-03-24 2023-09-08 深圳市广和通无线股份有限公司 Network access verification method and device and computer readable storage medium
CN114245456B (en) * 2021-11-04 2024-04-16 维沃移动通信有限公司 Network registration method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267631A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 A method for self-adapted configuration of access points at a mobile terminal
CN101557578A (en) * 2009-04-10 2009-10-14 深圳华为通信技术有限公司 Method and terminal for automatically recognizing and setting dialing parameters
EP2629556A1 (en) * 2012-02-17 2013-08-21 Doro AB Improved set up and configuration of a mobile communications terminal
CN103813295A (en) * 2012-11-13 2014-05-21 中兴通讯股份有限公司 Method and device for automatically configuring and updating access point name parameters

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730078A (en) * 2009-11-03 2010-06-09 中兴通讯股份有限公司 Method and device for realizing access point binding of wireless data terminal equipment
CN102026152A (en) * 2010-11-25 2011-04-20 中兴通讯股份有限公司 Mobile terminal as well as system and method for realizing access point name setting
US10123368B2 (en) * 2012-02-23 2018-11-06 Cisco Technology, Inc. Systems and methods for supporting multiple access point names for trusted wireless local area network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267631A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 A method for self-adapted configuration of access points at a mobile terminal
CN101557578A (en) * 2009-04-10 2009-10-14 深圳华为通信技术有限公司 Method and terminal for automatically recognizing and setting dialing parameters
EP2629556A1 (en) * 2012-02-17 2013-08-21 Doro AB Improved set up and configuration of a mobile communications terminal
CN103813295A (en) * 2012-11-13 2014-05-21 中兴通讯股份有限公司 Method and device for automatically configuring and updating access point name parameters

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203267A (en) * 2020-09-10 2021-01-08 上海麦腾物联网技术有限公司 SIM IC self-adaptive solution of Internet of things embedded equipment
CN112203268A (en) * 2020-09-10 2021-01-08 上海麦腾物联网技术有限公司 SIM IC self-adaptive solution of Internet of things embedded equipment

Also Published As

Publication number Publication date
CN105682126B (en) 2019-12-27
CN105682126A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2016078407A1 (en) Access point name (apn) parameter configuration processing method and device
US10187798B2 (en) Terminal device having subscriber identity device and method for selecting profile thereof
DE102017214757B4 (en) Techniques for providing bootstrapped electronic subscriber identity modules (eSIMs) to mobile devices
EP3136252A1 (en) Euicc management method, euicc, sm platform and system
RU2015107724A (en) SYSTEM AND METHOD OF MANAGING A HOME GATEWAY USING THE INTELLIGENT TERMINAL
CN109947482B (en) Loading method of USB (universal serial bus) equipment, storage medium and smart television
KR102487943B1 (en) Implicit file creation in apdu scripts
WO2017181623A1 (en) Network registration method for virtual sim card and terminal
CN107295503B (en) Method for determining access mode of mobile terminal, storage medium and mobile terminal
WO2017193459A1 (en) Registration method and apparatus, and terminal
CN103906092A (en) Method and device for updating access point information
CN101883355A (en) Collocation method and system of terminal parameter and terminal management device
WO2015172486A1 (en) Auto-adaptation method and device for subscriber identity module card and terminal
WO2017166619A1 (en) Method and apparatus for determining emergency communication numbers, and electronic device
CN104767636A (en) Router setting method and device
CN105656643B (en) Method and equipment for performing compatible management based on network configuration protocol
WO2015172496A1 (en) Method and device for controlling subscriber identity module card of mobile terminal
EP2830291A1 (en) Method for configuring dns server and driving apparatus of wireless data access device
EP2506612B1 (en) Configuration of a mobile device operated with a mobile subscriber identification module in a mobile wireless network
CN108874410B (en) Patch management method and device
CN108199877B (en) Electronic equipment and authentication method and firmware upgrading method thereof
CN108401252B (en) Terminal system obtaining method and smart card
CN106792853B (en) New equipment adding method for Bluetooth mesh network
US10171285B2 (en) Proactive M2M framework using device-level vCard for inventory, identity, and network management
WO2018010448A1 (en) File transmission method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15860905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15860905

Country of ref document: EP

Kind code of ref document: A1