WO2014183556A1 - Application processing method and apparatus - Google Patents

Application processing method and apparatus Download PDF

Info

Publication number
WO2014183556A1
WO2014183556A1 PCT/CN2014/076484 CN2014076484W WO2014183556A1 WO 2014183556 A1 WO2014183556 A1 WO 2014183556A1 CN 2014076484 W CN2014076484 W CN 2014076484W WO 2014183556 A1 WO2014183556 A1 WO 2014183556A1
Authority
WO
WIPO (PCT)
Prior art keywords
port information
server
user equipment
named pipe
application processing
Prior art date
Application number
PCT/CN2014/076484
Other languages
French (fr)
Chinese (zh)
Inventor
郭伟
姚沛延
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2014183556A1 publication Critical patent/WO2014183556A1/en

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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • G06F9/4413Plug-and-play [PnP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • G06F9/4486Formation of subprogram jump address
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method for processing an application program.
  • the server establishes a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, and the named pipe is the server process and one or more A one-way or two-way pipe for communication between the client processes; the server performs application processing on the user equipment corresponding to the named pipe through the named pipe.
  • the method further includes:
  • the server When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe by the named pipe.
  • the port information includes a port number and diagnostic service Diag port information; or the port The information includes the port number and debug bridge ADB port information.
  • an embodiment of the present invention provides a server, including:
  • a port information processing module configured to connect to at least one user equipment, and acquire and save port information of each of the user equipments
  • a receiving module configured to receive a startup application processing request sent by the user equipment, and a query module, configured to query port information of each user equipment saved by the port information processing module, and obtain a processing request with the application Corresponding port information;
  • Establishing a pipeline module configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, the named pipeline is the server process and one One-way or two-way pipe for communication between multiple client processes;
  • the server further includes: a release module, configured to release the processing when the server receives the processing completion message sent by the user equipment by using the named pipe Name the port corresponding to the user equipment corresponding to the named pipe.
  • the processing method and device of the application program provided by the embodiment of the present invention acquires and saves the port information of each user equipment by connecting the server with the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries and saves Port information of each user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe through the named pipe
  • the user device performs application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency.
  • Embodiment 1 is a flowchart of Embodiment 1 of a processing method of an application program according to the present invention
  • Embodiment 1 of a server according to the present invention is a schematic structural diagram of Embodiment 1 of a server according to the present invention.
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of a server according to the present invention. detailed description
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for processing an application of the present invention. As shown in FIG. 1, the method in this embodiment may include:
  • the server is connected to at least one user equipment, and obtains and saves port information of each user equipment.
  • the user equipment may be a terminal device connected to the server.
  • the mobile phone is used as an example, and the mobile phone is inserted into the server through a Universal Serial Bus (USB) port.
  • USB Universal Serial Bus
  • the server obtains and saves the port information of each mobile phone. Specifically, after the mobile phone is inserted into the server, the corresponding port is mapped in the server device manager, and the specific process can be collected by enumerating the registry. Information to all of these ports.
  • the port information includes a port number and a diagnostic service (Diagnostic servces, hereinafter referred to as Diag) port information, wherein the Diag is a bridge between the mobile phone and the server, and the information in the mobile phone can be obtained through the Diag; or the port information includes the port.
  • Diag Diagnostic servces, hereinafter referred to as Diag
  • Number and debug bridge (Android Debug Bridge, hereinafter referred to as: ADB) port information
  • ADB is a tool in the Android system, with this tool you can directly manage the android emulator or real andriod devices, such as mobile phones.
  • the server After the server obtains the port information of each mobile phone, the server starts the service service corresponding to each port number according to the automatic running (AutoRun) service of the mobile phone itself.
  • the service service is an executable file that is injected into the server after the Automn service of the mobile phone itself is started, and is used to operate the port of the mobile phone itself, that is, to
  • the port number is reported to the server. If the port in the port information obtained by the server cannot communicate with the server, it is determined that the server fails to find out the pair. The port should be.
  • the server receives the startup application processing request sent by the user equipment, and queries the saved port information of each user equipment, and obtains port information corresponding to the application processing request.
  • the server establishes a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, where the named pipe of each user device is different, and the named pipe is a communication between the server process and one or more client processes.
  • One-way or two-way pipe One-way or two-way pipe.
  • the server when the server receives the startup application processing request sent by the user equipment, that is, after the application in the server detects the service service initiated by different mobile phones (that is, the mobile phone sends an application request to the server), the query saves.
  • Port information of each user equipment obtaining port information corresponding to the application processing request, and establishing a named pipe between the user equipments corresponding to the port information corresponding to the application processing request.
  • the port information since the port number in each port information corresponds to an independent service service, after the application in the server detects that the mobile phone corresponding to the port information starts the service service, the port information may be used according to the port information.
  • the mobile phone corresponding to the port information sends a command to open the port, thereby opening the port and establishing the command pipeline.
  • the mobile phone that has been transferred may be unplugged.
  • the application in the server may send a shutdown port command to the mobile phone corresponding to the port information, thereby closing the port, and Release the command pipeline.
  • a named pipe is a one-way or two-way pipe between a server process and one or more client processes, and the named pipe can be different between unrelated processes.
  • the server assigns a name to a named pipe. Any process can open the other end of the pipe by that name and communicate with the server process according to the given permissions.
  • the server processes the user equipment corresponding to the named pipe through a named pipe.
  • the server can perform data transmission through the port corresponding to each mobile phone to complete the application software. Installation and uninstallation.
  • the processing method of the application program provided by the embodiment obtains and stores the port information of each user equipment after the server is connected to the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries each saved one. Port information of the user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe by the named pipe Perform application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency.
  • the method further includes:
  • the server When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe and the named pipe.
  • the transmission progress of each mobile phone may be inconsistent. Some mobile phones may complete the transmission first, and still occupy a USB port. At this time, the mobile phone that has been transmitted may be unplugged, and the mobile phone that is being transmitted is simultaneously Not affected. In this way, a port is released, and then the next mobile phone to be transmitted can be accessed. It should be noted that after accessing the next mobile phone to be transmitted, the server detects the port of the mobile phone to be transmitted, as in the above steps S101-S104.
  • the information when detecting the mobile phone launching application processing request corresponding to the port information, respectively requesting corresponding port information according to the application request and the application program, establishing a named pipe between the mobile phones corresponding to the port information, and finally passing the named pipe. Apply processing to the phone. In addition, the mobile phone that was originally transmitted will not be affected, so it can be repeated cyclically. This greatly improves work efficiency.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., which can be stored.
  • the medium of the program code includes: ROM, RAM, magnetic disk or optical disk, etc., which can be stored.
  • the apparatus in this embodiment may include: a port information processing module 11, a receiving module 12, a query module 13, a pipeline module 14 and a processing module 15,
  • the port information processing module 11 is configured to connect to at least one user equipment, and acquire and save port information of each user equipment.
  • the receiving module 12 is configured to receive a startup application processing request sent by the user equipment
  • the querying module 13 is configured to query port information of each user equipment saved by the port information processing module 11 to obtain port information corresponding to the application processing request.
  • the establishing pipeline module 14 is configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, wherein the named pipes of each user equipment are different, and the named pipeline is a server process and one or more client processes. One-way or two-way pipe for communication.
  • the processing module 15 is configured to perform application processing on the user equipment corresponding to the named pipe through the named pipe.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1, and the implementation principle is similar, and details are not described herein again.
  • the server provided in this embodiment is connected to the at least one user equipment through the port information processing module, and obtains and stores the port information of each user equipment, and the receiving module receives the startup application processing request sent by the user equipment, and the query module queries and saves the Port information of each user equipment, obtaining port information corresponding to the application processing request, establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request by the pipeline module, and finally processing the named module through the named pipe
  • the user equipment corresponding to the pipeline performs application processing. Therefore, the server can install, uninstall, and manage the application software for multiple user devices at the same time, thereby improving work efficiency.
  • FIG. 3 is a schematic structural diagram of a second embodiment of a server according to the present invention.
  • the device of the embodiment is based on the device structure shown in FIG. 2.
  • the device may further include: a release module 16, the release The module 16 is configured to release the port corresponding to the user equipment corresponding to the named pipe when the server receives the processing completion message sent by the user equipment through the named pipe.
  • the device in this embodiment may be used to perform the technical solution shown in the second embodiment of the foregoing method, and the implementation principle is similar, and details are not described herein again.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present invention provide an application processing method and apparatus. The method comprises: after connecting to one or more user equipments, a server obtaining and storing port information of each user equipment; receiving a start application processing request sent by a user equipment, querying the stored port information of each user equipment, and obtaining port information corresponding to the application processing request; the server establishing a named pipe with a user equipment corresponding to the port information corresponding to the application processing request; and the server performing, through the named pipe, application processing on the user equipment corresponding to the named pipe. The application processing method and apparatus according to the embodiments of the present invention implement simultaneous application setting, installing, and uninstalling of multiple user equipments by one server, and improve working efficiency.

Description

应用程序的处理方法和装置  Application processing method and device
技术领域 Technical field
本发明实施例涉及通信技术领域,尤其涉及一种应用程序的处理方法 Embodiments of the present invention relate to the field of communications technologies, and in particular, to a method for processing an application program.
所述服务器与所述应用程序处理请求对应的端口信息对应的用户设备 之间建立命名管道,其中,每个用户设备的命名管道不相同,所述命名管 道是所述服务器进程和一个或多个客户进程之间通信的单向或双向管道; 所述服务器通过所述命名管道,对所述命名管道对应的所述用户设备 进行应用程序处理。 The server establishes a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, and the named pipe is the server process and one or more A one-way or two-way pipe for communication between the client processes; the server performs application processing on the user equipment corresponding to the named pipe through the named pipe.
在第一方面的第一种可能的实施方式中,所述服务器通过所述命名管 道,对所述命名管道对应的所述用户设备进行应用程序处理之后,所述方 法还包括:  In a first possible implementation manner of the first aspect, after the server performs application processing on the user equipment corresponding to the named pipe by using the named pipe, the method further includes:
当所述服务器通过所述命名管道接收到所述用户设备发送的处理完成 消息时,所述服务器释放所述命名管道与所述命名管道对应的用户设备对 应的端口信息。  When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe by the named pipe.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第 二种可能的实施方式中,所述端口信息包括端口号和诊断服务 Diag端口信 息;或者,所述端口信息包括端口号和调试桥 ADB端口信息。  With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the port information includes a port number and diagnostic service Diag port information; or the port The information includes the port number and debug bridge ADB port information.
第二方面,本发明实施例提供一种服务器,包括:  In a second aspect, an embodiment of the present invention provides a server, including:
端口信息处理模块,用于与至少一个用户设备相连接,并获取和保存 每个所述用户设备的端口信息;  a port information processing module, configured to connect to at least one user equipment, and acquire and save port information of each of the user equipments;
接收模块,用于接收所述用户设备发送的启动应用程序处理请求; 查询模块,用于查询所述端口信息处理模块保存的每个所述用户设备 的端口信息,获取与所述应用程序处理请求对应的端口信息;  a receiving module, configured to receive a startup application processing request sent by the user equipment, and a query module, configured to query port information of each user equipment saved by the port information processing module, and obtain a processing request with the application Corresponding port information;
建立管道模块,用于与所述应用程序处理请求对应的端口信息对应的 用户设备之间建立命名管道,其中,每个用户设备的命名管道不相同,所 述命名管道是所述服务器进程和一个或多个客户进程之间通信的单向或双 向管道;  Establishing a pipeline module, configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, where the named pipes of each user equipment are different, the named pipeline is the server process and one One-way or two-way pipe for communication between multiple client processes;
处理模块,用于通过所述命名管道,对所述命名管道对应的所述用户 设备进行应用程序处理。 在第二方面的第一种可能的实施方式中,所述服务器还包括: 释放模块,用于当所述服务器通过所述命名管道接收到所述用户设备 发送的处理完成消息时,释放所述命名管道与所述命名管道对应的用户设 备对应的端口信息。 And a processing module, configured to perform application processing on the user equipment corresponding to the named pipe by using the named pipe. In a first possible implementation manner of the second aspect, the server further includes: a release module, configured to release the processing when the server receives the processing completion message sent by the user equipment by using the named pipe Name the port corresponding to the user equipment corresponding to the named pipe.
本发明实施例提供的应用程序的处理方法和装置,通过服务器与至少 一个用户设备相连接后获取和保存每个用户设备的端口信息,然后接收用 户设备发送的启动应用程序处理请求,并查询保存的每个用户设备的端口 信息,获取与应用程序处理请求对应的端口信息,接着与应用程序处理请 求对应的端口信息对应的用户设备之间建立命名管道,最后服务器通过命 名管道,对命名管道对应的用户设备进行应用程序处理。 从而实现了服务 器可对多个用户设备同时进行应用软件的安装和卸载及管理工作,提高了 工作效率。 附图说明  The processing method and device of the application program provided by the embodiment of the present invention acquires and saves the port information of each user equipment by connecting the server with the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries and saves Port information of each user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe through the named pipe The user device performs application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地, 下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明应用程序的处理方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a processing method of an application program according to the present invention;
图 2为本发明服务器实施例一的结构示意图;  2 is a schematic structural diagram of Embodiment 1 of a server according to the present invention;
图 3为本发明服务器实施例二的结构示意图。 具体实施方式  FIG. 3 is a schematic structural diagram of Embodiment 2 of a server according to the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚,下面将结合本 发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明应用程序的处理方法实施例一的流程图,如图 1所示, 本实施例的方法可以包括:  1 is a flowchart of Embodiment 1 of a method for processing an application of the present invention. As shown in FIG. 1, the method in this embodiment may include:
S101、 服务器与至少一个用户设备相连接,并获取和保存每个用户设 备的端口信息。  S101. The server is connected to at least one user equipment, and obtains and saves port information of each user equipment.
在本实施例中,用户设备可以是各种与服务器连接的终端设备,本实 施例以手机为例,手机通过通用串行总线(Universal Serial BUS ,以下简称: USB )端口***到服务器上后,服务器获取和保存每个手机的端口信息, 具体地,手机***到服务器上后,在服务器设备管理器中会映射出其对应 的端口 ,具体实施过程中可通过对注册表的枚举便可搜集到所有这些端口 的信息。 优选地,端口信息包括端口号和诊断服务(Diagnostic servces ,以 下简称: Diag )端口信息,其中, Diag是手机和服务器通信的桥梁,可通 过 Diag 获取到手机当中的信息;或者,端口信息包括端口号和调试桥 ( Android Debug Bridge ,以下简称: ADB )端口信息, ADB是 Android ***里的一个工具, 用这个工具可以直接操作管理 android模拟器或者真实 的 andriod设备,如手机。 服务器获取到每个手机的端口信息后,服务器根 据手机本身自动运行( AutoRun )服务启动各端口号对应的 service服务。 其中, service服务为手机本身 Automn服务启动后注入服务器的一个可执 行文件,用来对手机本身的端口进行操作,即用来对手机与服务器之间进 行数据传输。  In this embodiment, the user equipment may be a terminal device connected to the server. In this embodiment, the mobile phone is used as an example, and the mobile phone is inserted into the server through a Universal Serial Bus (USB) port. The server obtains and saves the port information of each mobile phone. Specifically, after the mobile phone is inserted into the server, the corresponding port is mapped in the server device manager, and the specific process can be collected by enumerating the registry. Information to all of these ports. Preferably, the port information includes a port number and a diagnostic service (Diagnostic servces, hereinafter referred to as Diag) port information, wherein the Diag is a bridge between the mobile phone and the server, and the information in the mobile phone can be obtained through the Diag; or the port information includes the port. Number and debug bridge (Android Debug Bridge, hereinafter referred to as: ADB) port information, ADB is a tool in the Android system, with this tool you can directly manage the android emulator or real andriod devices, such as mobile phones. After the server obtains the port information of each mobile phone, the server starts the service service corresponding to each port number according to the automatic running (AutoRun) service of the mobile phone itself. The service service is an executable file that is injected into the server after the Automn service of the mobile phone itself is started, and is used to operate the port of the mobile phone itself, that is, to perform data transmission between the mobile phone and the server.
另外,还需要说明的是,若服务器没能一次找出所有端口 ,可以尝试 N 次来对端口进行搜索,例如: Ν=5 ,且每次搜索端口的时间可以设置为 S 秒,例如: S=120秒,如果仍未找到,则上报用户某个设备加载不能成功。 其中,当用户设备***服务器时,会上报其端口号给服务器,若服务器获 取的端口信息中的端口与服务器无法进行通信,即判断服务器未能找出对 应的端口。 In addition, it should be noted that if the server fails to find all the ports at once, you can try N times to search the port, for example: Ν=5, and the time of each search port can be set to S seconds, for example: S = 120 seconds, if it is still not found, the device reported to the user can not be loaded successfully. When the user device is inserted into the server, the port number is reported to the server. If the port in the port information obtained by the server cannot communicate with the server, it is determined that the server fails to find out the pair. The port should be.
5102、 服务器接收用户设备发送的启动应用程序处理请求,并查询保 存的每个用户设备的端口信息,获取与应用程序处理请求对应的端口信息。  S102. The server receives the startup application processing request sent by the user equipment, and queries the saved port information of each user equipment, and obtains port information corresponding to the application processing request.
5103、 服务器与应用程序处理请求对应的端口信息对应的用户设备之 间建立命名管道,其中,每个用户设备的命名管道不相同,命名管道是服 务器进程和一个或多个客户进程之间通信的单向或双向管道。  5103. The server establishes a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, where the named pipe of each user device is different, and the named pipe is a communication between the server process and one or more client processes. One-way or two-way pipe.
在本实施例中,服务器在接收到用户设备发送的启动应用程序处理请 求时,也即服务器中的应用程序检测到不同手机启动的 service服务后(即 手机向服务器发送应用程序请求),查询保存的每个用户设备的端口信息, 获取与应用程序处理请求对应的端口信息,与应用程序处理请求对应的端 口信息对应的用户设备之间建立命名管道。 具体的,由于每个开端口信息 中的端口号均对应一个独立的 service服务,因此,在服务器中的应用程序 检测到该端口信息对应的手机启动 service服务后,可以根据该端口信息, 向该端口信息对应的手机下发打开端口的命令,从而打开该端口 ,并建立 该命令管道。 另外,当该手机的应用软件安装卸载完成后,可以拔出已经 传输完成的手机,此时,服务器中的应用程序可以向该端口信息对应的手 机下发关闭端口命令,从而关闭该端口 ,并释放该命令管道。  In this embodiment, when the server receives the startup application processing request sent by the user equipment, that is, after the application in the server detects the service service initiated by different mobile phones (that is, the mobile phone sends an application request to the server), the query saves. Port information of each user equipment, obtaining port information corresponding to the application processing request, and establishing a named pipe between the user equipments corresponding to the port information corresponding to the application processing request. Specifically, since the port number in each port information corresponds to an independent service service, after the application in the server detects that the mobile phone corresponding to the port information starts the service service, the port information may be used according to the port information. The mobile phone corresponding to the port information sends a command to open the port, thereby opening the port and establishing the command pipeline. In addition, after the installation and uninstallation of the application software of the mobile phone is completed, the mobile phone that has been transferred may be unplugged. At this time, the application in the server may send a shutdown port command to the mobile phone corresponding to the port information, thereby closing the port, and Release the command pipeline.
还需要说明的是,在本实施例中,命名管道(Named Pipe )是服务器 进程和一个或多个客户进程之间通信的单向或双向管道,命名管道可以在 不相关的进程之间和不同计算机之间使用,服务器建立命名管道时给它指 定一个名字,任何进程都可以通过该名字打开管道的另一端,根据给定的 权限和服务器进程通信。  It should also be noted that in this embodiment, a named pipe (Named Pipe) is a one-way or two-way pipe between a server process and one or more client processes, and the named pipe can be different between unrelated processes. Used between computers, the server assigns a name to a named pipe. Any process can open the other end of the pipe by that name and communicate with the server process according to the given permissions.
5104、 服务器通过命名管道,对命名管道对应的用户设备进行应用程 序处理。  5104. The server processes the user equipment corresponding to the named pipe through a named pipe.
在本实施例中,应用程序根据上述操作打开各个手机对应的端口后, 服务器就可以通过各个手机对应的端口进行数据的传输,来完成应用软件 的安装和卸载。 In this embodiment, after the application opens the port corresponding to each mobile phone according to the above operation, the server can perform data transmission through the port corresponding to each mobile phone to complete the application software. Installation and uninstallation.
本实施例提供的应用程序的处理方法,通过服务器与至少一个用户设 备相连接后获取和保存每个用户设备的端口信息,然后接收用户设备发送 的启动应用程序处理请求,并查询保存的每个用户设备的端口信息,获取 与应用程序处理请求对应的端口信息,接着与应用程序处理请求对应的端 口信息对应的用户设备之间建立命名管道,最后服务器通过命名管道,对 命名管道对应的用户设备进行应用程序处理。 从而实现了服务器可对多个 用户设备同时进行应用软件的安装和卸载及管理工作,提高了工作效率。  The processing method of the application program provided by the embodiment obtains and stores the port information of each user equipment after the server is connected to the at least one user equipment, and then receives the startup application processing request sent by the user equipment, and queries each saved one. Port information of the user equipment, obtaining port information corresponding to the application processing request, and then establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request, and finally the server corresponding to the named pipe by the named pipe Perform application processing. Therefore, the server can simultaneously install, uninstall, and manage the application software for multiple user devices, thereby improving work efficiency.
进一步的,在本发明应用程序的处理方法实施例二中,在上述图 1 所 示实施例的基础上,在步骤 S104之后,该方法还包括:  Further, in the second embodiment of the processing method of the application program of the present invention, on the basis of the embodiment shown in FIG. 1 , after the step S104, the method further includes:
当服务器通过命名管道接收到用户设备发送的处理完成消息时,服务 器释放命名管道与命名管道对应的用户设备对应的端口信息。  When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the user equipment corresponding to the named pipe and the named pipe.
具体地,开始数据传输后,各个手机的传输进度可能不一致,有的手 机可能先完成了传输,并且仍然占用着一个 USB端口 ,此时可以拔出已经 传输完成的手机,同时,正在传输的手机不受影响。 这样就释放了一个端 口 ,然后可以接入下一个待传输的手机,需要说明的是,在接入下一个待 传输的手机之后,同上述步骤 S101-S104 ,服务器检测获取该待传输手机的 端口信息,在检测获取到该端口信息对应的手机启动应用程序处理请求时, 分别根据应用程序请求和应用程序请求对应的端口信息,与端口信息对应 的手机之间建立命名管道,最后通过命名管道,对该手机进行应用程序处 理。 另外,原来正在传输的手机也不会受到影响,如此,可循环反复进行。 从而在很大程度上提高了工作效率。  Specifically, after the data transmission is started, the transmission progress of each mobile phone may be inconsistent. Some mobile phones may complete the transmission first, and still occupy a USB port. At this time, the mobile phone that has been transmitted may be unplugged, and the mobile phone that is being transmitted is simultaneously Not affected. In this way, a port is released, and then the next mobile phone to be transmitted can be accessed. It should be noted that after accessing the next mobile phone to be transmitted, the server detects the port of the mobile phone to be transmitted, as in the above steps S101-S104. The information, when detecting the mobile phone launching application processing request corresponding to the port information, respectively requesting corresponding port information according to the application request and the application program, establishing a named pipe between the mobile phones corresponding to the port information, and finally passing the named pipe. Apply processing to the phone. In addition, the mobile phone that was originally transmitted will not be affected, so it can be repeated cyclically. This greatly improves work efficiency.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分 步骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算 机可读取存储介质中。 该程序在执行时,执行包括上述各方法实施例的步 骤;而前述的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储 程序代码的介质。 One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps including the foregoing method embodiments are performed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., which can be stored. The medium of the program code.
图 2为本发明服务器实施例一的结构示意图,如图 2所示,本实施例 的装置可以包括:端口信息处理模块 11、 接收模块 12、 查询模块 13、 建立 管道模块 14和处理模块 15 ,其中,端口信息处理模块 11用于与至少一个 用户设备相连接,并获取和保存每个用户设备的端口信息。 接收模块 12用 于接收用户设备发送的启动应用程序处理请求,查询模块 13用于查询端口 信息处理模块 11保存的每个用户设备的端口信息,获取与应用程序处理请 求对应的端口信息。 建立管道模块 14用于与应用程序处理请求对应的端口 信息对应的用户设备之间建立命名管道,其中,每个用户设备的命名管道 不相同,命名管道是服务器进程和一个或多个客户进程之间通信的单向或 双向管道。 处理模块 15用于通过命名管道,对命名管道对应的用户设备进 行应用程序处理。  2 is a schematic structural diagram of Embodiment 1 of a server according to the present invention. As shown in FIG. 2, the apparatus in this embodiment may include: a port information processing module 11, a receiving module 12, a query module 13, a pipeline module 14 and a processing module 15, The port information processing module 11 is configured to connect to at least one user equipment, and acquire and save port information of each user equipment. The receiving module 12 is configured to receive a startup application processing request sent by the user equipment, and the querying module 13 is configured to query port information of each user equipment saved by the port information processing module 11 to obtain port information corresponding to the application processing request. The establishing pipeline module 14 is configured to establish a named pipe between the user equipments corresponding to the port information corresponding to the application processing request, wherein the named pipes of each user equipment are different, and the named pipeline is a server process and one or more client processes. One-way or two-way pipe for communication. The processing module 15 is configured to perform application processing on the user equipment corresponding to the named pipe through the named pipe.
本实施例的装置,可以用于执行图 1 所示方法实施例的技术方案,其 实现原理类似,此处不再赘述。  The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1, and the implementation principle is similar, and details are not described herein again.
本实施例提供的服务器,通过端口信息处理模块与至少一个用户设备 相连接,并获取和保存每个用户设备的端口信息,接收模块接收用户设备 发送的启动应用程序处理请求,查询模块查询保存的每个用户设备的端口 信息,获取与应用程序处理请求对应的端口信息,建立管道模块与应用程 序处理请求对应的端口信息对应的用户设备之间建立命名管道,最后处理 模块通过命名管道,对命名管道对应的用户设备进行应用程序处理。 从而 实现了服务器可对多个用户设备同时进行应用软件的安装和卸载及管理工 作,提高了工作效率。  The server provided in this embodiment is connected to the at least one user equipment through the port information processing module, and obtains and stores the port information of each user equipment, and the receiving module receives the startup application processing request sent by the user equipment, and the query module queries and saves the Port information of each user equipment, obtaining port information corresponding to the application processing request, establishing a named pipe between the user equipment corresponding to the port information corresponding to the application processing request by the pipeline module, and finally processing the named module through the named pipe The user equipment corresponding to the pipeline performs application processing. Therefore, the server can install, uninstall, and manage the application software for multiple user devices at the same time, thereby improving work efficiency.
图 3为本发明服务器实施例二的结构示意图,如图 3所示,本实施例 的装置在图 2所示装置结构的基础上,进一步地,该装置还可以包括:释 放模块 16 ,该释放模块 16用于当服务器通过命名管道接收到用户设备发送 的处理完成消息时,释放命名管道与命名管道对应的用户设备对应的端口 本实施例的装置,可以用于执行上述方法实施例二所示的技术方案, 其实现原理类似,此处不再赘述。 3 is a schematic structural diagram of a second embodiment of a server according to the present invention. As shown in FIG. 3, the device of the embodiment is based on the device structure shown in FIG. 2. Further, the device may further include: a release module 16, the release The module 16 is configured to release the port corresponding to the user equipment corresponding to the named pipe when the server receives the processing completion message sent by the user equipment through the named pipe. The device in this embodiment may be used to perform the technical solution shown in the second embodiment of the foregoing method, and the implementation principle is similar, and details are not described herein again.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非 对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的 普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进 行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或 者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 Rights request
1、 一种应用程序的处理方法,其特征在于,包括: 1. An application processing method, characterized by including:
服务器与至少一个用户设备相连接,并获取和保存每个所述用户设备 的端口信息; The server is connected to at least one user device, and obtains and saves the port information of each user device;
所述服务器接收所述用户设备发送的启动应用程序处理请求,并查询 所述保存的每个所述用户设备的端口信息,获取与所述应用程序处理请求 对应的端口信息; The server receives the request to start application processing sent by the user equipment, and queries the saved port information of each user equipment to obtain the port information corresponding to the application processing request;
所述服务器与所述应用程序处理请求对应的端口信息对应的用户设备 之间建立命名管道,其中,每个用户设备的命名管道不相同,所述命名管 道是所述服务器进程和一个或多个客户进程之间通信的单向或双向管道; 所述服务器通过所述命名管道,对所述命名管道对应的所述用户设备 进行应用程序处理。 A named pipe is established between the server and the user device corresponding to the port information corresponding to the application processing request, where the named pipe of each user device is different, and the named pipe is the server process and one or more One-way or two-way pipes for communication between client processes; The server performs application processing on the user device corresponding to the named pipe through the named pipe.
2、 根据权利要求 1所述的应用程序的处理方法,其特征在于,所述服 务器通过所述命名管道,对所述命名管道对应的所述用户设备进行应用程 序处理之后,所述方法还包括: 2. The application processing method according to claim 1, characterized in that, after the server performs application processing on the user device corresponding to the named pipe through the named pipe, the method further includes :
当所述服务器通过所述命名管道接收到所述用户设备发送的处理完成 消息时,所述服务器释放所述命名管道与所述命名管道对应的用户设备对 应的端口信息。 When the server receives the processing completion message sent by the user equipment through the named pipe, the server releases the port information corresponding to the named pipe and the user equipment corresponding to the named pipe.
3、 根据权利要求 1或 2所述的应用程序处理方法,其特征在于,所述 端口信息包括端口号和诊断服务 Diag端口信息;或者,所述端口信息包括 端口号和调试桥 ADB端口信息。 3. The application processing method according to claim 1 or 2, wherein the port information includes a port number and diagnostic service Diag port information; or the port information includes a port number and a debugging bridge ADB port information.
4、 一种服务器,其特征在于,包括: 4. A server, characterized by including:
端口信息处理模块,用于与至少一个用户设备相连接,并获取和保存 每个所述用户设备的端口信息; A port information processing module, used to connect to at least one user equipment, and obtain and save the port information of each user equipment;
接收模块,用于接收所述用户设备发送的启动应用程序处理请求; 查询模块,用于查询所述端口信息处理模块保存的每个所述用户设备 的端口信息,获取与所述应用程序处理请求对应的端口信息; 建立管道模块,用于与所述应用程序处理请求对应的端口信息对应的 用户设备之间建立命名管道,其中,每个用户设备的命名管道不相同,所 述命名管道是所述服务器进程和一个或多个客户进程之间通信的单向或双 向管道; A receiving module, configured to receive a request to start application processing sent by the user equipment; A query module, configured to query each user device saved by the port information processing module port information to obtain the port information corresponding to the application processing request; establishing a pipeline module to establish a named pipe between user devices corresponding to the port information corresponding to the application processing request, wherein each user device The named pipes are different, and the named pipes are one-way or two-way pipes for communication between the server process and one or more client processes;
处理模块,用于通过所述命名管道,对所述命名管道对应的所述用户 设备进行应用程序处理。 A processing module, configured to perform application processing on the user equipment corresponding to the named pipe through the named pipe.
5、 根据权利要求 4所述的服务器,其特征在于,所述服务器还包括: 释放模块,用于当所述服务器通过所述命名管道接收到所述用户设备 发送的处理完成消息时,释放所述命名管道与所述命名管道对应的用户设 备对应的端口信息。 5. The server according to claim 4, characterized in that the server further includes: a release module, configured to release the processing completion message sent by the user equipment through the named pipe when the server receives the processing completion message. Port information corresponding to the named pipe and the user equipment corresponding to the named pipe.
PCT/CN2014/076484 2013-05-17 2014-04-29 Application processing method and apparatus WO2014183556A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310186219.0 2013-05-17
CN201310186219.0A CN103605529B (en) 2013-05-17 2013-05-17 The treating method and apparatus of application program

Publications (1)

Publication Number Publication Date
WO2014183556A1 true WO2014183556A1 (en) 2014-11-20

Family

ID=50123759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076484 WO2014183556A1 (en) 2013-05-17 2014-04-29 Application processing method and apparatus

Country Status (2)

Country Link
CN (1) CN103605529B (en)
WO (1) WO2014183556A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605529B (en) * 2013-05-17 2018-01-23 华为终端(东莞)有限公司 The treating method and apparatus of application program
CN104570967B (en) * 2013-10-17 2017-06-20 北大方正集团有限公司 Long-range control method and system based on android system
CN103902391B (en) * 2014-04-15 2018-04-10 宇龙计算机通信科技(深圳)有限公司 Application program management device and application management method
CN104268112A (en) * 2014-09-19 2015-01-07 福州瑞芯微电子有限公司 Method and device for connecting ADB devices
CN104410687B (en) * 2014-11-26 2018-01-19 上海爱数信息技术股份有限公司 A kind of multigroup inter-process data transmission method based on pipeline
CN105808404B (en) * 2014-12-31 2018-10-23 成都鼎桥通信技术有限公司 A kind of adjustment method of the Android device based on shared pipeline
CN105868109B (en) * 2016-03-28 2019-03-05 北京奇虎科技有限公司 A kind of improved mobile terminal application testing method and system
CN108833578B (en) * 2018-06-30 2021-07-23 武汉斗鱼网络科技有限公司 Method and related equipment for duplex communication based on FIFO named pipeline
CN114071628B (en) * 2022-01-06 2022-04-26 深圳佑驾创新科技有限公司 Terminal communication method and device based on android system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296157A (en) * 2007-04-26 2008-10-29 北京师范大学珠海分校 Multi-network card coordination communication method
CN102647625A (en) * 2012-05-03 2012-08-22 重庆邮电大学 Multiple video forwarding method based on port numbers and IP addresses
CN103605529A (en) * 2013-05-17 2014-02-26 华为终端有限公司 Method and device for processing application program

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523155B2 (en) * 2004-03-18 2009-04-21 International Business Machines Corporation Method, system and program product for using open mobile alliance (OMA) alerts to send client commands/requests to an OMA DM server
CN101957771A (en) * 2010-10-18 2011-01-26 彭扬 Method and device for installing mobile software for multiple mobile phones simultaneously
CN101996086A (en) * 2010-11-10 2011-03-30 彭扬 Method and device for installing mobile phone software by data line
CN102122256B (en) * 2011-03-28 2013-01-09 中国人民解放军国防科学技术大学 Pipe-type communication method and system for interprocess communication
CN102223655A (en) * 2011-07-05 2011-10-19 上海市安全生产科学研究所 Underlying multi-thread data transmission method of mobile communication
CN102355429A (en) * 2011-08-12 2012-02-15 北京思创银联科技股份有限公司 Pipeline-based inter-process message communication method
CN103077134B (en) * 2012-12-27 2015-10-28 飞天诚信科技股份有限公司 The method and apparatus of multi-pipe data transmission is realized in a kind of embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296157A (en) * 2007-04-26 2008-10-29 北京师范大学珠海分校 Multi-network card coordination communication method
CN102647625A (en) * 2012-05-03 2012-08-22 重庆邮电大学 Multiple video forwarding method based on port numbers and IP addresses
CN103605529A (en) * 2013-05-17 2014-02-26 华为终端有限公司 Method and device for processing application program

Also Published As

Publication number Publication date
CN103605529B (en) 2018-01-23
CN103605529A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
WO2014183556A1 (en) Application processing method and apparatus
US9342326B2 (en) Allocating identified intermediary tasks for requesting virtual machines within a trust sphere on a processing goal
US20200351354A1 (en) System and method for supporting data communication in a heterogeneous environment
WO2017071207A1 (en) Application installation method, corresponding apparatus, and application installation system
CN104572564B (en) It is a kind of to realize android movement equipment and the method for USB OTG host communications
WO2011127860A2 (en) Method, server and system for starting application
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
WO2017080487A1 (en) Calling method and device for cloud desktop
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
KR101754680B1 (en) Method, apparatus and system of recovering an operating system on a portable communication device
WO2011103729A1 (en) Method for registering, canceling self-defined shell program and corresponding system
WO2012041239A1 (en) System and method for input tool invocation and proxy device
WO2018166322A1 (en) Repairing method and device for system partition
CN104570967B (en) Long-range control method and system based on android system
WO2023226670A1 (en) Esim firmware upgrade method and apparatus, and device and medium
CN105704707A (en) Slave equipment and air upgrading method thereof
CN103442041A (en) Method, device and system for upgrading firmware of embedded device
CN107277107B (en) Application debugging method, device and system
CN109871288B (en) Method, device, equipment and medium for executing Android system command
CN106936869A (en) A kind of car interconnection plane method and system based on AOA agreements
US20140122437A1 (en) Dynamically provisioned storage server operating on a data communications network
WO2016161968A1 (en) Equipment for security information interaction
TWM468695U (en) Cloud connection monitoring system for processing equipment
CN105512544A (en) Method and device for obtaining superuser permission of mobile terminal
WO2015067052A1 (en) Method, device, and system for transmitting test command

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

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

Country of ref document: EP

Kind code of ref document: A1