WO2012151825A1 - Ios上接入点切换方法及装置 - Google Patents

Ios上接入点切换方法及装置 Download PDF

Info

Publication number
WO2012151825A1
WO2012151825A1 PCT/CN2011/079728 CN2011079728W WO2012151825A1 WO 2012151825 A1 WO2012151825 A1 WO 2012151825A1 CN 2011079728 W CN2011079728 W CN 2011079728W WO 2012151825 A1 WO2012151825 A1 WO 2012151825A1
Authority
WO
WIPO (PCT)
Prior art keywords
apn
local
configuration
access point
configuration file
Prior art date
Application number
PCT/CN2011/079728
Other languages
English (en)
French (fr)
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 WO2012151825A1 publication Critical patent/WO2012151825A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces

Definitions

  • the present invention relates to APN switching technology, and in particular, to an access point switching method and apparatus on iOS. Background technique
  • the Access Point Name (APN) parameter is solidified inside the iPhone, but the interface for setting the APN is not provided to the user. In actual use, the user needs to temporarily set another APN in some scenarios, for example:
  • 3gnet is an APN that is directly connected to the Internet and charges all data traffic.
  • 3gwap is through the wireless application protocol.
  • WAP Wireless Application Protocol
  • Gateway which accesses the Internet through a proxy server, can exempt traffic charges for some internal services such as accessing Unicom mobile TV, Unicom mobile portal or mobile phone business hall.
  • VPDN virtual private dial-up network
  • company A may use companya.bj.apn
  • company B may use companyb.bj.apn.
  • the user needs to switch to an APN that has access to the Internet. For example, China Unicom users need to switch back to 3gnet from a dedicated APN.
  • the operating system iOS used by the iPhone does not provide an Application Programming Interface (API) that modifies the APN configuration.
  • API Application Programming Interface
  • Apple officially announced a way to modify APN: iPhone configuration tool software iPhone Configuration
  • the Utility generates a configuration file (mobileconfig file) and then installs it on the iPhone in the following way:
  • the Safari browser is a built-in component of the iOS system with the ability to install configuration files. Any other third-party software does not have an interface to directly install configuration files.
  • the configuration file can be downloaded and installed from the Web server on the Internet.
  • you need to switch back to the Internet because the network is connected to the intranet and cannot access the Internet, you cannot download the configuration file.
  • the configuration file on the web server needs to be manually created using the iPhone configuration tool.
  • the configuration file contains settings such as APN name, dial-up username, password, and proxy server.
  • the invention provides an access point switching method and device on iOS, so as to implement APN switching configuration when there is no network connection, and improve the APN switching effect.
  • the present invention provides an access point switching method on iOS, including:
  • the browser is instructed to obtain from the local web service module and modify the APN configuration according to the local configuration file.
  • the access point switching method on the iOS as described above before the obtaining the current configuration parameter information, when the access point APN switching instruction is received, the method further includes:
  • the local web service module generates the local configuration file according to the received APN parameter.
  • the browser is instructed to obtain from the Internet web server and modify the APN configuration according to the remote configuration file.
  • the method for switching the access point on the iOS as described above if the determining that the current configuration parameter information does not include the proxy server information, instructing the browser to obtain the APN configuration from the local web service module and modifying the APN configuration according to the local configuration file, including :
  • the storage address of the local configuration file on the local web service module is delivered to the browser;
  • the method for switching the access point on the iOS as described above, if the determining that the current configuration parameter information includes the proxy server information, instructing the browser to acquire from the Internet web server and modify the APN configuration according to the remote configuration file, Includes:
  • the current configuration parameter information includes the proxy server information, instructing the browser to acquire a remote configuration file from the proxy server to the Internet web server;
  • the present invention provides an access point switching device on iOS, including:
  • a local web service module for storing a local configuration file
  • the switching module is configured to obtain the current configuration parameter information when receiving the access point APN switching instruction.
  • the local configuration module is configured to: if it is determined that the current configuration parameter information does not include the proxy server information, instruct the browser to obtain from the local web service module and modify the APN configuration according to the local configuration file.
  • the access point switching device on iOS, wherein The local web service module is further configured to generate the local configuration file according to the received APN parameter.
  • the access point switching device on iOS as described above further includes:
  • a remote configuration module configured to: if it is determined that the current configuration parameter information includes the proxy server information, instruct the browser to acquire from the Internet web server and modify the APN configuration according to the remote configuration file.
  • the local configuration module includes:
  • An address transfer unit configured to: if it is determined that the current configuration parameter information does not include the proxy server information, transfer the storage address of the local configuration file on the local web service module to the browser;
  • a first indication unit configured to instruct the browser to acquire the local configuration file according to the storage address, and modify an APN configuration according to the local configuration file.
  • the remote configuration module includes:
  • a remote obtaining unit configured to: if it is determined that the current configuration parameter information includes the proxy server information, instruct the browser to acquire a remote configuration file from the proxy server by using the proxy server;
  • a second indication unit configured to instruct the browser to modify the APN configuration according to the obtained remote configuration file.
  • the method and device for switching the access point on the iOS provided by the present invention enable the browser to access the local web service module through the loopback address, obtain and install the local configuration file, and perform the APN through the setting of the local web service module. Switch. Even if you are not connected to the Internet server of the Internet, you can obtain and install a local configuration file to implement APN switching configuration when there is no network connection, and improve the APN switching effect.
  • FIG. 1 is a flowchart of a method for switching an access point on an iOS according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an access point switching apparatus on an iOS according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of another access point switching apparatus on an iOS according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for switching an access point on an iOS according to an embodiment of the present invention.
  • the access point switching method on the iOS provided in this embodiment may be specifically applied to the switching of the access point APN on the operating system iOS, but is not limited thereto.
  • the access point switching method on iOS can be implemented in the form of hardware and/or software, including:
  • Step 10 Acquire an current configuration parameter information when receiving an access point APN switching instruction.
  • the user may be provided with an APN switching indication interface to instruct the user to input an APN switching instruction.
  • the APN switching instruction input by the user is received, the current configuration parameter information is obtained, and the current configuration parameter information is specifically the APN configuration parameter information currently being applied.
  • Step 20 If it is determined that the current configuration parameter information does not include the proxy server information, the browser is instructed to obtain from the local web service module and modify the APN configuration according to the local configuration file.
  • the local configuration file may be a standard xml format text file.
  • the local configuration file may be pre-generated according to the user's APN requirement and stored in the local web service module.
  • the browser is specifically Safari.
  • Safari is a built-in component of iOS with the ability to install configuration files, but Safari does not allow direct access to files in the local file system.
  • the Safari browser is instructed to access the local web service module, and the local local web service module obtains the local configuration file and installs it to implement the modification of the APN configuration.
  • the access point switching method on the iOS provided in this embodiment enables the browser to access the local web service module through the loopback address, obtain and install the local configuration file, and perform APN switching by setting the local web service module. Even in the case of a web server that cannot connect to the Internet, you can obtain and install a local configuration file to implement APN switching configuration when there is no network connection, and improve the APN switching effect.
  • step 10 before receiving the access point APN switching instruction, before acquiring the current configuration parameter information specifically includes the following steps:
  • Step 30 The local web service module generates a local configuration file according to the received APN parameter.
  • the user may be provided with an APN parameter configuration interface to instruct the user to input APN parameters, and the APN parameters may specifically include: a configuration name, an APN, a username, a password, a proxy server address, a proxy server port, and the like. These APN parameters are specifically the same as those for setting the APN parameters in the iPhone Configuration Utility.
  • the local web service module generates a local configuration file based on the APN parameters. Users can dynamically generate local configuration files according to APN switching needs to implement the modification of APN configuration, which improves the flexibility of APN switching.
  • the method may further include the following steps:
  • Step 40 If it is determined that the current configuration parameter information includes the proxy server information, the browser is instructed to obtain from the Internet web server and modify the APN configuration according to the remote configuration file.
  • the user can access the Internet through the proxy server. Since Safari cannot set the "Do not use proxy server for an address" option, when the current configuration history information contains proxy server information, it indicates that the Safari browser obtains from the Internet web server and modifies the APN configuration according to the remote configuration file. . Avoid the proxy server accessing the proxy server itself through the loopback address, and unable to get the local configuration file question.
  • the user may be provided with an option of "generating a configuration file using an Internet web server under a proxy server". When the user selects this option, the current APN setting is determined. If the proxy server configuration is included in the setting, the Safari browser is instructed. Access a web server located on the Internet to download a remote profile.
  • steps 20 and 40 do not have a necessary timing relationship. After completing the steps
  • step 20 is performed; otherwise, step 40 is performed.
  • the APN configuration can be implemented for both the remote profile and the local profile as profiles with the same content.
  • the remote profile can be a pre-generated profile stored on the Internet web server for users to download.
  • the user can also provide the APN parameters to the Internet web server through the Safari browser, and the Internet web server generates corresponding remote configuration files to provide the user according to the received APN parameters.
  • step 20 if it is determined that the current configuration parameter information does not include the proxy server information, the browser is instructed to obtain the APN configuration from the local web service module and modify the APN configuration according to the local configuration file, which may include the following steps:
  • Step 201 If it is determined that the current configuration parameter information does not include the proxy server information, the storage address of the local configuration file on the local web service module is delivered to the browser;
  • the file name of the local configuration file is iphone.mobileconfig
  • the storage address of the local configuration file on the local web service module is http://127.0.0.1/iphone.mobileconfig, then the storage address can be passed to Safari. Device.
  • Step 202 Instruct the browser to obtain a local configuration file according to the storage address, and modify the APN configuration according to the local configuration file.
  • step 40 if it is determined that the current configuration parameter information includes the proxy server information, the browser is instructed to obtain from the Internet web server and modify the APN according to the remote configuration file.
  • the configuration may specifically include the following steps:
  • Step 401 If it is determined that the current configuration parameter information includes proxy server information, instruct the browser to obtain a remote configuration file from the proxy server by using the proxy server;
  • Step 402 Instruct the browser to modify the APN configuration according to the obtained remote configuration file.
  • the Safari browser may be instructed to send a configuration file acquisition request to the Internet web server, and the Internet web server provides a corresponding remote configuration file according to the configuration file acquisition request.
  • the user can be provided with an APN setting and an installation instruction interface to instruct the user to operate. Users can pre-configure two sets of APN parameters as needed to quickly switch between the main interface.
  • the access point switching device 80 on the iOS may specifically implement an access point switching method on an iOS provided by any embodiment of the present invention, and may be set in a mobile terminal installed with iOS, such as an iPhone. But it is not limited to this.
  • the access point switching device 80 on the iOS includes a local web service module 11, a switching module 12, and a local configuration module 13.
  • the local web service module 11 is used to store local configuration files.
  • the switching module 12 is configured to obtain current configuration parameter information when receiving the access point APN switching instruction.
  • the local configuration module 13 is configured to, if it is determined that the current configuration parameter information does not include the proxy server information, instruct the browser 14 to obtain the local configuration file from the local web service module 11, and modify the APN configuration according to the local configuration file.
  • the access point switching device 80 on the iOS provided in this embodiment through the settings of the local web service module 11 and the local configuration module 13, the local configuration module 13 can enable the browser 14 to access the local web service module 11 through the loopback address to obtain the local configuration. File, and install the local configuration file to perform APN switching. Even in the case of a web server that cannot connect to the Internet, you can obtain and install a local configuration file to implement APN switching configuration when there is no network connection, and improve the APN switching effect.
  • the local web service module 11 is further configured to generate a local configuration file according to the received APN parameter.
  • the local web service module 11 dynamically generates a local configuration file according to the APN parameter. Increased flexibility in APN switching.
  • FIG. 3 is a schematic structural diagram of another access point switching device on an iOS according to an embodiment of the present invention.
  • the access point switching device 80 on the iOS may further include a remote configuration module 15 for indicating the browser if it is determined that the current configuration parameter information includes the proxy server information.
  • the remote configuration module 15 for indicating the browser if it is determined that the current configuration parameter information includes the proxy server information.
  • 14 Obtain a remote configuration file from the Internet web server 16, and modify the APN configuration according to the remote configuration file.
  • the remote configuration file is still accessed by accessing the Internet Web server 16 to modify the APN configuration, which improves the flexibility of APN configuration file acquisition.
  • the local configuration module 13 may specifically include an address delivery unit 131 and a first indication unit 132.
  • the address transfer unit 131 is configured to: if it is determined that the current configuration parameter information does not include the proxy server information, transfer the storage address of the local configuration file on the local web service module 11 to the browser 14.
  • the first indication unit 132 is configured to instruct the browser 14 to obtain a local configuration file according to the storage address, and modify the APN configuration according to the local configuration file.
  • the first indication unit 132 may also receive the indication information input by the user, and instruct the browser 14 to acquire the local configuration file and perform the installation of the local configuration file according to the indication information.
  • the remote configuration module 15 may specifically include a remote obtaining unit 151 and a second indicating unit 152.
  • the remote obtaining unit 151 is configured to instruct the browser 14 to acquire the remote configuration file from the proxy server through the proxy server if it is determined that the current configuration parameter information includes the proxy server information.
  • the second indication unit 152 is configured to instruct the browser 14 to modify the APN configuration according to the acquired remote configuration file.
  • the second indication unit 152 can also receive the indication information input by the user, and instruct the browser 14 to locally install the acquired remote configuration file according to the indication information.
  • the method and device for switching the access point on the iOS provided by the embodiment of the present invention can be implemented by the local web service module, and the iPhone can directly perform APN setting without any network connection or under any APN, thereby implementing the APN free switching function and improving The APN switching effect.
  • the local configuration file can be dynamically generated according to the APN parameters provided by the user, without manual pre-production, and the operation is simple and easy to implement.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

lOS上接入点切换方法及装置
技术领域
本发明涉及 APN切换技术, 尤其涉及一种 iOS上接入点切换方法及 装置。 背景技术
iPhone手机内部固化了接入点( Access Point Name ,以下简称 APN )参数, 但并不向用户提供设置 APN的界面。 在实际使用中, 用户在某些场景下需要 临时设置另一个 APN , 例如:
一、 中国联通使用两个 APN来区分不同的业务, 其中 3gnet是直接接入互 联网使用的 APN, 对所有数据流量收取费用; 而 3gwap是通过无线应用协议
( Wireless Application Protocol, 以下简称 WAP ) 网关, 经过代理服务器的方 式访问互联网, 对一些内部业务如访问联通手机电视、 联通手机门户或者手 机营业厅等业务时可以免收流量费。
二、 当用户将手机用于行业应用时, 经常采用专用 APN接入虚拟专用拨 号网 ( Virtual Private Dial-up Networks, 以下简称 VPDN ) 的方式访问企业内 部网络, 以确保数据传送的安全, 在这种情况下, 需要使用专用 APN, 如 A 公司可能使用 companya.bj.apn, B公司可能使用 companyb.bj.apn。 使用后, 用 户又需要切换到能够访问互联网的 APN。 以中国联通用户为例, 需要从专用 APN切换回 3gnet。
但是, iPhone手机使用的操作系统 iOS并未提供修改 APN配置的应用程序 编程接口 (Application Programming Interface, 以下简称 API ) 。 苹果公司官 方公布一种修改 APN的方式: 通过 iPhone配置工具软件 iPhone Configuration Utility生成一个配置文件 ( mobileconfig文件) , 然后用以下方式在 iPhone上 安装:
1、 直接用 iPhone配置工具软件通过 USB线进行安装。 该方法步骤多且复 杂, 普通用户很难操作。
2、 通过 Safari浏览器从 Web服务器上下载配置文件进行安装。 Safari 浏览器是 iOS系统的内置组件, 具备安装配置文件的功能, 其他任何第三 方软件没有直接安装配置文件的接口。 在用户使用专用 APN访问企业内 网的情况下, 当软件从互联网 APN切换到企业专用 APN时, 可以从互联 网上的 Web 服务器上下载配置文件并安装。 但是需要切换回互联网时, 由于这时的网络是和企业内网相连, 无法访问互联网, 因此无法下载配置 文件; 如果将 Web服务器放在企业内网, 在互联网 APN切换到企业内网 APN的时候, 就无法访问 Web服务器。 而且, Web服务器上的配置文件 需要人工使用 iPhone配置工具来制作, 配置文件中包含 APN名称、 拨号 用户名、 密码、 代理服务器等设置。 当为了网络安全, 不同用户使用不同 的用户名和密码时, 需要为企业中的每个员工分别制作不同的配置文件, 工作量大, 操作不便。 发明内容
本发明提供一种 iOS上接入点切换方法及装置,以实现在无网络连接时进 行 APN切换配置, 提高 APN切换效果。
本发明提供一种 iOS上接入点切换方法, 包括:
当接收到接入点 APN切换指令时, 获取当前配置参数信息;
若判断获知所述当前配置参数信息中未包含代理服务器信息, 则指示浏 览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置。
如上所述的 iOS上接入点切换方法, 所述当接收到接入点 APN切换指令 时, 获取当前配置参数信息之前, 还包括: 所述本地 Web服务模块根据接收到的 APN参数, 生成所述本地配置文件。 如上所述的 iOS上接入点切换方法, 所述当接收到接入点 APN切换指令 时, 获取当前配置参数信息之后, 还包括:
若判断获知所述当前配置参数信息包含所述代理服务器信息, 则指示所 述浏览器从互联网 Web服务器获取并根据远程配置文件修改 APN配置。
如上所述的 iOS上接入点切换方法,所述若判断获知所述当前配置参数信 息中未包含代理服务器信息, 则指示浏览器从本地 Web服务模块获取并根据 本地配置文件修改 APN配置, 包括:
若判断获知所述当前配置参数信息中未包含代理服务器信息, 则将所述 本地配置文件在所述本地 Web服务模块上的存储地址传递给浏览器;
指示所述浏览器根据所述存储地址获取所述本地配置文件, 并根据所述 本地配置文件修改 APN配置。
如上所述的 iOS上接入点切换方法,所述若判断获知所述当前配置参数信 息包含所述代理服务器信息, 则指示所述浏览器从互联网 Web服务器获取并 根据远程配置文件修改 APN配置, 包括:
若判断获知所述当前配置参数信息包含所述代理服务器信息, 则指示所 述浏览器通过所述代理服务器向互联网 Web服务器获取远程配置文件;
指示所述浏览器根据获取到的所述远程配置文件修改 APN配置。
本发明提供一种 iOS上接入点切换装置, 包括:
本地 Web服务模块, 用于存储本地配置文件;
切换模块, 用于当接收到接入点 APN切换指令时, 获取当前配置参数信 自 ·
本地配置模块, 用于若判断获知所述当前配置参数信息中未包含代理服 务器信息, 则指示浏览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置。
如上所述的 iOS上接入点切换装置, 其中, 所述本地 Web服务模块还用于根据接收到的 APN参数, 生成所述本地配 置文件。
如上所述的 iOS上接入点切换装置, 还包括:
远程配置模块, 用于若判断获知所述当前配置参数信息包含所述代理服 务器信息, 则指示所述浏览器从互联网 Web服务器获取并根据远程配置文件 修改 APN配置。
如上所述的 iOS上接入点切换装置, 所述本地配置模块包括:
地址传递单元, 用于若判断获知所述当前配置参数信息中未包含代理服 务器信息, 则将所述本地配置文件在所述本地 Web服务模块上的存储地址传 递给浏览器;
第一指示单元, 用于指示所述浏览器根据所述存储地址获取所述本地配 置文件, 并根据所述本地配置文件修改 APN配置。
如上所述的 iOS上接入点切换装置, 所述远程配置模块包括:
远程获取单元, 用于若判断获知所述当前配置参数信息包含所述代理服 务器信息, 则指示所述浏览器通过所述代理服务器向互联网 Web服务器获取 远程配置文件;
第二指示单元, 用于指示所述浏览器根据获取到的所述远程配置文件修 改 APN配置。
由上述技术方案可知, 本发明提供的 iOS上接入点切换方法及装置, 通过本地 Web服务模块的设置,使浏览器可以通过回送地址访问本地 Web 服务模块, 获取并安装本地配置文件, 进行 APN切换。 即使在连不上互 联网的 Web服务器的情况下, 也可以获取和安装本地配置文件, 实现在 无网络连接时进行 APN切换配置, 提高 APN切换效果。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的 iOS上接入点切换方法流程图;
图 2为本发明实施例提供的一种 iOS上接入点切换装置结构示意图; 图 3 为本发明实施例提供的另一种 iOS 上接入点切换装置结构示意 图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例, 对本发明实施例中的技术方案进行清楚、 完整地描述。 需要说明 的是, 在附图或说明书中, 相似或相同的元件皆使用相同的附图标记。
图 1为本发明实施例提供的 iOS上接入点切换方法流程图。如图 1所示, 本 实施例提供的 iOS上接入点切换方法具体可以应用于操作系统 iOS上接入点 APN的切换, 但并不以此为限。 该 iOS上接入点切换方法可以通过硬件和 /或 软件的形式来实现, 具体包括:
步骤 10、 当接收到接入点 APN切换指令时, 获取当前配置参数信息; 具体可以为用户提供 APN切换指示界面,以指示用户输入 APN切换指令。 当接收到用户输入的 APN切换指令时, 获取当前配置参数信息, 当前配置参 数信息具体为当前正在应用的 APN配置参数信息。
步骤 20、 若判断获知当前配置参数信息中未包含代理服务器信息, 则指 示浏览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置。
本地配置文件具体可以为一个标准的 xml格式的文本文件,本地配置文件 可以根据用户的 APN需要预先生成, 存储在本地 Web服务模块中。 浏览器具 体为 Safari浏览器, Safari浏览器为 iOS的内置组件,具备安装配置文件的功能, 但 Safari浏览器不允许直接访问本地文件系统中的文件。 当当前配置参数信息 中未包含代理服务器信息时, 指示 Safari浏览器访问本地 Web服务模块, 具体 本地 Web服务模块获取本地配置文件, 并安装, 以实现对 APN配置的修改。
本实施例提供的 iOS上接入点切换方法, 通过本地 Web服务模块的设置, 使浏览器可以通过回送地址访问本地 Web服务模块, 获取并安装本地配置文 件, 进行 APN切换。 即使在连不上互联网的 Web服务器的情况下, 也可以获 取和安装本地配置文件, 实现在无网络连接时进行 APN切换配置, 提高 APN 切换效果。
在本实施例中, 步骤 10, 当接收到接入点 APN切换指令时, 获取当前配 置参数信息之前, 具体还包括以下步骤:
步骤 30、 本地 Web服务模块根据接收到的 APN参数, 生成本地配置文件。 具体可以为用户提供 APN参数配置界面,以指示用户输入 APN参数, APN 参数具体可以包括: 配置名称、 APN、 用户名、 密码、 代理服务器地址、 代 理服务器端口等。 这些 APN参数具体和 iPhone Configuration Utility里面设置 APN参数的项目一致。 本地 Web服务模块根据该些 APN参数生成本地配置文 件。 用户可以根据 APN切换需要动态生成本地配置文件以实现对 APN配置的 修改, 提高了 APN切换的灵活性。
在本实施例中, 步骤 10, 当接收到接入点 APN切换指令时, 获取当前配 置参数信息之后, 具体还可以包括以下步骤:
步骤 40、 若判断获知当前配置参数信息包含代理服务器信息, 则指示浏 览器从互联网 Web服务器获取并根据远程配置文件修改 APN配置。
若判断获知当前配置参数信息包含代理服务器信息, 说明用户可以通过 代理服务器接入互联网。 由于 Safari浏览器无法设置 "对某个地址不使用代理 月良务器" 选项, 所以当当前配置 史信息包含代理服务器信息时, 指示 Safari 浏览器从互联网 Web服务器获取并根据远程配置文件修改 APN配置。 避免代 理服务器通过回送地址访问代理服务器本身, 而无法获取本地配置文件的问 题。 具体的, 可以为用户提供一个 "在代理服务器下使用互联网 Web服务器 生成配置文件" 的选项, 用户选择此选项时, 判断当前生效的 APN设置, 如 果设置中包含代理服务器配置, 则指示 Safari浏览器访问位于互联网上的 Web 服务器下载远程配置文件。
值得注意的是, 步骤 20和步骤 40不具有必然的时序关系。 在进行完步骤
10后获取到当前配置参数信息, 对当前配置参数信息进行判断, 若当前配置 参数信息中未包含代理服务器信息, 则执行步骤 20, 否则, 执行步骤 40。
远程配置文件和本地配置文件为具有相同内容的配置文件, 都可以实现 APN配置。 远程配置文件可以为预先生成的配置文件, 存储在互联网 Web服 务器上以供用户下载。 用户也可以通过 Safari浏览器将 APN参数提供给互联网 Web服务器, 互联网 Web服务器再根据接收到的 APN参数生成相应的远程配 置文件提供给用户。
在本实施例中, 步骤 20, 若判断获知当前配置参数信息中未包含代理服 务器信息, 则指示浏览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置, 具体可以包括以下步骤:
步骤 201、 若判断获知当前配置参数信息中未包含代理服务器信息, 则将 本地配置文件在本地 Web服务模块上的存储地址传递给浏览器;
例^口, 本地配置文件的文件名为 iphone.mobileconfig, 本地配置文件在本 地 Web服务模块上的存储地址为 http://127.0.0.1/iphone.mobileconfig,则可以将 该存储地址传递给 Safari浏览器。
步骤 202、 指示浏览器根据存储地址获取本地配置文件, 并根据本地配置 文件修改 APN配置。
指示 Safari浏览器通过存储地址获取本地配置文件, 并对本地配置文件进 行安装, 以修改 APN配置。
在本实施例中, 步骤 40, 若判断获知当前配置参数信息包含代理服务器 信息, 则指示浏览器从互联网 Web服务器获取并根据远程配置文件修改 APN 配置, 具体可以包括以下步骤:
步骤 401、 若判断获知当前配置参数信息包含代理服务器信息, 则指示浏 览器通过代理服务器向互联网 Web服务器获取远程配置文件;
步骤 402、 指示浏览器根据获取到的远程配置文件修改 APN配置。
具体的, 当当前配置参数信息包含代理服务器信息时, 可以指示 Safari 浏览器向互联网 Web服务器发送配置文件获取请求, 互联网 Web服务器根据 该配置文件获取请求提供相应的远程配置文件。
在实际 APN切换应用中, 可以为用户提供 APN设置及安装指示界面, 以 指示用户操作。 用户可以根据需要预先配置两组 APN参数, 以在主界面进行 快速切换。
图 2为本发明实施例提供的一种 iOS上接入点切换装置结构示意图。如图 2 所示,本实施例提供的 iOS上接入点切换装置 80具体可以实现本发明任意实施 例提供的 iOS上接入点切换方法, 可以设置在安装有 iOS的移动终端中如 iPhone, 但并不以此为限。 该 iOS上接入点切换装置 80包括本地 Web服务模块 11、 切换模块 12和本地配置模块 13。 本地 Web服务模块 11用于存储本地配置 文件。 切换模块 12用于当接收到接入点 APN切换指令时, 获取当前配置参数 信息。 本地配置模块 13用于若判断获知当前配置参数信息中未包含代理服务 器信息, 则指示浏览器 14从本地 Web服务模块 11获取本地配置文件, 并根据 本地配置文件修改 APN配置。
本实施例提供的 iOS上接入点切换装置 80,通过本地 Web服务模块 11和本地 配置模块 13的设置, 本地配置模块 13可以使浏览器 14通过回送地址访问本地 Web服务模块 11 , 获取本地配置文件, 并安装该本地配置文件, 进行 APN切换。 即使在连不上互联网的 Web服务器的情况下,也可以获取和安装本地配置文件, 实现在无网络连接时进行 APN切换配置, 提高 APN切换效果。
在本实施例中, 本地 Web服务模块 11还可以用于根据接收到的 APN参数, 生成本地配置文件。 本地 Web服务模块 11根据 APN参数动态生成本地配置文 件, 提高了 APN切换的灵活性。
图 3为本发明实施例提供的另一种 iOS上接入点切换装置结构示意图。 如 图 3所示, 在本实施例中, iOS上接入点切换装置 80还可以包括远程配置模块 15,远程配置模块 15用于若判断获知当前配置参数信息包含代理服务器信息, 则指示浏览器 14从互联网 Web服务器 16获取远程配置文件, 并根据该远程配 置文件修改 APN配置。 通过将本地配置和远程配置相结合, 当用户通过代理 服务器连入互联网时, 仍然通过访问互联网 Web服务器 16获取远程配置文件 以修改 APN配置, 提高了 APN配置文件获取的灵活性。
在本实施例中,本地配置模块 13具体可以包括地址传递单元 131和第一指 示单元 132。 地址传递单元 131用于若判断获知当前配置参数信息中未包含代 理服务器信息, 则将本地配置文件在本地 Web服务模块 11上的存储地址传递 给浏览器 14。第一指示单元 132用于指示浏览器 14根据存储地址获取本地配置 文件, 并根据本地配置文件修改 APN配置。 第一指示单元 132也可以接收用户 输入的指示信息, 并根据该指示信息指示浏览器 14获取本地配置文件和进行 本地配置文件的安装。
在本实施例中,远程配置模块 15具体可以包括远程获取单元 151和第二指 示单元 152。 远程获取单元 151用于若判断获知当前配置参数信息包含代理服 务器信息, 则指示浏览器 14通过代理服务器向互联网 Web服务器 16获取远程 配置文件。第二指示单元 152用于指示浏览器 14根据获取到的远程配置文件修 改 APN配置。 第二指示单元 152也可以接收用户输入的指示信息, 并根据该指 示信息指示浏览器 14对获取到的远程配置文件进行本地安装。
本发明实施例提供的 iOS上接入点切换方法及装置,通过本地 Web服务模 块的设置, iPhone可以在无网络连接, 或者处于任何 APN下都可以直接进行 APN设置, 实现 APN自由切换功能, 提高了 APN切换效果。 而且可以根据用 户提供的 APN参数动态生成本地配置文件, 无需人工预先制作, 操作简单, 易于实现。 最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权 利 要 求
1、 一种 iOS上接入点切换方法, 其特征在于, 包括:
当接收到接入点 APN切换指令时, 获取当前配置参数信息;
若判断获知所述当前配置参数信息中未包含代理服务器信息, 则指示浏 览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置。
2、 根据权利要求 1所述的 iOS上接入点切换方法, 其特征在于, 所述当接 收到接入点 APN切换指令时, 获取当前配置参数信息之前, 还包括:
所述本地 Web服务模块根据接收到的 APN^史, 生成所述本地配置文件。
3、 根据权利要求 1所述的 iOS上接入点切换方法, 其特征在于, 所述当接 收到接入点 APN切换指令时, 获取当前配置参数信息之后, 还包括:
若判断获知所述当前配置参数信息包含所述代理服务器信息, 则指示所 述浏览器从互联网 Web服务器获取并根据远程配置文件修改 APN配置。
4、 根据权利要求 1或 2所述的 iOS上接入点切换方法, 其特征在于, 所述 若判断获知所述当前配置参数信息中未包含代理服务器信息, 则指示浏览器 从本地 Web服务模块获取并根据本地配置文件修改 APN配置, 包括:
若判断获知所述当前配置参数信息中未包含代理服务器信息, 则将所述 本地配置文件在所述本地 Web服务模块上的存储地址传递给浏览器;
指示所述浏览器根据所述存储地址获取所述本地配置文件, 并根据所述 本地配置文件修改 APN配置。
5、 根据权利要求 3所述的 iOS上接入点切换方法, 其特征在于, 所述若判 断获知所述当前配置参数信息包含所述代理服务器信息, 则指示所述浏览器 从互联网 Web服务器获取并根据远程配置文件修改 APN配置, 包括:
若判断获知所述当前配置参数信息包含所述代理服务器信息, 则指示所 述浏览器通过所述代理服务器向互联网 Web服务器获取远程配置文件;
指示所述浏览器根据获取到的所述远程配置文件修改 APN配置。
6、 一种 iOS上接入点切换装置, 其特征在于, 包括: 本地 Web服务模块, 用于存储本地配置文件;
切换模块, 用于当接收到接入点 APN切换指令时, 获取当前配置 丈信息; 本地配置模块, 用于若判断获知所述当前配置参数信息中未包含代理服 务器信息, 则指示浏览器从本地 Web服务模块获取并根据本地配置文件修改 APN配置。
7、 根据权利要求 6所述的 iOS上接入点切换装置, 其特征在于:
所述本地 Web服务模块还用于根据接收到的 APN参数, 生成所述本地配 置文件。
8、 根据权利要求 6所述的 iOS上接入点切换装置, 其特征在于, 还包括: 远程配置模块, 用于若判断获知所述当前配置参数信息包含所述代理服 务器信息, 则指示所述浏览器从互联网 Web服务器获取并根据远程配置文件 修改 APN配置。
9、 根据权利要求 6或 7所述的 iOS上接入点切换装置, 其特征在于, 所述 本地配置模块包括:
地址传递单元, 用于若判断获知所述当前配置参数信息中未包含代理服 务器信息, 则将所述本地配置文件在所述本地 Web服务模块上的存储地址传 递给浏览器;
第一指示单元, 用于指示所述浏览器根据所述存储地址获取所述本地配 置文件, 并根据所述本地配置文件修改 APN配置。
10、 根据权利要求 8所述的 iOS上接入点切换装置, 其特征在于, 所述远 程配置模块包括:
远程获取单元, 用于若判断获知所述当前配置参数信息包含所述代理服 务器信息, 则指示所述浏览器通过所述代理服务器向互联网 Web服务器获取 远程配置文件;
第二指示单元, 用于指示所述浏览器根据获取到的所述远程配置文件 修改 APN配置。
PCT/CN2011/079728 2011-05-10 2011-09-16 Ios上接入点切换方法及装置 WO2012151825A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101197348A CN102148876A (zh) 2011-05-10 2011-05-10 iOS上接入点切换方法及装置
CN201110119734.8 2011-05-10

Publications (1)

Publication Number Publication Date
WO2012151825A1 true WO2012151825A1 (zh) 2012-11-15

Family

ID=44422862

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079728 WO2012151825A1 (zh) 2011-05-10 2011-09-16 Ios上接入点切换方法及装置

Country Status (2)

Country Link
CN (1) CN102148876A (zh)
WO (1) WO2012151825A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099836A (zh) * 2019-05-31 2020-12-18 北京金山云网络技术有限公司 更新配置文件方法、配置服务器、版本控制服务器及系统

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148876A (zh) * 2011-05-10 2011-08-10 中国联合网络通信集团有限公司 iOS上接入点切换方法及装置
CN105451283B (zh) * 2012-03-23 2019-03-12 青岛海信移动通信技术股份有限公司 一种切换网络接入点的方法、装置和终端
US9622165B2 (en) 2013-05-06 2017-04-11 Tencent Technology (Shenzhen) Company Limited Methods and systems for connecting a mobile device to a network
CN104144462B (zh) * 2013-05-06 2019-01-11 腾讯科技(深圳)有限公司 获取移动终端网络接入方式的方法、装置及移动终端
CN106973380B (zh) * 2017-04-01 2020-04-21 中国联合网络通信集团有限公司 一种切换apn的方法及装置
CN108038092A (zh) * 2017-11-09 2018-05-15 捷开通讯(深圳)有限公司 一种apn数据格式的转换方法、智能终端及存储装置
CN109995811B (zh) * 2017-12-29 2021-12-28 中国移动通信集团广东有限公司 一种ios系统的网络切换方法及系统
CN112468315A (zh) * 2020-11-03 2021-03-09 上海中觅通信技术有限公司 一种apn配置方法和设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1705835A1 (en) * 2005-03-22 2006-09-27 Gemtek Systems, Inc. Methods and systems for fast handover in 802.11 wireless networks
CN1981545A (zh) * 2004-04-28 2007-06-13 诺基亚公司 用于在移动域中配置和更新服务接入点及提供服务内容特定定价的系统和相关终端、方法及计算机程序产品
CN101395933A (zh) * 2006-03-01 2009-03-25 日本电气株式会社 通信终端、接入点切换方法和接入点切换控制程序
CN101472306A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 一种ap间切换的方法、装置和系统
CN102148876A (zh) * 2011-05-10 2011-08-10 中国联合网络通信集团有限公司 iOS上接入点切换方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009515A (zh) * 2006-01-24 2007-08-01 华为技术有限公司 通信终端设备管理方法及通信终端
CN101742696A (zh) * 2008-11-10 2010-06-16 华为技术有限公司 一种信息传递方法及装置
CN101909326B (zh) * 2010-08-17 2014-08-13 中兴通讯股份有限公司 一种接入点的选择方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1981545A (zh) * 2004-04-28 2007-06-13 诺基亚公司 用于在移动域中配置和更新服务接入点及提供服务内容特定定价的系统和相关终端、方法及计算机程序产品
EP1705835A1 (en) * 2005-03-22 2006-09-27 Gemtek Systems, Inc. Methods and systems for fast handover in 802.11 wireless networks
CN101395933A (zh) * 2006-03-01 2009-03-25 日本电气株式会社 通信终端、接入点切换方法和接入点切换控制程序
CN101472306A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 一种ap间切换的方法、装置和系统
CN102148876A (zh) * 2011-05-10 2011-08-10 中国联合网络通信集团有限公司 iOS上接入点切换方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099836A (zh) * 2019-05-31 2020-12-18 北京金山云网络技术有限公司 更新配置文件方法、配置服务器、版本控制服务器及系统

Also Published As

Publication number Publication date
CN102148876A (zh) 2011-08-10

Similar Documents

Publication Publication Date Title
WO2012151825A1 (zh) Ios上接入点切换方法及装置
KR101914408B1 (ko) 인터넷 액세스 인증 방법 및 클라이언트, 그리고 컴퓨터 저장 매체
TWI332333B (en) System and method for distributing wireless network access parameters
JP4950289B2 (ja) 移動電話及びヘッドセットを用いるマルチメディアネットワーキングのためのシステム及び方法
EP3439371B1 (en) Method and apparatus for determining access point service capabilities
US8174998B2 (en) Network connecting apparatus and connection setup method
US20100115108A1 (en) Wireless device and method for automatically establishing wireless connection
JP2013514677A (ja) 携帯用端末機及びその制御方法
RU2014123536A (ru) Способ установления связности данных между устройством беспроводной связи и базовой сетью по ip сети доступа, устройство беспроводной связи и система связи
DK2922276T3 (en) FILE SHARING PROCEDURE, DEVICE, AND MOBILE DEVICE
WO2014161266A1 (zh) 应用软件的传输方法、终端及系统
WO2015051701A1 (zh) Wifi同步apn网络多通道并发上网并自动优选wifi联网的方法
WO2011017970A1 (zh) 一种基于多模移动终端的资源下载方法和系统
CN103796278A (zh) 移动终端无线网络接入控制方法
WO2011160587A1 (zh) 一种双栈终端连接网络的方法及系统
JP5625075B2 (ja) Androidシステムに基づくサービス処理方法及び装置
WO2014036933A1 (zh) 一种设备间共享内容的方法、设备及系统
WO2015139401A1 (zh) 无线网络的建立方法、系统及无线路由装置
WO2011009339A1 (zh) 一种数据传输的方法、系统和装置
US8989166B1 (en) Method and system for detection and correction of a WiFi login failure
CN103517373B (zh) 一种网络接入的方法和设备
WO2012175024A1 (zh) 实现无线数据传输与短信收发并行的方法、系统及设备
WO2013087002A1 (zh) 用户端接入控制的方法和系统
WO2014000628A1 (zh) 一种移动宽带设备的业务实现方法及装置
US20140300764A1 (en) Method of Easily Configuring a Network Camera

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: 11865103

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: 11865103

Country of ref document: EP

Kind code of ref document: A1