WO2012167755A1 - 终端、触发方法和终端间应用程序通讯方法 - Google Patents

终端、触发方法和终端间应用程序通讯方法 Download PDF

Info

Publication number
WO2012167755A1
WO2012167755A1 PCT/CN2012/078176 CN2012078176W WO2012167755A1 WO 2012167755 A1 WO2012167755 A1 WO 2012167755A1 CN 2012078176 W CN2012078176 W CN 2012078176W WO 2012167755 A1 WO2012167755 A1 WO 2012167755A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal
triggering
trigger
instruction
Prior art date
Application number
PCT/CN2012/078176
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 WO2012167755A1 publication Critical patent/WO2012167755A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the invention relates to terminal communication, in particular to a terminal, a triggering method and an application communication method between terminals. Background technique
  • the short message can be instant communication between the mobile phones and there is no need to establish a connection for this, when the application on the terminal 1 is to communicate with the application on the terminal 2, the terminal 1 establishes a session as the application server. And by sending a special format short message to the terminal 2, the terminal 2 is notified to establish a session as an application server, and communication with the terminal 1 is established through scheduling of the application server.
  • the embodiments of the present invention provide a terminal, a triggering method, and an application communication method between terminals, which are used to solve the problem that a connection between terminal applications is complicated in the case of non-connection. This makes it difficult to develop terminal application development and improve the development efficiency of the terminal application while reducing the session between the terminal and the application server.
  • an embodiment of the present invention provides a terminal, including: an application information registration module, configured to register an application on a terminal, and save a registration code; an external communication module, And configured to receive the triggering instruction and provide the application triggering module, where the triggering instruction includes a registration code of the application to be triggered; and an application triggering module, configured to query, in the application information registration module, the application to be triggered Whether the registration code already exists, if it already exists, trigger the corresponding application.
  • the application information registration module includes a registration interface for registering an application.
  • the application information registration module includes a memory for storing the registered registration code.
  • the external communication module includes a parsing converter for parsing and converting the received trigger instruction into an internal trigger instruction.
  • the application triggering module includes a process communication interface, configured to notify the application through the process communication interface after the application triggering module queries that the registration code of the application to be triggered has existed; and the system call interface, After the application trigger module queries that the registration code of the application to be triggered already exists, the application is activated through the system call interface.
  • a method for triggering an application on a terminal comprising the following steps:
  • the trigger command includes a registration code of the application to be triggered
  • the receiving the triggering instruction further includes: parsing the received triggering instruction and converting the internal triggering instruction into an internal triggering instruction.
  • the triggering instruction is a short message instruction or an unstructured supplementary data service instruction.
  • the triggering the corresponding application includes notifying the application through the process communication interface or activating the application through the system call interface.
  • a method for application communication between terminals includes the following steps:
  • the source application in the first terminal is connected to the application server;
  • the application server sends a triggering instruction to the second terminal, where the triggering instruction includes a registration code of the target application to be triggered;
  • the source application in the first terminal communicates with the target application in the second terminal.
  • triggering the corresponding application includes notifying the application through the process communication interface or activating the application through the system call interface.
  • the embodiment of the present invention registers the application program and saves the registration code, and then, when receiving the trigger instruction, queries whether the registration code of the application to be triggered included in the trigger instruction already exists, and if it already exists, uniformly triggers according to the registration code.
  • the corresponding terminal application In this way, the session between the terminal and the application server can be reduced, and the development of the application is made easy.
  • multiple standard communication protocols need only be expanded once, and the underlying system of the terminal only needs to be modified once. It reduces the difficulty of terminal application development and improves the development efficiency of terminal applications.
  • FIG. 1 is a block diagram of an application trigger in a terminal embodiment of the present invention
  • FIG. 2 is a flowchart of registering application information in an OTA manner according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for triggering an application on a terminal according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for communication between applications of an inter-terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a process for communicating between terminals according to a short message triggered according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of communication between terminals according to USSD triggering according to an embodiment of the present invention. detailed description
  • an embodiment of the present invention provides a terminal application trigger 10, including: an application information registration module 12, an application triggering module 14, and an external communication module 16; wherein, the application information registration module 12 is used. Registering the application on the terminal, and saving the registration code; the external communication module 16 is configured to receive the trigger instruction and provide the trigger module 14 to the application triggering module 14, wherein the triggering instruction includes a registration code of the application to be triggered; the application triggering module 14 is used to query in the application information registration module whether the registration code of the application to be triggered already exists, and if it already exists, trigger the corresponding terminal application.
  • the embodiment of the present invention registers the application program and saves the registration code, and then, when receiving the trigger instruction, queries whether the registration code of the application to be triggered included in the trigger instruction already exists, and if it already exists, uniformly triggers according to the registration code.
  • the corresponding terminal application In this way, the session between the terminal and the application server can be reduced, and the development of the application is made easy.
  • multiple standard communication protocols need only be expanded once, and the underlying system of the terminal only needs to be modified once. It reduces the difficulty of terminal application development and improves the development efficiency of terminal applications.
  • the application information includes:
  • Application registration code the unique registration code for each application on the application trigger.
  • Trigger mode Notification / Activation. If the application is always in the startup state, the application trigger notifies it via the process communication interface; if the application is normally not in the startup state, the application trigger activates it via the system call interface.
  • Process ID The process ID after the application is started, and the application trigger communicates with this application and the application.
  • Application location The location where the application is stored after it is started, and the application trigger launches the application with this application location identifier.
  • the application information registration module includes a unified application information registration interface for registering application information.
  • the application information can be registered in various ways, such as: The user manually inputs the application registration information on the terminal configuration interface; when the application is running, the interface is automatically called to register; the operator uniformly manages the terminal application information, and passes A certain way to synchronize to the user terminal terminal (such as OTA SMS). Further, in order to ensure that the technical solution of the embodiment of the present invention can be better implemented, the embodiment of the present invention may need to include the following application conditions in actual operation:
  • Each client business application (including the corresponding server) has a unique application registration code, and the application registration code can be managed and distributed by the operator. At present, operators have their own business management platform. Each business application code is unique in the above application. Each business application on the client also applies for the business code on the business management platform, so it can be used directly. This code is used as the application registration code.
  • the application registration code In addition to registering on the "application trigger", the application registration code must be registered once on the application server (the application server is passed to the terminal application during business processing).
  • the application information registration module includes a memory for storing the registration code.
  • the external communication module includes an external communication interface for receiving an external trigger command; the external communication module includes a parsing converter for parsing the trigger command and converting the internal trigger command.
  • the application triggering module includes a process communication interface, configured to notify the application through the process communication interface after the application triggering module queries that the registration code of the application to be triggered exists, and some terminal application pairs
  • the real-time requirement is high.
  • the application is always in the startup state, but there is no connection with the server.
  • the application trigger module can notify the application through the message interface.
  • the connection is immediately established with the server;
  • the application triggering module includes a system call interface, and is used to activate the system call interface after the application trigger module queries that the registration code of the application to be triggered already exists.
  • Applications some terminal applications only start up when they are used, which saves terminal resources. For such applications, application triggers pull the application through the system call interface.
  • the general logic of such applications is : Connect to the corresponding server immediately after startup, and then perform business processing according to the instructions of the server; exit after the user finishes using it.
  • FIG. 2 is a flow chart of registering application information in an OTA manner in an embodiment of an application trigger of the present invention.
  • the operator is at OTA.
  • the registration configuration information of the application on the terminal is published on the server.
  • the OTA server sends the application registration information to the user terminal through the OTA configuration short message, and the OTA configuration module on the user terminal processes the configuration short message according to the inherent process. If the OTA configuration module finds that the short message is an application registration configuration short message, the application information registration interface provided by the application trigger is called to register.
  • the embodiment of the invention further provides a method for triggering an application on a terminal.
  • Figure 3 is the method step 102, registering the application on the terminal, and saving the registration code;
  • Step 104 Receive a trigger instruction, where the trigger instruction includes a registration code of an application to be triggered;
  • Step 106 Query whether the registration code of the application to be triggered already exists:
  • Step 108 if it already exists, trigger the corresponding application.
  • the embodiment of the present invention registers the application program and saves the registration code, and then, when receiving the trigger instruction, queries whether the registration code of the application to be triggered included in the trigger instruction already exists, and if it already exists, uniformly triggers according to the registration code.
  • the corresponding terminal application In this way, the session between the terminal and the application server can be reduced, and the development of the application is made easy.
  • multiple standard communication protocols need only be expanded once, and the underlying system of the terminal only needs to be modified once. It reduces the difficulty of terminal application development and improves the development efficiency of terminal applications.
  • the method further includes: parsing the trigger instruction and converting the internal trigger instruction into the internal trigger instruction.
  • the triggering instruction is preferably a short message instruction or an unstructured supplementary data service instruction. Further, triggering the corresponding application includes: if the trigger mode of the application registration is the notification mode, notifying the application through the process communication interface; if the trigger mode of the application registration is the activation mode, the application is activated through the system call interface.
  • the following is an example of triggering an application-triggered process by triggering an application on the phone.
  • the "external communication” module of the application trigger parses the received message, and the message contains the "application registration code” parameter. Then converted into internal messages, internal messages include: The sender's mobile phone number, application registration code, and so on.
  • the "External Communication” module forwards the internal message to the "Application Trigger" module.
  • the "Application Trigger" module directly accesses the registered application information and checks if the application registration code in the upstream message already exists.
  • the "App Trigger” module notifies or starts the corresponding terminal application based on the trigger mode registered by the application (in the notification mode when the application is started, and the activation mode when the application is in the non-starting state).
  • an embodiment of the present invention further provides a method for communication between applications of an terminal.
  • 4 is a flow chart of a method for communication between applications of an inter-terminal according to an embodiment of the present invention. As shown in Figure 4, the method of inter-terminal application communication includes the following steps:
  • Step 202 The source application in the first terminal is connected to the application server.
  • Step 204 The application server sends a trigger instruction to the second terminal, where the trigger command includes a trigger type and a registration code of the target application to be triggered.
  • Step 206 The second terminal receives the trigger instruction and queries whether the registration code of the application to be triggered already exists according to the trigger instruction. If yes, the second terminal triggers the target application to trigger the target application.
  • Step 206 further includes the following three sub-steps.
  • the external communication module of the application trigger receives the trigger instruction and converts into an internal trigger instruction, where the trigger instruction includes a registration code of the application to be triggered;
  • Step 2062 Querying, in the application information registration module, whether the registration code of the application to be triggered already exists; if yes, in step 2063, the application triggering module triggers the target application in the second terminal;
  • Step 208 The source application in the first terminal communicates with the target application in the second terminal.
  • the following describes a method for application communication between terminals by combining two specific embodiments of a short message instruction and an unstructured supplementary data service instruction.
  • FIG. 5 is a flowchart of communication between terminals according to a short message triggered according to an embodiment of the present invention.
  • the user 1 starts the application 1 (application 1) on the terminal 1, and inputs the connection identifier of the user 2 (the unique identifier of the user 2 on the application server 1, which may be a mobile phone number or a registered account on the server).
  • the application 1 is connected to the application server 1 and issues a communication request with the connection identifier of the user 2 in the request.
  • Application server 1 According to the connection identifier of user 2, the mobile phone number of user 2 or the registered account on the server can be obtained. Send a special binary message to user 2, the recipient's number is 2, and the message needs to have two key parameters: SMS type (different PUSH, flash message and other binary messages), application registration code.
  • SMS type different PUSH, flash message and other binary messages
  • SMSC Short Message Service Center
  • the terminal 2 can perform special processing according to the "message type: whether it is transmitted to the short message client software or to the "application trigger” module. If passed to the application trigger
  • the external communication module of the application trigger parses the received trigger instruction and converts it into an internal trigger instruction, and provides the application trigger module, where the received trigger instruction includes a registration code of the application to be triggered;
  • the program triggering module queries the application information registration module for whether the registration code of the application to be triggered already exists; if it already exists, triggers the corresponding target application.
  • the application on the terminal 2 establishes a connection to the application server 1, and establishes communication through the server 1 and the application 1 on the terminal 1 which is also connected to the server.
  • FIG. 6 is a flowchart of communication between terminals according to an Unstructured Supplementary Service Data (USSD) triggered by an Unstructured Supplementary Data Data (USSD) according to an embodiment of the present invention.
  • USSD Unstructured Supplementary Service Data
  • USSD Unstructured Supplementary Data Data
  • User 1 Start the "Give me a call back" application on terminal 1, and enter (or select) the mobile number of user 2.
  • the client application connects to the application server through an internal protocol, and the interface carries the mobile phone number information of user 1 and user 2.
  • the application server determines whether User 1 has the right to use the service, and whether it can call User 2, and if so, sends a USSD request to USSDC (Unstructured Supplementary Data Service Center).
  • USSDC Unstructured Supplementary Data Service Center
  • the called party is the mobile number of User 2, and the USSD request has the registration code of the application.
  • the USSDC sends the request content to the user 2's terminal with the message type: The application triggers.
  • the terminal 2 can perform special processing according to the "message type": whether it is transmitted to the USSD client software or to the "application trigger". If passed to the "application trigger", the external communication module of the application trigger parses the received trigger instruction and converts it into an internal trigger instruction, which is provided to the application trigger module, wherein the received trigger instruction includes the trigger to be triggered. The application registration code; Next, the application trigger module queries the application information registration module to query whether the registration code of the application to be triggered already exists; if it already exists, triggers the corresponding target application to "give me a call back".
  • the embodiment of the present invention registers the application program and saves the registration code, and then, when receiving the trigger instruction, queries whether the registration code of the application to be triggered included in the trigger instruction already exists, and if it already exists, uniformly triggers according to the registration code.
  • the corresponding terminal application In this way, the session between the terminal and the application server can be reduced, and the development of the application is made easy.
  • multiple standard communication protocols need only be expanded once, and the underlying system of the terminal only needs to be modified once. It reduces the difficulty of terminal application development and improves the development efficiency of terminal applications.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种终端上的应用程序的触发方法,包括以下步骤:对终端上的应用程序进行注册,并保存注册码(102);接收触发指令,所述触发指令包括所要触发的应用程序的注册码(104);查询所述所要触发的应用程序的注册码是否已存在(106);若已存在,则触发相应的应用程序(108)。还提供了一种终端间应用程序的通讯方法以及终端。本方案涉及终端通讯领域,用于统一触发欲进行通讯的终端应用程序,以降低应用程序的开发成本。

Description

终端、 触发方法和终端间应用程序通讯方法 本申请要求于 2011 年 07 月 05 日提交中国专利局、 申请号为 201110187058.8、 发明名称为"终端、 触发方法和终端间应用程序通讯方法" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及终端通讯, 尤其涉及终端、 触发方法和终端间应用程序通讯 方法。 背景技术
当前随着智能终端的普及, 运行在终端上的应用程序也越来越多。 这些 应用程序如果要进行终端到终端的通讯, 一般都要求在业务使用前, 由通讯 双方终端上的客户端先主动连接到应用服务器并保持会话才能随时建立通 讯。
在现有技术中, 因短信可在手机之间即时通讯且不需为此建立连接, 当 终端 1上的应用程序要和终端 2上的应用程序通讯时, 终端 1建立起到应用服 务器的会话并通过发送一个特殊格式的短信到终端 2而通知终端 2建立起到 应用服务器的会话, 通过应用服务器的调度来与终端 1建立起通讯。
在实现本方案的过程中,发明人发现现有技术不但要使手机底层系统能 够判定特定的短信类型且不将其交给特定应用程序处理; 而且对每一个新的 应用程序都需要完成下述工作: 为此应用程序专门扩充一个短信类型; 使此 应用程序能够接收和解析此短信。 因而, 对终端应用程序的开发要求较高, 实现起来难度较大。 发明内容
本发明实施例提供一种终端、 触发方法和终端间应用程序通讯方法, 用 以解决在非连接的情况下,要实现终端应用程序之间建立连接比较复杂的问 题。 使得在减少终端和应用服务器间会话的情况下, 降低终端应用程序开发 的难度, 提高终端应用程序的开发效率。
为达到上述目的, 本发明实施例提供一种终端, 包括: 应用程序信息注 册模块,用于对终端上的应用程序进行注册,并保存注册码; 外部通讯模块, 用于接收触发指令并提供给应用程序触发模块, 所述触发指令中包括所要触 发的应用程序的注册码; 和应用程序触发模块, 用于在应用程序信息注册模 块中查询所要触发的应用程序的注册码是否已存在, 若已存在就触发相应的 应用程序。
进一步地, 所述应用程序信息注册模块包括注册接口, 用于对应用程序 进行注册。
进一步地, 所述应用程序信息注册模块包括存储器, 用于存储所注册的 注册码。
更进一步地, 所述外部通讯模块包括解析转换器, 用于对所述接收的触 发指令进行解析并转换成内部触发指令。
更进一步地, 所述应用程序触发模块包括进程通讯接口, 用于在应用程 序触发模块查询到所要触发的应用程序的注册码已存在之后, 则通过进程通 讯接口通知应用程序; 和系统调用接口, 用于在应用程序触发模块查询到所 要触发的应用程序的注册码已存在之后, 则通过系统调用接口激活应用程 序。
一种终端上的应用程序的触发方法, 包括以下步骤:
对终端上的应用程序进行注册, 并保存注册码;
接收外部触发指令并转换成内部触发指令, 其中触发指令中包括所要触 发的应用程序的注册码;
查询所要触发的应用程序的注册码是否已存在:
若已存在, 则触发相应的应用程序。
所述接收触发指令之后进一步包括: 对所述接收的触发指令进行解析并 转换成内部触发指令。
其中, 所述触发指令为短信指令或非结构化补充数据业务指令。
进一步地, 所述触发相应的应用程序包括通过进程通讯接口通知应用程 序或通过系统调用接口激活应用程序。
一种终端之间的应用程序通讯的方法, 包括以下步骤:
第一终端中的源应用程序连接到应用服务器; 所述应用服务器向第二终端发送触发指令, 所述触发指令包括所要触发 的目标应用程序的注册码;
所述第二终端接收所述触发指令, 并根据所述触发指令查询所述要触发 的应用程序的注册码是否已存在, 若已存在, 则所述第二终端触发目标应用 程序;
第一终端中的源应用程序与第二终端内的目标应用程序进行通讯。
进一步地, 触发相应的应用程序包括通过进程通讯接口通知应用程序或 通过系统调用接口激活应用程序。
本发明实施例通过对应用程序进行注册并保存注册码, 然后在接收触发 指令时, 查询触发指令中包括的所要触发的应用程序的注册码是否已存在, 若已存在就根据注册码统一地触发相应的终端应用程序。 这样, 可以减少终 端和应用服务器之间的会话, 并使得应用程序的开发变的容易, 本发明实施 例的技术方案, 多种标准通信协议只需扩充一次, 终端底层系统只需配合改 造一次,降低了终端应用程序开发的难度,提高了终端应用程序的开发效率。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明终端实施例中的应用程序触发器的方框图;
图 2为本发明实施例中以 OTA方式对应用程序信息进行注册的流程图; 图 3为本发明实施例终端上应用程序触发方法的流程图;
图 4为本发明实施例终端间应用程序通讯方法的流程图。
图 5为本发明实施例中基于短信触发的终端间应用程序进行通讯的流程 示意图;
图 6为本发明实施例中基于 USSD触发的终端间应用程序进行通讯的流 程示意图。 具体实施方式
为更好的理解本发明且使本发明能够易于实施。 下面结合附图及具体实 施例对本发明进行详细描述。
图 1为本发明应用程序触发器实施例的方框图。 如图 1所示, 本发明实施 例提供一种终端应用程序触发器 10, 包括: 应用程序信息注册模块 12、 应用 程序触发模块 14和外部通讯模块 16; 其中, 应用程序信息注册模块 12用于对 终端上的应用程序进行注册, 并保存注册码; 外部通讯模块 16用于接收触发 指令并提供给应用程序触发模块 14, 其中触发指令中包括所要触发的应用程 序的注册码; 应用程序触发模块 14用于在应用程序信息注册模块中查询所要 触发的应用程序的注册码是否已存在, 若已存在就触发相应的终端应用程 序。
本发明实施例通过对应用程序进行注册并保存注册码, 然后在接收触发 指令时, 查询触发指令中包括的所要触发的应用程序的注册码是否已存在, 若已存在就根据注册码统一地触发相应的终端应用程序。 这样, 可以减少终 端和应用服务器之间的会话, 并使得应用程序的开发变的容易, 本发明实施 例的技术方案, 多种标准通信协议只需扩充一次, 终端底层系统只需配合改 造一次,降低了终端应用程序开发的难度,提高了终端应用程序的开发效率。
其中, 所述的应用程序信息包括:
应用程序注册码, 每个应用程序在应用程序触发器上唯一的注册码。 触发方式: 通知 /激活。 若应用程序总是处于启动状态, 应用程序触发器 则通过进程通讯接口通知它; 若应用程序平时处于非启动状态, 应用程序触 发器则通过系统调用接口激活它。
进程标识: 应用程序启动后的进程标识, 应用程序触发器靠此标识和应 用程序进行通讯。
应用程序位置: 应用程序启动后存储的位置, 应用程序触发器通过此应 用程序位置标识来启动应用程序。
进一步地, 应用程序信息注册模块包括统一的应用程序信息注册接口, 用于对应用程序信息进行注册。 应用程序信息的注册可有多种方式, 如: 用 户在终端配置界面上手工输入应用注册信息; 当应用程序运行时, 自动调用 该接口去注册; 运营商统一管理这些终端应用程序信息, 并通过一定途径同 步到用户终端终端上(如 OTA短信)。 进一步的, 为保证本发明实施例的技术方案能够更好的实施, 本发明实 施例在实际运营中可能需要包括如下的一些应用条件:
1、 每个客户端业务应用程序 (含对应服务器)有唯一的应用程序注册 码, 这个应用程序注册码可以由运营商统一管理分配。 目前运营商都有自己 的业务管理平台, 每个业务都在上面申请的业务代码都是唯一的, 客户端上 的每个业务应用程序也在业务管理平台上申请业务代码了, 所以可以就直接 使用这个代码做为应用程序注册码。
2、 应用程序注册码除了在"应用程序触发器"上进行注册外, 在应用服 务器上也要注册一次(应用服务器在业务处理时要传给终端应用程序)。
更进一步地, 应用程序信息注册模块包括存储器, 用于存储注册码。 在一实施例中, 外部通讯模块包括外部通讯接口, 用于接收外部来的触 发指令; 所述外部通讯模块包括解析转换器, 用于对所述触发指令进行解析 并转换成内部触发指令。
在进一步的实施例中, 应用程序触发模块包括进程通讯接口, 用于在应 用程序触发模块查询到所要触发的应用程序的注册码已存在之后, 则通过进 程通讯接口通知应用程序; 有些终端应用对实时性要求较高, 为节省启动时 间, 平时应用程序一直处在启动状态, 但是和服务器端没有建立连接, 对于 这类应用, 应用程序触发器模块通过消息接口通知应用程序即可, 应用程序 一旦收到该接口消息, 立即去和服务端建立连接; 应用程序触发模块包括系 统调用接口, 用于在应用程序触发模块查询到所要触发的应用程序的注册码 已存在之后, 则通过系统调用接口激活应用程序; 有些终端应用只有在使用 时才会启动起来, 这样可以节省终端资源, 对于这类应用, 应用程序触发器 通过系统调用接口将应用程序拉起来, 这类应用程序的一般逻辑是: 在启动 后立即去连接对应的服务器, 然后根据服务器的指令进行业务处理; 在用户 使用完后退出。
下面以 OTA(over the air,空中下载)方式来描述应用程序信息注册的流 程。
图 2为本发明应用程序触发器实施例中以 OTA方式对应用程序信息进行 注册的流程图。如图 2所示, 当新发布了一个终端应用程序后,运营商在 OTA 服务器上发布该应用程序在终端上的注册配置信息。 接着, OTA服务器通 过 OTA配置短信将应用程序注册信息发到用户终端上, 用户终端上的 OTA配 置模块对配置短信按固有流程处理。 如果 OTA配置模块发现此短信是应用注 册配置短信, 则调用应用程序触发器提供的应用程序信息注册接口进行注 册。
本发明实施例还提供一种终端上的应用程序的触发方法。 图 3为此方法 步骤 102, 对终端上的应用程序进行注册, 并保存注册码;
步骤 104, 接收触发指令, 其中所述触发指令中包括所要触发的应用程 序的注册码;
步骤 106, 查询所要触发的应用程序的注册码是否已存在:
步骤 108, 若已存在, 则触发相应的应用程序。
本发明实施例通过对应用程序进行注册并保存注册码, 然后在接收触发 指令时, 查询触发指令中包括的所要触发的应用程序的注册码是否已存在, 若已存在就根据注册码统一地触发相应的终端应用程序。 这样, 可以减少终 端和应用服务器之间的会话, 并使得应用程序的开发变的容易, 本发明实施 例的技术方案, 多种标准通信协议只需扩充一次, 终端底层系统只需配合改 造一次,降低了终端应用程序开发的难度,提高了终端应用程序的开发效率。
其中在所述接收触发指令之后进一步包括: 对所述触发指令进行解析并 转换成内部触发指令。
其中, 所述触发指令优选地为短信指令或非结构化补充数据业务指令。 进一步地, 触发相应的应用程序包括: 若应用程序注册的触发方式为通 知方式, 则通过进程通讯接口通知应用程序; 若应用程序注册的触发方式为 激活方式, 则通过系统调用接口激活应用程序。
下面以触发手机上的应用程序为例来具体描述应用程序触发的流程。
1、 手机在收到特殊的外部消息时(例如: 二进制通知短信), 对特定 "短 信类型 "进行特殊处理: 传给应用程序触发器。
2、 应用程序触发器的 "外部通讯" 模块对收到的消息进行解析, 消息 中含有 "应用程序注册码" 参数。 然后转换成内部消息, 内部消息包括: 发 起发方手机号码、 应用程序注册码等等。
3、 "外部通讯" 模块将内部消息转给 "应用程序触发" 模块。
4、 "应用程序触发"模块直接访问已注册的应用程序信息, 检查上行消 息中的应用程序注册码是否已存在。
5、 如果不存在, 则 "应用触发" 模块不做任何处理; 如果已存在, 则
"应用触发" 模块根据该应用程序注册的触发方式 (在应用程序处于启动状 态时为通知方式, 在应用程序处于非启动状态时为激活方式), 去通知或启 动对应的终端应用程序。
此外, 本发明实施例还提供一种终端间应用程序通讯的方法。 图 4为本 发明实施例终端间应用程序通讯方法的流程图。 如图 4所示, 终端间应用程 序通讯的方法包括以下步骤:
步骤 202: 第一终端中的源应用程序连接到应用服务器;
步骤 204: 所述应用服务器向第二终端发送触发指令, 所述触发指令包 括触发类型、 所要触发的目标应用程序的注册码;
步骤 206: 第二终端接收所述触发指令并根据所述触发指令查询所要触 发的应用程序的注册码是否已存在, 若已存在, 则所述第二终端触发目标应 用程序触发目标应用程序。
其中步骤 206进一步包括以下三个子步骤, 在步骤 2061 , 应用程序触发 器的外部通讯模块接收触发指令并转换成内部触发指令, 其中触发指令中包 括所要触发的应用程序的注册码; 步骤 2062, 在应用程序信息注册模块中查 询要触发的应用程序的注册码是否已存在; 若已存在, 则在步骤 2063应用程 序触发模块触发第二终端内的目标应用程序;
步骤 208: 第一终端中的源应用程序与第二终端内的目标应用程序进行 通讯。
下面结合触发指令分别为短信指令和非结构化补充数据业务指令的两 个具体实施例来描述终端之间应用程序通讯的方法。
实施例 1:
图 5为本发明实施例中基于短信触发的终端间应用程序进行通讯的流 程。 如图 5所示: 1、 用户 1启动终端 1上的应用程序 1 (应用 1 ), 输入用户 2的连接标识(用 户 2在应用服务器 1上的唯一标识, 可能是手机号码、 或在服务器上的注册账 号)。 应用程序 1连接到应用服务器 1上, 并发出通讯请求, 请求中带有用户 2 的连接标识。
2、 应用服务器 1根据用户 2的连接标识, 可以获取用户 2的手机号码, 或 在服务器上的注册账号。 给用户 2发出特殊二进制短信, 接收方为 2的号码, 短信需带有两个关键参数:短信类型(区分 PUSH、 闪信等其他二进制短信), 应用程序注册码。
3、短信息服务中心 (Short Message Service Center,SMSC)将带有应用程序 注册码的短信发到用户 2的终端 (终端 2 )上。
4、 终端 2收到这种特殊二进制通知短信后, 能根据 "短信类型,,进行特殊 处理: 是传给短信客户端软件还是传给"应用程序触发器"模块。 若传给应用 程序触发器, 则应用程序触发器的外部通讯模块对接收的触发指令进行解析 并转换成内部触发指令提供给应用程序触发模块, 其中所接收的触发指令中 包括所要触发的应用程序的注册码; 接着, 应用程序触发模块在应用程序信 息注册模块中查询要触发的应用程序的注册码是否已存在; 若已存在, 则触 发对应的目标应用程序。
5、 终端 2上的应用程序 1建立到应用服务器 1的连接, 通过服务器和同样 已连接到服务器上的终端 1上的应用程序 1建立通讯。
实施例 2:
图 6为本发明实施例中基于非结构化补偿数据业务 (Unstructured Supplementary Service Data,USSD)触发的终端间应用程序进行通讯的流程。
小孩通过终端上的 "给我回电" 应用, 通过 USSD触发父亲的手机给自 己回拨电话。 具体流程如图 6所示:
1、 用户 1启动终端 1上的 "给我回电" 应用程序 , 输入(或选择)用 户 2的手机号码。 客户端应用通过内部协议连接到应用服务器, 接口中带有 用户 1 , 用户 2的手机号码信息。
2、 应用服务器判断用户 1是否有使用该业务的权限, 且是否能呼叫用户 2,如果有,则向 USSDC (非结构化补充数据业务中心)发出一个 USSD请求, 被叫方是用户 2的手机号码, USSD请求中带有应用程序的注册码。
3、 USSDC将请求内容发到用户 2的终端上, 带有消息类型: 应用程序触 发。
4、 终端 2收到 USSDC请求后, 能根据 "短信类型"进行特殊处理: 是传给 USSD客户端软件还是传给"应用程序触发器"。 如果传给"应用程序触发 器", 则应用程序触发器的外部通讯模块对接收的触发指令进行解析并转换 成内部触发指令提供给应用程序触发模块, 其中所接收的触发指令中包括所 要触发的应用程序的注册码; 接着, 应用程序触发模块在应用程序信息注册 模块中查询要触发的应用程序的注册码是否已存在; 若已存在, 则触发对应 的目标应用程序 "给我回电"。
5、 "给我回电" 应用程序自动拨打用户 1手机号码, 同时播放振铃声提 示用户 2。
本发明实施例通过对应用程序进行注册并保存注册码, 然后在接收触发 指令时, 查询触发指令中包括的所要触发的应用程序的注册码是否已存在, 若已存在就根据注册码统一地触发相应的终端应用程序。 这样, 可以减少终 端和应用服务器之间的会话, 并使得应用程序的开发变的容易, 本发明实施 例的技术方案, 多种标准通信协议只需扩充一次, 终端底层系统只需配合改 造一次,降低了终端应用程序开发的难度,提高了终端应用程序的开发效率。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种终端, 其特征在于, 包括应用程序触发器, 所述应用程序触发 器包括:
应用程序信息注册模块, 用于对终端上的应用程序进行注册, 并保存注 册码;
外部通讯模块, 用于接收触发指令并提供给应用程序触发模块, 所述触 发指令包括所要触发的应用程序的注册码; 和
应用程序触发模块, 用于在所述应用程序信息注册模块中查询所述所要 触发的应用程序的注册码是否已存在, 若已存在就触发相应的应用程序。
2、 根据权利要求 1 所述的终端, 其特征在于, 所述应用程序信息注册 模块包括:
注册接口, 用于对应用程序进行注册。
3、 根据权利要求 1 所述的终端, 其特征在于, 所述应用程序信息注册 模块包括存储器, 用于存储所述注册码。
4、 根据权利要求 1 所述的终端, 其特征在于, 所述外部通讯模块包括 解析转换器, 用于对接收的触发指令进行解析并转换成内部触发指令。
5、 根据权利要求 1至 4所述的终端, 其特征在于, 所述应用程序触发 模块包括:
进程通讯接口, 用于在应用程序触发模块查询到所要触发的应用程序的 注册码已存在之后, 通过进程通讯接口通知所述应用程序;
系统调用接口, 用于在应用程序触发模块查询到所要触发的应用程序的 注册码已存在之后, 通过系统调用接口激活所述应用程序。
6、 一种终端上的应用程序的触发方法, 其特征在于, 包括以下步骤: 对终端上的应用程序进行注册, 并保存注册码;
接收触发指令, 所述触发指令包括所要触发的应用程序的注册码; 查询所述所要触发的应用程序的注册码是否已存在:
若已存在, 则触发相应的应用程序。
7、 根据权利要求 6所述的方法, 其特征在于,
所述接收触发指令之后进一步包括: 对所述触发指令进行解析并转换成 内部触发指令。
8、 根据权利要求 6所述的方法, 其特征在于,
所述触发指令为短信指令或非结构化补充数据业务指令。
9、 根据权利要求 6至 8中任一项所述的方法, 其特征在于,
所述触发相应的应用程序包括通过进程通讯接口通知应用程序或通过 系统调用接口激活应用程序。
10、一种终端之间的应用程序通讯的方法,其特征在于, 包括以下步骤: 第一终端中的源应用程序连接到应用服务器;
所述应用服务器向第二终端发送触发指令, 所述触发指令包括所要触发 的目标应用程序的注册码;
所述第二终端接收所述触发指令, 并根据所述触发指令查询所述要触发 的应用程序的注册码是否已存在, 若已存在, 则所述第二终端触发目标应用 程序;
第一终端中的源应用程序与第二终端内的目标应用程序进行通讯。
11、 根据权利要求 10所述的方法, 其特征在于,
所述触发指令为短信指令或非结构化补充数据业务指令。
12、 根据权利要求 10或 11所述的方法, 其特征在于,
所述触发相应的应用程序包括通过进程通讯接口通知应用程序或通过 系统调用接口激活应用程序。
PCT/CN2012/078176 2011-07-05 2012-07-04 终端、触发方法和终端间应用程序通讯方法 WO2012167755A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110187058.8 2011-07-05
CN201110187058.8A CN102262533B (zh) 2011-07-05 2011-07-05 终端、触发方法和终端间应用程序通讯方法

Publications (1)

Publication Number Publication Date
WO2012167755A1 true WO2012167755A1 (zh) 2012-12-13

Family

ID=45009171

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078176 WO2012167755A1 (zh) 2011-07-05 2012-07-04 终端、触发方法和终端间应用程序通讯方法

Country Status (2)

Country Link
CN (1) CN102262533B (zh)
WO (1) WO2012167755A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262533B (zh) * 2011-07-05 2015-04-29 华为软件技术有限公司 终端、触发方法和终端间应用程序通讯方法
CN109391616B (zh) * 2018-10-10 2021-08-27 四川中电启明星信息技术有限公司 一种信息管理方法及终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621764A (zh) * 2009-08-07 2010-01-06 中兴通讯股份有限公司 基于Java Push机制手机通讯应用的信息传送方法及系统
CN101923432A (zh) * 2010-06-10 2010-12-22 北京捷通华声语音技术有限公司 一种移动终端中应用程序的调用方法及装置
CN101990173A (zh) * 2009-08-07 2011-03-23 碁晔科技股份有限公司 以短消息为基础的终端通讯系统及方法
CN102262533A (zh) * 2011-07-05 2011-11-30 华为软件技术有限公司 终端、触发方法和终端间应用程序通讯方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642316A (zh) * 2004-01-13 2005-07-20 英华达(南京)科技有限公司 个人手机系统手机透过个人电脑下载应用程序的方法
CN101083589B (zh) * 2007-07-13 2010-08-11 华为技术有限公司 无源光网络中的终端检测认证方法、装置及操作管理系统
CN101119588B (zh) * 2007-07-25 2010-08-18 宇龙计算机通信科技(深圳)有限公司 注册码的密钥生成方法及系统以及软件的注册方法及系统
CN101179787B (zh) * 2007-12-03 2010-06-16 宇龙计算机通信科技(深圳)有限公司 一种移动终端及其业务激活方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621764A (zh) * 2009-08-07 2010-01-06 中兴通讯股份有限公司 基于Java Push机制手机通讯应用的信息传送方法及系统
CN101990173A (zh) * 2009-08-07 2011-03-23 碁晔科技股份有限公司 以短消息为基础的终端通讯系统及方法
CN101923432A (zh) * 2010-06-10 2010-12-22 北京捷通华声语音技术有限公司 一种移动终端中应用程序的调用方法及装置
CN102262533A (zh) * 2011-07-05 2011-11-30 华为软件技术有限公司 终端、触发方法和终端间应用程序通讯方法

Also Published As

Publication number Publication date
CN102262533A (zh) 2011-11-30
CN102262533B (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
US9014349B2 (en) Media instant messaging for mobile device
WO2013097452A1 (zh) 接收数据的方法、发送数据的方法、移动终端和服务器
CN102239731A (zh) 延长无线设备中的电池寿命的方法
CN102761864A (zh) 一种数据传输的方法、系统及设备
WO2008043261A1 (fr) Système de messagerie convergent
WO2008040248A1 (fr) Procédé et système de transmission de courrier électronique et serveur de courrier électronique poussé
CN108182121A (zh) 一种Android中控大屏系统模块间通信方法及系统
WO2010066086A1 (zh) 基于对讲机实现会议呼叫和动态分组的方法
WO2022257851A1 (zh) 语音通话方法和语音通话装置
CN104936282A (zh) 一种融合通信业务的注册方法及装置
US8504123B1 (en) Telephone ringing signal-based notification method for mobile devices
WO2018129876A1 (zh) 多媒体数据传输的方法、服务器和终端
WO2012145982A1 (zh) 终端管理系统及方法
WO2011015099A1 (zh) 信息传送方法和系统、应用服务器及手机终端
WO2011017936A1 (zh) 一种实现非结构化补充数据业务的方法及装置
WO2012167755A1 (zh) 终端、触发方法和终端间应用程序通讯方法
WO2010139154A1 (zh) 信息处理系统、通讯系统和通讯方法
WO2011140904A1 (zh) 一种消息处理方法、装置和应用服务器
WO2013060106A1 (zh) 一种移动终端及其远程激活呼叫转移的方法
WO2016168217A1 (en) Managing communication events
US20120011260A1 (en) Method and system for transmitting large message mode converged IP messaging
EP3163917B1 (en) Sending short messages over ussd
WO2015184780A1 (zh) 一种处理信息的方法、装置及系统
WO2010012145A1 (zh) 彩信通知消息的处理方法和装置、彩信接收系统
KR101119451B1 (ko) 호출 발신을 인버팅하는 시스템 및/또는 방법

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

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

Country of ref document: EP

Kind code of ref document: A1