[go: up one dir, main page]

CN103049190B - A kind of method of mobile communication terminal and control appliance operation - Google Patents

A kind of method of mobile communication terminal and control appliance operation Download PDF

Info

Publication number
CN103049190B
CN103049190B CN201210535680.8A CN201210535680A CN103049190B CN 103049190 B CN103049190 B CN 103049190B CN 201210535680 A CN201210535680 A CN 201210535680A CN 103049190 B CN103049190 B CN 103049190B
Authority
CN
China
Prior art keywords
control operation
mobile communication
communication terminal
information
specified
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201210535680.8A
Other languages
Chinese (zh)
Other versions
CN103049190A (en
Inventor
陈虞付
李超
刘晓健
吴军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210535680.8A priority Critical patent/CN103049190B/en
Publication of CN103049190A publication Critical patent/CN103049190A/en
Application granted granted Critical
Publication of CN103049190B publication Critical patent/CN103049190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

本发明提供了一种移动通信终端及控制设备操作的方法,其中,移动通信终端包括:接收模块,用于接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令;控制模块,用于通过所述HTML页面将所述控制操作指令发送给所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作;其中,所述接收模块,用于通过所述设定的HTML页面监听所述用户通过所述HTML页面对所述指定设备进行的控制操作,通过所述HTML页面的DOM事件获取所述控制操作的信息,根据所述控制操作的信息生成所述控制操作指令。通过本发明,达到了对设备的远距离操控,提升用户操作体验的效果。

The present invention provides a mobile communication terminal and a method for controlling the operation of the device, wherein the mobile communication terminal includes: a receiving module for receiving a control operation instruction for a user to control and operate a designated device through a set HTML page; the control module, It is used to send the control operation instruction to the designated device through the HTML page, so that the designated device performs the control operation indicated by the control operation instruction; wherein, the receiving module is configured to use the device to A specified HTML page monitors the control operation performed by the user on the specified device through the HTML page, obtains information about the control operation through a DOM event of the HTML page, and generates the control operation according to the information about the control operation Operating instructions. Through the present invention, the remote control of the equipment is achieved, and the effect of improving the user's operation experience is achieved.

Description

一种移动通信终端及控制设备操作的方法A mobile communication terminal and method for controlling device operation

技术领域technical field

本发明涉及计算机技术领域,特别是涉及一种移动通信终端及控制设备操作的方法。The invention relates to the field of computer technology, in particular to a mobile communication terminal and a method for controlling the operation of the device.

背景技术Background technique

随着互联网的发展,电脑在人们的生活中扮演着越来越重要的角色,人们的生活和工作越来越依赖电脑。为了对电脑进行控制,电脑都具有输入设备,如,一种常用输入设备是键盘和鼠标,用以操作电脑,其中,键盘通常用作信息的输入,鼠标用作选择或者一些常用操作;另一种常用输入设备是使用键盘和触摸板操作电脑,多用于便携式电脑,其中,键盘通常用作信息的输入,触摸板用作选择或者一些常用操作。With the development of the Internet, computers are playing an increasingly important role in people's lives, and people's lives and work are increasingly dependent on computers. In order to control the computer, the computer has an input device. For example, a common input device is a keyboard and a mouse to operate the computer, wherein the keyboard is usually used for information input, and the mouse is used for selection or some common operations; A common input device is to use a keyboard and a touchpad to operate a computer, and is mostly used in a portable computer, wherein the keyboard is usually used for information input, and the touchpad is used for selection or some common operations.

然而,使用上述第一种输入设备对电脑进行控制时,键盘和鼠标都是物理介质,占用空间且对放置的位置也有要求,而且只能近距离操作电脑;使用上述第二种输入设备对电脑进行控制时,键盘和触摸板都是内置于电脑的,只能近距离操作电脑,存在操作的局限性。However, when using the above-mentioned first input device to control the computer, both the keyboard and the mouse are physical media, which take up space and have requirements for placement, and can only operate the computer at close range; use the above-mentioned second input device to control the computer. When controlling, both the keyboard and the touchpad are built into the computer, and the computer can only be operated at close range, so there are limitations in operation.

同样,在物联网中,人们通常需要使用专用的控制器来控制物联网设备,也存在着位置要求,只能近距离进行操作。Similarly, in the Internet of Things, people usually need to use dedicated controllers to control IoT devices, and there are also location requirements, which can only be operated at close range.

可见,使用现有的输入设备控制电脑或物联网设备,均存在着多种限制,尤其无法实现用户在较远距离对电脑或物联网设备进行控制,降低了用户对电脑或物联网设备的操作体验。It can be seen that using existing input devices to control computers or Internet of Things devices has various limitations, especially it is impossible for users to control computers or Internet of Things devices at a relatively long distance, which reduces the user's ability to operate computers or Internet of Things devices. experience.

发明内容Contents of the invention

鉴于上述现有的输入设备无法实现用户在较远距离对电脑或物联网设备进行控制,降低了用户对电脑或物联网设备的操作体验的问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的移动通信终端及控制设备操作的方法。In view of the fact that the above-mentioned existing input devices cannot enable users to control computers or Internet of Things devices at a relatively long distance, which reduces the user's operating experience on computers or Internet of Things devices, the present invention is proposed to provide a method that overcomes the above problems or A mobile communication terminal and a method of controlling operation of the device at least partially address the above problems.

依据本发明的一个方面,提供了控制设备操作的方法,包括:移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令,其中,HTML页面用于提供用户通过移动通信终端对指定设备进行控制操作的界面,接收用户对界面操作所产生的控制操作指令,并发送控制操作指令;移动通信终端通过HTML页面将控制操作指令发送给指定设备,使指定设备执行控制操作指令所指示的控制操作;其中,所述移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令的步骤包括:所述设定的HTML页面监听所述用户通过所述HTML页面对所述指定设备进行的控制操作,通过所述HTML页面的DOM事件获取所述控制操作的信息,根据所述控制操作的信息生成所述控制操作指令。According to one aspect of the present invention, a method for controlling device operation is provided, including: the mobile communication terminal receives a control operation instruction for a user to control and operate a specified device through a set HTML page, wherein the HTML page is used to provide the user with a mobile communication The interface for the terminal to control and operate the specified device, receives the control operation command generated by the user on the interface operation, and sends the control operation command; the mobile communication terminal sends the control operation command to the specified device through the HTML page, so that the specified device executes the control operation command Indicated control operation; wherein, the step of the mobile communication terminal receiving the user's control operation instruction for the specified device through the set HTML page includes: the set HTML page monitors the user through the HTML page For the control operation performed by the page on the specified device, the information of the control operation is obtained through the DOM event of the HTML page, and the control operation instruction is generated according to the information of the control operation.

根据本发明的另一方面,提供了一种移动通信终端,包括:接收模块,用于接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令,其中,HTML页面用于提供用户通过移动通信终端对指定设备进行控制操作的界面,接收用户对界面操作所产生的控制操作指令,并发送控制操作指令;控制模块,用于通过HTML页面将控制操作指令发送给指定设备,使指定设备执行控制操作指令所指示的控制操作;其中,所述接收模块,用于通过所述设定的HTML页面监听所述用户通过所述HTML页面对所述指定设备进行的控制操作,通过所述HTML页面的DOM事件获取所述控制操作的信息,根据所述控制操作的信息生成所述控制操作指令。According to another aspect of the present invention, a mobile communication terminal is provided, including: a receiving module, configured to receive a control operation instruction for the user to control and operate a specified device through a set HTML page, wherein the HTML page is used to provide the user The interface for controlling and operating the specified device through the mobile communication terminal receives the control operation command generated by the user on the interface operation, and sends the control operation command; the control module is used to send the control operation command to the specified device through the HTML page, so that the specified The device executes the control operation indicated by the control operation instruction; wherein, the receiving module is configured to monitor the control operation performed by the user on the designated device through the HTML page through the set HTML page, and through the The DOM event of the HTML page acquires the information of the control operation, and generates the control operation instruction according to the information of the control operation.

根据本发明的控制设备操作的方案,移动通信终端通过HTML页面接收用户对指定设备的控制操作,向指定设备发送控制操作指令,使指定设备根据该控制操作指令进行相应的控制操作。HTML页面是被广泛应用和为几乎所有操作系统支持的页面,通过HTML页面实现移动通信终端对指定设备的操作控制,在移动通信终端侧和指定设备侧均无须专门的操作控制软件,操作方便、实现简单、兼容性好、实现成本低。通过本发明的方案,在远距离即可通过移动通信终端控制指定设备(如PC或物联网设备)的操作。本发明的移动通信终端可以取代传统的输入设备,实现了远离设备的情况下便捷地操作设备,以及实时地监控设备,对设备进行全面操控,从而解决了现有的输入设备无法实现用户在较远距离对电脑或物联网设备进行控制,降低了用户对电脑或物联网设备的操作体验的问题,达到了对设备的远距离操控,提升用户操作体验的效果。According to the scheme of controlling device operation of the present invention, the mobile communication terminal receives the user's control operation on the designated device through the HTML page, sends a control operation instruction to the designated device, and makes the designated device perform corresponding control operation according to the control operation instruction. The HTML page is widely used and supported by almost all operating systems. The operation control of the mobile communication terminal to the designated device is realized through the HTML page. There is no need for special operation control software on the mobile communication terminal side and the designated device side, and the operation is convenient. The implementation is simple, the compatibility is good, and the implementation cost is low. Through the solution of the present invention, the operation of a specified device (such as a PC or an Internet of Things device) can be controlled through a mobile communication terminal at a long distance. The mobile communication terminal of the present invention can replace the traditional input device, realize the convenient operation of the device when it is far away from the device, monitor the device in real time, and fully control the device, thereby solving the problem that the existing input device cannot realize the user in a relatively Remote control of computers or Internet of Things devices reduces the user's operating experience on computers or Internet of Things devices, achieves remote control of devices, and improves user experience.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1是根据本发明实施例一的一种控制设备操作的方法的步骤流程图;FIG. 1 is a flow chart of steps of a method for controlling device operation according to Embodiment 1 of the present invention;

图2是根据本发明实施例二的一种控制设备操作的方法的步骤流程图;FIG. 2 is a flow chart of steps of a method for controlling device operation according to Embodiment 2 of the present invention;

图3是根据本发明实施例三的一种控制设备操作的方法的步骤流程图;FIG. 3 is a flow chart of steps of a method for controlling device operation according to Embodiment 3 of the present invention;

图4是图3所示实施例中的一种触摸板HTML页面的界面示意图;Fig. 4 is a schematic interface diagram of a touchpad HTML page in the embodiment shown in Fig. 3;

图5是图3所示实施例中的一种快捷操作HTML页面的界面示意图;Fig. 5 is a schematic interface diagram of a shortcut operation HTML page in the embodiment shown in Fig. 3;

图6是图3所示实施例中的一种选择终端HTML页面的界面示意图;Fig. 6 is a schematic interface diagram of a selection terminal HTML page in the embodiment shown in Fig. 3;

图7是根据本发明实施例四的一种控制设备操作的方法的步骤流程图;FIG. 7 is a flow chart of steps of a method for controlling device operation according to Embodiment 4 of the present invention;

图8是根据本发明实施例五的一种移动通信终端的结构框图。Fig. 8 is a structural block diagram of a mobile communication terminal according to Embodiment 5 of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

实施例一Embodiment one

参照图1,示出了根据本发明实施例一的一种控制设备操作的方法的步骤流程图。Referring to FIG. 1 , it shows a flowchart of steps of a method for controlling device operation according to Embodiment 1 of the present invention.

本实施例的控制设备操作的方法包括以下步骤:The method for controlling the operation of equipment in this embodiment includes the following steps:

步骤S102:移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令。Step S102: the mobile communication terminal receives a control operation command for the user to control and operate the specified device through the set HTML page.

其中,HTML页面用于提供用户通过移动通信终端对指定设备进行控制操作的界面,接收用户对界面操作所产生的控制操作指令,并发送控制操作指令。Wherein, the HTML page is used to provide an interface for the user to control and operate the designated device through the mobile communication terminal, receive control operation instructions generated by the user's operation on the interface, and send the control operation instructions.

步骤S104:移动通信终端通过HTML页面将控制操作指令发送给指定设备,使指定设备执行控制操作指令所指示的控制操作。Step S104: the mobile communication terminal sends the control operation instruction to the specified device through the HTML page, so that the specified device performs the control operation indicated by the control operation instruction.

通过本实施例,移动通信终端通过HTML页面接收用户对指定设备的控制操作,向指定设备发送控制操作指令,使指定设备根据该控制操作指令进行相应的控制操作。HTML页面是被广泛应用和为几乎所有操作系统支持的页面,通过HTML页面实现移动通信终端对指定设备的操作控制,在移动通信终端侧和指定设备侧均无须专门的操作控制软件,操作方便、实现简单、兼容性好、实现成本低。通过本发明的方案,在远距离即可通过移动通信终端控制指定设备(如PC或物联网设备)的操作。本实施例的移动通信终端可以取代传统的输入设备,实现了远离设备的情况下便捷地操作设备,以及实时地监控设备,对设备进行全面操控,从而解决了现有的输入设备无法实现用户在较远距离对电脑或物联网设备进行控制,降低了用户对电脑或物联网设备的操作体验的问题,达到了对设备的远距离操控,提升用户操作体验的效果。Through this embodiment, the mobile communication terminal receives the user's control operation on the designated device through the HTML page, sends a control operation instruction to the designated device, and makes the designated device perform corresponding control operations according to the control operation instruction. The HTML page is widely used and supported by almost all operating systems. The operation control of the mobile communication terminal to the designated device is realized through the HTML page. There is no need for special operation control software on the mobile communication terminal side and the designated device side, and the operation is convenient. The implementation is simple, the compatibility is good, and the implementation cost is low. Through the solution of the present invention, the operation of a specified device (such as a PC or an Internet of Things device) can be controlled through a mobile communication terminal at a long distance. The mobile communication terminal of this embodiment can replace the traditional input device, realize the convenient operation of the device when it is far away from the device, monitor the device in real time, and fully control the device, thereby solving the problem that the existing input device cannot realize the user Controlling computers or IoT devices at a relatively long distance reduces the problem of users' operating experience on computers or IoT devices, achieves remote control of devices, and improves user operating experience.

实施例二Embodiment two

参照图2,示出了根据本发明实施例二的一种控制设备操作的方法的步骤流程图。Referring to FIG. 2 , it shows a flowchart of steps of a method for controlling device operation according to Embodiment 2 of the present invention.

本实施例中,使用网络控制服务器连接移动通信终端和指定设备,移动通信终端和网络控制服务器之间,以及网络控制服务器与指定设备之间均建立有WebSocket连接。In this embodiment, the network control server is used to connect the mobile communication terminal and the designated device, and WebSocket connections are established between the mobile communication terminal and the network control server, and between the network control server and the designated device.

WebSocket协议是HTML5一种新的协议,它实现了浏览器与服务器全双工通信。WebSocket协议比较简单,设备和普通的浏览器一样通过80或者443端口和服务器进行请求握手,服务器根据HTTPHEADER识别是否是一个WebSocket请求,如果是,则将请求升级为一个WebSocket连接,握手成功后就进入双向长连接的数据传输阶段。The WebSocket protocol is a new protocol in HTML5, which realizes full-duplex communication between the browser and the server. The WebSocket protocol is relatively simple. The device, like a normal browser, performs a handshake with the server through port 80 or 443. The server identifies whether it is a WebSocket request according to the HTTPHEADER. If it is, the request is upgraded to a WebSocket connection. After the handshake is successful, enter The data transmission phase of the two-way persistent connection.

当使用WebSocket协议时,指定设备端可以设置NPAPI。NPAPI(NetscapePluginApplicationProgrammingInterface,网景插件应用程序接口)是用于在浏览器中执行外部应用程序的通用接口。网景插件中的每个插件声明自己支持某一种或几种内容类型,当浏览器遇到这种类型的内容时,便在插件库寻找一种能够解码的插件,将这部分内容交由其解析,并在网页对应的位置中显示出来。通过浏览器中的NPAPI能够调用系统中相应的API(ApplicationProgrammingInterface,应用程序接口),实现相应的功能,如关机、调节音量、控制鼠标操作等。例如,浏览器通过NPAPI机制(目前该机制已被应用于chromium、基于Chromium开源项目开发的浏览器及firefox等浏览器中),向扩展程序网页中的javascript脚本提供了SetCursorPos、Shutdown、Snapshot、MouseDown、MouseUp、KeyDown、KeyUp等接口函数,javascript通过websocket与服务端通信,接受到控制命令后,调用这些通过NPAPI来扩充的javascript接口函数,实现了控制光标位置,模拟鼠标点击及键盘按下,电脑快照,电脑关机等功能。When using the WebSocket protocol, NPAPI can be set on the specified device side. NPAPI (NetscapePluginApplicationProgrammingInterface, Netscape plug-in application programming interface) is a common interface for executing external applications in the browser. Each plug-in in the Netscape plug-in declares that it supports one or several types of content. When the browser encounters this type of content, it will look for a plug-in that can decode it in the plug-in library, and hand over this part of the content to It is parsed and displayed in the corresponding position of the web page. Through the NPAPI in the browser, the corresponding API (Application Programming Interface, application program interface) in the system can be called to realize corresponding functions, such as shutting down, adjusting volume, controlling mouse operation, etc. For example, through the NPAPI mechanism (currently, this mechanism has been applied to browsers such as chromium, browsers developed based on the Chromium open source project, and firefox), the browser provides the javascript scripts in the extension program web pages with SetCursorPos, Shutdown, Snapshot, and MouseDown , MouseUp, KeyDown, KeyUp and other interface functions, javascript communicates with the server through websocket, and after receiving the control command, calls these javascript interface functions expanded through NPAPI to control the cursor position, simulate mouse clicks and keyboard presses, and the computer Snapshot, computer shutdown and other functions.

基于上述设置,本实施例的控制设备操作的方法包括以下步骤:Based on the above settings, the method for controlling equipment operation in this embodiment includes the following steps:

步骤S202:移动通信终端从网络控制服务器获取至少一个待控制的指定设备的信息。Step S202: the mobile communication terminal acquires information of at least one designated device to be controlled from the network control server.

网络控制服务器中可以预先存储有一个或多个待控制的指定设备的信息,在收到移动通信终端的请求时将这些待控制的指定设备的信息发送给移动通信终端;网络控制服务器也可以在收到移动通信终端的请求时,再向其所连接的指定设备发送信息,获取一个或多个待控制的指定设备的信息,然后返回给移动通信终端。The network control server can pre-store the information of one or more designated devices to be controlled, and send the information of these designated devices to be controlled to the mobile communication terminal when receiving a request from the mobile communication terminal; When receiving the request from the mobile communication terminal, it sends information to the designated device connected to it, obtains the information of one or more designated devices to be controlled, and then returns it to the mobile communication terminal.

本实施例中,移动通信终端通过WebSocket连接向网络控制服务器发送请求,并通过WebSocket连接从网络控制服务器获取至少一个待控制的指定设备的信息。也即,移动通信终端和网络控制服务器之间的通信遵循WebSocket协议。同样,网络控制服务器和指定设备之间也存在WebSocket连接,二者之间也遵循WebSocket协议进行通信。In this embodiment, the mobile communication terminal sends a request to the network control server through the WebSocket connection, and obtains information of at least one designated device to be controlled from the network control server through the WebSocket connection. That is, the communication between the mobile communication terminal and the network control server follows the WebSocket protocol. Similarly, there is also a WebSocket connection between the network control server and the specified device, and the communication between the two also follows the WebSocket protocol.

优选地,移动通信终端从网络控制服务器获取至少一个待控制的指定设备的信息时,指定设备的信息包括以下至少之一:指定设备的二维码、指定设备的标识、指定设备的IP地址;移动通信终端通过指定设备的信息识别并显示指定设备。或者,网络控制服务器根据待控制的指定设备的信息,识别指定设备,该指定设备的信息包括以下至少之一:指定设备的二维码、指定设备的标识、指定设备的IP地址;移动通信终端从网络控制服务器处获取网络控制服务器识别出的指定设备的信息。Preferably, when the mobile communication terminal obtains information of at least one specified device to be controlled from the network control server, the information of the specified device includes at least one of the following: a two-dimensional code of the specified device, an identifier of the specified device, and an IP address of the specified device; The mobile communication terminal identifies and displays the designated device through the information of the designated device. Or, the network control server identifies the designated device according to the information of the designated device to be controlled, and the information of the designated device includes at least one of the following: the two-dimensional code of the designated device, the identification of the designated device, the IP address of the designated device; the mobile communication terminal The information of the designated device identified by the network control server is obtained from the network control server.

步骤S204:移动通信终端根据用户输入选择一个待控制的指定设备,并向网络控制服务器发送认证信息。Step S204: The mobile communication terminal selects a designated device to be controlled according to user input, and sends authentication information to the network control server.

其中,认证信息用于请求对选择的指定设备进行控制操作授权。Wherein, the authentication information is used for requesting the control operation authorization of the selected designated device.

步骤S206:移动通信终端接收网络控制服务器返回的确认授权信息。Step S206: the mobile communication terminal receives the confirmation authorization information returned by the network control server.

通过授权认证,能确保移动通信终端对设备操作控制的安全性。Through the authorization authentication, the safety of the mobile communication terminal to control the operation of the equipment can be ensured.

步骤S208:移动通信终端获取选择的指定设备的HTML页面。Step S208: the mobile communication terminal acquires the HTML page of the selected designated device.

移动通信终端获取选择的指定设备的HTML页面可以通过多种方式。The mobile communication terminal may acquire the HTML page of the selected specified device in various ways.

例如,移动通信终端使用WebSocket连接向网络控制服务器发送信息获取命令,其中,信息获取命令用于获取指定设备支持的控制操作;网络控制服务器使用WebSocket连接将信息获取命令发送至指定设备,使指定设备根据信息获取命令,通过NPAPI函数获取指定设备支持的控制操作并返回给网络控制服务器,由网络控制服务器转发给移动通信终端;移动通信终端根据网络控制服务器返回的指定设备支持的控制操作的信息,在HTML页面中显示与指定设备支持的控制操作相对应的控件,最终生成与指定设备相对应的HTML页面。For example, a mobile communication terminal uses a WebSocket connection to send an information acquisition command to a network control server, wherein the information acquisition command is used to acquire the control operations supported by a specified device; the network control server uses a WebSocket connection to send an information acquisition command to a specified device, so that the specified device According to the information acquisition command, the control operation supported by the specified device is obtained through the NPAPI function and returned to the network control server, which is forwarded to the mobile communication terminal by the network control server; the mobile communication terminal returns the control operation information supported by the specified device according to the network control server. Controls corresponding to the control operations supported by the specified device are displayed in the HTML page, and finally an HTML page corresponding to the specified device is generated.

再例如,移动通信终端使用WebSocket连接向网络控制服务器发送信息获取命令,其中,信息获取命令用于获取指定设备支持的控制操作;网络控制服务器使用WebSocket连接将信息获取命令发送至指定设备,使指定设备根据信息获取命令,通过NPAPI函数获取指定设备支持的控制操作并返回给网络控制服务器;网络控制服务器根据指定设备支持的控制操作的信息,生成相应的HTML页面并返回给移动通信终端。For another example, the mobile communication terminal uses a WebSocket connection to send an information acquisition command to the network control server, wherein the information acquisition command is used to acquire the control operations supported by the specified device; the network control server uses the WebSocket connection to send the information acquisition command to the specified device, so that the specified According to the information acquisition command, the device obtains the control operation supported by the specified device through the NPAPI function and returns it to the network control server; the network control server generates the corresponding HTML page according to the information of the control operation supported by the specified device and returns it to the mobile communication terminal.

又例如,移动通信终端事先构建有设定的HTML页面,这些事先构建的HTML页面包括以下至少之一:触摸板页面、快捷操作页面和选择终端页面,其中,触摸板页面用于接收用户在触摸板页面的触摸操作的信息,根据触摸操作的信息生成控制操作指令,以控制指定设备的光标操作;快捷操作页面包括以下控制至少之一:音量调节控件、设备桌面显示控件、设备截屏控件和设备关机控件,快捷操作页面用于接收用户对快捷操作页面中的控件的操作的信息,根据控件的操作的信息生成控制操作指令,以控制指定设备进行控制操作指令所指示的控制操作;选择终端页面用于显示待控制的设备的信息和待控制的设备的受控状态,以供用户选择待控制的设备,选择终端页面还包括授权密码输入控件,以供用户输入授权密码进行控制操作认证。当移动通信终端获得指定设备的授权后,移动通信终端即相应地显示全部或部分上述事先构建的HTML页面,供用户操作。需要说明的是,在实际应用中,本领域技术人员可以根据实际需要构建上述HTML页面中的一个或多个,或者将上述HTML页面中的一个或多个集成于一个HTML页面中,使用HTML页面可以实现对指定设备的操作功能,且灵活易扩展。For another example, the mobile communication terminal has pre-built HTML pages with settings, and these pre-built HTML pages include at least one of the following: a touch pad page, a shortcut operation page, and a terminal selection page, wherein the touch pad page is used to receive user touch The touch operation information on the panel page generates control operation instructions according to the touch operation information to control the cursor operation of the specified device; the shortcut operation page includes at least one of the following controls: volume adjustment control, device desktop display control, device screen capture control and device Shutdown control, the shortcut operation page is used to receive the user's operation information on the controls in the shortcut operation page, and generate control operation instructions according to the operation information of the controls, so as to control the designated device to perform the control operation indicated by the control operation instruction; select the terminal page It is used to display the information of the equipment to be controlled and the controlled status of the equipment to be controlled, so that the user can select the equipment to be controlled. The terminal selection page also includes an authorization password input control for the user to enter the authorization password for control operation authentication. After the mobile communication terminal obtains the authorization of the designated device, the mobile communication terminal correspondingly displays all or part of the HTML pages constructed in advance for the user to operate. It should be noted that in practical applications, those skilled in the art can construct one or more of the above HTML pages according to actual needs, or integrate one or more of the above HTML pages into one HTML page, using the HTML page It can realize the operation function of the specified equipment, and it is flexible and easy to expand.

步骤S210:移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令。Step S210: the mobile communication terminal receives a control operation instruction for the user to control and operate the designated device through the set HTML page.

本实施例中,移动通信终端中的HTML页面监听用户通过该HTML页面对指定设备进行的控制操作,通过HTML页面的DOM(DocumentObjectModel,文档对象模型)事件获取控制操作的信息,根据控制操作的信息生成控制操作指令。In this embodiment, the HTML page in the mobile communication terminal monitors the user's control operation on the specified device through the HTML page, and obtains the information of the control operation through the DOM (DocumentObjectModel, Document Object Model) event of the HTML page. Generate control operation instructions.

DOM是W3C组织推荐的处理标记语言的标准编程接口,它是一种与平台和语言无关的应用程序接口,可以动态地访问程序和脚本,更新其内容、结构和www文档的风格。事件处理是DOM中最重要的组成部分,完善的事件机制使得程序如JavaScript程序可以根据特定的事件来触发不同执行方法,使得程序可以更具有交互性和智能化。如,通过touchstart事件、touchmove事件、touchend事件即可获取HTML页面上的鼠标移动数据。DOM is a standard programming interface for processing markup languages recommended by the W3C organization. It is a platform- and language-independent application programming interface that can dynamically access programs and scripts, update their content, structure and style of www documents. Event processing is the most important part of DOM. A perfect event mechanism enables programs such as JavaScript programs to trigger different execution methods according to specific events, making programs more interactive and intelligent. For example, the mouse movement data on the HTML page can be obtained through the touchstart event, touchmove event, and touchend event.

步骤S212:移动通信终端使用WebSocket连接,通过HTML页面将控制操作指令发送给网络控制服务器。Step S212: the mobile communication terminal uses the WebSocket connection, and sends the control operation instruction to the network control server through the HTML page.

其中,网络控制服务器可以使用Node.js搭建。Node.js是一套用来编写高性能网络服务器的JavaScript工具包,具有单线程、非阻塞IO、事件驱动等等诸多优势。当然,不限于此,网络控制服务器也可以使用其它适当方式搭建,如搭建成Apache(阿帕奇)服务器等。网络控制服务器通过WebSocket协议,在移动通信终端和移动通信终端控制的指定设备之间建立起连接。Among them, the network control server can be built using Node.js. Node.js is a JavaScript toolkit for writing high-performance web servers, with many advantages such as single-threaded, non-blocking IO, and event-driven. Of course, it is not limited to this, and the network control server can also be built in other appropriate ways, such as being built as an Apache (Apache) server. The network control server establishes a connection between the mobile communication terminal and the specified device controlled by the mobile communication terminal through the WebSocket protocol.

步骤S214:网络控制服务器使用WebSocket连接将控制操作指令转发至指定设备。Step S214: the network control server forwards the control operation instruction to the specified device through the WebSocket connection.

步骤S216:指定设备接收控制操作指令,根据该控制操作指令,通过NPAPI调用指定设备的系统API实现控制操作指令所指示的控制操作。Step S216: the designated device receives the control operation instruction, and according to the control operation instruction, calls the system API of the designated device through NPAPI to implement the control operation indicated by the control operation instruction.

优选地,本实施例的指定设备中安装有具有NPAPI机制的浏览器和浏览器扩展程序。其中,浏览器扩展程序包括有NPAPI插件(即一个DLL文件),浏览器扩展程序用于实现指定设备与网络控制服务器的WebSocket通信,以及通过NPAPI插件调用指定设备的系统API。Preferably, the specified device in this embodiment is installed with a browser and a browser extension program having an NPAPI mechanism. Among them, the browser extension program includes an NPAPI plug-in (that is, a DLL file), and the browser extension program is used to realize the WebSocket communication between the designated device and the network control server, and to call the system API of the designated device through the NPAPI plug-in.

指定设备通过浏览器扩展程序的HTML页面监听并接收网络控制服务器发送的控制操作指令;进而,浏览器扩展程序的HTML页面调用与控制操作指令指示的控制操作相对应的NPAPI函数,并通过NPAPI函数调用相对应的系统API函数,实现控制操作指令所指示的控制操作。例如,当控制操作指令指示的控制操作为光标移动操作时,则指定设备的浏览器扩展程序的HTML页面调用的NPAPI函数为SetCursorPos,该NPAPI函数调用系统的mouse_event函数,实现光标的移动。The specified device listens to and receives the control operation instructions sent by the network control server through the HTML page of the browser extension program; then, the HTML page of the browser extension program calls the NPAPI function corresponding to the control operation indicated by the control operation instruction, and through the NPAPI function Call the corresponding system API function to realize the control operation indicated by the control operation instruction. For example, when the control operation indicated by the control operation instruction is a cursor movement operation, the NPAPI function called by the HTML page of the browser extension program of the specified device is SetCursorPos, and the NPAPI function calls the mouse_event function of the system to realize the movement of the cursor.

通过本实施例,实现了移动通信终端作为遥控器的功能,如手机遥控器,该移动通信终端遥控器通过WebSocket的双向通信完机制完成移动通信终端如手机与指定设备如电脑的通信,通过NPAPI的插件机制调用系统的API执行用户命令,从而实现了在用户完全脱离传统的输入设备的情况下,对指定设备的全面操控。Through this embodiment, the function of the mobile communication terminal as a remote controller is realized, such as a mobile phone remote controller. The mobile communication terminal remote controller completes the communication between a mobile communication terminal such as a mobile phone and a designated device such as a computer through the two-way communication mechanism of WebSocket, and through NPAPI The plug-in mechanism of the system calls the API of the system to execute user commands, thus realizing the full control of the specified device when the user is completely separated from the traditional input device.

实施例三Embodiment three

参照图3,示出了根据本发明实施例三的一种控制设备操作的方法的步骤流程图。Referring to FIG. 3 , it shows a flow chart of steps of a method for controlling device operation according to Embodiment 3 of the present invention.

本实施例以移动通信终端为手机,指定设备为个人电脑为实例,通过用户在移动通信终端的触摸板页面进行触摸移动操作以控制指定设备的光标操作为例,对本发明的控制设备操作的方法作以说明。This embodiment takes the mobile communication terminal as a mobile phone and the designated device as a personal computer as an example. The user performs a touch and move operation on the touch panel page of the mobile communication terminal to control the cursor operation of the designated device as an example. The method for controlling device operation of the present invention For illustration.

本实施例的控制设备操作的方法包括以下步骤:The method for controlling the operation of equipment in this embodiment includes the following steps:

步骤S302:搭建网络控制服务器。Step S302: Build a network control server.

本实施例中,用Node.js搭建网络控制服务器。Node.js作为一个新兴的后台语言,有很多吸引人的地方:RESTfulAPI、单线程、非阻塞IO、GoogleV8、事件驱动等。In this embodiment, Node.js is used to build a network control server. As an emerging background language, Node.js has many attractive features: RESTful API, single-threaded, non-blocking IO, GoogleV8, event-driven, etc.

网络控制服务器的搭建包括:The construction of the network control server includes:

第一步:安装Cygwin;然后,下载并安装Node.js。Step 1: Install Cygwin; then, download and install Node.js.

第二步:用socket.io.js实现WebSocket通信。Step 2: Implement WebSocket communication with socket.io.js.

socket.io.js是一个利用HTML5草案中的WebSocket规范编程,实现了浏览器与服务器端的双向通信的js库文件,提供了如发送消息(socket.emit())、接收信息(socket.on())、广播信息(socket.broadcast.emit())等API。socket.io.js is a js library file that uses the WebSocket specification programming in the HTML5 draft to realize the two-way communication between the browser and the server. It provides such as sending messages (socket.emit()), receiving information (socket.on( )), broadcast information (socket.broadcast.emit()) and other APIs.

第三步:实现移动通信终端的授权和认证。The third step: realize the authorization and authentication of the mobile communication terminal.

实现方式:指定设备将受控密码发送到网络控制服务器,网络控制服务器备份受控密码,当控制端即移动通信终端要想控制某一个指定设备时,需要输入受控密码并发送到网络控制服务器进行验证,如果密码输入正确,则获得控制权。Implementation method: the specified device sends the controlled password to the network control server, and the network control server backs up the controlled password. When the control terminal, that is, the mobile communication terminal, wants to control a specified device, it needs to enter the controlled password and send it to the network control server Validate, and if the password is entered correctly, take control.

第四步:网络控制服务器获取指定设备、控制端即移动通信终端的命令并实现中转。Step 4: The network control server obtains the command of the designated device, the control terminal, that is, the mobile communication terminal, and realizes the transfer.

该步骤的获取与中转都是通过WebSocket通信完成。The acquisition and transfer of this step are all completed through WebSocket communication.

步骤S304:在移动通信终端构建HTML页面,用于供用户对指定设备进行控制操作,发送根据控制操作生成的控制操作指令。Step S304: Build an HTML page on the mobile communication terminal for the user to control and operate the designated device, and send the control operation instruction generated according to the control operation.

本实施例中,构建的HTML页面包括触摸板页面、快捷操作页面和选择终端页面。In this embodiment, the constructed HTML page includes a touchpad page, a shortcut operation page and a terminal selection page.

触摸板页面的界面如图4所示,触摸板页面用于接收用户在触摸板页面的触摸操作的信息,根据触摸操作的信息生成控制操作指令,以控制设备的光标操作。通过拖动触摸板页面的触摸点(如图4中的白点)并计算其拖动的距离(单位可以是像素)来控制指定设备光标的移动。距离换算的方式为等距换算,即触摸点在移动通信终端如手机的触摸板页面上拖动多少距离,电脑上的光标就移动多少距离。实现时,控制端即移动通信终端通过HTML页面的DOM事件(包括touchstart、touchmove、touchend等)获取触摸点的移动信息或点击事件,然后用socket.emit()方法将相应的数据发送到网络控制服务器,网络控制服务器通过socket.on()监听控制端即移动通信终端发来的数据并用socket.broadcast.emit()方法将数据发给指定设备,指定设备的浏览器扩展程序通过socket.on()监听网络控制服务器发来的数据,并通过NPAPI插件(浏览器扩展程序的一个DLL)调用相关的系统API(如:mouse_event,keybd_event,OpenProcessToken,LookupPrivilegeValue,AdjustTokenPrivileges,ExitWindowsEx)执行相关的操作动作。此外,距离换算的方式也可以为其它适当方式,如等比换算。The interface of the touchpad page is shown in Figure 4. The touchpad page is used to receive the information of the user's touch operation on the touchpad page, and generate control operation instructions according to the information of the touch operation to control the cursor operation of the device. Control the movement of the specified device cursor by dragging the touch point on the touchpad page (the white point in Figure 4) and calculating the dragging distance (the unit can be pixels). The method of distance conversion is equidistance conversion, that is, the cursor on the computer will move as far as the touch point is dragged on the touch panel page of a mobile communication terminal such as a mobile phone. When implemented, the control terminal, that is, the mobile communication terminal, obtains the movement information or click event of the touch point through the DOM event (including touchstart, touchmove, touchend, etc.) of the HTML page, and then uses the socket.emit() method to send the corresponding data to the network control Server, network control server listens to the data sent by the control terminal, that is, the mobile communication terminal through socket.on() and sends the data to the specified device with the socket.broadcast.emit() method, and the browser extension program of the specified device passes socket.on( ) to monitor the data sent by the network control server, and call related system APIs (such as: mouse_event, keybd_event, OpenProcessToken, LookupPrivilegeValue, AdjustTokenPrivileges, ExitWindowsEx) through the NPAPI plug-in (a DLL of the browser extension) to perform related operations. In addition, the distance conversion method may also be other appropriate methods, such as proportional conversion.

快捷操作页面如图5所示,用于接收用户对快捷操作页面中的控件的操作的信息,根据控件的操作的信息生成控制操作指令,以控制设备进行控制操作指令所指示的控制操作。本实施例中,快捷操作页面中以按钮形式设置的控件包括:音量调节控件、设备桌面显示控件、设备截屏控件和设备关机控件,也即,通过该页面对设备进行的快捷操作包括:调节音量、显示桌面、截屏和关机等。实现时,控制端即移动通信终端的快捷操作HTML页面监听各个按钮的点击事件,然后将相应的信息发送到网络控制服务器,网络控制服务器再将数据发送到指定设备,指定设备获取到数据后根据数据的类型通过NPAPI插件机制调用相应的系统API完成相应的操作。The shortcut operation page, as shown in Figure 5, is used to receive user operation information on the controls in the shortcut operation page, and generate control operation instructions according to the operation information of the controls, so as to control the device to perform the control operations indicated by the control operation instructions. In this embodiment, the controls set in the form of buttons on the shortcut operation page include: volume adjustment controls, device desktop display controls, device screen capture controls, and device shutdown controls, that is, the shortcut operations performed on the device through this page include: adjusting the volume , display the desktop, take screenshots and shut down, etc. When implemented, the control terminal, that is, the shortcut operation HTML page of the mobile communication terminal monitors the click events of each button, and then sends the corresponding information to the network control server, and the network control server sends the data to the designated device, and the designated device obtains the data according to The type of data calls the corresponding system API through the NPAPI plug-in mechanism to complete the corresponding operation.

此外,本实施例的快捷操作页面中还设置了选择终端按钮控件,当点击该按钮时,显示选择终端页面,如图6所示。In addition, the shortcut operation page of this embodiment is also provided with a terminal selection button control, and when the button is clicked, a terminal selection page is displayed, as shown in FIG. 6 .

选择终端页面的界面如图6所示,用于显示待控制的指定设备的信息和待控制的指定设备的受控状态,以供用户选择待控制的指定设备;此外,选择终端页面还可以包括授权密码输入控件,以供用户输入授权密码进行控制操作认证。选择终端页面显示从网络控制服务器获取的指定设备列表及指定设备的受控状态,用户在输入授权密码并经网络控制服务器验证后即可获得所选择的指定设备的控制权。实现时,指定设备将本机的信息(例如,计算机名、IP地址、受控密码等)发送到网络控制服务器,网络控制服务器可以将相关信息(除受控密码以外的信息)发送到控制端即移动通信终端,控制端即移动通信终端选择指定设备(如根据IP地址或者计算机名选择)并输入受控密码并发送到网络控制服务器验证,密码正确以后网络控制服务器返回成功的信息,至此控制端即移动通信终端获得控制权限,接下来控制端即移动通信终端就可以控制指定设备了。The interface of the terminal selection page is shown in Figure 6, which is used to display the information of the designated device to be controlled and the controlled status of the designated device to be controlled, so that the user can select the designated device to be controlled; in addition, the selection terminal page can also include The authorization password input control is used for the user to input the authorization password for control operation authentication. The terminal selection page displays the list of specified devices obtained from the network control server and the controlled status of the specified devices. After entering the authorization password and being verified by the network control server, the user can obtain the control right of the selected specified device. When implemented, the specified device sends the information of the machine (for example, computer name, IP address, controlled password, etc.) to the network control server, and the network control server can send relevant information (information other than the controlled password) to the control terminal That is, the mobile communication terminal, the control terminal, that is, the mobile communication terminal, selects the specified device (such as according to the IP address or computer name) and enters the controlled password and sends it to the network control server for verification. After the password is correct, the network control server returns a successful message, so far the control The terminal, that is, the mobile communication terminal, obtains the control authority, and then the control terminal, that is, the mobile communication terminal, can control the designated device.

步骤S306:设置指定设备。Step S306: Setting a designated device.

指定设备具有NPAPI机制的浏览器和浏览器扩展程序,浏览器扩展程序也即指定设备需要依赖一个浏览器的扩展程序(.crx,.xpi文件)。扩展程序的background页面是一个HTML页面,用于完成与网络控制服务器的通信,扩展程序的NPAPI插件是一个DLL,完成系统API的调用。The specified device has a browser and browser extensions with the NPAPI mechanism, and the browser extension means that the specified device needs to rely on a browser extension (.crx, .xpi file). The background page of the extension is an HTML page, which is used to complete the communication with the network control server, and the NPAPI plug-in of the extension is a DLL, which completes the call of the system API.

当控制端即移动通信终端的HTML页面将控制操作指令通过WebSocket发送到网络控制服务器,网络控制服务器用WebSocket将控制操作指令发送到指定设备,使指定设备接受控制端即移动通信终端的指令进行操作。When the HTML page of the control terminal, that is, the mobile communication terminal, sends the control operation command to the network control server through WebSocket, the network control server uses WebSocket to send the control operation command to the designated device, so that the designated device accepts the command of the control terminal, that is, the mobile communication terminal to operate .

指定设备浏览器扩展程序的后台页面获取网络控制服务器发来的控制操作指令后,解析指令并调用NPAPI的相关函数,再由NPAPI的函数调用系统的API(如mouse_event,keybd_event,OpenProcessToken,LookupPrivilegeValue,AdjustTokenPrivileges,ExitWindowsEx等)完成鼠标点击、移动光标、关机等等事件。这是因为,浏览器扩展程序是不能直接调用系统API的,但是可以调用NPAPI插件的导出函数,NPAPI插件是一个DLL,可以直接调用系统API,从而实现指定设备通过NPAPI调用系统的API执行接受到的命令。After the background page of the browser extension program of the specified device obtains the control operation instructions sent by the network control server, it parses the instructions and calls NPAPI related functions, and then the NPAPI functions call system APIs (such as mouse_event, keybd_event, OpenProcessToken, LookupPrivilegeValue, AdjustTokenPrivileges , ExitWindowsEx, etc.) to complete events such as mouse click, cursor movement, shutdown, etc. This is because browser extensions cannot directly call the system API, but they can call the exported function of the NPAPI plug-in. The NPAPI plug-in is a DLL that can directly call the system API, so that the specified device can call the system API through NPAPI to execute the received function. The command.

需要说明的是,上述步骤S302、S304、S306之间的执行可以不分先后顺序。It should be noted that, the above steps S302, S304, and S306 may be performed in any order.

在移动通信终端、网络控制服务器和指定设备完成了上述相应设置后,即可开始移动通信终端对指定设备的操作控制了,包括:After the mobile communication terminal, the network control server and the designated device have completed the above corresponding settings, the mobile communication terminal can start to control the operation of the designated device, including:

步骤S308:移动通信终端获取指定设备(PC)列表。Step S308: the mobile communication terminal acquires a list of designated devices (PCs).

指定设备将本机的信息(如计算机名、IP地址、受控密码等)发送到网络控制服务器,网络控制服务器将指定设备的相关信息(除受控密码以外的信息)发送到控制端即移动通信终端。The specified device sends the information of the machine (such as computer name, IP address, controlled password, etc.) to the network control server, and the network control server sends the relevant information of the specified device (except for the controlled password) communication terminal.

步骤S310:移动通信终端选择指定设备(PC)并进行授权认证。Step S310: the mobile communication terminal selects a designated device (PC) and performs authorization authentication.

指定设备将受控密码发送到网络控制服务器,控制端即移动通信终端在HTML页面的授权密码输入控件如input控件中输入密码并发送到网络控制服务器进行验证,如果输入的密码正确则获得授权。The designated device sends the controlled password to the network control server, and the control terminal, that is, the mobile communication terminal, enters the password in the authorization password input control of the HTML page, such as the input control, and sends it to the network control server for verification. If the entered password is correct, it is authorized.

步骤S312:移动通信终端通过触摸板页面的触摸区域移动光标,生成控制操作指令。Step S312: the mobile communication terminal moves the cursor through the touch area of the touch panel page, and generates a control operation instruction.

当用户在触摸板页面的触摸区域拖动触摸点,以移动光标时,触摸板页面的DOM事件获取触摸点的移动信息及点击事件,进而生成控制操作指令。When the user drags the touch point in the touch area of the touchpad page to move the cursor, the DOM event of the touchpad page acquires the movement information of the touch point and the click event, and then generates a control operation instruction.

同样,当用户通过快捷操作页面的按钮发起操作命令(如调节音量、显示桌面、截屏和关机等)时,快捷操作页面的DOM事件获取按钮点击信息,进而生成控制操作指令。Similarly, when the user initiates an operation command (such as adjusting the volume, displaying the desktop, taking a screenshot, shutting down, etc.) through the button on the shortcut operation page, the DOM event on the shortcut operation page obtains the button click information, and then generates a control operation instruction.

步骤S314:移动通信终端使用WebSocket连接与网络控制服务器通信,通过触摸板页面将控制操作指令发送给网络控制服务器。Step S314: the mobile communication terminal communicates with the network control server through the WebSocket connection, and sends the control operation instruction to the network control server through the touch panel page.

步骤S316:网络控制服务器使用WebSocket连接与指定设备通信,将控制操作指令发送给指定设备。Step S316: the network control server communicates with the designated device through the WebSocket connection, and sends the control operation instruction to the designated device.

步骤S318:指定设备通过浏览器扩展程序的后台页面获取网络控制服务器发送的控制操作指令,调用相关NPAPI函数。Step S318: The designated device obtains the control operation instruction sent by the network control server through the background page of the browser extension program, and calls the relevant NPAPI function.

例如,当控制操作指令指示光标操作时,设备调用NPAPI函数SetCursorPos。For example, when the control operation instruction indicates cursor operation, the device calls the NPAPI function SetCursorPos.

步骤S320:指定设备通过NPAPI函数调用系统的API函数,执行控制操作指令指示的控制操作。Step S320: the designated device calls the API function of the system through the NPAPI function, and executes the control operation indicated by the control operation instruction.

如,调用与步骤S318中的NPAPI函数相对应的API函数mouse_event,以实现指定设备的光标操作。For example, the API function mouse_event corresponding to the NPAPI function in step S318 is called to realize the cursor operation of the specified device.

本实施例以指定设备的光标控制操作为例,对本发明的控制设备操作的方法进行了说明。但本领域技术人员应当明了,其它控制操作如音量控制、关机操作等均可参照本实施例进行。通过本实施例,实现了移动通信终端如手机取代传统的键盘、触摸板和鼠标等电脑输入设备,在远离电脑的情况下便捷地操作电脑,以及实时地监控电脑的功能。本实施例利用新的Web标准及移动通信终端如手机随身携带的特性,将移动通信终端如手机作为电脑的输入设备,在最大限度地扩展电脑输入便捷性的同时,极大地改善了用户对电脑的操作体验。In this embodiment, the method for controlling the operation of the device according to the present invention is described by taking the cursor control operation of the designated device as an example. However, those skilled in the art should understand that other control operations such as volume control and shutdown operations can be performed with reference to this embodiment. Through this embodiment, mobile communication terminals such as mobile phones replace traditional computer input devices such as keyboards, touch pads, and mice, and can conveniently operate the computer and monitor the computer in real time without being far away from the computer. This embodiment utilizes new Web standards and the characteristics of mobile communication terminals such as mobile phones to be carried around, and uses mobile communication terminals such as mobile phones as input devices for computers. operating experience.

实施例四Embodiment Four

参照图7,示出了根据本发明实施例四的一种控制设备操作的方法的步骤流程图。Referring to FIG. 7 , it shows a flow chart of steps of a method for controlling device operation according to Embodiment 4 of the present invention.

本实施例的控制设备操作的方法可应用于移动通信终端对物联网终端设备的控制。The method for controlling device operation in this embodiment can be applied to the control of the Internet of Things terminal device by the mobile communication terminal.

本实施例的控制设备操作的方法包括以下步骤:The method for controlling the operation of equipment in this embodiment includes the following steps:

步骤S402:移动通信终端获取一定范围内的至少一个指定设备的信息并显示,供用户选择指定设备。Step S402: The mobile communication terminal acquires information of at least one specified device within a certain range and displays it for the user to select the specified device.

如,移动通信终端通过特定连接如蓝牙,向一定距离内的指定设备发送相应的请求,以获得周围的指定设备的信息。如,移动通信终端可以通过蓝牙搜索同一房间内的多个物联网设备(如智能电视、智能冰箱等),获得这些设备的信息,进而在移动通信终端中显示出来,以供用户选择受控的指定设备。For example, a mobile communication terminal sends a corresponding request to a specified device within a certain distance through a specific connection such as Bluetooth, so as to obtain information about the specified device around. For example, a mobile communication terminal can search for multiple IoT devices (such as smart TVs, smart refrigerators, etc.) Specify the device.

步骤S404:移动通信终端接收用户选择确定指定设备,并向该指定设备发送配对请求,请求与该指定设备建立配对连接。Step S404: The mobile communication terminal receives the user's selection to determine a designated device, and sends a pairing request to the designated device, requesting to establish a pairing connection with the designated device.

其中,配对请求中包括有移动通信终端的信息。优选地,移动通信终端的信息包括以下至少之一:移动通信终端的二维码、移动通信终端的标识、移动通信终端的IP地址。Wherein, the pairing request includes the information of the mobile communication terminal. Preferably, the information of the mobile communication terminal includes at least one of the following: a two-dimensional code of the mobile communication terminal, an identification of the mobile communication terminal, and an IP address of the mobile communication terminal.

步骤S406:移动通信终端接收指定设备返回的、携带有指定设备的信息的配对响应,根据配对响应建立与指定设备的配对连接。Step S406: The mobile communication terminal receives a pairing response carrying the information of the designated device returned by the designated device, and establishes a pairing connection with the designated device according to the pairing response.

优选地,指定设备的信息包括以下至少之一:指定设备的二维码、指定设备的标识、指定设备的IP地址。Preferably, the information of the specified device includes at least one of the following: a QR code of the specified device, an identifier of the specified device, and an IP address of the specified device.

步骤S408:移动通信终端获取与指定设备对应的HTML页面。Step S408: the mobile communication terminal obtains the HTML page corresponding to the designated device.

例如,移动通信终端在与指定设备建立配对连接后,通过配对连接向指定设备发送信息获取命令,以请求获取指定设备所支持的控制操作;进而,根据指定设备返回的所支持的控制操作的信息生成HTML页面。For example, after the mobile communication terminal establishes a pairing connection with the designated device, it sends an information acquisition command to the designated device through the pairing connection to request to obtain the control operations supported by the designated device; furthermore, according to the information of the supported control operations returned by the designated device Generate HTML pages.

再例如,移动通信终端中保存有与一至多种类型的指定设备相匹配的HTML页面;移动通信终端在获取到指定设备的信息后,根据该信息确定指定设备的类型,进而选择相匹配的HTML页面。For another example, HTML pages that match one or more types of designated devices are stored in the mobile communication terminal; after obtaining the information of the designated device, the mobile communication terminal determines the type of the designated device according to the information, and then selects the matching HTML page. page.

又例如,在某些服务器也可以参与的情况下,移动通信终端将获得的指定设备的信息发送给服务器;由服务器确定指定设备的类型,进而生成HTML页面发送给移动通信终端,或者,由服务器根据指定设备的类型,向移动通信终端返回该类型的指定设备所支持的操作,进而由移动通信终端生成相应的HTML页面。For another example, when some servers can also participate, the mobile communication terminal sends the obtained specified device information to the server; the server determines the type of the specified device, and then generates an HTML page to send to the mobile communication terminal, or, the server According to the type of the designated device, the operations supported by the designated device of this type are returned to the mobile communication terminal, and then the mobile communication terminal generates a corresponding HTML page.

以智能电视为例,移动通信终端根据智能电视返回的信息,生成相应的HTML页面,该HTML页面上可以包括开关机按钮控件、音量调节控件、频道调节控件、菜单操作控件等等,通过这些控件实现对智能电视的远距离控制。Taking a smart TV as an example, the mobile communication terminal generates a corresponding HTML page according to the information returned by the smart TV. Realize remote control of smart TV.

步骤S410:移动通信终端接收用户通过HTML页面对指定设备进行控制操作的控制操作指令。Step S410: the mobile communication terminal receives a control operation instruction from the user to perform a control operation on a designated device through an HTML page.

步骤S412:移动通信终端通过HTML页面,使用配对连接将控制操作指令发送给配对成功的指定设备。Step S412: The mobile communication terminal sends the control operation instruction to the designated device that has been paired successfully through the HTML page and using the pairing connection.

步骤S414:指定设备接收移动通信终端通过配对连接发送的控制操作指令,执行控制操作指令所指示的控制操作。Step S414: The designated device receives the control operation instruction sent by the mobile communication terminal through the paired connection, and executes the control operation indicated by the control operation instruction.

通过本实施例,实现了点对点的设备控制。只需一个移动通信终端,即可实现多种指定设备的控制,无须专用的遥控器或控制软件,实现了远离设备的情况下多种设备的兼容操控,提升了用户操作体验的效果。Through this embodiment, point-to-point device control is realized. Only one mobile communication terminal is needed to realize the control of multiple designated devices without special remote control or control software, realizing the compatible control of multiple devices when they are far away from the device, and improving the effect of user operation experience.

实施例五Embodiment five

参照图8,示出了根据本发明实施例五的一种移动通信终端的结构框图。Referring to FIG. 8 , it shows a structural block diagram of a mobile communication terminal according to Embodiment 5 of the present invention.

本实施例的移动通信终端中设置有进行设备控制的装置,包括:接收模块502,用于接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令,其中,HTML页面用于提供用户通过移动通信终端对指定设备进行控制操作的界面,接收用户对界面操作所产生的控制操作指令,并发送控制操作指令;控制模块504,用于通过HTML页面将控制操作指令发送给指定设备,使指定设备执行控制操作指令所指示的控制操作。The device for device control is provided in the mobile communication terminal of this embodiment, including: a receiving module 502, configured to receive a control operation instruction for the user to control and operate a specified device through a set HTML page, wherein the HTML page is used to provide The interface where the user controls and operates the designated device through the mobile communication terminal receives the control operation instruction generated by the user's operation on the interface, and sends the control operation instruction; the control module 504 is used to send the control operation instruction to the designated device through the HTML page, Make the specified device execute the control operation indicated by the control operation instruction.

优选地,控制模块504,用于使用WebSocket连接,通过HTML页面将控制操作指令发送给网络控制服务器,由网络控制服务器使用WebSocket连接将控制操作指令转发至指定设备,使指定设备根据控制操作指令,通过NPAPI调用指定设备的系统API实现控制操作指令所指示的控制操作。Preferably, the control module 504 is configured to use a WebSocket connection to send the control operation instruction to the network control server through the HTML page, and the network control server uses the WebSocket connection to forward the control operation instruction to the designated device, so that the designated device can, according to the control operation instruction, Call the system API of the specified device through NPAPI to realize the control operation indicated by the control operation instruction.

优选地,指定设备安装有具有NPAPI的浏览器和浏览器扩展程序,其中,浏览器扩展程序包括NPAPI插件,浏览器扩展程序用于实现指定设备与网络控制服务器的WebSocket通信,以及通过NPAPI插件调用指定设备的系统API。Preferably, the specified device is installed with a browser with NPAPI and a browser extension program, wherein the browser extension program includes an NPAPI plug-in, and the browser extension program is used to realize the WebSocket communication between the specified device and the network control server, and through the NPAPI plug-in call Specifies the system API for the device.

优选地,控制模块504在使指定设备根据控制操作指令,通过NPAPI调用指定设备的系统API实现控制操作指令所指示的控制操作时,使指定设备通过浏览器扩展程序的HTML页面监听并接收网络控制服务器发送的控制操作指令;浏览器扩展程序的HTML页面调用与控制操作指令指示的控制操作相对应的NPAPI函数,并通过NPAPI函数调用相对应的系统API函数,实现控制操作指令所指示的控制操作。Preferably, when the control module 504 makes the designated device call the system API of the designated device through NPAPI to realize the control operation indicated by the control operation instruction according to the control operation instruction, the designated device monitors and receives the network control through the HTML page of the browser extension program. The control operation instruction sent by the server; the HTML page of the browser extension program calls the NPAPI function corresponding to the control operation indicated by the control operation instruction, and calls the corresponding system API function through the NPAPI function to realize the control operation indicated by the control operation instruction .

优选地,本实施例还包括:选择模块506,用于在接收模块504接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,从网络控制服务器获取至少一个待控制的指定设备的信息;选择一个待控制的指定设备,并向网络控制服务器发送认证信息,认证信息用于请求对选择的指定设备进行控制操作授权;接收网络控制服务器返回的确认授权信息。Preferably, this embodiment further includes: a selection module 506, configured to acquire at least one designated device to be controlled from the network control server before the receiving module 504 receives a control operation instruction for the user to perform a control operation on the designated device through a set HTML page. Device information; select a designated device to be controlled, and send authentication information to the network control server, and the authentication information is used to request control operation authorization for the selected designated device; receive confirmation authorization information returned by the network control server.

优选地,选择模块506,还用于在接收网络控制服务器返回的确认授权信息之后,使用WebSocket连接向网络控制服务器发送信息获取命令,其中,信息获取命令用于获取指定设备支持的控制操作;网络控制服务器使用WebSocket连接将信息获取命令发送至指定设备,使指定设备根据信息获取命令,通过NPAPI函数获取指定设备支持的控制操作并返回给网络控制服务器,由网络控制服务器转发给选择模块;选择模块根据网络控制服务器返回的指定设备支持的控制操作的信息,在HTML页面中显示与指定设备支持的控制操作相对应的控件。Preferably, the selection module 506 is further configured to use the WebSocket connection to send an information acquisition command to the network control server after receiving the confirmation authorization information returned by the network control server, wherein the information acquisition command is used to acquire the control operations supported by the specified device; the network The control server uses the WebSocket connection to send the information acquisition command to the specified device, so that the specified device obtains the control operation supported by the specified device through the NPAPI function according to the information acquisition command and returns it to the network control server, which is forwarded to the selection module by the network control server; the selection module According to the information on the control operations supported by the specified device returned by the network control server, the controls corresponding to the control operations supported by the specified device are displayed on the HTML page.

优选地,选择模块506在从网络控制服务器获取至少一个待控制的指定设备的信息时,从网络控制服务器获取至少一个待控制的指定设备的信息,其中,指定设备的信息包括以下至少之一:指定设备的二维码、指定设备的标识、指定设备的IP地址;移动通信终端通过指定设备的信息识别并显示指定设备;或者,网络控制服务器根据待控制的指定设备的信息,识别指定设备;移动通信终端从网络控制服务器处获取网络控制服务器识别出的指定设备的信息。Preferably, the selection module 506 acquires information of at least one designated device to be controlled from the network control server when obtaining information of at least one designated device to be controlled from the network control server, wherein the information of the designated device includes at least one of the following: The QR code of the designated device, the identification of the designated device, and the IP address of the designated device; the mobile communication terminal identifies and displays the designated device through the information of the designated device; or, the network control server identifies the designated device according to the information of the designated device to be controlled; The mobile communication terminal acquires the information of the designated device identified by the network control server from the network control server.

优选地,网络控制服务器使用Node.js搭建。Preferably, the network control server is built using Node.js.

优选地,控制模块504,用于通过HTML页面,将控制操作指令发送给与移动通信终端配对成功的指定设备,使指定设备执行控制操作指令所指示的控制操作。Preferably, the control module 504 is configured to send the control operation instruction to the specified device successfully paired with the mobile communication terminal through the HTML page, so that the specified device performs the control operation indicated by the control operation instruction.

优选地,本实施例还包括:配对模块508,用于在接收模块502接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,向指定设备发送配对请求,请求与指定设备建立配对连接,其中,配对请求中包括有移动通信终端的信息;接收指定设备返回的、携带有指定设备的信息的配对响应,根据配对响应建立与指定设备的配对连接。Preferably, this embodiment further includes: a pairing module 508, configured to send a pairing request to the designated device before the receiving module 502 receives a control operation instruction for the user to perform a control operation on the designated device through a set HTML page, requesting to communicate with the designated device Establishing a pairing connection, wherein the pairing request includes the information of the mobile communication terminal; receiving a pairing response carrying the information of the designated device returned by the designated device, and establishing a pairing connection with the designated device according to the pairing response.

优选地,移动通信终端的信息包括以下至少之一:移动通信终端的二维码、移动通信终端的标识、移动通信终端的IP地址;指定设备的信息包括以下至少之一:指定设备的二维码、指定设备的标识、指定设备的IP地址。Preferably, the information of the mobile communication terminal includes at least one of the following: the two-dimensional code of the mobile communication terminal, the identification of the mobile communication terminal, and the IP address of the mobile communication terminal; the information of the designated device includes at least one of the following: the two-dimensional code of the designated device code, the identifier of the specified device, and the IP address of the specified device.

优选地,本实施例还包括:构建模块510,用于在接收模块502接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,构建设定的HTML页面,HTML页面包括以下至少之一:触摸板页面、快捷操作页面和选择终端页面,其中,触摸板页面用于接收用户在触摸板页面的触摸操作的信息,根据触摸操作的信息生成控制操作指令,以控制指定设备的光标操作;快捷操作页面包括以下控制至少之一:音量调节控件、设备桌面显示控件、设备截屏控件和设备关机控件,快捷操作页面用于接收用户对快捷操作页面中的控件的操作的信息,根据控件的操作的信息生成控制操作指令,以控制指定设备进行控制操作指令所指示的控制操作;选择终端页面用于显示待控制的设备的信息和待控制的设备的受控状态,以供用户选择待控制的设备,选择终端页面还包括授权密码输入控件,以供用户输入授权密码进行控制操作认证。Preferably, this embodiment further includes: a construction module 510, configured to construct a set HTML page before the receiving module 502 receives a control operation instruction for the user to perform a control operation on a specified device through the set HTML page, and the HTML page includes the following At least one of: a touchpad page, a shortcut operation page, and a selection terminal page, wherein the touchpad page is used to receive information about the user's touch operation on the touchpad page, and generate a control operation instruction according to the information of the touch operation to control the specified device Cursor operation; the shortcut operation page includes at least one of the following controls: volume adjustment control, device desktop display control, device screenshot control, and device shutdown control. The shortcut operation page is used to receive information about the user's operation on the controls in the shortcut operation page. The control operation information generates control operation instructions to control the specified device to perform the control operation indicated by the control operation instruction; the selection terminal page is used to display the information of the device to be controlled and the controlled status of the device to be controlled for the user to choose For the equipment to be controlled, the selection terminal page also includes an authorization password input control for the user to enter the authorization password for control operation authentication.

优选地,接收模块502,用于通过设定的HTML页面监听用户通过HTML页面对指定设备进行的控制操作,通过HTML页面的DOM事件获取控制操作的信息,根据控制操作的信息生成控制操作指令。Preferably, the receiving module 502 is configured to listen to the user's control operation on the designated device through the HTML page, obtain the information of the control operation through the DOM event of the HTML page, and generate the control operation instruction according to the information of the control operation.

本实施例移动通信终端用于实现前述方法实施例中相应的控制设备操作的方法,并具有相应的方法实施例的有益效果,在此不再赘述。The mobile communication terminal in this embodiment is used to implement the corresponding method for controlling the operation of the device in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

在此提供的控制设备操作的方案不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造具有本发明方案的系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The schemes for controlling device operation provided herein are not inherently related to any particular computer, virtual system or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct a system having the solution of the present invention is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的控制设备操作的方案中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the solution for controlling device operation according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本文公开了A1、一种控制设备操作的方法,其特征在于,包括:移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令,其中,所述HTML页面用于提供所述用户通过所述移动通信终端对所述指定设备进行控制操作的界面,接收所述用户对界面操作所产生的所述控制操作指令,并发送所述控制操作指令;所述移动通信终端通过所述HTML页面将所述控制操作指令发送给所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作;其中,所述移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令的步骤包括:所述设定的HTML页面监听所述用户通过所述HTML页面对所述指定设备进行的控制操作,通过所述HTML页面的DOM事件获取所述控制操作的信息,根据所述控制操作的信息生成所述控制操作指令。A2、根据A1所述的方法,其特征在于,所述移动通信终端通过所述HTML页面将所述控制操作指令发送给所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作的步骤包括:所述移动通信终端使用WebSocket连接,通过所述HTML页面将所述控制操作指令发送给网络控制服务器,由所述网络控制服务器使用所述WebSocket连接将所述控制操作指令转发至所述指定设备,使所述指定设备根据所述控制操作指令,通过NPAPI调用所述指定设备的系统API实现所述控制操作指令所指示的控制操作。A3、根据A2所述的方法,其特征在于,所述指定设备安装有具有NPAPI的浏览器和浏览器扩展程序,其中,所述浏览器扩展程序包括NPAPI插件,所述浏览器扩展程序用于实现所述指定设备与所述网络控制服务器的WebSocket通信,以及通过所述NPAPI插件调用所述指定设备的系统API。A4、根据A3所述的方法,其特征在于,所述指定设备根据所述控制操作指令,通过NPAPI调用所述指定设备的系统API实现所述控制操作指令所指示的控制操作的步骤包括:所述指定设备通过所述浏览器扩展程序的HTML页面监听并接收所述网络控制服务器发送的所述控制操作指令;所述浏览器扩展程序的HTML页面调用与所述控制操作指令指示的控制操作相对应的NPAPI函数,并通过所述NPAPI函数调用相对应的系统API函数,实现所述控制操作指令所指示的控制操作。A5、根据A1所述的方法,其特征在于,在所述移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令的步骤之前,还包括:所述移动通信终端从网络控制服务器获取至少一个待控制的所述指定设备的信息;选择一个所述待控制的指定设备,并向所述网络控制服务器发送认证信息,所述认证信息用于请求对选择的所述指定设备进行控制操作授权;接收所述网络控制服务器返回的确认授权信息。A6、根据A5所述的方法,其特征在于,在所述接收所述网络控制服务器返回的确认授权信息之后,还包括:所述移动通信终端使用WebSocket连接向所述网络控制服务器发送信息获取命令,其中,所述信息获取命令用于获取所述指定设备支持的控制操作;所述网络控制服务器使用所述WebSocket连接将所述信息获取命令发送至所述指定设备,使所述指定设备根据所述信息获取命令,通过NPAPI函数获取所述指定设备支持的控制操作并返回给所述网络控制服务器,由所述网络控制服务器转发给所述移动通信终端;所述移动通信终端根据所述网络控制服务器返回的所述指定设备支持的控制操作的信息,在HTML页面中显示与所述指定设备支持的控制操作相对应的控件。A7、根据A5或A6所述的方法,其特征在于,所述移动通信终端从网络控制服务器获取至少一个待控制的所述指定设备的信息的步骤包括:所述移动通信终端从所述网络控制服务器获取至少一个待控制的所述指定设备的信息,其中,所述指定设备的信息包括以下至少之一:所述指定设备的二维码、所述指定设备的标识、所述指定设备的IP地址;所述移动通信终端通过所述指定设备的信息识别并显示所述指定设备;或者,所述网络控制服务器根据所述待控制的指定设备的信息,识别所述指定设备;所述移动通信终端从所述网络控制服务器处获取所述网络控制服务器识别出的所述指定设备的信息。A8、根据A2所述的方法,其特征在于,所述网络控制服务器使用Node.js搭建。A9、根据A1所述的方法,其特征在于,所述移动通信终端通过所述HTML页面将所述控制操作指令发送给所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作的步骤包括:所述移动通信终端通过所述HTML页面,将所述控制操作指令发送给与所述移动通信终端配对成功的所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作。A10、根据A9所述的方法,其特征在于,在所述移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令的步骤之前,还包括:所述移动通信终端向所述指定设备发送配对请求,请求与所述指定设备建立配对连接,其中,所述配对请求中包括有所述移动通信终端的信息;所述移动通信终端接收所述指定设备返回的、携带有所述指定设备的信息的配对响应,根据所述配对响应建立与所述指定设备的配对连接。A11、根据A10所述的方法,其特征在于,所述移动通信终端的信息包括以下至少之一:所述移动通信终端的二维码、所述移动通信终端的标识、所述移动通信终端的IP地址;所述指定设备的信息包括以下至少之一:所述指定设备的二维码、所述指定设备的标识、所述指定设备的IP地址。A12、根据A1所述的方法,其特征在于,在所述移动通信终端接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令的步骤之前,还包括:构建所述设定的HTML页面,所述HTML页面包括以下至少之一:触摸板页面、快捷操作页面和选择终端页面,其中,所述触摸板页面用于接收所述用户在所述触摸板页面的触摸操作的信息,根据所述触摸操作的信息生成所述控制操作指令,以控制所述指定设备的光标操作;所述快捷操作页面包括以下控制至少之一:音量调节控件、设备桌面显示控件、设备截屏控件和设备关机控件,所述快捷操作页面用于接收所述用户对所述快捷操作页面中的控件的操作的信息,根据所述控件的操作的信息生成所述控制操作指令,以控制所述指定设备进行所述控制操作指令所指示的控制操作;所述选择终端页面用于显示待控制的设备的信息和所述待控制的设备的受控状态,以供所述用户选择所述待控制的设备,所述选择终端页面还包括授权密码输入控件,以供所述用户输入授权密码进行控制操作认证。This paper discloses A1. A method for controlling the operation of a device, which is characterized in that it includes: the mobile communication terminal receives a control operation instruction for the user to control and operate the specified device through a set HTML page, wherein the HTML page is used to provide The user controls and operates the specified device through the interface of the mobile communication terminal, receives the control operation instruction generated by the user's operation on the interface, and sends the control operation instruction; the mobile communication terminal through The HTML page sends the control operation instruction to the designated device, so that the designated device performs the control operation indicated by the control operation instruction; wherein, the mobile communication terminal receives the user through the HTML page set The step of specifying the control operation instruction for the device to perform the control operation includes: the set HTML page monitors the control operation performed by the user on the specified device through the HTML page, and obtains the The information of the control operation is used to generate the control operation instruction according to the information of the control operation. A2. The method according to A1, wherein the mobile communication terminal sends the control operation instruction to the designated device through the HTML page, so that the designated device executes the control operation instruction indicated The step of controlling the operation includes: the mobile communication terminal uses a WebSocket connection to send the control operation instruction to a network control server through the HTML page, and the network control server uses the WebSocket connection to forward the control operation instruction To the specified device, make the specified device call the system API of the specified device through NPAPI according to the control operation instruction to implement the control operation indicated by the control operation instruction. A3, according to the method described in A2, it is characterized in that, the specified device is installed with a browser and a browser extension program with NPAPI, wherein the browser extension program includes an NPAPI plug-in, and the browser extension program is used for Realize the WebSocket communication between the specified device and the network control server, and call the system API of the specified device through the NPAPI plug-in. A4. The method according to A3, wherein the specified device calls the system API of the specified device through NPAPI according to the control operation instruction to implement the control operation indicated by the control operation instruction, including: The designated device monitors and receives the control operation instruction sent by the network control server through the HTML page of the browser extension program; the HTML page call of the browser extension program corresponds to the control operation indicated by the control operation instruction corresponding NPAPI function, and call the corresponding system API function through the NPAPI function to realize the control operation indicated by the control operation instruction. A5. The method according to A1, characterized in that, before the mobile communication terminal receives the user’s step of controlling and operating the specified device through the set HTML page, it also includes: the mobile communication terminal from The network control server acquires information of at least one specified device to be controlled; selects one of the specified devices to be controlled, and sends authentication information to the network control server, and the authentication information is used to request the selected specified device The device authorizes the control operation; and receives the confirmation authorization information returned by the network control server. A6. The method according to A5, characterized in that, after receiving the confirmation authorization information returned by the network control server, further comprising: the mobile communication terminal sends an information acquisition command to the network control server using a WebSocket connection , wherein, the information acquisition command is used to acquire the control operation supported by the specified device; the network control server uses the WebSocket connection to send the information acquisition command to the specified device, so that the specified device according to the specified The above information acquisition command, obtains the control operation supported by the specified device through the NPAPI function and returns it to the network control server, and is forwarded to the mobile communication terminal by the network control server; The information on the control operations supported by the specified device returned by the server displays controls corresponding to the control operations supported by the specified device in the HTML page. A7. The method according to A5 or A6, wherein the step of obtaining the information of at least one designated device to be controlled by the mobile communication terminal from the network control server includes: The server acquires information about at least one designated device to be controlled, wherein the information about the designated device includes at least one of the following: a QR code of the designated device, an identifier of the designated device, and an IP of the designated device address; the mobile communication terminal identifies and displays the designated device through the information of the designated device; or, the network control server identifies the designated device according to the information of the designated device to be controlled; the mobile communication The terminal acquires the information of the designated device identified by the network control server from the network control server. A8. The method according to A2, wherein the network control server is built using Node.js. A9. The method according to A1, wherein the mobile communication terminal sends the control operation instruction to the designated device through the HTML page, so that the designated device executes the control operation instruction indicated The step of controlling the operation includes: the mobile communication terminal sends the control operation instruction to the designated device successfully paired with the mobile communication terminal through the HTML page, so that the designated device executes the control operation instruction The indicated control operation. A10. The method according to A9, characterized in that before the mobile communication terminal receives the user’s step of controlling and operating the designated device through the set HTML page, it also includes: the mobile communication terminal sending The specified device sends a pairing request, requesting to establish a pairing connection with the specified device, wherein the pairing request includes the information of the mobile communication terminal; the mobile communication terminal receives the information returned by the specified device, carrying A pairing response of the information of the specified device, establishing a pairing connection with the specified device according to the pairing response. A11. The method according to A10, wherein the information of the mobile communication terminal includes at least one of the following: a two-dimensional code of the mobile communication terminal, an identification of the mobile communication terminal, an ID of the mobile communication terminal IP address; the information of the specified device includes at least one of the following: a two-dimensional code of the specified device, an identifier of the specified device, and an IP address of the specified device. A12. The method according to A1, characterized in that before the mobile communication terminal receives the user’s step of controlling and operating the specified device through the set HTML page, it also includes: constructing the set An HTML page, where the HTML page includes at least one of the following: a touchpad page, a shortcut operation page, and a selection terminal page, wherein the touchpad page is used to receive information about the touch operation of the user on the touchpad page, Generate the control operation instruction according to the information of the touch operation to control the cursor operation of the specified device; the shortcut operation page includes at least one of the following controls: volume adjustment control, device desktop display control, device screenshot control and device Shut down the control, the shortcut operation page is used to receive the user’s operation information on the controls in the shortcut operation page, generate the control operation instruction according to the operation information of the control, so as to control the designated device to perform the control operation indicated by the control operation instruction; the selection terminal page is used to display the information of the device to be controlled and the controlled state of the device to be controlled, so that the user can select the device to be controlled, The terminal selection page also includes an authorization password input control for the user to input an authorization password for control operation authentication.

本文公开了B13、一种移动通信终端,其特征在于,包括:接收模块,用于接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令,其中,所述HTML页面用于提供所述用户通过所述移动通信终端对所述指定设备进行控制操作的界面,接收所述用户对界面操作所产生的所述控制操作指令,并发送所述控制操作指令;控制模块,用于通过所述HTML页面将所述控制操作指令发送给所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作;其中,所述接收模块,用于通过所述设定的HTML页面监听所述用户通过所述HTML页面对所述指定设备进行的控制操作,通过所述HTML页面的DOM事件获取所述控制操作的信息,根据所述控制操作的信息生成所述控制操作指令。B14、根据B13所述的移动通信终端,其特征在于,所述控制模块,用于使用WebSocket连接,通过所述HTML页面将所述控制操作指令发送给网络控制服务器,由所述网络控制服务器使用所述WebSocket连接将所述控制操作指令转发至所述指定设备,使所述指定设备根据所述控制操作指令,通过NPAPI调用所述指定设备的系统API实现所述控制操作指令所指示的控制操作。B15、根据14所述的移动通信终端,其特征在于,所述指定设备安装有具有NPAPI的浏览器和浏览器扩展程序,其中,所述浏览器扩展程序包括NPAPI插件,所述浏览器扩展程序用于实现所述指定设备与所述网络控制服务器的WebSocket通信,以及通过所述NPAPI插件调用所述指定设备的系统API。B16、根据B15所述的移动通信终端,其特征在于,所述控制模块在使所述指定设备根据所述控制操作指令,通过NPAPI调用所述指定设备的系统API实现所述控制操作指令所指示的控制操作时,使所述指定设备通过所述浏览器扩展程序的HTML页面监听并接收所述网络控制服务器发送的所述控制操作指令;所述浏览器扩展程序的HTML页面调用与所述控制操作指令指示的控制操作相对应的NPAPI函数,并通过所述NPAPI函数调用相对应的系统API函数,实现所述控制操作指令所指示的控制操作。B17、根据B13所述的移动通信终端,其特征在于,还包括:选择模块,用于在所述接收模块接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,从网络控制服务器获取至少一个待控制的所述指定设备的信息;选择一个所述待控制的指定设备,并向所述网络控制服务器发送认证信息,所述认证信息用于请求对选择的所述指定设备进行控制操作授权;接收所述网络控制服务器返回的确认授权信息。B18、根据B17所述的移动通信终端,其特征在于,所述选择模块,还用于在所述接收所述网络控制服务器返回的确认授权信息之后,使用WebSocket连接向所述网络控制服务器发送信息获取命令,其中,所述信息获取命令用于获取所述指定设备支持的控制操作;所述网络控制服务器使用所述WebSocket连接将所述信息获取命令发送至所述指定设备,使所述指定设备根据所述信息获取命令,通过NPAPI函数获取所述指定设备支持的控制操作并返回给所述网络控制服务器,由所述网络控制服务器转发给所述选择模块;所述选择模块根据所述网络控制服务器返回的所述指定设备支持的控制操作的信息,在HTML页面中显示与所述指定设备支持的控制操作相对应的控件。B19、根据B17或B18所述的移动通信终端,其特征在于,所述选择模块在从网络控制服务器获取至少一个待控制的所述指定设备的信息时,从所述网络控制服务器获取至少一个待控制的所述指定设备的信息,其中,所述指定设备的信息包括以下至少之一:所述指定设备的二维码、所述指定设备的标识、所述指定设备的IP地址;所述移动通信终端通过所述指定设备的信息识别并显示所述指定设备;或者,所述网络控制服务器根据所述待控制的指定设备的信息,识别所述指定设备;所述移动通信终端从所述网络控制服务器处获取所述网络控制服务器识别出的所述指定设备的信息。B20、根据B14所述的移动通信终端,其特征在于,所述网络控制服务器使用Node.js搭建。B21、根据B13所述的移动通信终端,其特征在于,所述控制模块,用于通过所述HTML页面,将所述控制操作指令发送给与所述移动通信终端配对成功的所述指定设备,使所述指定设备执行所述控制操作指令所指示的控制操作。B22、根据B21所述的移动通信终端,其特征在于,还包括:配对模块,用于在所述接收模块接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,向所述指定设备发送配对请求,请求与所述指定设备建立配对连接,其中,所述配对请求中包括有所述移动通信终端的信息;接收所述指定设备返回的、携带有所述指定设备的信息的配对响应,根据所述配对响应建立与所述指定设备的配对连接。B23、根据B22所述的移动通信终端,其特征在于,所述移动通信终端的信息包括以下至少之一:所述移动通信终端的二维码、所述移动通信终端的标识、所述移动通信终端的IP地址;所述指定设备的信息包括以下至少之一:所述指定设备的二维码、所述指定设备的标识、所述指定设备的IP地址。B24、根据B13所述的移动通信终端,其特征在于,还包括:构建模块,用于在所述接收模块接收用户通过设定的HTML页面对指定设备进行控制操作的控制操作指令之前,构建所述设定的HTML页面,所述HTML页面包括以下至少之一:触摸板页面、快捷操作页面和选择终端页面,其中,所述触摸板页面用于接收所述用户在所述触摸板页面的触摸操作的信息,根据所述触摸操作的信息生成所述控制操作指令,以控制所述指定设备的光标操作;所述快捷操作页面包括以下控制至少之一:音量调节控件、设备桌面显示控件、设备截屏控件和设备关机控件,所述快捷操作页面用于接收所述用户对所述快捷操作页面中的控件的操作的信息,根据所述控件的操作的信息生成所述控制操作指令,以控制所述指定设备进行所述控制操作指令所指示的控制操作;所述选择终端页面用于显示待控制的设备的信息和所述待控制的设备的受控状态,以供所述用户选择所述待控制的设备,所述选择终端页面还包括授权密码输入控件,以供所述用户输入授权密码进行控制操作认证。This paper discloses B13, a mobile communication terminal, which is characterized in that it includes: a receiving module, used to receive a control operation instruction for a user to control and operate a designated device through a set HTML page, wherein the HTML page is used to provide The user controls and operates the specified device through the interface of the mobile communication terminal, receives the control operation instruction generated by the user's operation on the interface, and sends the control operation instruction; the control module is used to pass The HTML page sends the control operation instruction to the designated device, so that the designated device performs the control operation indicated by the control operation instruction; wherein, the receiving module is configured to pass the set HTML The page monitors the user's control operation on the specified device through the HTML page, obtains the control operation information through the DOM event of the HTML page, and generates the control operation instruction according to the control operation information. B14, according to the described mobile communication terminal of B13, it is characterized in that, described control module is used for using WebSocket connection, sends described control operation instruction to network control server through described HTML page, is used by described network control server The WebSocket connection forwards the control operation instruction to the specified device, so that the specified device calls the system API of the specified device through NPAPI according to the control operation instruction to realize the control operation indicated by the control operation instruction . B15, according to 14 described mobile communication terminals, it is characterized in that, described designated device is installed with browser and browser extension program with NPAPI, and wherein, described browser extension program comprises NPAPI plug-in, and described browser extension program It is used to realize the WebSocket communication between the designated device and the network control server, and call the system API of the designated device through the NPAPI plug-in. B16, according to the mobile communication terminal described in B15, it is characterized in that, when the control module makes the specified device call the system API of the specified device through NPAPI according to the control operation instruction to realize the instruction of the control operation instruction During the control operation, the designated device is made to listen to and receive the control operation instruction sent by the network control server through the HTML page of the browser extension program; the HTML page call of the browser extension program is connected with the control The NPAPI function corresponding to the control operation indicated by the operation instruction is used to call the corresponding system API function through the NPAPI function to realize the control operation indicated by the control operation instruction. B17. According to the mobile communication terminal described in B13, it is characterized in that it also includes: a selection module, which is used to receive the control operation instruction from the network before the receiving module receives the control operation instruction that the user controls the designated device through the HTML page set. The control server acquires information on at least one specified device to be controlled; selects one specified device to be controlled, and sends authentication information to the network control server, and the authentication information is used to request the selected specified device Perform control operation authorization; receive confirmation authorization information returned by the network control server. B18. The mobile communication terminal according to B17, wherein the selection module is further configured to use a WebSocket connection to send information to the network control server after receiving the confirmation authorization information returned by the network control server An acquisition command, wherein the information acquisition command is used to acquire the control operation supported by the designated device; the network control server uses the WebSocket connection to send the information acquisition command to the designated device, so that the designated device According to the information acquisition command, the control operation supported by the specified device is obtained through the NPAPI function and returned to the network control server, and the network control server forwards it to the selection module; the selection module according to the network control The information on the control operations supported by the specified device returned by the server displays controls corresponding to the control operations supported by the specified device in the HTML page. B19. The mobile communication terminal according to B17 or B18, wherein the selection module obtains at least one device to be controlled from the network control server when the selection module obtains information of at least one specified device to be controlled from the network control server. The information of the designated device controlled, wherein the information of the designated device includes at least one of the following: the QR code of the designated device, the identification of the designated device, the IP address of the designated device; The communication terminal identifies and displays the designated device through the information of the designated device; or, the network control server identifies the designated device according to the information of the designated device to be controlled; The control server acquires the information of the designated device identified by the network control server. B20, according to the mobile communication terminal described in B14, it is characterized in that, described network control server uses Node.js to build. B21. The mobile communication terminal according to B13, wherein the control module is configured to send the control operation instruction to the specified device successfully paired with the mobile communication terminal through the HTML page, making the designated device execute the control operation indicated by the control operation instruction. B22. According to the mobile communication terminal described in B21, it is characterized in that it also includes: a pairing module, which is used to send a pairing module to the specified device before the receiving module receives the control operation instruction for the user to control the designated device through the set HTML page. The specified device sends a pairing request, requesting to establish a pairing connection with the specified device, wherein the pairing request includes the information of the mobile communication terminal; receiving the information returned by the specified device and carrying the specified device A pairing response, establishing a pairing connection with the specified device according to the pairing response. B23. The mobile communication terminal according to B22, wherein the information of the mobile communication terminal includes at least one of the following: the two-dimensional code of the mobile communication terminal, the identification of the mobile communication terminal, the mobile communication terminal The IP address of the terminal; the information of the specified device includes at least one of the following: a two-dimensional code of the specified device, an identifier of the specified device, and an IP address of the specified device. B24. According to the mobile communication terminal described in B13, it is characterized in that it also includes: a construction module, which is used to construct the specified device before the receiving module receives the control operation instruction that the user performs a control operation on the designated device through the HTML page set. The set HTML page, the HTML page includes at least one of the following: a touchpad page, a shortcut operation page, and a selection terminal page, wherein the touchpad page is used to receive the touch of the user on the touchpad page Operation information, generating the control operation instruction according to the touch operation information to control the cursor operation of the specified device; the shortcut operation page includes at least one of the following controls: volume adjustment control, device desktop display control, device screen capture control and device shutdown control, the shortcut operation page is used to receive information about the operation of the controls on the shortcut operation page by the user, and generate the control operation instructions according to the operation information of the controls to control all The designated device performs the control operation indicated by the control operation instruction; the selection terminal page is used to display the information of the device to be controlled and the controlled status of the device to be controlled, so that the user can select the device to be controlled. Controlled equipment, the selection terminal page further includes an authorization password input control for the user to input an authorization password for control operation authentication.

Claims (20)

1. A method of controlling operation of a device, comprising:
constructing a set HTML page, the set HTML page including at least one of: the method comprises the following steps of (1) touching a touch panel page, a shortcut operation page and a selection terminal page;
the method comprises the steps that a mobile communication terminal receives a control operation instruction of a user for controlling and operating a specified device through a set HTML page, wherein the HTML page is used for providing an interface for the user to control and operate the specified device through the mobile communication terminal, receiving the control operation instruction of the user for controlling and operating the specified device, which is generated by the user for operating the interface, and sending the control operation instruction;
the mobile communication terminal sends the control operation instruction to the specified equipment through the HTML page, so that the specified equipment executes the control operation indicated by the control operation instruction;
the step that the mobile communication terminal receives a control operation instruction of a user for performing control operation on the specified equipment through a set HTML page comprises the following steps:
and the set HTML page monitors the control operation of the user on the designated equipment through the HTML page, acquires the information of the control operation through the DOM event of the HTML page, and generates the control operation instruction according to the information of the control operation.
2. The method according to claim 1, wherein the mobile communication terminal sends the control operation instruction to the specified device through the HTML page, and the step of causing the specified device to execute the control operation indicated by the control operation instruction includes:
the mobile communication terminal uses WebSocket connection to send the control operation instruction to a network control server through the HTML page, and the network control server uses the WebSocket connection to forward the control operation instruction to the specified equipment, so that the specified equipment calls a system API of the specified equipment through an NPAPI to realize the control operation indicated by the control operation instruction according to the control operation instruction.
3. The method of claim 2, wherein the specified device is installed with a browser having an NPAPI and a browser extension program, wherein the browser extension program comprises an NPAPI plug-in, and wherein the browser extension program is configured to enable WebSocket communication between the specified device and the network control server, and to call a system API of the specified device through the NPAPI plug-in.
4. The method according to claim 3, wherein the step of the designated device calling a system API of the designated device through an NPAPI to implement the control operation indicated by the control operation instruction according to the control operation instruction comprises:
the designated equipment monitors and receives the control operation instruction sent by the network control server through an HTML page of the browser extension program;
and the HTML page of the browser extension program calls an NPAPI function corresponding to the control operation indicated by the control operation instruction, and calls a corresponding system API function through the NPAPI function to realize the control operation indicated by the control operation instruction.
5. The method according to claim 1, before the step of the mobile communication terminal receiving a control operation instruction for a user to perform a control operation on a specified device through a set HTML page, further comprising:
the mobile communication terminal acquires information of at least one designated device to be controlled from a network control server;
selecting one appointed device to be controlled, and sending authentication information to the network control server, wherein the authentication information is used for requesting control operation authorization on the selected appointed device;
and receiving the confirmation authorization information returned by the network control server.
6. The method according to claim 5, further comprising, after said receiving the confirmation authorization information returned by the network control server:
the mobile communication terminal sends an information acquisition command to the network control server by using WebSocket connection, wherein the information acquisition command is used for acquiring the control operation supported by the specified equipment;
the network control server sends the information acquisition command to the specified equipment by using the WebSocket connection, so that the specified equipment acquires the control operation supported by the specified equipment through an NPAPI function according to the information acquisition command, returns the control operation to the network control server and forwards the control operation to the mobile communication terminal by the network control server;
and the mobile communication terminal displays a control corresponding to the control operation supported by the specified equipment in an HTML page according to the information of the control operation supported by the specified equipment, which is returned by the network control server.
7. The method according to claim 5 or 6, wherein the step of the mobile communication terminal acquiring information of at least one of the designated devices to be controlled from a network control server comprises:
the mobile communication terminal acquires information of at least one specified device to be controlled from the network control server, wherein the information of the specified device comprises at least one of the following: the two-dimensional code of the designated equipment, the identifier of the designated equipment and the IP address of the designated equipment; the mobile communication terminal identifies and displays the specified equipment through the information of the specified equipment;
or,
the network control server identifies the specified equipment according to the information of the specified equipment to be controlled; the mobile communication terminal acquires information of the specified device identified by the network control server from the network control server.
8. The method of claim 2, wherein the network control server is built using node.
9. The method according to claim 1, wherein the mobile communication terminal sends the control operation instruction to the specified device through the HTML page, and the step of causing the specified device to execute the control operation indicated by the control operation instruction includes:
and the mobile communication terminal sends the control operation instruction to the specified equipment successfully matched with the mobile communication terminal through the HTML page, so that the specified equipment executes the control operation indicated by the control operation instruction.
10. The method according to claim 9, before the step of the mobile communication terminal receiving a control operation instruction for a user to perform a control operation on a specified device through a set HTML page, further comprising:
the mobile communication terminal sends a pairing request to the designated equipment to request to establish pairing connection with the designated equipment, wherein the pairing request comprises information of the mobile communication terminal;
and the mobile communication terminal receives a pairing response which is returned by the appointed equipment and carries the information of the appointed equipment, and establishes pairing connection with the appointed equipment according to the pairing response.
11. The method according to claim 10, wherein the information of the mobile communication terminal comprises at least one of: the two-dimensional code of the mobile communication terminal, the identification of the mobile communication terminal and the IP address of the mobile communication terminal; the information specifying the device includes at least one of: the two-dimensional code of the designated equipment, the identification of the designated equipment and the IP address of the designated equipment.
12. The method of claim 1,
the touch pad page is used for receiving information of touch operation of the user on the touch pad page, and generating the control operation instruction according to the information of the touch operation so as to control cursor operation of the specified equipment; the shortcut operation page includes at least one of the following controls: the shortcut operation page is used for receiving information of operation of a control in the shortcut operation page by the user, and generating the control operation instruction according to the information of the operation of the control so as to control the specified equipment to perform the control operation indicated by the control operation instruction; the selection terminal page is used for displaying information of the equipment to be controlled and the controlled state of the equipment to be controlled so that the user can select the equipment to be controlled, and the selection terminal page further comprises an authorized password input control part so that the user can input an authorized password to perform control operation authentication.
13. A mobile communication terminal, comprising:
the building module is used for building a set HTML page, and the set HTML page comprises at least one of the following: the method comprises the following steps of (1) touching a touch panel page, a shortcut operation page and a selection terminal page;
the receiving module is used for receiving a control operation instruction of a user for performing control operation on the specified equipment through a set HTML page, wherein the HTML page is used for providing an interface for the user to perform control operation on the specified equipment through the mobile communication terminal, receiving the control operation instruction for performing control operation on the specified equipment, which is generated by the user through the interface operation, and sending the control operation instruction;
the control module is used for sending the control operation instruction to the specified equipment through the HTML page so as to enable the specified equipment to execute the control operation indicated by the control operation instruction;
the receiving module is configured to monitor, through the set HTML page, a control operation performed by the user on the designated device through the HTML page, acquire information of the control operation through a DOM event of the HTML page, and generate the control operation instruction according to the information of the control operation.
14. The mobile communication terminal of claim 13, wherein the control module is configured to send the control operation instruction to a network control server through the HTML page using a WebSocket connection, and the network control server forwards the control operation instruction to the specific device using the WebSocket connection, so that the specific device calls a system API of the specific device through an NPAPI to implement the control operation indicated by the control operation instruction according to the control operation instruction.
15. The mobile communication terminal of claim 14, wherein the specified device is installed with a browser having an NPAPI and a browser extension program, wherein the browser extension program comprises an NPAPI plug-in, and the browser extension program is configured to implement WebSocket communication between the specified device and the network control server, and to call a system API of the specified device through the NPAPI plug-in.
16. The mobile communication terminal of claim 15, wherein the control module, when causing the specified device to call a system API of the specified device through an NPAPI according to the control operation instruction to implement the control operation indicated by the control operation instruction, causes the specified device to monitor and receive the control operation instruction sent by the network control server through an HTML page of the browser extension program; and the HTML page of the browser extension program calls an NPAPI function corresponding to the control operation indicated by the control operation instruction, and calls a corresponding system API function through the NPAPI function to realize the control operation indicated by the control operation instruction.
17. The mobile communication terminal according to claim 13, further comprising:
the selection module is used for acquiring information of at least one designated device to be controlled from a network control server before the receiving module receives a control operation instruction for controlling and operating the designated device by a user through a set HTML page; selecting one appointed device to be controlled, and sending authentication information to the network control server, wherein the authentication information is used for requesting control operation authorization on the selected appointed device; and receiving the confirmation authorization information returned by the network control server.
18. The mobile communication terminal of claim 17, wherein the selecting module is further configured to send an information obtaining command to the network control server by using a WebSocket connection after the receiving of the authorization confirmation information returned by the network control server, where the information obtaining command is used to obtain a control operation supported by the specified device; the network control server sends the information acquisition command to the specified equipment by using the WebSocket connection, so that the specified equipment acquires the control operation supported by the specified equipment through an NPAPI function according to the information acquisition command, returns the control operation to the network control server and forwards the control operation to the selection module by the network control server; and the selection module displays a control corresponding to the control operation supported by the specified equipment in an HTML page according to the information of the control operation supported by the specified equipment, which is returned by the network control server.
19. The mobile communication terminal according to claim 17 or 18, wherein the selection module acquires information of the at least one designated device to be controlled from a network control server when acquiring the information of the at least one designated device to be controlled from the network control server, wherein the information of the designated device comprises at least one of: the two-dimensional code of the designated equipment, the identifier of the designated equipment and the IP address of the designated equipment; the mobile communication terminal identifies and displays the specified equipment through the information of the specified equipment; or, the network control server identifies the specified device according to the information of the specified device to be controlled; the mobile communication terminal acquires information of the specified device identified by the network control server from the network control server.
20. The mobile communication terminal of claim 14, wherein the network control server is built using node.
CN201210535680.8A 2012-12-12 2012-12-12 A kind of method of mobile communication terminal and control appliance operation Active CN103049190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210535680.8A CN103049190B (en) 2012-12-12 2012-12-12 A kind of method of mobile communication terminal and control appliance operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210535680.8A CN103049190B (en) 2012-12-12 2012-12-12 A kind of method of mobile communication terminal and control appliance operation

Publications (2)

Publication Number Publication Date
CN103049190A CN103049190A (en) 2013-04-17
CN103049190B true CN103049190B (en) 2016-05-11

Family

ID=48061843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210535680.8A Active CN103049190B (en) 2012-12-12 2012-12-12 A kind of method of mobile communication terminal and control appliance operation

Country Status (1)

Country Link
CN (1) CN103049190B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051693B (en) * 2012-12-12 2016-12-21 北京奇虎科技有限公司 Apparatus control method and mobile communication terminal
CN103281460A (en) * 2013-06-20 2013-09-04 天脉聚源(北京)传媒科技有限公司 Method and system for remotely controlling displaying device by mobile terminal
FR3007602B1 (en) * 2013-06-20 2015-06-19 Highlands Technologies Solutions COMMUNICATION METHOD FOR INTERACTIVE APPLICATION BETWEEN TERMINALS IN A PROJECTION ROOM ON SCREEN
CN104253845A (en) * 2013-06-28 2014-12-31 腾讯科技(北京)有限公司 Method and terminal for remotely controlling application
CN103745165B (en) * 2014-01-22 2016-09-28 北京奇立软件技术有限公司 Mobile terminal safety controls the method for PC associative operation, client and system
CN103957249A (en) * 2014-04-23 2014-07-30 华为终端有限公司 Remote control method, server and control device and system
WO2016017978A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. Device and method for performing functions
CN105592349A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Method for screen sharing between wireless terminals and wireless terminal
CN104516634B (en) * 2014-12-15 2018-02-02 小米科技有限责任公司 The logistics information display methods and device of intelligent hardware devices
CN104811760A (en) * 2015-04-08 2015-07-29 深圳市鱼丸互动科技有限公司 Multi-screen interaction method and system
CN105898893B (en) * 2016-05-31 2020-09-22 北京乐美无限科技有限公司 Full-duplex communication method for mobile terminal and Internet of things equipment
CN107566439A (en) * 2016-09-14 2018-01-09 彩讯科技股份有限公司 Equipment state method for real-time monitoring and system based on WebSocket
CN107197088B (en) * 2017-05-16 2020-09-25 网易(杭州)网络有限公司 Screenshot method and device based on android mobile device
CN107172582B (en) * 2017-07-27 2020-09-04 国网安徽省电力公司检修公司 M2M communication equipment and method based on NodeJS
CN108595274B (en) * 2017-12-28 2021-07-20 广州京墨医疗科技有限公司 Program synchronization control method, device, system, computer device and storage medium
CN108900611A (en) * 2018-06-29 2018-11-27 成都市映潮科技股份有限公司 A kind of webpage control method and control system
CN109343921A (en) * 2018-09-11 2019-02-15 广州视源电子科技股份有限公司 Touch data processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132335A (en) * 2007-07-24 2008-02-27 南昌大学 Remote Device Control in Web Mode
CN102594997A (en) * 2012-04-05 2012-07-18 何乙诚 Method for remotely controlling computer by using mobile phone
CN102611753A (en) * 2012-03-21 2012-07-25 张雷 System and method for controlling controlled equipment through mobile terminal based on cloud platform
CN102685197A (en) * 2011-03-15 2012-09-19 茵弗维尔株式会社 Method for controlling devices based on NFC and device control system using the same
CN102739800A (en) * 2012-07-05 2012-10-17 合一网络技术(北京)有限公司 System and method for remotely controlling browser Web page based on internet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101924974B1 (en) * 2011-01-04 2018-12-04 삼성전자주식회사 Methods and apparatus for remote controlling peripheral device in mobile communication terminal
CN102662360B (en) * 2012-04-12 2014-01-22 南昌大学 Wireless control system and method for remote device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132335A (en) * 2007-07-24 2008-02-27 南昌大学 Remote Device Control in Web Mode
CN102685197A (en) * 2011-03-15 2012-09-19 茵弗维尔株式会社 Method for controlling devices based on NFC and device control system using the same
CN102611753A (en) * 2012-03-21 2012-07-25 张雷 System and method for controlling controlled equipment through mobile terminal based on cloud platform
CN102594997A (en) * 2012-04-05 2012-07-18 何乙诚 Method for remotely controlling computer by using mobile phone
CN102739800A (en) * 2012-07-05 2012-10-17 合一网络技术(北京)有限公司 System and method for remotely controlling browser Web page based on internet

Also Published As

Publication number Publication date
CN103049190A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN103049190B (en) A kind of method of mobile communication terminal and control appliance operation
CN103051693B (en) Apparatus control method and mobile communication terminal
US10552518B2 (en) Administration of web page
US20200287853A1 (en) Electronic apparatus and method for providing services thereof
US9185171B2 (en) Method and system of specifying application user interface of a remote client device
CN103051694B (en) The method and mobile communication terminal of mobile communication terminal control device
CN103067448B (en) device control method and mobile communication terminal
US20140128053A1 (en) Accessing and interacting with web content and services using an external device to control a communication device
TWI688866B (en) Information sharing system and method
CN113741765B (en) Page jumping method, device, equipment, storage medium and program product
EP2908231A1 (en) Object suspension realizing method and device
KR102249197B1 (en) User terminal apparatus, communication system and control method thereof
CN112988419A (en) Method for sharing Linux input method to Android
KR20160003400A (en) user terminal apparatus and control method thereof
CN105955111A (en) Equipment control method, equipment control device and equipment control system
TW201627849A (en) Processing application interface
WO2024045985A1 (en) Screen control method, screen control apparatus, electronic device, program, and medium
CN111866557B (en) Configuration method and device of large-screen display equipment, storage medium and electronic equipment
CN115052279A (en) Pairing method and device of wireless screen transmission device
US7836461B2 (en) Computer interface system using multiple independent hardware and virtual human-computer input devices and related enabling subroutines
CN101539901B (en) Mobile terminal equipment, system and method for accessing super computer
JP2018525744A (en) Method for mutual sharing of applications and data between touch screen computers and computer program for implementing this method
CN116028356A (en) Bluetooth-based terminal software testing method and device
KR101491056B1 (en) Touch screen terminal apparatus and method for supporting mouse user interface in server based computing system of terminal environment
CN114679616A (en) Method for controlling display device and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.