WO2017020523A1 - Method and apparatus for remote control of terminal - Google Patents

Method and apparatus for remote control of terminal Download PDF

Info

Publication number
WO2017020523A1
WO2017020523A1 PCT/CN2015/099896 CN2015099896W WO2017020523A1 WO 2017020523 A1 WO2017020523 A1 WO 2017020523A1 CN 2015099896 W CN2015099896 W CN 2015099896W WO 2017020523 A1 WO2017020523 A1 WO 2017020523A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
session
controlled terminal
terminal
server
Prior art date
Application number
PCT/CN2015/099896
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 WO2017020523A1 publication Critical patent/WO2017020523A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present application relates to the field of communications technologies, and in particular, to the field of remote control technologies, and in particular, to a method and apparatus for remotely controlling a terminal.
  • the operation of the local terminal can be controlled by means of a computer keyboard or a mouse, but this control mode limits the range of motion when the user operates the terminal, and must be kept at a short distance from the computer to complete the corresponding control.
  • this solution can be alleviated by an external Bluetooth controller solution.
  • the smart phone can also remotely control the PC by connecting to a local area network hotspot established by a PC (personal computer).
  • remote control across the network is also required, reducing the dependence of remote control on additional communication devices and simplifying network setup.
  • the purpose of the present application is to propose an improved method and apparatus for remotely controlling a terminal to solve the technical problems mentioned in the background section above.
  • the application provides a method for remotely controlling a terminal, the method comprising: obtaining connection information from a controlled terminal, the connection information including a session parameter, the session parameter being the controlled terminal and the session a session parameter of a session established by the server; establishing a connection with the session server; sending a request to the session server to establish a transit connection to the controlled terminal, the request including the session parameter; receiving interaction information input by the user And generating a control command based on the interaction information; through the established transit connection And sending the control command to the controlled terminal.
  • the obtaining the connection information from the controlled terminal comprises: acquiring a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, the two-dimensional code being according to the The connection information is encoded; and the connection information is obtained according to the two-dimensional code.
  • the establishing a connection with the session server includes establishing a connection with the session server through a pre-installed application.
  • connection information further includes an address of a web server, the web server storing an HTML5 control page for establishing a connection with the session server; and the establishing a connection with the session server, including: Accessing the web server according to the address of the web server, downloading the control page from the web server, and connecting the session server through the control page.
  • the method further comprises: receiving, by the controlled terminal, the controlled terminal returned by the relay connection status information.
  • control command is an operational command for a document presentation application.
  • the present application provides an apparatus for remotely controlling a terminal, the apparatus comprising: a connection information acquiring unit configured to acquire connection information from a controlled terminal, the connection information including a session parameter, the session The parameter is a session parameter of the session established by the controlled terminal and the session server; the session establishing unit is configured to establish a connection with the session server; the transit connection establishing unit is configured to send the establishment arrival to the session server a request for a transit connection of the controlled terminal, the request including the session parameter; a control command generating unit configured to receive interaction information input by the user, generate a control command based on the interaction information; and a control command sending unit configured to be configured to: The control command is sent to the controlled terminal through the established transit connection.
  • a connection information acquiring unit configured to acquire connection information from a controlled terminal, the connection information including a session parameter, the session The parameter is a session parameter of the session established by the controlled terminal and the session server
  • the session establishing unit is configured to establish a connection with the session server
  • the transit connection establishing unit
  • connection information obtaining unit includes:
  • a two-dimensional code acquisition sub-unit configured to acquire a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, where the two-dimensional code is coded according to the connection information;
  • a code decoding subunit configured to acquire the connection letter according to the two-dimensional code interest.
  • the session establishing unit is configured to establish a connection with the session server through a pre-installed application.
  • connection information further includes an address of a web server
  • the web server stores an HTML5 control page for establishing a connection with the session server
  • the session establishing unit is configured to: according to the The address of the web server accesses the web server, downloads the control page from the web server, and connects the session server through the control page.
  • the apparatus further includes a return information receiving unit configured to receive the controlled terminal through the relay connection after the sending the control command to the controlled terminal by the relay connection Status information of the controlled terminal returned.
  • control command is an operational command for a document presentation application.
  • the method and device for remotely controlling a terminal provided by the present application, because the control terminal and the controlled terminal establish a transit connection through a session server in the public network, and the control terminal can forward the control command by using the session server, and can perform the control terminal on the controlled terminal. Remote control across the network. At the same time, this remote control method does not require additional communication equipment on the terminal, and does not require complicated network configuration, thereby reducing the cost and time of the user.
  • FIG. 1 is a flow chart of one embodiment of a method for remotely controlling a terminal in accordance with the present application
  • FIG. 2 is a flow diagram of establishing a connection with a session server in accordance with the present application
  • connection information from a controlled terminal by scanning a two-dimensional code according to the present application is a flow chart of obtaining connection information from a controlled terminal by scanning a two-dimensional code according to the present application
  • FIG. 4 is a schematic diagram of establishing a connection with a session server according to an address of a web server according to the present application
  • Figure 5 is a diagram of one embodiment of an apparatus for remotely controlling a terminal in accordance with the present application Schematic diagram.
  • FIG. 1 illustrates a flow 100 of one embodiment of a method for remotely controlling a terminal.
  • This embodiment is mainly illustrated by the method being applied to a control terminal including a display screen, which may include a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like.
  • the method for controlling a terminal includes the following steps:
  • Step 101 Acquire connection information from the controlled terminal.
  • control terminal for example, a smart phone for controlling the remote terminal acquires connection information from the controlled terminal (for example, a personal computer), and the connection information includes a session parameter, which is a pre-control of the controlled terminal and the session server.
  • the session parameters corresponding to the established session, and the unique session can be determined through the session parameters.
  • the session parameters may include an identifier of the controlled terminal in the session, a timestamp of the session, and the like.
  • the identifier of the controlled terminal may be the machine ID (identification number) of the controlled terminal.
  • the identifier of the controlled terminal corresponds to the unique session of the session.
  • connection information may also include a download address corresponding to an application that remotely controls the controlled terminal.
  • the control terminal and the controlled terminal end can directly access the session server through the public network without using a local area network hotspot or relying on Bluetooth.
  • Step 102 establishing a connection with the session server.
  • the control terminal can establish a connection with the session server through the public network.
  • the control terminal can obtain the address of the session server according to some parameters in the connection information, and the control terminal can also advance Store the address of the session server. For example, when the connection information includes a download address corresponding to an application that remotely controls the controlled terminal, the control terminal may download and install a corresponding application according to the download address, where the application includes the address of the session server, and the control terminal is installed and Once the app is launched, you can connect to the session server.
  • control terminal may need to connect multiple times when connecting to the session server. As shown in the flowchart 200 in FIG. 2, after the control terminal sends a connection request to the session server, it determines whether the connection is successfully established with the session server through the connection state information returned by the session server. If it is connected, proceed to the next step for subsequent operations. If it is not connected, it determines whether the number of connections has reached the maximum number of connections: if the maximum number of connections is not reached, then continue to connect to the session server; if the maximum number of connections has been reached, the connection between the control terminal and the session server fails.
  • Step 103 Send a request to the session server to establish a transit connection to the controlled terminal.
  • the control terminal after the control terminal establishes a connection with the session server, the control terminal sends a request for establishing a transit connection to the controlled terminal to the session server.
  • the request includes a session parameter.
  • the control terminal waits for the session server to establish a transit connection.
  • the session server matches the received session parameters with the session parameters received from the controlled terminal in advance.
  • the control terminal establishes a transit connection with the controlled terminal, and the control terminal can implement communication by receiving and forwarding data through the session server. .
  • Step 104 Receive interaction information input by a user, and generate a control command based on the interaction information.
  • control terminal may present a control interface, which may be the same as the interface of the controlled terminal, or may be an interface having only a few control components.
  • the receiving terminal may receive the user's input of the interactive information by receiving the touch signal on the control interface, or receiving the user input information through the keyboard, or receiving the mobile information of the mouse.
  • the interactive information is not limited to the ones listed above.
  • control terminal may establish a matching relationship between the different interaction information and the control command. After receiving the interaction information, the interaction information may be converted into the interaction information according to the matching relationship. Corresponding control commands.
  • Step 105 Send a control command to the controlled terminal through the established transit connection.
  • the session server After the control terminal establishes the request for the transit connection to be accepted by the session server, the session server establishes a transit connection between the control terminal and the controlled terminal according to the session parameter to establish the control terminal to reach the controlled terminal session parameter.
  • the control terminal can send the above control command to the controlled terminal through the established transit connection.
  • obtaining connection information from the controlled terminal includes:
  • Step 301 Acquire a two-dimensional code from the controlled terminal in response to the scanning action on the controlled terminal.
  • control terminal When the control terminal scans the controlled terminal, the control terminal responds to the scanning action. Thereafter, the control terminal can start a scanning device such as a scanner or a camera to read the two-dimensional code image displayed by the controlled terminal.
  • a scanning device such as a scanner or a camera
  • a 2-dimensional bar code is a black-and-white graphic that records data symbol information in a plane (two-dimensional direction) with a certain geometric pattern.
  • the code is used skillfully to construct a computer.
  • the concept of the "0" and “1" bitstreams of the internal logic base uses a number of geometric shapes corresponding to the binary to represent the literal value information, and is automatically read by the image input device or the photoelectric scanning device to realize automatic information processing.
  • the two-dimensional code in the optional implementation is that the control terminal is coded according to the connection information, and the two-dimensional barcode/two-dimensional code may be a stacked/row row two-dimensional barcode, or may be a matrix two-dimensional barcode,
  • the code system of the code can be any one of Data Matrix, Maxi Code, Aztec, QR Code, Vericode, PDF417, Ultracode, Code 49, and Code 16K.
  • Those skilled in the art should understand that the coding manner of the two-dimensional code in the optional implementation is not limited to the ones listed above.
  • control terminal can acquire the two-dimensional code including the above connection information from the controlled terminal.
  • Step 302 Acquire connection information according to the two-dimensional code.
  • the control terminal After acquiring the two-dimensional code, the control terminal decodes the two-dimensional code image by using a decoding algorithm, and the decoding algorithm used corresponds to the encoding algorithm of the controlled terminal. After the control terminal decodes the two-dimensional code image, the connection information corresponding to the two-dimensional code can be obtained.
  • connection information can be quickly obtained, which helps to establish a connection quickly and quickly, and reduces the operation time of the user.
  • establishing a connection with the session server includes establishing a connection with the session server through the pre-installed application.
  • the control terminal and the controlled terminal can be pre-installed with an application that can be remotely controlled before the connection is made.
  • the application installed in the control terminal contains the address of the session server, and the control terminal only needs to start the application, and the application can be used to establish a connection with the session server.
  • the control terminal directly establishes a connection with the session server through the pre-installed application, and the control terminal has fewer connection steps, and does not need to perform operations such as downloading, thereby reducing the waiting time of the user.
  • connection information further includes an address of the web server, where the web server stores an HTML5 control page, the control page is used to establish a connection with the session server, and the session server Establishing the connection comprises: accessing the web server according to the address of the web server; downloading the control page from the web server; and connecting the session server through the control page.
  • the connection information obtained by the control terminal from the controlled terminal further includes an address of the web server, and the web server stores an HTML5 control page that can be used to connect to the session server.
  • Web Server is commonly referred to as a Web server. Its main function is to provide online information browsing services.
  • the web server is used to store control pages.
  • HTML5 is the fifth major revision of HyperText Markup Language (HTML), the core language of the World Wide Web and the standard universal markup language.
  • WebSocket (Web Sockets) provided by HTML5 is a new protocol that enables two-way communication between the browser and the server.
  • the address of the session server may be stored in the HTML5 control page.
  • FIG. 4 shows a schematic diagram of the control terminal establishing a connection with the session server according to the address of the web server.
  • the control terminal can access the web server according to the address of the web server in the connection information, and download the above control page from the web server.
  • the control terminal can load the downloaded control page through the browser, and can use the session server address stored in the page to locate the session server, and simultaneously use the HTML5 WebSocket protocol.
  • the session server establishes a connection.
  • connection By connecting the HTML5 page through the browser to establish a connection with the session server, the connection can be established directly by means of a universal browser, so that the user does not have to install additional applications in the control terminal, and the storage space of the control terminal is reduced.
  • the method further includes: receiving status information of the controlled terminal returned by the controlled terminal through the transit connection.
  • the control terminal sends the control command to the controlled terminal through the transit connection, and can wait for feedback from the controlled terminal. After receiving the control command, the controlled terminal performs corresponding operations according to the control command. These operations may cause the state of the controlled terminal to change.
  • the controlled terminal may send its own state information back to the control terminal through the relay connection.
  • the control terminal can receive status information of the controlled terminal returned through the relay connection.
  • the control terminal may also display the status information of the controlled terminal on the control interface, so as to use the user of the control terminal to know the current state of the controlled terminal, and also enable the user to know whether the controlled terminal completes the execution of the control command.
  • control command is an operation instruction for a document presentation application.
  • an optional control command is used for the operation of the document presentation application.
  • the control commands for the PPT may be an auto play command, a pause command, an instruction to play the next slide, an instruction to play the previous slide, a slide show. Slice positioning command, end projection command, and the like.
  • the control instructions are not limited to the ones listed above.
  • the above document presentation application is not limited to PPT.
  • the application scenario may be that the user can use the smart phone as the control terminal to control the PC as the controlled terminal. Because the control terminal and the controlled terminal can access the session through the public network in this embodiment.
  • the server establishes a connection and forwards the control command through the session server, and the control terminal can implement remote control of the controlled terminal across the network, and is no longer limited to the internal area of the local area network.
  • this remote control method does not require installation of additional communication devices on the terminal, nor does it require complicated network configuration, reducing the cost and time of the user.
  • the present application provides An embodiment of a device for remotely controlling a terminal, the device embodiment corresponding to the method embodiment shown in FIG. 1, the device being specifically applicable to a terminal device.
  • the apparatus 500 for remotely controlling a terminal includes: a connection information acquiring unit 501, a session establishing unit 502, a relay connection establishing unit 503, a control command generating unit 504, and a control command sending unit 505. .
  • the connection information obtaining unit 501 is configured to acquire connection information from the controlled terminal, where the connection information includes a session parameter, the session parameter is a session parameter of the session established by the controlled terminal and the session server, and the session establishing unit 502 is configured to use Establishing a connection with the session server; the transit connection establishing unit 503 is configured to send a request to the session server to establish a transit connection to the controlled terminal, the request includes the session parameter; and the control command generating unit 504 is configured And receiving the interaction information input by the user, and generating a control command based on the interaction information; the control command sending unit 505 is configured to send the control command to the controlled terminal by using the established transit connection.
  • connection information acquiring unit 501 of the device 500 acquires connection information from a controlled terminal (for example, a PC), where the connection information includes a session parameter, where the session parameter corresponds to a session established in advance by the controlled terminal and the session server. Session parameters, through the session parameters to determine a unique session.
  • a controlled terminal for example, a PC
  • Session parameters through the session parameters to determine a unique session.
  • the session establishing unit 502 can establish a connection with the session server through the public network.
  • the session establishing unit 502 can obtain the address of the session server according to some parameters in the connection information, and can also obtain the address of the pre-stored session server from the control terminal.
  • the relay connection establishing unit 503 may send a request for establishing a transit connection to the controlled terminal to the session server, and wait for the session server after sending the request. Verify and match.
  • the request includes a session parameter.
  • control command generating unit 504 may present a control interface, which may be the same as the interface of the controlled terminal, or may be an interface having only a few control components.
  • the receiving of the interaction information input by the user by the control command generating unit 504 may be receiving a touch signal of the user on the control interface, or receiving input information that the user taps through the keyboard, or may be receiving movement information of the mouse.
  • Control command generation unit 504 can establish a matching relationship between different interaction information and the control command. After receiving the interaction information, the interaction information can be converted into a control command according to the corresponding matching relationship.
  • control command sending unit 505 can send the above control command to the controlled terminal by establishing a good transit connection.
  • the connection information acquiring unit 501 includes: a two-dimensional code acquiring subunit (not shown) configured to obtain a two-dimensional code from the controlled terminal in response to a scanning action of the user.
  • the two-dimensional code is encoded according to the connection information; the two-dimensional code decoding subunit (not shown) is configured to acquire connection information according to the two-dimensional code.
  • the above-mentioned apparatus 500 for remotely controlling a terminal further includes some other well-known structures, such as a processor, a memory, etc., in order to unnecessarily obscure the embodiments of the present disclosure, these well-known structures are not shown in FIG. Out.
  • the units involved in the embodiments of the present application may be implemented by software or by hardware.
  • the described unit may also be provided in the processor, for example, as a processor including a connection information acquisition unit, a session establishment unit, a relay connection establishment unit, a control command generation unit, and a control command transmission unit.
  • the name of these units does not constitute a limitation on the unit itself in some cases.
  • the connection information acquisition unit may also be described as "a unit configured to acquire connection information from a controlled terminal".
  • the present application further provides a computer readable storage medium, which may be a computer readable storage medium included in the apparatus in the above embodiment; or may exist separately, not assembled Computer readable storage medium into the terminal.
  • the computer readable storage medium stores one or more programs that are used by one or more processors to perform the methods for remotely controlling a terminal as described herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a method and apparatus for remote control of a terminal. A specific implementation manner of the method comprises: obtaining connection information from a controlled terminal, the connection information comprising a session parameter, the session parameter being a session parameter of a session established by the controlled terminal with a session server; establishing a connection to the session server; sending, to the session server, a request for establishing a transfer connection to the controlled terminal, the request comprising the session parameter; receiving interaction information input by a user, and generating a control command on the basis of the interaction information; and sending the control command to the controlled terminal by using the established transfer connection. The implementation manner realizes cross-network remote control of a terminal.

Description

用于远程控制终端的方法和装置Method and apparatus for remotely controlling a terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求于2015年07月31日提交的中国专利申请号为“201510463492.2”的优先权,其全部内容作为整体并入本申请中。The present application claims priority to Chinese Patent Application No. 201510463492.2, filed on Jul. 31, 2015, the entire disclosure of which is incorporated herein in its entirety.
技术领域Technical field
本申请涉及通讯技术领域,具体涉及远程控制技术领域,尤其涉及用于远程控制终端的方法、装置。The present application relates to the field of communications technologies, and in particular, to the field of remote control technologies, and in particular, to a method and apparatus for remotely controlling a terminal.
背景技术Background technique
对本地终端的操作可借助计算机键盘或鼠标来进行控制,但这种控制模式限制了用户操作终端时的活动范围,必须与计算机保持较短的距离才能完成相应的控制。目前,通过外接蓝牙控制器的解决方案可以缓解这一问题。此外,智能手机通过连接PC(personal computer,个人计算机)建立的局域网热点也能实现对PC的远程控制。然而,还需实现跨网络的远程控制、减弱远程控制对额外通信设备的依赖以及简化网络设置。The operation of the local terminal can be controlled by means of a computer keyboard or a mouse, but this control mode limits the range of motion when the user operates the terminal, and must be kept at a short distance from the computer to complete the corresponding control. Currently, this solution can be alleviated by an external Bluetooth controller solution. In addition, the smart phone can also remotely control the PC by connecting to a local area network hotspot established by a PC (personal computer). However, remote control across the network is also required, reducing the dependence of remote control on additional communication devices and simplifying network setup.
发明内容Summary of the invention
本申请的目的在于提出一种改进的用于远程控制终端的方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of the present application is to propose an improved method and apparatus for remotely controlling a terminal to solve the technical problems mentioned in the background section above.
一方面,本申请提供了一种用于远程控制终端的方法,所述方法包括:从受控终端获取连接信息,所述连接信息包括会话参数,所述会话参数为所述受控终端与会话服务器所建立会话的会话参数;与所述会话服务器建立连接;向所述会话服务器发送建立到达所述受控终端的中转连接的请求,所述请求包含所述会话参数;接收用户输入的交互信息,并基于所述交互信息生成控制命令;通过所建立的中转连 接向所述受控终端发送所述控制命令。In one aspect, the application provides a method for remotely controlling a terminal, the method comprising: obtaining connection information from a controlled terminal, the connection information including a session parameter, the session parameter being the controlled terminal and the session a session parameter of a session established by the server; establishing a connection with the session server; sending a request to the session server to establish a transit connection to the controlled terminal, the request including the session parameter; receiving interaction information input by the user And generating a control command based on the interaction information; through the established transit connection And sending the control command to the controlled terminal.
在某些实施方式中,所述从受控终端获取连接信息包括:响应于对所述受控终端的扫描动作,从所述受控终端获取二维码,所述二维码是根据所述连接信息编码而成的;根据所述二维码获取所述连接信息。In some embodiments, the obtaining the connection information from the controlled terminal comprises: acquiring a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, the two-dimensional code being according to the The connection information is encoded; and the connection information is obtained according to the two-dimensional code.
在某些实施方式中,所述与所述会话服务器建立连接包括:通过预先安装的应用与所述会话服务器建立连接。In some embodiments, the establishing a connection with the session server includes establishing a connection with the session server through a pre-installed application.
在某些实施方式中,所述连接信息还包括网页服务器的地址,所述网页服务器存储有用于与所述会话服务器建立连接的HTML5控制页面;以及所述与所述会话服务器建立连接,包括:根据所述网页服务器的地址访问所述网页服务器,从所述网页服务器中下载所述控制页面,通过所述控制页面连接所述会话服务器。In some embodiments, the connection information further includes an address of a web server, the web server storing an HTML5 control page for establishing a connection with the session server; and the establishing a connection with the session server, including: Accessing the web server according to the address of the web server, downloading the control page from the web server, and connecting the session server through the control page.
在某些实施方式中,所述通过所述中转连接向所述受控终端发送所述控制命令之后,所述方法还包括:接收所述受控终端通过中转连接返回的所述受控终端的状态信息。In some embodiments, after the sending the control command to the controlled terminal by using the relay connection, the method further comprises: receiving, by the controlled terminal, the controlled terminal returned by the relay connection status information.
在某些实施方式中,所述控制命令是用于文稿演示用应用的操作指令。In some embodiments, the control command is an operational command for a document presentation application.
第二方面,本申请提供了一种用于远程控制终端的装置,所述装置包括:连接信息获取单元,配置用于从受控终端获取连接信息,所述连接信息包括会话参数,所述会话参数为所述受控终端与会话服务器所建立会话的会话参数;会话建立单元,配置用于与所述会话服务器建立连接;中转连接建立单元,配置用于向所述会话服务器发送建立到达所述受控终端的中转连接的请求,所述请求包含所述会话参数;控制命令生成单元,配置用于接收用户输入的交互信息,基于所述交互信息生成控制命令;控制命令发送单元,配置用于通过所建立的中转连接向所述受控终端发送所述控制命令。In a second aspect, the present application provides an apparatus for remotely controlling a terminal, the apparatus comprising: a connection information acquiring unit configured to acquire connection information from a controlled terminal, the connection information including a session parameter, the session The parameter is a session parameter of the session established by the controlled terminal and the session server; the session establishing unit is configured to establish a connection with the session server; the transit connection establishing unit is configured to send the establishment arrival to the session server a request for a transit connection of the controlled terminal, the request including the session parameter; a control command generating unit configured to receive interaction information input by the user, generate a control command based on the interaction information; and a control command sending unit configured to be configured to: The control command is sent to the controlled terminal through the established transit connection.
在某些实施方式中,所述连接信息获取单元包括:In some embodiments, the connection information obtaining unit includes:
二维码获取子单元,配置用于响应于对所述受控终端的扫描动作,从所述受控终端获取二维码,所述二维码是根据所述连接信息编码而成的;二维码解码子单元,配置用于根据所述二维码获取所述连接信 息。a two-dimensional code acquisition sub-unit, configured to acquire a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, where the two-dimensional code is coded according to the connection information; a code decoding subunit configured to acquire the connection letter according to the two-dimensional code interest.
在某些实施方式中,所述会话建立单元配置用于通过预先安装的应用与所述会话服务器建立连接。In some embodiments, the session establishing unit is configured to establish a connection with the session server through a pre-installed application.
在某些实施方式中,所述连接信息还包括网页服务器的地址,所述网页服务器存储有用于与所述会话服务器建立连接的HTML5控制页面;以及所述会话建立单元配置用于:根据所述网页服务器的地址访问所述网页服务器,从所述网页服务器中下载所述控制页面,通过所述控制页面连接所述会话服务器。In some embodiments, the connection information further includes an address of a web server, the web server stores an HTML5 control page for establishing a connection with the session server; and the session establishing unit is configured to: according to the The address of the web server accesses the web server, downloads the control page from the web server, and connects the session server through the control page.
在某些实施方式中,所述装置还包括返回信息接收单元,配置用于在所述通过所述中转连接向所述受控终端发送所述控制命令之后,接收所述受控终端通过中转连接返回的所述受控终端的状态信息。In some embodiments, the apparatus further includes a return information receiving unit configured to receive the controlled terminal through the relay connection after the sending the control command to the controlled terminal by the relay connection Status information of the controlled terminal returned.
在某些实施方式中,所述控制命令是用于文稿演示用应用的操作指令。In some embodiments, the control command is an operational command for a document presentation application.
本申请提供的用于远程控制终端的方法和装置,由于控制终端和受控终端通过公网中的会话服务器建立中转连接,控制终端借助该会话服务器对控制命令的转发,可对受控终端进行跨网络的远程控制。同时这种远程控制方式,不需要在终端上配备额外的通信设备,也不必进行复杂的网络配置,减少了用户的成本和时间。The method and device for remotely controlling a terminal provided by the present application, because the control terminal and the controlled terminal establish a transit connection through a session server in the public network, and the control terminal can forward the control command by using the session server, and can perform the control terminal on the controlled terminal. Remote control across the network. At the same time, this remote control method does not require additional communication equipment on the terminal, and does not require complicated network configuration, thereby reducing the cost and time of the user.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1是根据本申请的用于远程控制终端的方法的一个实施例的流程图;1 is a flow chart of one embodiment of a method for remotely controlling a terminal in accordance with the present application;
图2是根据本申请的与会话服务器建立连接的流程图;2 is a flow diagram of establishing a connection with a session server in accordance with the present application;
图3是根据本申请的利用扫描二维码从受控终端获取连接信息进的流程图;3 is a flow chart of obtaining connection information from a controlled terminal by scanning a two-dimensional code according to the present application;
图4是根据本申请的根据网页服务器的地址与会话服务器建立连接的示意图;4 is a schematic diagram of establishing a connection with a session server according to an address of a web server according to the present application;
图5是根据本申请的用于远程控制终端的装置的一个实施例的结 构示意图。Figure 5 is a diagram of one embodiment of an apparatus for remotely controlling a terminal in accordance with the present application Schematic diagram.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings.
请参考图1,其示出了用于远程控制终端的方法的一个实施例的流程100。本实施例主要以该方法应用于包含有显示屏的控制终端中来举例说明,该控制终端可以包括智能手机、平板电脑、膝上型便携计算机和台式计算机等等。所述的用于控制终端的方法,包括以下步骤:Please refer to FIG. 1, which illustrates a flow 100 of one embodiment of a method for remotely controlling a terminal. This embodiment is mainly illustrated by the method being applied to a control terminal including a display screen, which may include a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. The method for controlling a terminal includes the following steps:
步骤101,从受控终端获取连接信息。Step 101: Acquire connection information from the controlled terminal.
在本实施例中,控制终端(例如用于控制远程终端的智能手机)从受控终端(例如个人计算机)处获取连接信息,连接信息包括会话参数,该会话参数是被控制终端与会话服务器预先建立的会话所对应的会话参数,通过会话参数可确定唯一的会话。In this embodiment, the control terminal (for example, a smart phone for controlling the remote terminal) acquires connection information from the controlled terminal (for example, a personal computer), and the connection information includes a session parameter, which is a pre-control of the controlled terminal and the session server. The session parameters corresponding to the established session, and the unique session can be determined through the session parameters.
其中,会话参数可包括会话中受控终端的标识符、会话的时间戳等。受控终端的标识符可以是受控终端的机器ID(identification,身份标识号码)。受控终端的标识符与会话的时间戳对应唯一的会话。The session parameters may include an identifier of the controlled terminal in the session, a timestamp of the session, and the like. The identifier of the controlled terminal may be the machine ID (identification number) of the controlled terminal. The identifier of the controlled terminal corresponds to the unique session of the session.
此外,连接信息还可以包括对受控终端进行远程控制的应用所对应的下载地址。In addition, the connection information may also include a download address corresponding to an application that remotely controls the controlled terminal.
其中,控制终端和受控终端端均可直接通过公网访问该会话服务器,而不必借助于局域网热点或是依赖蓝牙。The control terminal and the controlled terminal end can directly access the session server through the public network without using a local area network hotspot or relying on Bluetooth.
步骤102,与会话服务器建立连接。 Step 102, establishing a connection with the session server.
控制终端可通过公网与会话服务器建立连接。控制终端可以根据连接信息中的某些参数获得会话服务器的地址,控制终端也可以预先 存储会话服务器的地址。例如,当连接信息中包含对受控终端进行远程控制的应用所对应的下载地址时,控制终端可根据下载地址下载并安装相应的应用,该应用中含有上述会话服务器的地址,控制终端安装并启动该应用后即可实现与会话服务器的连接。The control terminal can establish a connection with the session server through the public network. The control terminal can obtain the address of the session server according to some parameters in the connection information, and the control terminal can also advance Store the address of the session server. For example, when the connection information includes a download address corresponding to an application that remotely controls the controlled terminal, the control terminal may download and install a corresponding application according to the download address, where the application includes the address of the session server, and the control terminal is installed and Once the app is launched, you can connect to the session server.
需要说明的是,控制终端在连接会话服务器时,可能需要经过多次连接。如图2中流程图200所示,控制终端向会话服务器发送连接请求后,通过会话服务器返回的连接状态信息判断是否成功与会话服务器建立连接。如果连接上,则进入下一步骤,进行后续操作。如果未连接上,对连接次数是否已经达到最大连接次数进行判断:如果未达到最大连接次数,则继续连接会话服务器;如果已经达到最大连接次数,则控制终端与会话服务器的连接失败。It should be noted that the control terminal may need to connect multiple times when connecting to the session server. As shown in the flowchart 200 in FIG. 2, after the control terminal sends a connection request to the session server, it determines whether the connection is successfully established with the session server through the connection state information returned by the session server. If it is connected, proceed to the next step for subsequent operations. If it is not connected, it determines whether the number of connections has reached the maximum number of connections: if the maximum number of connections is not reached, then continue to connect to the session server; if the maximum number of connections has been reached, the connection between the control terminal and the session server fails.
步骤103,向会话服务器发送建立到达受控终端的中转连接的请求。Step 103: Send a request to the session server to establish a transit connection to the controlled terminal.
在本实施例中,在控制终端与会话服务器建立连接后,控制终端向上述会话服务器发送建立到达所述受控终端的中转连接的请求。其中,该请求中包括有会话参数。在发送上述请求后,控制终端等待会话服务器建立中转连接。In this embodiment, after the control terminal establishes a connection with the session server, the control terminal sends a request for establishing a transit connection to the controlled terminal to the session server. Among them, the request includes a session parameter. After transmitting the above request, the control terminal waits for the session server to establish a transit connection.
会话服务器将接收的该会话参数与预先从受控终端接收的会话参数进行匹配,参数一致则为控制终端与受控终端建立中转连接,控制终端即可通过会话服务器对数据的接收与转发实现通信。The session server matches the received session parameters with the session parameters received from the controlled terminal in advance. When the parameters are consistent, the control terminal establishes a transit connection with the controlled terminal, and the control terminal can implement communication by receiving and forwarding data through the session server. .
步骤104,接收用户输入的交互信息,并基于交互信息生成控制命令。Step 104: Receive interaction information input by a user, and generate a control command based on the interaction information.
本实施例中,控制终端可呈现出控制界面,该控制界面可以与受控终端的界面相同,也可以是只具有几个控制组件的界面。其中,控制终端对用户输入的交互信息的接收可以是接收用户在控制界面上的触摸信号,也可以是接收用户通过键盘敲击的输入信息,还可以是接收鼠标的移动信息。本领域技术人员应当了解,交互信息不限于以上列出的几种。In this embodiment, the control terminal may present a control interface, which may be the same as the interface of the controlled terminal, or may be an interface having only a few control components. The receiving terminal may receive the user's input of the interactive information by receiving the touch signal on the control interface, or receiving the user input information through the keyboard, or receiving the mobile information of the mouse. Those skilled in the art will appreciate that the interactive information is not limited to the ones listed above.
在本实施例中,控制终端可将不同的交互信息与控制命令建立匹配关系,当接收到交互信息后,即可根据匹配关系将交互信息转化为 对应的控制命令。In this embodiment, the control terminal may establish a matching relationship between the different interaction information and the control command. After receiving the interaction information, the interaction information may be converted into the interaction information according to the matching relationship. Corresponding control commands.
步骤105,通过所建立的中转连接向受控终端发送控制命令。Step 105: Send a control command to the controlled terminal through the established transit connection.
控制终端建立中转连接的请求被会话服务器接受后,会话服务器即根据会话参数为控制终端建立到达受控终端会话参数在控制终端与受控终端之间建立中转连接。控制终端即可通过建立好的中转连接向受控终端发送上述控制命令。After the control terminal establishes the request for the transit connection to be accepted by the session server, the session server establishes a transit connection between the control terminal and the controlled terminal according to the session parameter to establish the control terminal to reach the controlled terminal session parameter. The control terminal can send the above control command to the controlled terminal through the established transit connection.
在本实施例的一个可选的实现方式中,从受控终端获取连接信息如图3中的流程300所示,包括:In an optional implementation manner of this embodiment, obtaining connection information from the controlled terminal, as shown in the process 300 in FIG. 3, includes:
步骤301,响应于对受控终端的扫描动作,从受控终端获取二维码。Step 301: Acquire a two-dimensional code from the controlled terminal in response to the scanning action on the controlled terminal.
控制终端在对受控终端进行扫描时,控制终端即对扫描动作进行响应。其后,控制终端可以启动扫描仪、摄像头等扫描设备读取受控终端显示的二维码图像。When the control terminal scans the controlled terminal, the control terminal responds to the scanning action. Thereafter, the control terminal can start a scanning device such as a scanner or a camera to read the two-dimensional code image displayed by the controlled terminal.
二维码(2-dimensional bar code)是用某种特定的几何图形按一定规律在平面(二维方向上)分布的黑白相间的图形记录数据符号信息的;在代码编制上巧妙地利用构成计算机内部逻辑基础的“0”、“1”比特流的概念,使用若干个与二进制相对应的几何形体来表示文字数值信息,通过图象输入设备或光电扫描设备自动识读以实现信息自动处理。该可选实施方式中的二维码是控制终端根据连接信息编码而成,该二维条码/二维码可以是堆叠式/行排式二维条码,也可以是矩阵式二维条码,二维码的码制可以是Data Matrix、Maxi Code、Aztec、QR Code,Vericode、PDF417、Ultracode、Code 49、Code 16K中的任意一种。本领域技术人员应当了解,该可选实现方式中二维码的编码方式不限于以上列出的几种。A 2-dimensional bar code is a black-and-white graphic that records data symbol information in a plane (two-dimensional direction) with a certain geometric pattern. The code is used skillfully to construct a computer. The concept of the "0" and "1" bitstreams of the internal logic base uses a number of geometric shapes corresponding to the binary to represent the literal value information, and is automatically read by the image input device or the photoelectric scanning device to realize automatic information processing. The two-dimensional code in the optional implementation is that the control terminal is coded according to the connection information, and the two-dimensional barcode/two-dimensional code may be a stacked/row row two-dimensional barcode, or may be a matrix two-dimensional barcode, The code system of the code can be any one of Data Matrix, Maxi Code, Aztec, QR Code, Vericode, PDF417, Ultracode, Code 49, and Code 16K. Those skilled in the art should understand that the coding manner of the two-dimensional code in the optional implementation is not limited to the ones listed above.
控制终端通过这种方式,即可从受控终端处获取到包含上述连接信息的二维码。In this way, the control terminal can acquire the two-dimensional code including the above connection information from the controlled terminal.
步骤302,根据二维码获取连接信息。Step 302: Acquire connection information according to the two-dimensional code.
控制终端在获取二维码后,通过解码算法对二维码图像进行解码,所用的解码算法与受控终端的编码算法相对应。控制终端通过对二维码图像的解码后,即可获得二维码对应的连接信息。 After acquiring the two-dimensional code, the control terminal decodes the two-dimensional code image by using a decoding algorithm, and the decoding algorithm used corresponds to the encoding algorithm of the controlled terminal. After the control terminal decodes the two-dimensional code image, the connection information corresponding to the two-dimensional code can be obtained.
通过读取二维码的方式可实现连接信息的快速获取,有助于快捷和迅速的建立连接,减少用户的操作时间。By reading the two-dimensional code, the connection information can be quickly obtained, which helps to establish a connection quickly and quickly, and reduces the operation time of the user.
在本实施例的一些可选的实现方式中,与会话服务器建立连接包括:通过预先安装的应用与会话服务器建立连接。在进行连接前,控制终端和受控终端可以预先安装可进行远程控制的应用。安装在控制终端的应用中含有上述会话服务器的地址,控制终端只需启动该应用,便可利用该应用与会话服务器建立连接。控制终端通过预先安装的应用直接与会话服务器建立连接,控制终端的连接步骤更少,不必进行下载等操作,减少了用户的等待时间。In some optional implementations of this embodiment, establishing a connection with the session server includes establishing a connection with the session server through the pre-installed application. The control terminal and the controlled terminal can be pre-installed with an application that can be remotely controlled before the connection is made. The application installed in the control terminal contains the address of the session server, and the control terminal only needs to start the application, and the application can be used to establish a connection with the session server. The control terminal directly establishes a connection with the session server through the pre-installed application, and the control terminal has fewer connection steps, and does not need to perform operations such as downloading, thereby reducing the waiting time of the user.
在本实施例的一些可选的实现方式中,连接信息还包括网页服务器的地址,所述网页服务器存储有HTML5控制页面,所述控制页面用于与所述会话服务器建立连接;以及与会话服务器建立连接,包括:根据网页服务器的地址访问网页服务器;从所述网页服务器中下载所述控制页面;通过控制页面连接所述会话服务器。In some optional implementation manners of the embodiment, the connection information further includes an address of the web server, where the web server stores an HTML5 control page, the control page is used to establish a connection with the session server, and the session server Establishing the connection comprises: accessing the web server according to the address of the web server; downloading the control page from the web server; and connecting the session server through the control page.
其中,控制终端从受控终端获取的连接信息中还包括网页服务器的地址,网页服务器中存储有可用于连接会话服务器的HTML5控制页面。网页服务器(Web Server)通常称为Web服务器,主要功能是提供网上信息浏览服务。在该可选的实现方式中,Web服务器用于存储控制页面。HTML5是万维网的核心语言、标准通用标记语言下的一个应用超文本标记语言(HyperText Markup Language,HTML)的第五次重大修改。HTML5提供的WebSocket(网络套接字)是一种新的协议,可实现浏览器与服务器的双向通讯。在该可选的实现的方式中,HTML5控制页面中可以存储有上述会话服务器的地址,当控制终端使用浏览器加载该控制页面后,即可用于实现控制终端与会话服务器的通信。The connection information obtained by the control terminal from the controlled terminal further includes an address of the web server, and the web server stores an HTML5 control page that can be used to connect to the session server. Web Server is commonly referred to as a Web server. Its main function is to provide online information browsing services. In this alternative implementation, the web server is used to store control pages. HTML5 is the fifth major revision of HyperText Markup Language (HTML), the core language of the World Wide Web and the standard universal markup language. WebSocket (Web Sockets) provided by HTML5 is a new protocol that enables two-way communication between the browser and the server. In the optional implementation manner, the address of the session server may be stored in the HTML5 control page. When the control terminal loads the control page by using the browser, the control terminal can be used to implement communication between the control terminal and the session server.
图4示出了控制终端根据网页服务器的地址与会话服务器建立连接的示意图。控制终端根据连接信息中网页服务器的地址,即可访问该Web服务器,并从该Web服务器上下载上述控制页面。控制终端可通过浏览器加载下载的控制页面,利用页面中存储的会话服务器地址即可定位到上述会话服务器,同时借助HTML5的WebSocket协议与 会话服务器建立连接。FIG. 4 shows a schematic diagram of the control terminal establishing a connection with the session server according to the address of the web server. The control terminal can access the web server according to the address of the web server in the connection information, and download the above control page from the web server. The control terminal can load the downloaded control page through the browser, and can use the session server address stored in the page to locate the session server, and simultaneously use the HTML5 WebSocket protocol. The session server establishes a connection.
通过浏览器加载HTML5页面与会话服务器建立连接,直接借助通用的浏览器即可建立连接,使得用户不必在控制终端安装额外的应用,减少对控制终端存储空间的占用。By connecting the HTML5 page through the browser to establish a connection with the session server, the connection can be established directly by means of a universal browser, so that the user does not have to install additional applications in the control terminal, and the storage space of the control terminal is reduced.
在本实施例的一些可选的实现方式中,通过中转连接向受控终端发送控制命令之后,所述方法还包括:接收所述受控终端通过中转连接返回的受控终端的状态信息。In some optional implementation manners of this embodiment, after the control command is sent to the controlled terminal by using the transit connection, the method further includes: receiving status information of the controlled terminal returned by the controlled terminal through the transit connection.
控制终端将控制命令通过中转连接发送给受控终端,可等待受控终端的反馈。受控终端在接收到控制命令后会根据控制命令执行相应的操作,这些操作会导致受控终端状态的改变,受控终端可以通过中转连接将自身的状态信息发回控制终端。控制终端可以接收通过中转连接返回的受控终端的状态信息。控制终端还可将受控终端的状态信息显示在控制界面上,以便于使用控制终端的用户了解受控终端当前的状态,也可以使用户了解到受控终端是否完成了对控制命令的执行。The control terminal sends the control command to the controlled terminal through the transit connection, and can wait for feedback from the controlled terminal. After receiving the control command, the controlled terminal performs corresponding operations according to the control command. These operations may cause the state of the controlled terminal to change. The controlled terminal may send its own state information back to the control terminal through the relay connection. The control terminal can receive status information of the controlled terminal returned through the relay connection. The control terminal may also display the status information of the controlled terminal on the control interface, so as to use the user of the control terminal to know the current state of the controlled terminal, and also enable the user to know whether the controlled terminal completes the execution of the control command.
在本实施例的一些可选的实现方式中,所述控制命令是用于文稿演示用应用的操作指令。In some optional implementations of this embodiment, the control command is an operation instruction for a document presentation application.
本实施例中,一种可选的控制命令是用于对文稿演示应用的操作。以PPT(Microsoft Office PowerPoint,微软公司的演示文稿应用)为例,对PPT的控制指令可以是自动播放指令、暂停指令、播放下一张幻灯片的指令、播放上一张幻灯片的指令、幻灯片定位指令、结束放映指令等。本领域技术人员应当理解,控制指令不限于以上列出的几种。上述的文稿演示应用也不局限于PPT。In this embodiment, an optional control command is used for the operation of the document presentation application. Taking PPT (Microsoft Office PowerPoint, Microsoft's presentation application) as an example, the control commands for the PPT may be an auto play command, a pause command, an instruction to play the next slide, an instruction to play the previous slide, a slide show. Slice positioning command, end projection command, and the like. Those skilled in the art will appreciate that the control instructions are not limited to the ones listed above. The above document presentation application is not limited to PPT.
对于本实施例而言,应用的场景可以为,用户可使用智能手机作为控制终端,对作为受控终端的PC进行控制,由于本实施例中控制终端与受控终端借助公网可访问的会话服务器建立连接,并通过该会话服务器转发控制命令,控制终端可实现对受控终端的跨网络远程控制,不再局限于局域网内部。同时,这种远程控制方法也不必在终端上安装额外的通信设备,也不需要进行复杂的网络配置,减少了用户的成本和时间。For the embodiment, the application scenario may be that the user can use the smart phone as the control terminal to control the PC as the controlled terminal. Because the control terminal and the controlled terminal can access the session through the public network in this embodiment. The server establishes a connection and forwards the control command through the session server, and the control terminal can implement remote control of the controlled terminal across the network, and is no longer limited to the internal area of the local area network. At the same time, this remote control method does not require installation of additional communication devices on the terminal, nor does it require complicated network configuration, reducing the cost and time of the user.
进一步参考图5,作为对上述各图所示方法的实现,本申请提供 了一种用于远程控制终端的装置的一个实施例,该装置实施例与图1所示的方法实施例相对应,该装置具体可以应用于终端设备中。With further reference to FIG. 5, as an implementation of the method shown in the above figures, the present application provides An embodiment of a device for remotely controlling a terminal, the device embodiment corresponding to the method embodiment shown in FIG. 1, the device being specifically applicable to a terminal device.
如图5所示,本实施例所述的用于远程控制终端的装置500包括:连接信息获取单元501,会话建立单元502、中转连接建立单元503、控制命令生成单元504、控制命令发送单元505。其中,连接信息获取单元501配置用于从受控终端获取连接信息,该连接信息包括会话参数,该会话参数为该受控终端与会话服务器所建立会话的会话参数;会话建立单元502配置用于与所述会话服务器建立连接;中转连接建立单元503配置用于向所述会话服务器发送建立到达所述受控终端的中转连接的请求,所述请求包含所述会话参数;控制命令生成单元504配置用于接收用户输入的交互信息,并基于所述交互信息生成控制命令;控制命令发送单元505配置用于通过所建立的中转连接向所述受控终端发送所述控制命令。As shown in FIG. 5, the apparatus 500 for remotely controlling a terminal according to this embodiment includes: a connection information acquiring unit 501, a session establishing unit 502, a relay connection establishing unit 503, a control command generating unit 504, and a control command sending unit 505. . The connection information obtaining unit 501 is configured to acquire connection information from the controlled terminal, where the connection information includes a session parameter, the session parameter is a session parameter of the session established by the controlled terminal and the session server, and the session establishing unit 502 is configured to use Establishing a connection with the session server; the transit connection establishing unit 503 is configured to send a request to the session server to establish a transit connection to the controlled terminal, the request includes the session parameter; and the control command generating unit 504 is configured And receiving the interaction information input by the user, and generating a control command based on the interaction information; the control command sending unit 505 is configured to send the control command to the controlled terminal by using the established transit connection.
在本实施例中,装置500的连接信息获取单元501从受控终端(例如PC)处获取连接信息,连接信息包括会话参数,该会话参数是受控终端与会话服务器预先建立的会话所对应的会话参数,通过会话参数可确定唯一的会话。In this embodiment, the connection information acquiring unit 501 of the device 500 acquires connection information from a controlled terminal (for example, a PC), where the connection information includes a session parameter, where the session parameter corresponds to a session established in advance by the controlled terminal and the session server. Session parameters, through the session parameters to determine a unique session.
在本实施例中,会话建立单元502可以通过公网与会话服务器建立连接。会话建立单元502可以根据连接信息中的某些参数获得会话服务器的地址,也可以从控制终端中获取预先存储的会话服务器的地址。In this embodiment, the session establishing unit 502 can establish a connection with the session server through the public network. The session establishing unit 502 can obtain the address of the session server according to some parameters in the connection information, and can also obtain the address of the pre-stored session server from the control terminal.
在本实施例中,在会话建立单元502与会话服务器建立连接后,中转连接建立单元503可以向所述会话服务器发送建立到达所述受控终端的中转连接的请求,发送请求后等到会话服务器的验证和匹配。其中,该请求中包括有会话参数。In this embodiment, after the session establishing unit 502 establishes a connection with the session server, the relay connection establishing unit 503 may send a request for establishing a transit connection to the controlled terminal to the session server, and wait for the session server after sending the request. Verify and match. Among them, the request includes a session parameter.
在本实施例中,控制命令生成单元504可呈现出控制界面,该控制界面可以与受控终端的界面相同,也可以是只具有几个控制组件的界面。其中,控制命令生成单元504对用户输入的交互信息的接收可以是接收用户在控制界面上的触摸信号,也可以是接收用户通过键盘敲击的输入信息,还可以是接收鼠标的移动信息。控制命令生成单元 504可将不同的交互信息与控制命令建立匹配关系,当接收到交互信息后,即可根据对应的匹配关系将交互信息转化为控制命令。In this embodiment, the control command generating unit 504 may present a control interface, which may be the same as the interface of the controlled terminal, or may be an interface having only a few control components. The receiving of the interaction information input by the user by the control command generating unit 504 may be receiving a touch signal of the user on the control interface, or receiving input information that the user taps through the keyboard, or may be receiving movement information of the mouse. Control command generation unit 504 can establish a matching relationship between different interaction information and the control command. After receiving the interaction information, the interaction information can be converted into a control command according to the corresponding matching relationship.
在本实施例中,控制命令发送单元505,可通过建立好的中转连接向受控终端发送上述控制命令。In this embodiment, the control command sending unit 505 can send the above control command to the controlled terminal by establishing a good transit connection.
在本实施例的一个可选实施方式中,上述连接信息获取单元501包括:二维码获取子单元(未示出),配置用于响应用户的扫描动作,从受控终端获取二维码,所述二维码是根据上述连接信息编码而成的;二维码解码子单元(未示出),配置用于根据二维码获取连接信息。In an optional implementation manner of the embodiment, the connection information acquiring unit 501 includes: a two-dimensional code acquiring subunit (not shown) configured to obtain a two-dimensional code from the controlled terminal in response to a scanning action of the user. The two-dimensional code is encoded according to the connection information; the two-dimensional code decoding subunit (not shown) is configured to acquire connection information according to the two-dimensional code.
本领域技术人员可以理解,上述用于远程控制终端的装置500还包括一些其他公知结构,例如处理器、存储器等,为了不必要地模糊本公开的实施例,这些公知的结构在图5未示出。It will be understood by those skilled in the art that the above-mentioned apparatus 500 for remotely controlling a terminal further includes some other well-known structures, such as a processor, a memory, etc., in order to unnecessarily obscure the embodiments of the present disclosure, these well-known structures are not shown in FIG. Out.
本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括连接信息获取单元,会话建立单元,中转连接建立单元,控制命令生成单元和控制命令发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,连接信息获取单元还可以被描述为“配置用于从受控终端获取连接信息的单元”。The units involved in the embodiments of the present application may be implemented by software or by hardware. The described unit may also be provided in the processor, for example, as a processor including a connection information acquisition unit, a session establishment unit, a relay connection establishment unit, a control command generation unit, and a control command transmission unit. The name of these units does not constitute a limitation on the unit itself in some cases. For example, the connection information acquisition unit may also be described as "a unit configured to acquire connection information from a controlled terminal".
作为另一方面,本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中该装置中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端中的计算机可读存储介质。该计算机可读存储介质存储有一个或者一个以上程序,该程序被一个或者一个以上的处理器用来执行描述于本申请的用于远程控制终端的方法。In another aspect, the present application further provides a computer readable storage medium, which may be a computer readable storage medium included in the apparatus in the above embodiment; or may exist separately, not assembled Computer readable storage medium into the terminal. The computer readable storage medium stores one or more programs that are used by one or more processors to perform the methods for remotely controlling a terminal as described herein.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离该发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。 The above description is only a preferred embodiment of the present application and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present application is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with the technical features disclosed in the present application, but are not limited to the technical features having similar functions.

Claims (14)

  1. 一种用于远程控制终端的方法,其特征在于,所述方法包括:A method for remotely controlling a terminal, the method comprising:
    从受控终端获取连接信息,所述连接信息包括会话参数,所述会话参数为所述受控终端与会话服务器所建立会话的会话参数;Acquiring the connection information from the controlled terminal, where the connection information includes a session parameter, where the session parameter is a session parameter of the session established by the controlled terminal and the session server;
    与所述会话服务器建立连接;Establishing a connection with the session server;
    向所述会话服务器发送建立到达所述受控终端的中转连接的请求,所述请求包含所述会话参数;Sending, to the session server, a request to establish a transit connection to the controlled terminal, the request including the session parameter;
    接收用户输入的交互信息,并基于所述交互信息生成控制命令;Receiving interaction information input by the user, and generating a control command based on the interaction information;
    通过所建立的中转连接向所述受控终端发送所述控制命令。The control command is sent to the controlled terminal through the established transit connection.
  2. 根据权利要求1所述的方法,其特征在于,所述从受控终端获取连接信息包括:The method according to claim 1, wherein the obtaining the connection information from the controlled terminal comprises:
    响应于对所述受控终端的扫描动作,从所述受控终端获取二维码,所述二维码是根据所述连接信息编码而成的;Retrieving a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, the two-dimensional code being encoded according to the connection information;
    根据所述二维码获取所述连接信息。Obtaining the connection information according to the two-dimensional code.
  3. 根据权利要求2所述的方法,其特征在于,所述与所述会话服务器建立连接包括:The method of claim 2, wherein the establishing a connection with the session server comprises:
    通过预先安装的应用与所述会话服务器建立连接。A connection is established with the session server through a pre-installed application.
  4. 根据权利要求2所述的方法,其特征在于,所述连接信息还包括网页服务器的地址,所述网页服务器存储有用于与所述会话服务器建立连接的HTML5控制页面;以及The method according to claim 2, wherein said connection information further comprises an address of a web server, said web server storing an HTML5 control page for establishing a connection with said session server;
    所述与所述会话服务器建立连接,包括:The establishing a connection with the session server includes:
    根据所述网页服务器的地址访问所述网页服务器;Accessing the web server according to an address of the web server;
    从所述网页服务器中下载所述控制页面;Downloading the control page from the web server;
    通过所述控制页面连接所述会话服务器。The session server is connected through the control page.
  5. 根据权利要求1-4之一所述的方法,其特征在于,所述通过所 述中转连接向所述受控终端发送所述控制命令之后,所述方法还包括:Method according to one of claims 1 to 4, characterized in that the passage After the relay connection sends the control command to the controlled terminal, the method further includes:
    接收所述受控终端通过中转连接返回的所述受控终端的状态信息。Receiving status information of the controlled terminal returned by the controlled terminal through a relay connection.
  6. 根据权利要求1-4之一所述的方法,其特征在于,所述控制命令是用于文稿演示用应用的操作指令。The method according to any one of claims 1 to 4, wherein the control command is an operation instruction for a document presentation application.
  7. 一种用于远程控制终端的装置,其特征在于,所述装置包括:A device for remotely controlling a terminal, the device comprising:
    连接信息获取单元,配置用于从受控终端获取连接信息,所述连接信息包括会话参数,所述会话参数为所述受控终端与会话服务器所建立会话的会话参数;a connection information obtaining unit, configured to acquire connection information from the controlled terminal, where the connection information includes a session parameter, where the session parameter is a session parameter of a session established by the controlled terminal and the session server;
    会话建立单元,配置用于与所述会话服务器建立连接;a session establishing unit, configured to establish a connection with the session server;
    中转连接建立单元,配置用于向所述会话服务器发送建立到达所述受控终端的中转连接的请求,所述请求包含所述会话参数;a transit connection establishing unit, configured to send, to the session server, a request to establish a transit connection to the controlled terminal, where the request includes the session parameter;
    控制命令生成单元,配置用于接收用户输入的交互信息,并基于所述交互信息生成控制命令;a control command generating unit configured to receive interaction information input by the user, and generate a control command based on the interaction information;
    控制命令发送单元,配置用于通过所建立的中转连接向所述受控终端发送所述控制命令。And a control command sending unit configured to send the control command to the controlled terminal by using the established transit connection.
  8. 根据权利要求7所述的装置,其特征在于,所述连接信息获取单元包括:The device according to claim 7, wherein the connection information acquiring unit comprises:
    二维码获取子单元,配置用于响应于对所述受控终端的扫描动作,从所述受控终端获取二维码,所述二维码是根据所述连接信息编码而成的;a two-dimensional code acquisition subunit, configured to obtain a two-dimensional code from the controlled terminal in response to a scanning action on the controlled terminal, where the two-dimensional code is encoded according to the connection information;
    二维码解码子单元,配置用于根据所述二维码获取所述连接信息。And a two-dimensional code decoding subunit configured to acquire the connection information according to the two-dimensional code.
  9. 根据权利要求8所述的装置,其特征在于,所述会话建立单元配置用于通过预先安装的应用与所述会话服务器建立连接。The apparatus according to claim 8, wherein said session establishing unit is configured to establish a connection with said session server through a pre-installed application.
  10. 根据权利要求8所述的装置,其特征在于,所述连接信息还 包括网页服务器的地址,所述网页服务器存储有用于与所述会话服务器建立连接的HTML5控制页面;以及The device according to claim 8, wherein said connection information is further Included as an address of a web server, the web server storing an HTML5 control page for establishing a connection with the session server;
    所述会话建立单元配置用于:The session establishing unit is configured to:
    根据所述网页服务器的地址访问所述网页服务器;Accessing the web server according to an address of the web server;
    从所述网页服务器中下载所述控制页面;Downloading the control page from the web server;
    通过所述控制页面连接所述会话服务器。The session server is connected through the control page.
  11. 根据权利要求7-10之一所述的装置,其特征在于,还包括返回信息接收单元,配置用于在所述通过所述中转连接向所述受控终端发送所述控制命令之后,接收所述受控终端通过中转连接返回的所述受控终端的状态信息。The apparatus according to any one of claims 7 to 10, further comprising a return information receiving unit configured to receive the control command after transmitting the control command to the controlled terminal through the relay connection The status information of the controlled terminal returned by the controlled terminal through the relay connection.
  12. 根据权利要求7-10之一所述的装置,其特征在于,所述控制命令是用于文稿演示用应用的操作指令。The apparatus according to any one of claims 7 to 10, wherein the control command is an operation instruction for a document presentation application.
  13. 一种设备,包括:A device that includes:
    处理器;和Processor; and
    存储器,Memory,
    所述存储器中存储有能够被所述处理器执行的计算机可读指令,在所述计算机可读指令被执行时,所述处理器执行权利要求1至6中任一项所述的方法。The memory stores computer readable instructions executable by the processor, the processor executing the method of any one of claims 1 to 6 when the computer readable instructions are executed.
  14. 一种非易失性计算机存储介质,所述计算机存储介质存储有能够被处理器执行的计算机可读指令,当所述计算机可读指令被处理器执行时,所述处理器执行权利要求1至6中任一项所述的方法。 A non-volatile computer storage medium storing computer readable instructions executable by a processor, the processor executing claim 1 to when the computer readable instructions are executed by a processor The method of any of 6.
PCT/CN2015/099896 2015-07-31 2015-12-30 Method and apparatus for remote control of terminal WO2017020523A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510463492.2A CN105072171A (en) 2015-07-31 2015-07-31 Method and apparatus for remote control of terminal
CN201510463492.2 2015-07-31

Publications (1)

Publication Number Publication Date
WO2017020523A1 true WO2017020523A1 (en) 2017-02-09

Family

ID=54501450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/099896 WO2017020523A1 (en) 2015-07-31 2015-12-30 Method and apparatus for remote control of terminal

Country Status (2)

Country Link
CN (1) CN105072171A (en)
WO (1) WO2017020523A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453240A (en) * 2020-03-25 2021-09-28 广州波通通信有限公司 Code scanning configuration method for wireless control equipment

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072171A (en) * 2015-07-31 2015-11-18 安一恒通(北京)科技有限公司 Method and apparatus for remote control of terminal
CN106878351A (en) * 2015-12-10 2017-06-20 北京国基科技股份有限公司 Intelligent terminal locking method
CN106686120A (en) * 2017-01-22 2017-05-17 苏州蜗牛数字科技股份有限公司 Push system and method for remote application based on WeChat official accounts
CN108595274B (en) * 2017-12-28 2021-07-20 广州京墨医疗科技有限公司 Program synchronization control method, device, system, computer device and storage medium
CN110048991B (en) * 2018-01-16 2022-09-30 北京京东乾石科技有限公司 Method and device for realizing signal interaction reliability
CN108282667A (en) * 2018-01-24 2018-07-13 西安万像电子科技有限公司 Display control method, system and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122908A1 (en) * 2002-10-02 2004-06-24 Sony Corporation, A Japanese Corporation Method and apparatus for use in remote diagnostics
CN103581253A (en) * 2012-08-01 2014-02-12 腾讯科技(深圳)有限公司 Method for remote control, Web server and system for remote control
CN103929501A (en) * 2014-05-07 2014-07-16 深圳市精准分众网络科技有限公司 Intelligent remote control server and control method thereof
CN103957249A (en) * 2014-04-23 2014-07-30 华为终端有限公司 Remote control method, server and control device and system
CN105072171A (en) * 2015-07-31 2015-11-18 安一恒通(北京)科技有限公司 Method and apparatus for remote control of terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040122908A1 (en) * 2002-10-02 2004-06-24 Sony Corporation, A Japanese Corporation Method and apparatus for use in remote diagnostics
CN103581253A (en) * 2012-08-01 2014-02-12 腾讯科技(深圳)有限公司 Method for remote control, Web server and system for remote control
CN103957249A (en) * 2014-04-23 2014-07-30 华为终端有限公司 Remote control method, server and control device and system
CN103929501A (en) * 2014-05-07 2014-07-16 深圳市精准分众网络科技有限公司 Intelligent remote control server and control method thereof
CN105072171A (en) * 2015-07-31 2015-11-18 安一恒通(北京)科技有限公司 Method and apparatus for remote control of terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453240A (en) * 2020-03-25 2021-09-28 广州波通通信有限公司 Code scanning configuration method for wireless control equipment

Also Published As

Publication number Publication date
CN105072171A (en) 2015-11-18

Similar Documents

Publication Publication Date Title
WO2017020523A1 (en) Method and apparatus for remote control of terminal
US20180189768A1 (en) Method and apparatus of processing symbology interactions between mobile stations and a control system
US11909847B2 (en) Information processing apparatus, information processing system, information processing method and recording medium
JP6091564B2 (en) Mobile device, communication method and recording medium
JP6186870B2 (en) Information processing apparatus, program, conference system, and content providing method
WO2017211020A1 (en) Television control method and apparatus
US20150180939A1 (en) Methods and Systems for Conducting a Remote Desktop Session Via HTML That Supports A 2D Canvas and Dynamic Drawing
KR102363559B1 (en) Information transmission method and device
US20150188983A1 (en) Dynamically launching a server-based application on a mobile device
KR102249197B1 (en) User terminal apparatus, communication system and control method thereof
US9473617B2 (en) Terminal apparatus, control system, and control method for controlling collaboration among a plurality of devices
US10375142B2 (en) Apparatus, system, and method of providing screen data
JP7119844B2 (en) Information processing system, information processing device, information processing method and program
US20150296027A1 (en) Continuous Browsing Across Devices
CN110955396A (en) Information processing system, information processing apparatus, information processing method, storage medium, and computer apparatus
CN110099461A (en) Communication means, device, system, electronic equipment and storage medium between terminal
CN113228561A (en) Providing virtual desktops within a computing environment
US20140085486A1 (en) Information processing terminal, information processing method, and apparatus control system
US9622015B2 (en) System and method for controlling a printing apparatus
EP3428808A1 (en) Communication between mobile devices and a web application running on a server
JP2020087178A (en) Information processing device, information processing system, information processing method, and program
KR100546220B1 (en) Method and system for recording and operating script using macro function of mobile terminal
JP7139840B2 (en) Mediation device, mediation method and program
US20240168869A1 (en) Multisession mode in remote device infrastructure
KR102001886B1 (en) Repeating apparatus for remote control, and control method thereof

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 28/05/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15900286

Country of ref document: EP

Kind code of ref document: A1