WO2011110094A1 - 一种基于android系统的业务处理方法和装置 - Google Patents

一种基于android系统的业务处理方法和装置 Download PDF

Info

Publication number
WO2011110094A1
WO2011110094A1 PCT/CN2011/071668 CN2011071668W WO2011110094A1 WO 2011110094 A1 WO2011110094 A1 WO 2011110094A1 CN 2011071668 W CN2011071668 W CN 2011071668W WO 2011110094 A1 WO2011110094 A1 WO 2011110094A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
pdp
processing
type
active state
Prior art date
Application number
PCT/CN2011/071668
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 华为终端有限公司
Priority to EP11752837.2A priority Critical patent/EP2547168B1/en
Priority to KR1020127025402A priority patent/KR101408745B1/ko
Priority to JP2012556373A priority patent/JP5625075B2/ja
Publication of WO2011110094A1 publication Critical patent/WO2011110094A1/zh
Priority to US13/608,797 priority patent/US9370032B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols
    • H04W80/10Upper layer protocols adapted for application session management, e.g. SIP [Session Initiation Protocol]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a service processing method and apparatus based on an Android system. Background technique
  • Android is a new generation of intelligent mobile terminal systems. More and more mobile terminals use Android as the operating system, and users of mobile terminals using the Android system are also increasing. The mobile terminals of the Android system provide powerful network functions, making Users can access the Internet very conveniently
  • APN For the access node name, the full name is Access Point Name, a Gateway GPRS Support Node (GGSN) and the logical name of the external network.
  • the APN configuration is required to activate a PDP.
  • PDP is a packet data protocol
  • the complete name is packet data protocol
  • a PDP represents an interaction channel between a mobile terminal and a network.
  • a PDP enables a mobile terminal to have an IP address and a network interface in the mobile terminal.
  • the inventor discovered through the research that at present, the mobile terminal using the Android system does not support the use of multiple APNs when performing network-related services, that is, at the same time, only one APN of the mobile terminal using the Android system is in use. Accordingly, at the same time, only one PDP exists in the mobile terminal using the Android system.
  • the corresponding PDP can only process the Internet service, and if the mobile terminal is processing the Internet service, the current practice on the Android system is to deactivate the PDP that is currently in an active state and handle the Internet service, and then activate the MMS service according to the configuration of the APN capable of processing the MMS service. PDP, etc. After the end of the process, the PDP that originally processed the Internet service is restored.
  • the embodiment of the present invention provides a service processing method and device based on the Android system, which fundamentally changes the service processing flow of the existing Android system, ensures the normal operation of the original service while processing the new service, and improves the normal operation.
  • the processing speed of the mobile terminal also improves the user experience.
  • the embodiment of the present invention provides the following technical solutions:
  • An Android-based business processing method including:
  • the first PDP is created according to the service type of the first service.
  • the first PDP is activated, and the first service is processed by the first PDP.
  • An Android-based business processing device comprising:
  • a determining unit configured to determine a service type of the first service when receiving the first service request, and a determining unit, configured to determine, according to the service type of the first service, whether a packet data protocol PDP that is currently in an active state can Processing the first service;
  • a first processing unit configured to create a first PDP according to the service type of the first service, when the PDP that is currently in an active state cannot process the first service
  • the notification unit is configured to notify the application corresponding to the first service, and process the first service by using the first PDP.
  • the solution provided by the embodiment of the present invention can create a corresponding PDP according to the service type of the specific service, so that the support of the PDP of the Android platform is enhanced from one to multiple, thereby fundamentally avoiding the existing
  • the Android system interrupts the current service being processed, deactivates the current PDP, and re-creates a new PDP for service processing. After that, the complex process of the original PDP is restored, and the parallel processing capability of many different types of services in the Android system is realized, and the user experience is greatly improved.
  • Embodiment 1 is a flowchart of a method provided by Embodiment 1 of the present invention.
  • Embodiment 2 is a flowchart of a method provided by Embodiment 2 of the present invention.
  • Embodiment 3 is a flowchart of a process of a method provided by Embodiment 2 of the present invention.
  • FIG. 4 is a schematic structural view of a device according to Embodiment 3 of the present invention. detailed description
  • an Android system-based service processing method provided by Embodiment 1 of the present invention includes: S101. Determine a service type of the first service when receiving a first service request. The first service is used to describe any one of the current Android systems.
  • the first service request is used to describe a service request corresponding to any service that needs to be executed.
  • each business has a corresponding business type.
  • Network-related business For example, browsing a webpage or watching a video from a webpage belongs to an Internet service; and receiving or sending a multimedia message belongs to a multimedia messaging service.
  • the service type of the Internet service is default, and the service type of the MMS service is MMS (Multimedia Messaging Service).
  • the first PDP is created according to the service type of the first service.
  • the newly created PDP is described by using the first PDP.
  • the creating the first PDP according to the service type of the first service includes: determining a corresponding first APN according to the service type of the first service; and activating the corresponding first PDP according to the configuration of the first APN.
  • a PDP context represents an interaction channel between a mobile terminal and a network.
  • a PDP context allows the mobile terminal to have an IP address and a network interface within the mobile terminal.
  • the PDP is activated according to the configuration of the APN.
  • the type of service that the PDP can handle is determined by the APN configuration.
  • the application interacts with the server through the proxy and ort configured by the APN, instead of directly interacting with the server.
  • the user name and password are used to authenticate the PDP when the APN is activated.
  • the APN indicates the type of service that can be processed by the PDP activated by the APN. For example, if the APN type is * or empty, it means that the PDP activated by the APN can handle any type of service, if the APN type is The MMS indicates that the PDP activated by the APN can process the MMS service. If the APN type is default, the PDP activated by the APN can process services other than the MMS, such as Internet-related services, etc.
  • the current mobile terminal The activated PDP, whose corresponding APN type is default, then if the first service is a multimedia message service, it can be determined according to the service type of the MMS service. PDP can not be processed in the active state of the first service, the need to activate the PDP according to a first service type to the first service. S104. The application corresponding to the first service is notified, the first PDP is activated, and the first service is processed by the first PDP. After the first PDP is successfully created, the first PDP can be used to perform processing of the type of service.
  • the server on the network side supports a mobile terminal having multiple active states at the same time.
  • the PDP that is currently in an active state can process the first service according to the service type of the first service
  • the first service may be processed by using a corresponding PDP in an active state.
  • the PDP that is currently in the active state is configured by its corresponding APN to process the service of the default type
  • the first service requested by the first service request is the service for watching the video through the webpage.
  • This service is of the default type and can be processed directly through the active PDP, eliminating the need to create a new PDP.
  • the method provided in Embodiment 1 of the present invention can create a corresponding according to a service type of a specific service.
  • the PDP enables the Android platform to support the PDP from one to several, which fundamentally avoids the existing Android system in the process of processing the business.
  • the active PDP cannot process a pending service type, it interrupts the current The processed service, deactivates the current PDP, re-creates a new PDP for service processing, and resumes the complex process of the original PDP after the completion of the business processing, realizing the parallel processing of many different types of services in the Android system, greatly Improved user experience.
  • the method shown in FIG. 1 can be implemented by using a data connection tracking unit (DataConnectionTracker) in the Android system framework.
  • Embodiment 2 Referring to FIG. 2, a process for a mobile phone using an Android system to perform service processing by using the method provided by Embodiment 1 of the present invention specifically includes:
  • S201 The system is powered on, and PDP1 is activated according to the default APN1 configuration of the system, and a network interface iol corresponding to PDP1 is generated.
  • the system is the Android system on the phone.
  • the APN type of the APN1 is default, and the service type processed by the PDP 1 is a service type other than the MMS.
  • the DataConnectionTracker receives the multimedia message receiving request.
  • the DataConnectionTracker determines that the service type of the MMS receiving service is MMS.
  • the DataConnectionTracker determines whether the PDP 1 can process the service of the MM S type. If yes, the service is processed by using the PDP1, otherwise the process proceeds to step S205.
  • the service type that the PDP 1 can process is a service type other than the MMS, and the MMS type service cannot be processed. Therefore, the process proceeds to step S205.
  • the DataConnectionTracker determines whether there is still an idle network interface in the current system. If yes, the process proceeds to step S206, otherwise the process proceeds to step S207.
  • PDP2 that is, the first PDP according to the configuration of the APN2 that processes the MMS type service, and generate a new network interface io2 corresponding to the PDP2.
  • Deactivate an active PDP activate PDP2 according to the configuration of APN2 that processes the MMS type service, that is, the first PDP, and generate a new network interface io2 corresponding to the PDP2.
  • Each active PDP corresponds to a network interface. If the network interfaces in the system are all in use, even if a new PDP is activated and no network interface is available, the system cannot transfer service data through the activated PDP. Therefore, in actual application, when it is determined that a new PDP needs to be activated, it is necessary to confirm whether there is currently a free network interface, and if so, it may directly proceed to step S206 to activate PDP2 according to the configuration of the APN.
  • step S207 the PDP currently in the active state is first activated to release a network interface, and then the PDP2 is activated according to the configuration of the APN2, and the released network interface is utilized. Realize the transmission of business data of PDP2.
  • the PDP is directly deactivated; otherwise, a PDP may be selected according to the APN type priority defined in advance to perform the deactivation process.
  • the PDP2 needed to process the MMS can be activated and the application PDP2 activated successfully.
  • the PDP can be activated without being activated. The PDP failed.
  • the connection channel between the first PDP and the corresponding service type needs to be established, so that the service data of the type can be Transmitting service data through the first PDP.
  • connection channel between the PDP2 and its corresponding service type is established:
  • step S301 Determine whether the APN2 has a gateway. If yes, go to step S301, otherwise go to step S302.
  • the method provided by the embodiment of the present invention is a method for establishing a connection channel between a PPN having a gateway and an APN having no gateway, and establishing a PDP configured by the APN and a service type corresponding thereto. different.
  • the processing is relatively simple. You only need to add the gateway address configured in the APN to the routing table of the current system, so that the data with the destination address of the gateway is routed to the PDP configured by the APN.
  • the processing method is to establish a connection with the first PDP configured by the APN for the application of the service type processed by the APN, specifically, binding the socket created by the corresponding application to the first On the network interface corresponding to the PDP.
  • the socket created by the application corresponding to the MMS receiving service is bound to the network interface io2 corresponding to the PDP 2. If there are multiple applications corresponding to APN2, then the sockets created by the multiple applications need to be bound to io2 respectively.
  • the socket created by the application can be bound to the network interface corresponding to the PAP through the setsockopt( ) function of the Android system.
  • the method provided by the present invention determines that the current active state is determined according to the type of service to be processed.
  • Embodiment 3 Referring to FIG. 4, Embodiment 3 of the present invention provides a service processing apparatus based on an Android system, where the apparatus includes:
  • a determining unit 401 configured to determine, according to the service type of the first service, whether a PDP that is currently in an active state can be processed, when the first service request is received, The first service;
  • a first processing unit 403 configured to create a first PDP according to a service type of the first service, where the PDP that is currently in an active state cannot process the first service, where the first processing unit 403 is first according to the first
  • the service type of the service determines a corresponding first APN; and then activates the corresponding first PDP according to the configuration of the first APN.
  • the notification unit 404 is configured to notify the application corresponding to the first service, and process the first service by using the first PDP.
  • the device provided by the embodiment of the present invention can create a corresponding PDP according to the service type of the specific service, so that the support of the PDP of the Android system is enhanced from one to multiple, thereby fundamentally avoiding the existing Android platform when performing service processing.
  • the active PDP cannot process a pending service type, it interrupts the current service it is processing, deactivates the current PDP, and recreates the new one.
  • the PDP performs service processing. After the service processing is completed, the complex process of the original PDP is restored, and the parallel processing capability of a plurality of different types of services in the Android system is realized, and the user experience is greatly improved.
  • the apparatus shown in FIG. 4 may further include: a connecting unit 405, configured to establish a connection channel of the first PDP and a service type corresponding thereto, so that the type of service data can pass The first PDP transmits service data.
  • the connecting unit includes: 404: a first acquiring subunit, configured to acquire a gateway address of the APN configuration corresponding to the first PDP, and an adding subunit, configured to add the gateway address to a current system routing table. in.
  • the connecting unit 404 includes:
  • a second obtaining subunit configured to acquire a socket created by the application corresponding to the first service, and a binding subunit, configured to bind the socket to a network interface corresponding to the first PDP.
  • the apparatus shown in FIG. 4 further includes: a second processing unit 406, configured to: when the PDP that is currently in an active state is capable of processing the first service, using the corresponding active state
  • the PDP processes the first service.
  • the device provided by the present invention determines whether the PDP currently in the active state has the processing capability according to the type of the service to be processed. If the PDP currently in the active state cannot be processed, according to the APN corresponding to the service type to be processed.
  • the configuration activates the new PDP to process the pending service instead of interrupting the service currently being processed to process the pending service.
  • the method provided by the embodiment of the present invention further establishes a connection relationship between the corresponding application and the new PDP, and further ensures the transmission of the corresponding service data.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located locally, including storage devices. And remote computer storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Computer And Data Communications (AREA)

Description

一种基于 Android系统的业务处理方法和装置
本申请要求于 2010 年 3 月 10 日提交中国专利局、 申请号为 201010123923.8、 发明名称为"一种基于 Android的业务处理方法和装置"的中 国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域,尤其涉及一种基于 Android系统的业务处理方 法和装置。 背景技术
Android是新一代的智能移动终端系统,越来越多的移动终端使用 Android 作为操作系统, 使用 Android系统的移动终端的用户也与日倶增, Android系 统的移动终端提供了强大的网络功能,使得用户能够非常方便地访问 Internet
Android系统中有两个基本概念需要首先介绍一下, 一个是 APN, 另一个 是 PDP。 其中:
APN: 为访问节点名称, 完整名称为 Access Point Name, 一个网关 GPRS 支持节点(GGSN, Gateway GPRS Support Node )和外部网络的逻辑名称, 激 活一个 PDP时需要相应的 APN配置。
PDP: 为分组数据协议, 完整名称为 packet data protocol, —个 PDP表示 一个移动终端与网络之间的一个交互通道, 一个 PDP使得移动终端拥有一个 IP地址, 并在移动终端内对应一个网络接口。
发明人通过研究发现, 目前, 使用 Android系统的移动终端不支持在进行 网络相关的业务时, 同时使用多个 APN, 即同一个时刻, 使用 Android系统的 移动终端中只有一个 APN处于被使用状态,相应地,同一个时刻,使用 Android 系统的移动终端中只有一个 PDP存在。 如果当前存在于 Android系统的移动 终端的 APN为一个针对专用业务的 APN,例如专门针对 Internet业务的 APN, 那么其对应的 PDP也只能处理 Internet业务,如果该移动终端正在处理 Internet 业务时, 收到一个彩信业务的处理请求时, 目前 Android系统上的做法是先将 当前处于激活态的, 处理 Internet业务的 PDP去激活 (deactivate), 再根据能够 处理彩信业务的 APN的配置激活能够处理彩信业务的 PDP, 等彩信业务的处 理结束后, 再恢复原来处理 Internet业务的 PDP。 由上可知, 现有 Android系 统中, 专用 APN对应的 PDP在处理一业务时, 遇到不同的业务类型的处理请 求时, 需要中断当前业务的处理过程才能处理新业务的处理流程。这样的方式 极大地影响了原业务的处理, 降低了移动终端的处理速度,也降低了用户的使 用体验。 发明内容
有鉴于此, 本发明实施例提供一种基于 Android系统的业务处理方法和装 置, 从根本上改变现有 Android系统的业务处理流程, 在处理新业务的同时保 证原有业务的正常进行,提高了移动终端的处理速度, 同时也提高了用户的使 用体验。
为实现上述目的, 本发明实施例提供了如下技术方案:
一种基于 Android的业务处理方法, 包括:
接收到第一业务请求时, 确定所述第一业务的业务类型;
根据所述第一业务的业务类型判断当前处于激活态的分组数据协议 PDP 能否处理所述第一业务;
当前处于激活态的 PDP不能处理所述第一业务时,根据所述第一业务的业 务类型创建第一 PDP;
通知所述第一业务对应的应用, 第一 PDP被激活, 通过所述第一 PDP处理 所述第一业务。
一种基于 Android的业务处理装置, 包括:
确定单元,用于在接收到第一业务请求时,确定所述第一业务的业务类型; 判断单元,用于根据所述第一业务的业务类型判断当前处于激活态的分组 数据协议 PDP能否处理所述第一业务;
第一处理单元, 用于当前处于激活态的 PDP不能处理所述第一业务时, 根 据所述第一业务的业务类型创建第一 PDP;
通知单元, 用于通知所述第一业务对应的应用, 通过所述第一 PDP处理所 述第一业务。
可见,本发明实施例提供的方案能够根据具体业务的业务类型创建对应的 PDP,使得 Android平台对 PDP的支持由一个增强为多个,从根本上避免了现有 Android系统在进行业务处理时, 当处于激活态的 PDP不能处理一待处理业务 类型时, 中断当前其正在处理的业务, 去激活当前的 PDP, 重新创建新的 PDP 进行业务处理,待业务处理完成后,再恢复原 PDP的复杂过程, 实现了 Android 系统中多种不同类型的业务并行处理能力, 也极大地提升了用户体验。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明中记载的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例 1所提供的方法的流程图;
图 2为本发明实施例 2所提供的方法的流程图;
图 3为本发明实施例 2所提供的方法的一过程的流程图;
图 4为本发明实施例 3所提供的装置的结构示意图。 具体实施方式
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基 于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都应当属于本发明保护的范围。 实施例 1 参见图 1, 本发明实施例 1所提供的一种基于 Android系统的业务处理方 法包括: S101、 接收到第一业务请求时, 确定所述第一业务的业务类型; 本发明实施例中,用第一业务来描述当前 Android系统内的任意一个业务。 用第一业务请求来描述任意一个需要执行的业务所对应的业务请求。 在 Android系统中, 每个业务都有对应的业务类型。 以与网络相关的业务 为例, 例如, 浏览网页或者从网页上观看视频等等都属于是 Internet业务; 而 接收或者发送彩信则属于彩信业务。 在 Android 系统中, Internet业务的业务 类型为 default, 彩信业务的业务类型为 MMS(Multimedia Messaging Service)。
5102、 才艮据所述第一业务的业务类型判断当前处于激活态的 PDP能否处 理所述第一业务;
5103 , 当前处于激活态的 PDP不能处理所述第一业务时, 根据所述第一 业务的业务类型创建第一 PDP; 本发明实施例中, 用第一 PDP描述新创建的 PDP。 进一步地, 根据所述第一业务的业务类型创建第一 PDP包括: 根据第一业务的业务类型确定对应的第一 APN; 根据所述第一 APN的配置激活对应第一 PDP。
一个 PDP上下文表示一个移动终端与网络之间的一个交互通道,一个 PDP 上下文使得移动终端拥有一个 IP地址, 并在移动终端内对应一个网络接口。 PDP是根据 APN的配置激活的。 PDP所能够处理的业务类型是通过 APN配 置决定々。 APN 々酉己置包 "舌 APN, proxy, port, user name , password, APN type 等, 其中: APN是该 APN的名称, proxy和 port是网关地址和端口号, 若一 个 APN配置了 proxy和 ort, 那么应用要通过该 APN所配置的 proxy和 ort 与服务器交互,而不是直接与服务器交互。 user name和 password是使用该 APN 激活 PDP时鉴权用的, 若 user name和 password匹配不成功则 APN无法成功 激活 PDP。 APN type表示由该 APN激活的 PDP能处理的业务类型, 例如, 如果 APN type为 *或为空, 则表示由该 APN激活的 PDP能处理任何类型的业 务, 如果 APN type为 MMS, 则表示由该 APN激活的 PDP能处理彩信业务, 如果 APN type为 default, 则表示由该 APN激活的 PDP能处理除 MMS以外 的业务, 例如 Internet相关的业务等等。 例如, 目前移动终端中被激活的 PDP, 其对应的 APN type为 default, 那 么如果该第一业务为彩信业务时,才艮据所述彩信业务的业务类型可以确定当前 处于激活态的 PDP不能处理所述第一业务, 则需要根据所述第一业务的业务 类型激活第一 PDP。 S104、 通知所述第一业务对应的应用, 第一 PDP被激活, 通过所述第一 PDP处理所述第一业务。 当第一 PDP创建成功后, 就可以用所述第一 PDP进行该类型的业务的处 理了。 目前, 网络侧的服务器支持一个移动终端中同时具有多个处于激活态的
PDP。 当移动终端中同时具体多个处于激活态的 PDP时, 可以拥有多个 IP地 址, 对应多个网^妻口。 实际应用中, 如果根据所述第一业务的业务类型判定当前处于激活态的 PDP能够处理所述第一业务时, 利用对应的处于激活态的 PDP处理所述第一 业务即可。 例如,当前处于激活态的 PDP被其对应的 APN配置为处理 default类型的 业务, 而所述第一业务请求所请求的第一业务为通过网页观看视频的业务。该 业务属于 default类型,可以直接通过当前出于激活态的 PDP进行处理,无需再 创建新的 PDP。 本发明实施例 1 所提供的方法能够根据具体业务的业务类型创建对应的
PDP,使得 Android平台对 PDP的支持由一个增强为多个,从根本上避免了现 有 Android系统在进行业务处理时, 当处于激活态的 PDP不能处理一待处理 业务类型时, 中断当前其正在处理的业务, 去激活当前的 PDP, 重新创建新的 PDP进行业务处理, 待业务处理完成后, 再恢复原 PDP的复杂过程, 实现了 在 Android系统中多种不同类型的业务并行处理, 极大地提升了用户体验。 另夕卜, 在本发明实施例 1中, 可以利用 Android系统 Framework中的数据 连接追中单元( DataConnectionTracker ) 实现图 1所示的方法。 实施例 2 参见图 2, 一应用 Android系统的手机利用本发明实施例 1所提供的方法 进行业务处理的过程具体包括:
S201、系统上电,根据系统默认的 APN1的配置激活 PDP1,并生成与 PDP1 对应的网络接口 iol。 所述系统即为该手机上的 Android 系统。 本发明实施例中, 该 APN1 的 APN type为 default, 该 PDP 1处理的业务类型为除 MMS以外的业务类型。
S202、 手机用户利用 PDP1 通过 iol 网络接口访问流媒体视频时, DataConnectionTracker接收到彩信接收清求。 S203、 DataConnectionTracker确定彩信接收业务的业务类型为 MMS。
S204、 DataConnectionTracker判断 PDP 1能否处理 MM S类型的业务, 如 果可以, 则利用 PDP1处理业务, 否则进入步骤 S205。 本发明实施例中, PDP1所能够处理的业务类型为除 MMS以外的业务类 型, 不能够处理 MMS类型的业务, 所以应该进入步骤 S205。 S205、 DataConnectionTracker判断当前系统中是否还有空闲的网络接口, 如果有进入步骤 S206, 否则进入步骤 S207。
5206、根据处理 MMS类型业务的 APN2的配置激活 PDP2, 即第一 PDP, 生成一个与 PDP2对应的新的网络接口 io2。
5207、去激活一个激活态的 PDP,根据处理 MMS类型业务的 APN2的配 置激活 PDP2, 即第一 PDP, 生成一个与 PDP2对应的新的网络接口 io2。 每一个激活态的 PDP对应一个网络接口。 如果系统中的网络接口已经全 部处于被使用状态, 那么即使激活一个新的 PDP, 没有可用的网络接口, 系统 也无法通过激活的 PDP进行业务数据的传递。 所以实际应用中, 当确定需要 激活一个新的 PDP时, 要确认一下当前是否有空闲的网^ ^口, 如果有则可 以直接进入步骤 S206根据 APN的配置激活 PDP2。 但是, 如果当前没有可用 的网络接口,那么就需要如步骤 S207所示,先去激活当前处于激活态的 PDP, 以释放一个网络接口, 再根据 APN2的配置激活 PDP2, 利用该被释放的网络 接口实现 PDP2的业务数据的传输。 本发明实施例中,如果当前已激活的 PDP中有 APN type为 default类型的 PDP, 则直接去激活该 PDP; 否则, 则可以根据事先制定的 APN type优先级 来选择一个 PDP进行去激活处理。 一旦能去激活一个 PDP, 就可以激活处理 彩信需要的 PDP2, 并通知应用 PDP2激活成功。 当然, 为了不影响现有的被激活态的 PDP正常的业务处理流程, 如果当 前已被激活的 PDP中没有 APN type为 default类型的 PDP时, 则可以不再激 活新的 PDP直接向应用返回激活 PDP失败。
实际应用中, 为了保证对应的业务类型的业务数据能够通过第一 PDP进 行业务数据的传输, 还需要建立所述第一 PDP与其所对应的业务类型的连接 通道, 以使该类型的业务数据能够通过所述第一 PDP传输业务数据。
参见图 3, 延续图 2所示实施例根据 APN2的配置激活 PDP2之后, 建立 所述 PDP2与其所对应的业务类型的连接通道包括:
S301、 判断 APN2是否有网关, 如果有, 则进入步骤 S301, 否则进入步 骤 S302。
S302、 将所述 APN2配置的网关地址增加至当前系统路由表中。 需要说明的是, 在 Android系统中, 当激活一个新的 PDP, 即 PDP2时, 系统会在路由表中自动增加一个 default的路由项。 为了保证原业务的正常进 行, 需要将系统在路由表中自动增加的这个 default的路由项删除。
S303、将彩信接收业务对应的应用创建的 socket与 PDP2对应的网络接口 io2进行绑定。 通过图 3 所示的实施例可知, 本发明实施例所提供的方法对具有网关的 APN和不具有网关的 APN, 在建立由该 APN配置的 PDP与其所对应的业务 类型的连接通道的方式是不同的。 对于有网关的 APN, 处理起来比较简单, 只需要将该 APN所配置的网关地址增加至当前系统的路由表中, 即可使目的 地址为该网关的数据路由到该 APN配置的 PDP, 即在图 3所示的实施例中, 就能够使目的地址为 APN2配置的网关地址的数据路由到 PDP2了。 对于没有网关的 APN, 采用的处理方法是, 为该 APN所处理的业务类型 的应用分别建立起与该 APN配置的第一 PDP的连接,具体为将对应的应用创 建的 socket绑定到第一 PDP对应的网络接口上。 在图 3所示的实施例中, 即 将彩信接收业务对应的应用创建的 socket与 PDP2对应的网络接口 io2进行绑 定。 如果 APN2对应的应用有多个的话,那么需要将这多个应用建立的 socket 分别与 io2进行绑定。
实际应用中, 可以通过 Android系统的 setsockopt ( ) 函数来将应用创建 的 socket与 PAP对应的网络接口进行绑定。 本发明所提供的方法, 根据待处理的业务类型, 判定当前处于激活态的
PDP的是否有处理能力, 如果当前处理激活态的 PDP不能处理时, 则根据与 待处理的业务类型对应的 APN的配置激活新的 PDP处理待处理业务, 而不是 中断当前正在被处理的业务来处理待处理的业务。 而且, 本发明实施例所提供 的方法, 在获得了新的 PDP后, 还进一步建立了对应的应用与该新的 PDP之 间的连接关系, 进一步保证了对应的业务数据的传输。 实施例 3 参见图 4、 本发明实施例 3提供一种基于 Android系统的业务处理装置, 该装置包括:
确定单元 401, 用于在接收到第一业务请求时, 确定所述第一业务的业务 类型; 判断单元 402, 用于根据所述第一业务的业务类型判断当前处于激活态的 PDP能否处理所述第一业务;
第一处理单元 403, 用于当前处于激活态的 PDP不能处理所述第一业务 时, 根据所述第一业务的业务类型创建第一 PDP; 其中,所述第一处理单元 403首先根据第一业务的业务类型确定对应的第 一 APN; 然后根据所述第一 APN的配置激活对应第一 PDP。
通知单元 404, 用于通知所述第一业务对应的应用, 通过所述第一 PDP 处理所述第一业务。 本发明实施例所提供的装置能够根据具体业务的业务类型创建对应的 PDP,使得 Android系统对 PDP的支持由一个增强为多个,从根本上避免了现 有 Android平台在进行业务处理时, 当处于激活态的 PDP不能处理一待处理 业务类型时, 中断当前其正在处理的业务, 去激活当前的 PDP, 重新创建新的 PDP进行业务处理, 待业务处理完成后, 再恢复原 PDP的复杂过程, 实现了 在 Android系统中多种不同类型的业务并行处理的能力,也极大地提升了用户 体验。 本发明的另一实施例中, 图 4所示的装置还可以包括: 连接单元 405, 用于建立所述第一 PDP与其所对应的业务类型的连接通 道, 以使该类型的业务数据能够通过所述第一 PDP传输业务数据。 进一步地, 所述连接单元包括 404: 第一获取子单元,用于获取所述第一 PDP所对应的 APN配置的网关地址; 增加子单元, 用于将所述网关地址增加至当前系统路由表中。 在本发明另一实施例中, 所述连接单元 404包括:
第二获取子单元, 用于获取所述第一业务对应的应用创建的 socket; 绑定子单元, 用于将所述 socket与所述第一 PDP对应的网络接口进行绑 定。
可选地, 在本发明一实施例中, 图 4所示的装置还包括: 第二处理单元 406, 用于当前处于激活态的 PDP 能够处理所述第一业务 时, 利用对应的处于激活态的 PDP处理所述第一业务。 本发明所提供的装置, 根据待处理的业务类型, 判定当前处于激活态的 PDP的是否有处理能力, 如果当前处理激活态的 PDP不能处理时, 则根据与 待处理的业务类型对应的 APN的配置激活新的 PDP处理待处理业务, 而不是 中断当前正在被处理的业务来处理待处理的业务。 而且, 本发明实施例所提供 的方法, 在获得了新的 PDP后, 还进一步建立了对应的应用与该新的 PDP之 间的连接关系, 进一步保证了对应的业务数据的传输。 本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例 如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的 例程、 程序、 对象、 组件、 数据结构等等。 也可以在分布式计算环境中实践本 发明,在这些分布式计算环境中, 由通过通信网络而被连接的远程处理设备来 执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地 和远程计算机存储介质中。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种基于 Android系统的业务处理方法, 其特征在于, 包括:
接收到第一业务请求时, 确定所述第一业务的业务类型;
根据所述第一业务的业务类型判断当前处于激活态的分组数据协议 PDP 能否处理所述第一业务;
当前处于激活态的 PDP不能处理所述第一业务时,根据所述第一业务的业 务类型创建第一 PDP;
通知所述第一业务对应的应用, 第一 PDP被激活, 通过所述第一 PDP处理 所述第一业务。
2、 根据权利要求 1所述的方法, 其特征在于, 还包括:
建立所述第一 PDP与其所对应的业务类型的连接通道, 以使该类型的业务 数据能够通过所述第一 PDP传输业务数据。
3、 根据权利要求 2所述的方法, 其特征在于, 建立所述第一 PDP与其所对 应的业务类型的连接通道包括:
将所述第一 PDP所对应的 APN配置的网关地址增加至当前系统路由表中。
4、 根据权利要求 2所述的方法, 其特征在于, 建立所述第一 PDP与其所对 应的业务类型的连接通道包括:
将所述第一业务对应的应用创建的 socket与所述第一 PDP对应的网络接口 进行绑定。
5、 根据权利要求 1〜4任意一项所述的方法, 其特征在于, 还包括: 当前处于激活态的 PDP能够处理所述第一业务时,利用对应的处于激活态 的 PDP处理所述第一业务。
6、 一种基于 Android系统的业务处理装置, 其特征在于, 包括:
确定单元,用于在接收到第一业务请求时,确定所述第一业务的业务类型; 判断单元,用于根据所述第一业务的业务类型判断当前处于激活态的分组 数据协议 PDP能否处理所述第一业务;
第一处理单元, 用于当前处于激活态的 PDP不能处理所述第一业务时, 根 据所述第一业务的业务类型创建第一 PDP;
通知单元, 用于通知所述第一业务对应的应用, 通过所述第一 PDP处理所 述第一业务。
7、 根据权利要求 6所述的装置, 其特征在于, 还包括:
连接单元, 用于建立所述第一 PDP与其所对应的业务类型的连接通道, 以 使该类型的业务数据能够通过所述第一 PDP传输业务数据。
8、 根据权利要求 7所述的装置, 其特征在于, 所述连接单元包括: 第一获取子单元, 用于获取所述第一 PDP所对应的 APN配置的网关地址; 增加子单元, 用于将所述网关地址增加至当前系统路由表中。
9、 根据权利要求 7所述的装置, 其特征在于, 所述连接单元包括: 第二获取子单元, 用于获取所述第一业务对应的应用创建的 socket;
绑定子单元,用于将所述 socket与所述第一 PDP对应的网络接口进行绑定。
10、 根据权利要求 6〜9任意一项所述的装置, 其特征在于, 还包括: 第二处理单元, 用于当前处于激活态的 PDP能够处理所述第一业务时, 利 用对应的处于激活态的 PDP处理所述第一业务。
PCT/CN2011/071668 2010-03-10 2011-03-10 一种基于android系统的业务处理方法和装置 WO2011110094A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP11752837.2A EP2547168B1 (en) 2010-03-10 2011-03-10 Android system with simulataneous support of multiple pdp contexts
KR1020127025402A KR101408745B1 (ko) 2010-03-10 2011-03-10 안드로이드 시스템에 기반한 서비스 처리 방법 및 장치
JP2012556373A JP5625075B2 (ja) 2010-03-10 2011-03-10 Androidシステムに基づくサービス処理方法及び装置
US13/608,797 US9370032B2 (en) 2010-03-10 2012-09-10 Service processing method and apparatus based on android system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010123923.8 2010-03-10
CN201010123923.8A CN101808270B (zh) 2010-03-10 2010-03-10 一种基于Android的业务处理方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/608,797 Continuation US9370032B2 (en) 2010-03-10 2012-09-10 Service processing method and apparatus based on android system

Publications (1)

Publication Number Publication Date
WO2011110094A1 true WO2011110094A1 (zh) 2011-09-15

Family

ID=42609854

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071668 WO2011110094A1 (zh) 2010-03-10 2011-03-10 一种基于android系统的业务处理方法和装置

Country Status (6)

Country Link
US (1) US9370032B2 (zh)
EP (1) EP2547168B1 (zh)
JP (1) JP5625075B2 (zh)
KR (1) KR101408745B1 (zh)
CN (1) CN101808270B (zh)
WO (1) WO2011110094A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2851795A4 (en) * 2012-06-12 2015-12-16 Zte Corp DEVICE AND METHOD FOR CONTROLLING MULTI-PDP DATA COMMUNICATION FOR A MOBILE BROADBAND DEVICE

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808270B (zh) * 2010-03-10 2016-03-30 华为终端有限公司 一种基于Android的业务处理方法和装置
US10004108B2 (en) * 2013-06-04 2018-06-19 Telefonaktiebolaget L M Ericsson (Publ) Managing bandwidth availability in a mobile telecommunications network
US9521077B2 (en) * 2013-07-22 2016-12-13 Verizon Patent And Licensing Inc. Network connection via a proxy device using a generic access point name
CN103533165B (zh) * 2013-10-10 2015-07-15 成都达信通通讯设备有限公司 兼容支持手持设备安卓应用程序的多apn并发方法及其系统
CN104053250B (zh) * 2014-06-26 2018-05-11 上海斐讯数据通信技术有限公司 一种基于Android的多PDP数据传输方法
WO2016011665A1 (zh) * 2014-07-25 2016-01-28 华为技术有限公司 一种数据传输方法和用户设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258427A1 (en) * 2006-05-03 2007-11-08 Interdigital Technology Corporation Wireless communication method and system for activating multiple service bearers via efficient packet data protocol context activation procedures
CN101466099A (zh) * 2009-01-14 2009-06-24 中兴通讯股份有限公司 基于分组数据协议激活请求的安全监控方法和移动终端
CN101472273A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 Pdp上下文处理方法及移动通信系统
CN101572862A (zh) * 2008-05-02 2009-11-04 三星电子株式会社 支持3g系统和lte系统间互通的方法和设备
CN101662452A (zh) * 2008-08-27 2010-03-03 中国移动通信集团公司 分组数据协议连接的建立方法及其装置
CN101808270A (zh) * 2010-03-10 2010-08-18 华为终端有限公司 一种基于Android的业务处理方法和装置

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI991597A (fi) * 1999-07-12 2001-01-13 Nokia Networks Oy Access-kontekstin hallinta makrotason liikkuvuudenhallintarekisteröinn in yhteydessä access-verkoissa
FI107674B (fi) 1999-08-30 2001-09-14 Nokia Mobile Phones Ltd Menetelmä tiedonsiirron optimoimiseksi pakettikytkentäisessä langattomassa tiedonsiirtojärjestelmässä
FI113726B (fi) * 2000-05-25 2004-05-31 Nokia Corp Tilaajan laskuttamisen järjestäminen tietoliikennejärjestelmässä
DK1350407T3 (da) * 2000-12-04 2009-12-07 Nokia Corp Brugerenhed, fremgangsmåde og kommunikationssystem til etablering af en forbindelse til et fungerende netværkselement
US7054945B2 (en) * 2001-04-09 2006-05-30 Nokia Corporation Technique for providing announcements in mobile-originated calls
KR100453325B1 (ko) * 2002-11-18 2004-10-20 삼성전자주식회사 이동 멀티미디어 망에서의 ip 멀티미디어 세션 제공 방법
KR20050093896A (ko) * 2004-03-19 2005-09-23 삼성전자주식회사 이동통신시스템에서 동일한 인터넷 프로토콜 어드레스를통해 서로 다른 패킷 서비스들을 수신하는 방법
GB0420549D0 (en) * 2004-09-15 2004-10-20 Nokia Corp A method and entity for monitoring traffic
US7508812B2 (en) * 2005-01-28 2009-03-24 Research In Motion Limited Socket management for always-on data connections
CN100389616C (zh) * 2005-03-18 2008-05-21 华为技术有限公司 实现交互功能业务数据交互的方法
ATE496464T1 (de) * 2006-02-05 2011-02-15 Ericsson Telefon Ab L M Verfahren und einrichtungen zum installieren von paketfiltern bei einer datenübertragung
AU2007248861B2 (en) * 2006-05-03 2010-10-28 Interdigital Technology Corporation Wireless communication method and system for activating multiple service bearers via efficient packet data protocol context activation procedures
US8364850B2 (en) * 2006-07-20 2013-01-29 Qualcomm Incorporated Utility service in multi-processor environment
WO2008012790A1 (en) * 2006-07-27 2008-01-31 Contextream Inc. Distributed edge network
KR20100010114A (ko) * 2008-07-22 2010-02-01 삼성전자주식회사 이동통신 시스템에서 다수의 아이피 주소설정을 위한 장치및 방법
US8811935B2 (en) * 2010-01-12 2014-08-19 Blackberry Limited Emergency services in home cells system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070258427A1 (en) * 2006-05-03 2007-11-08 Interdigital Technology Corporation Wireless communication method and system for activating multiple service bearers via efficient packet data protocol context activation procedures
CN101472273A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 Pdp上下文处理方法及移动通信系统
CN101572862A (zh) * 2008-05-02 2009-11-04 三星电子株式会社 支持3g系统和lte系统间互通的方法和设备
CN101662452A (zh) * 2008-08-27 2010-03-03 中国移动通信集团公司 分组数据协议连接的建立方法及其装置
CN101466099A (zh) * 2009-01-14 2009-06-24 中兴通讯股份有限公司 基于分组数据协议激活请求的安全监控方法和移动终端
CN101808270A (zh) * 2010-03-10 2010-08-18 华为终端有限公司 一种基于Android的业务处理方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2547168A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2851795A4 (en) * 2012-06-12 2015-12-16 Zte Corp DEVICE AND METHOD FOR CONTROLLING MULTI-PDP DATA COMMUNICATION FOR A MOBILE BROADBAND DEVICE
US9451433B2 (en) 2012-06-12 2016-09-20 Zte Corporation Device and method of driving multi-PDP data communication for mobile broadband device

Also Published As

Publication number Publication date
US9370032B2 (en) 2016-06-14
EP2547168B1 (en) 2018-05-02
KR101408745B1 (ko) 2014-06-17
KR20120137394A (ko) 2012-12-20
JP2013535036A (ja) 2013-09-09
JP5625075B2 (ja) 2014-11-12
EP2547168A4 (en) 2013-04-03
US20130005320A1 (en) 2013-01-03
CN101808270A (zh) 2010-08-18
EP2547168A1 (en) 2013-01-16
CN101808270B (zh) 2016-03-30

Similar Documents

Publication Publication Date Title
WO2011110094A1 (zh) 一种基于android系统的业务处理方法和装置
JP6952787B2 (ja) セッション再確立方法および装置、amf、smfならびに端末
WO2021218397A1 (zh) 用于实现业务连续性的方法及相关设备
CN109891933A (zh) 同时支持语音业务和数据业务的方法和终端
JP5031851B2 (ja) クオリティオブサービス・アプリケーションプログラミングインターフェース・オーバーソケット
KR101343018B1 (ko) 터널 식별자 할당을 제어하는 방법, 장치, 및 시스템
CN111147493B (zh) Ims网络的注册方法、装置、存储介质及终端设备
RU2565583C1 (ru) Способ для передачи данных, устройство точки разгрузки, пользовательское оборудование и система
WO2010121528A1 (zh) 一种移动终端及其基于p2p模式的数据传输方法
EP2680661B1 (en) Mode Switching Method and Device
WO2021057526A1 (zh) 一种网关设备容灾的方法及通信设备
WO2014117375A1 (zh) 保持应用在线的方法、永久在线控制器和设备
WO2018018631A1 (zh) 一种锚点网关的切换方法、装置及系统
WO2011140698A1 (zh) 一种短消息的处理方法、装置和系统
WO2015143798A1 (zh) 移动通信网络连接创建的控制方法及装置
WO2014166190A1 (zh) 一种网络设备数据转发方法及装置
CN109644385A (zh) 一种呼叫建立方法及装置
WO2012100717A1 (zh) 一种用于发起主动寻呼的方法、系统和网络网元
CN110324913B (zh) 5g网络通信方法、终端、装置、网络设备及功能实体
CN103067981A (zh) 一种内容缓存旁路方法及系统
US20070280109A1 (en) Method, a Device and a System for Transferring Data
JP2015513729A (ja) データ・アクセス方法及び装置
WO2012094901A1 (zh) 超长短信发送/接收方法、装置及系统
WO2014117705A1 (zh) 数据业务加速方法及装置
WO2015096012A1 (zh) 一种会话处理方法及设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2012556373

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2630/KOLNP/2012

Country of ref document: IN

ENP Entry into the national phase

Ref document number: 20127025402

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2011752837

Country of ref document: EP