WO2011088779A1 - Dispositif et procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile - Google Patents

Dispositif et procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile Download PDF

Info

Publication number
WO2011088779A1
WO2011088779A1 PCT/CN2011/070358 CN2011070358W WO2011088779A1 WO 2011088779 A1 WO2011088779 A1 WO 2011088779A1 CN 2011070358 W CN2011070358 W CN 2011070358W WO 2011088779 A1 WO2011088779 A1 WO 2011088779A1
Authority
WO
WIPO (PCT)
Prior art keywords
inter
communication
communication server
data
module
Prior art date
Application number
PCT/CN2011/070358
Other languages
English (en)
Chinese (zh)
Inventor
张邦华
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to RU2012136195/08A priority Critical patent/RU2523964C2/ru
Priority to BR112012018527A priority patent/BR112012018527A2/pt
Publication of WO2011088779A1 publication Critical patent/WO2011088779A1/fr

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an apparatus and method for implementing communication between processes of different applications on a mobile terminal. Background of the invention
  • the types and operating systems of mobile terminals such as mobile phones vary widely, and applications used on mobile terminals such as mobile phones are also diverse, and different applications may be developed in different languages.
  • the game lobby application is adopted.
  • Symbian language development, and games embedded in the game lobby are developed using the J2ME (Java 2 Micro Edition, Java 2 Micro Edition) language.
  • J2ME Java 2 Micro Edition, Java 2 Micro Edition
  • the J2ME language has always been a universal cross-platform solution, and J2ME's cross-platform porting and support for most models has become the choice of many application development.
  • Embodiments of the present invention provide a method of implementing communication between processes of different applications on a mobile terminal to enable communication between processes of different applications on the mobile terminal.
  • An inter-process communication server is disposed in the mobile terminal, where the inter-process communication server includes:
  • An interface setting module configured to set an interface that is connected to processes of each application in the mobile terminal
  • a protocol setting module configured to set a communication protocol between processes of each application in the mobile terminal, the communication protocol includes a communication protocol between the sender application process and the inter-process communication server, and a process between the receiving end application process and the process Communication protocol between communication servers;
  • a data interaction processing module configured to send, after the interface set by the interface setting module is connected with the sending end and the receiving end application process, the receiving end application process sends through the communication protocol between the sending end application server and the interprocess communication server The data is sent to the receiving end application process through a communication protocol between the receiving end application process and the interprocess communication server.
  • a method for inter-process communication in a mobile terminal where an inter-process communication server is set in a mobile terminal, the method specifically includes:
  • the inter-process communication server is connected to the sender application process through an interface, and receives data sent by the sender application process through a communication protocol between the process and the inter-process communication server;
  • the inter-process communication server is connected to the receiving end application process through an interface, and sends the data to the receiving end application process through a communication protocol between the receiving end application process and the inter-process communication server.
  • the embodiments of the present invention implement communication between processes of different applications on the mobile terminal by setting an inter-process communication server in the mobile terminal.
  • FIG. 1 is a schematic structural diagram of an inter-process communication server according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of processing a method for inter-process communication in a mobile terminal according to Embodiment 2 of the present invention.
  • the embodiments of the present invention are further described in detail with reference to the accompanying drawings, and FIG.
  • FIG. 1 is a schematic structural diagram of an inter-process communication server provided by the embodiment, and includes the following modules: an interface setting module 11 configured to set an interface for connecting with processes of each application in the mobile terminal, through which each interface is The application's process can be connected to the interprocess communication server;
  • the protocol setting module 12 is configured to set a communication protocol with processes of respective applications in the mobile terminal, and the process of each application program can perform data transmission with the inter-process communication server through the communication protocol.
  • the communication protocol includes a communication protocol between a sender application process and an interprocess communication server, and a receiver application process and an interprocess communication server.
  • a communication protocol between the two, and the communication protocol can be preset by the protocol setting module 12.
  • the processes of different applications can be set to the same or different communication protocols. In practical applications, the TCP (Transmission Control Protocol) protocol can be set for all applications.
  • the data interaction processing module 13 is configured to send, after the interface set by the interface setting module 11 is connected with the sending end and the receiving end application process, the receiving end application process sends through the communication protocol between the sending end application server and the interprocess communication server. Data, the data is forwarded to the receiving application process through a communication protocol between the receiving end application process and the interprocess communication server; and is also used to receive communication between the receiving end application process and the interprocess communication server The data returned by the protocol is returned to the sender application process through the communication protocol between the sender application process and the interprocess communication server.
  • the interprocess communication server may further include:
  • the inter-process protocol setting module 14 is configured to set a communication protocol between different processes, and the communication protocol may be encapsulated in a communication protocol between the process and the server, and may be preset by the inter-process protocol setting module 14.
  • the sender application process When the sender application process needs to perform data communication with the receiver application process, the sender application process utilizes the communication protocol between the sender and the receiver application process set by the inter-process protocol setting module 14, and needs to transmit.
  • the data is encapsulated to construct a data request; the receiving end application process decapsulates the data request by using a communication protocol between the receiving end and the sending end application process set by the inter-process protocol setting module 14 to obtain the sending end application.
  • the data transmitted by the process When the sender application process needs to perform data communication with the receiver application process, the sender application process utilizes the communication protocol between the sender and the receiver application process set by the inter-process protocol setting module 14, and needs to transmit.
  • the data is encapsulated to construct a data request; the receiving end application process
  • the data interaction processing module 13 may specifically include:
  • the receiving module 131 is configured to: after the interface set by the interface setting module 11 is connected to the sending application process, receive the two-package sent by the sending end application process through the communication protocol between the sending end application communication server and the inter-process communication server. After the data.
  • the sender application process uses the communication protocol between the sender application process and the receiver application process set by the inter-process protocol setting module 14, and performs the first encapsulation on the data to be transmitted; 12 setting a communication protocol between the sender application process and the inter-process communication server (such as the TCP protocol), and performing the second encapsulation on the data encapsulated in the first package;
  • the decapsulation module 132 is configured to decapsulate the data received by the receiving module 131 by using a communication protocol between the sender application process and the inter-process communication server set by the protocol setting module 12;
  • the encapsulation module 133 is configured to re-encapsulate the decapsulated data by using the communication protocol between the receiving end application process and the inter-process communication server set by the protocol setting module 12;
  • the sending module 134 is configured to re-encapsulate the encapsulating module 133 by using a communication protocol between the receiving end application process and the inter-process communication server after the interface set by the interface setting module 11 is connected to the receiving end application process.
  • the subsequent data is sent to the receiving application process.
  • the receiving end application process After receiving the data sent by the inter-process communication server, the receiving end application process firstly receives the received data request by using a communication protocol between the receiving end application process and the inter-process communication server set by the protocol setting module 12. Sub-decapsulation. Then, the communication protocol between the sender application process and the receiver application process set by the inter-process protocol setting module 14 is used to perform the second decapsulation of the first decapsulated data request to obtain the sender application.
  • the data transmitted by the program process is configured to re-encapsulate the encapsulating module 133 by using a communication protocol between the receiving end application process and the inter-process communication server after the interface set by the interface setting module 11 is connected to the receiving end application process.
  • the data interaction processing module 13 may further set and receive the module 131 and decapsulate the data.
  • the module 132, the encapsulating module 133, and the second receiving module, the second decapsulating module, the second encapsulating module, and the second sending module corresponding to the sending module 134 process the data returned by the receiving end, and processed
  • the processing procedure of the receiving module 131, the decapsulating module 132, the encapsulating module 133, and the sending module 134 is substantially the same, except that the second receiving module is received by the communication protocol between the receiving end application process and the interprocess communication server.
  • the data returned by the receiving end decapsulates the returned data by using a communication protocol between the receiving end application process and the interprocess communication server, and the second encapsulating module utilizes the sending end application process and the interprocess communication.
  • the communication protocol between the servers re-encapsulates the decapsulated data
  • the second sending module sends the data encapsulated by the second encapsulating module to the data encapsulated by the second application module by using a communication protocol between the application process and the inter-process communication server.
  • the processing flow of the method for inter-process communication in the mobile terminal provided by this embodiment is as shown in FIG. 2, and includes the following steps:
  • Step 21 The sender application process A uses the set communication protocol to encapsulate the data to be transmitted twice.
  • the process A When the sender application process A needs to perform data communication with the receiver application process B, the process A first uses the communication protocol between the process A and the process B set by the inter-process protocol setting module 14 to perform data transmission. The first time the package is constructed, the data request is constructed.
  • the above process B can be the progress of the game lobby, and process A needs to upload the game score to process B.
  • the data protocol requested by the protocol setting module 12 and the inter-process communication server (such as the TCP protocol) are used to perform the second encapsulation of the first encapsulated data request.
  • Step 22 After decapsulating and encapsulating the received data request, the inter-process communication server sends the data request to the receiving application process B.
  • the above process A connects to the interprocess communication server through an interface between the interface setting module 11 and the interprocess communication server.
  • the two encapsulated data requests are sent to the inter-process communication server through a communication protocol.
  • the inter-process communication server decapsulates the received data request by using a communication protocol between the process A and the inter-process communication server set by the protocol setting module 12.
  • the communication protocol (such as TCP protocol) between the process B set by the protocol setting module 12 and the inter-process communication server re-encapsulates the decapsulated data request and sends it to the process B.
  • Step 23 Process B decapsulates the received data request twice to obtain the data transmitted by process A.
  • the process B After receiving the data request sent by the inter-process communication server, the process B uses the communication protocol between the process B and the inter-process communication server set by the protocol setting module 12 to perform the first decapsulation of the received data request. Then, the communication protocol between the process A and the process B set by the inter-process protocol setting module 14 is used to perform the second decapsulation of the first decapsulated data request to obtain the data transmitted by the process A.
  • the process B may return the corresponding processing result to the process A through the inter-process communication server according to the foregoing process.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the methods as described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the embodiments of the present invention implement processes of different applications on a mobile terminal.
  • the communication between the host program and the plug-in (third-party program) provides a way to greatly reduce the cost of program development of the mobile terminal and improve the development efficiency of the mobile terminal.
  • the embodiment of the present invention can also implement different functions distributed in different applications without being invoked by means of a dynamic link library or a static link library, which is beneficial to the release of the program, as long as the communication interface protocol is maintained. It is not necessary to update the dynamic link library or the static link library to ensure the relative independence and dependencies between applications. Furthermore, the embodiment of the present invention provides a good solution for plug-in development, for example, in a mobile browser or the like, providing a communication server and a developed plug-in communication, as long as there is an agreed protocol interface between the plug-in and the browser. , a seamless integration between the plugin and the browser.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Le mode de réalisation de la présente invention concerne un dispositif et un procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile. Le procédé consiste principalement à : un serveur de communication inter processus est défini dans le terminal mobile, ledit serveur de communication inter processus se connecte à un processus d'un programme d'application en un côté émission par le biais d'une interface, reçoit les données qui sont transmises par le processus du programme d'application en un côté émission à l'aide d'un protocole de communication entre lui-même et le processus du programme d'application ; ledit serveur de communication inter processus se connecte à un processus de programme d'application en un côté réception par le biais d'une interface, envoie lesdites données au processus de programme d'application en un côté réception à l'aide d'un protocole de communication entre lui-même et ledit processus de programme d'application en un côté réception. L'application de la présente invention peut implémenter une communication inter processus de différents programmes d'application dans le terminal mobile.
PCT/CN2011/070358 2010-01-25 2011-01-18 Dispositif et procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile WO2011088779A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
RU2012136195/08A RU2523964C2 (ru) 2010-01-25 2011-01-18 Способ межпроцессного взаимодействия между разными приложениями в мобильном терминале и соответствующее устройство
BR112012018527A BR112012018527A2 (pt) 2010-01-25 2011-01-18 aparelho e método para comunicação entre processos entre aplicações diferentes em um terminal móvel

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010101009880A CN102137123A (zh) 2010-01-25 2010-01-25 实现移动终端上不同应用程序的进程之间通信的装置和方法
CN201010100988.0 2010-01-25

Publications (1)

Publication Number Publication Date
WO2011088779A1 true WO2011088779A1 (fr) 2011-07-28

Family

ID=44296778

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/070358 WO2011088779A1 (fr) 2010-01-25 2011-01-18 Dispositif et procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile

Country Status (4)

Country Link
CN (1) CN102137123A (fr)
BR (1) BR112012018527A2 (fr)
RU (1) RU2523964C2 (fr)
WO (1) WO2011088779A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343970A (zh) * 2018-08-17 2019-02-15 北京密境和风科技有限公司 基于应用程序的操作方法、装置、电子设备及计算机介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662778A (zh) * 2012-04-28 2012-09-12 杭州格畅科技有限公司 在线应用平台上应用间通信的回调应答方法、应用及在线应用平台
CN103677549B (zh) * 2012-09-11 2017-08-11 阿里巴巴集团控股有限公司 一种数据处理方法与装置
CN103853621B (zh) * 2012-12-05 2017-10-24 腾讯科技(深圳)有限公司 一种跨进程交互方法及相关终端设备
CN103034545B (zh) * 2012-12-10 2016-08-03 上海斐讯数据通信技术有限公司 基于ace的通信框架和方法、及功能模块间的通信方法
CN103218267A (zh) * 2013-04-16 2013-07-24 百度在线网络技术(北京)有限公司 终端的***进程向应用程序进程分发数据的方法、装置
CN111835864B (zh) * 2016-05-11 2023-04-25 创新先进技术有限公司 一种启动应用的方法和***
CN107656817A (zh) * 2016-07-25 2018-02-02 阿里巴巴集团控股有限公司 程序间进行数据传输的方法以及装置
CN106254909B (zh) * 2016-08-04 2019-07-23 传线网络科技(上海)有限公司 互动内容的分发、运行方法及装置
CN107979631B (zh) * 2016-10-25 2021-06-22 航天信息软件技术有限公司 数据同步的方法和装置
CN108287723B (zh) 2016-12-30 2022-07-12 华为技术有限公司 一种应用交互方法、装置、物理机及***
CN108664491A (zh) * 2017-03-29 2018-10-16 北京京东尚科信息技术有限公司 数据传输方法、装置和终端设备
CN108848127B (zh) * 2018-05-23 2022-02-25 北京五八信息技术有限公司 数据传输方法、装置、计算机设备及计算机可读存储介质
CN110569069A (zh) * 2018-06-06 2019-12-13 海能达通信股份有限公司 一种配置管理方法、配置管理***及具有存储功能的装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1080751A (zh) * 1992-07-01 1994-01-12 L·M·埃利克逊电话股份有限公司 独立实现的接口说明***
CN1490724A (zh) * 2002-10-18 2004-04-21 上海贝尔有限公司 一种用于嵌入式***软件开发的虚拟机装置
CN1811717A (zh) * 2006-01-10 2006-08-02 杭州东信灵通电子实业公司 通用进程间通信实现方法
US20080120426A1 (en) * 2006-11-17 2008-05-22 International Business Machines Corporation Selective acceleration of transport control protocol (tcp) connections

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070094495A1 (en) * 2005-10-26 2007-04-26 Microsoft Corporation Statically Verifiable Inter-Process-Communicative Isolated Processes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1080751A (zh) * 1992-07-01 1994-01-12 L·M·埃利克逊电话股份有限公司 独立实现的接口说明***
CN1490724A (zh) * 2002-10-18 2004-04-21 上海贝尔有限公司 一种用于嵌入式***软件开发的虚拟机装置
CN1811717A (zh) * 2006-01-10 2006-08-02 杭州东信灵通电子实业公司 通用进程间通信实现方法
US20080120426A1 (en) * 2006-11-17 2008-05-22 International Business Machines Corporation Selective acceleration of transport control protocol (tcp) connections

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343970A (zh) * 2018-08-17 2019-02-15 北京密境和风科技有限公司 基于应用程序的操作方法、装置、电子设备及计算机介质
CN109343970B (zh) * 2018-08-17 2022-08-23 北京密境和风科技有限公司 基于应用程序的操作方法、装置、电子设备及计算机介质

Also Published As

Publication number Publication date
RU2012136195A (ru) 2014-03-10
CN102137123A (zh) 2011-07-27
BR112012018527A2 (pt) 2017-06-27
RU2523964C2 (ru) 2014-07-27

Similar Documents

Publication Publication Date Title
WO2011088779A1 (fr) Dispositif et procédé pour implémenter une communication inter processus de différents programmes d'application dans un terminal mobile
JP3805725B2 (ja) 相異なるミドルウェアを使用するホームネットワーク上のデバイス間のメッセージの受け渡しを可能にするゲートウェイ、ホームネットワークシステム及びメッセージ受け渡し方法
KR100686705B1 (ko) 세션 개시 프로토콜-가능 단말기에 다중-클라이언트 지원을제공하기 위한 방법 및 장치
EP4102928B1 (fr) Système de communication, dispositif portable et équipement utilisateur
KR101264042B1 (ko) 데이터 다운로드 방법 및 단말
WO2017045276A1 (fr) Procédé d'interconnexion de terminaux, dispositif, et support de stockage
US8009619B1 (en) Server-side wireless communications link support for mobile handheld devices
WO2013091382A1 (fr) Procédé et système pour réaliser une compatibilité d'un appareil électrique, et passerelle d'accès périphérique universelle
WO2013149491A1 (fr) Dispositif de routage sans fil, terminal mobile, et système et procédé de gestion
KR100772175B1 (ko) 네트워크 로봇 시스템 및 네트워크 로봇 시스템에서의 통신방법
CN104243267A (zh) 数据传输方法及装置
US8060594B1 (en) Client-side wireless communications link support for mobile handheld devices
WO2015018338A1 (fr) Procédé et dispositif d'établissement de connexion
WO2013082808A1 (fr) Procédés et appareil pour déclencher une demande de mise à jour du micrologiciel en réponse à un événement de panne
TW201833784A (zh) 基於Hybrid的兼容方法、適配件、運行裝置及系統
WO2015196330A1 (fr) Procédé de fonctionnement d'un dispositif de routage, dispositif de routage et dispositif terminal
CN110999257A (zh) 用于服务器通知的递送的传送方法选择
JP2003530022A (ja) 移動局のアプリケーションが生のパケット化されたデータを受信および送信するための方法および装置
WO2012151998A1 (fr) Procédé de traitement de données et appareil de commande pour un dispositif de diffusion mobile
CN100391150C (zh) 数据传送装置及数据传送方法
WO2012010002A1 (fr) Appareil et procédé pour un débogage de service dans des applications java sur un terminal de machine à machine
WO2013123688A1 (fr) Procédé et dispositif pour obtenir un accès à des données
EP2515601B1 (fr) Procédé et dispositif de connexion par ligne commutée d'un terminal de données mobile
US7907556B2 (en) Apparatus and method for controlling mobile terminal in data communication system
JP2003102067A (ja) 状態モデルを備えた無線通信装置

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

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

Country of ref document: RU

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.12.2012)

122 Ep: pct application non-entry in european phase

Ref document number: 11734361

Country of ref document: EP

Kind code of ref document: A1

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112012018527

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112012018527

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20120725