Movatterモバイル変換


[0]ホーム

URL:


CN102739887B - Wireless control method based on touch-screen mobile phone - Google Patents

Wireless control method based on touch-screen mobile phone
Download PDF

Info

Publication number
CN102739887B
CN102739887BCN201210185648.1ACN201210185648ACN102739887BCN 102739887 BCN102739887 BCN 102739887BCN 201210185648 ACN201210185648 ACN 201210185648ACN 102739887 BCN102739887 BCN 102739887B
Authority
CN
China
Prior art keywords
data
mobile phone
control method
method based
touchpad
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.)
Expired - Fee Related
Application number
CN201210185648.1A
Other languages
Chinese (zh)
Other versions
CN102739887A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201210185648.1ApriorityCriticalpatent/CN102739887B/en
Publication of CN102739887ApublicationCriticalpatent/CN102739887A/en
Application grantedgrantedCritical
Publication of CN102739887BpublicationCriticalpatent/CN102739887B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明涉及一种基于触摸屏手机的无线控制方法,利用建立的无线通信连接,在手机端包括:1101)显示触摸板界面,包括面板和左右键;1102)接收用户操作所述触摸板的指令并转换为对应控制类数据;1103)将所述数据按时间先后存入发送数据队列;1104)按先后次序从所述发送数据队列中获取数据并通过所述无线通信连接发送给受控设备;在受控设备端包括:1201)通过所述无线通信连接接收所述数据;1202)将所述数据按时间先后存入接收数据队列;1203)按先后次序从所述接收数据队列中获取数据并将控制类数据转换为触摸板操控指令;1204)在受控设备端执行所述指令。该方法还包括建立/断开无线通信连接的连接类数据。

The present invention relates to a wireless control method for a mobile phone based on a touch screen. Using the established wireless communication connection, the mobile phone terminal includes: 1101) displaying a touch panel interface, including a panel and left and right keys; 1102) receiving an instruction from a user to operate the touch panel and Converting to corresponding control data; 1103) storing the data in the sending data queue according to time; 1104) obtaining data from the sending data queue in sequence and sending them to the controlled device through the wireless communication connection; The controlled device end includes: 1201) receiving the data through the wireless communication connection; 1202) storing the data in the receiving data queue according to time; 1203) obtaining the data from the receiving data queue in sequence and The control data is converted into a touchpad manipulation instruction; 1204) Execute the instruction on the controlled device side. The method also includes connection type data for establishing/disconnecting the wireless communication connection.

Description

Translated fromChinese
一种基于触摸屏手机的无线控制方法A wireless control method based on a touch screen mobile phone

技术领域technical field

本发明涉及手机和远程无线控制,具体涉及一种基于触摸屏手机的无线控制方法,尤其应用于智能手机和被控制的计算机。The invention relates to a mobile phone and remote wireless control, in particular to a wireless control method based on a touch screen mobile phone, especially applied to a smart phone and a controlled computer.

背景技术Background technique

手机作为当今社会人们的必备工具,随着当今手机制造业的发展,手机功能变得越来越强大,手机这一种小型设备中逐渐囊括各种附加的感应器和装置,比如光感应器,触摸控制面板,距离感应器,重力感应器以及三轴陀螺仪等等。而手机的良好操控性,使人们开始思考,能不能用手机控制家庭中的大型家电,比如计算机等。对此,也涌现出各种技术:Mobile phones are an essential tool for people in today's society. With the development of today's mobile phone manufacturing industry, the functions of mobile phones have become more and more powerful. Mobile phones, a small device, gradually include various additional sensors and devices, such as light sensors. , touch control panel, distance sensor, gravity sensor and three-axis gyroscope and so on. And the good manipulability of mobile phones makes people start to think whether they can use mobile phones to control large household appliances in the family, such as computers. In this regard, various technologies have also emerged:

现有技术一,中国实用新型专利“计算机鼠标手机”,申请号200520054630.3:在手机背面增设光学光标感应单元,手机正面增设鼠标按键,手机内部增设鼠标逻辑控制电路,将手机变为一部“鼠标”,以此来控制计算机。此方法的缺点是:一、需要另外增设附加的设备,如:手机背面的光学光标感应单元,手机内部的逻辑控制电路。二、实用性不是很大,人们大多不愿意携带一部像鼠标的手机出门。Existing technology 1, Chinese utility model patent "computer mouse mobile phone", application number 200520054630.3: an optical cursor sensing unit is added on the back of the mobile phone, a mouse button is added on the front of the mobile phone, and a mouse logic control circuit is added inside the mobile phone to turn the mobile phone into a "mouse ” to control the computer. The disadvantages of this method are: 1. Additional equipment needs to be added, such as the optical cursor sensing unit on the back of the mobile phone and the logic control circuit inside the mobile phone. Two, practicality is not very big, and people are mostly unwilling to carry a mobile phone like a mouse to go out.

现有技术二,中国发明专利申请“一种通过手机控制计算机的方法”,申请号200710028902.6:手机通过无线通信功能连接具有相应功能的计算机,然后发出控制计算机的请求,计算机收到控制信息,将其转化为相应的控制键值,然后计算机执行转换后的控制键值。此方法的缺点是:一、控制计算机的指令集有限,即想要更多的控制计算机,就需要更多的指令。二、每次控制,都需要转换控制信息,这样会影响控制的同步性。Existing technology 2, Chinese invention patent application "a method of controlling a computer through a mobile phone", application number 200710028902.6: the mobile phone connects to a computer with corresponding functions through a wireless communication function, and then sends a request to control the computer. It is converted into the corresponding control key value, and then the computer executes the converted control key value. The shortcoming of this method is: one, the instruction set of control computer is limited, promptly wants more control computer, just needs more instructions. 2. Each control needs to convert the control information, which will affect the synchronization of the control.

发明内容Contents of the invention

本发明需要解决的技术问题是,如何提供一种基于触摸屏手机的无线控制方法,能在满足人们交互的习惯上提供便捷有效地控制。The technical problem to be solved in the present invention is how to provide a wireless control method based on a touch screen mobile phone, which can provide convenient and effective control while satisfying people's interaction habits.

本发明的技术问题这样解决:构建一种基于触摸屏手机的无线控制方法,建立手机与受控设备之间的无线通信连接,具体包括以下具体手机端步骤:The technical problem of the present invention is solved in this way: build a kind of wireless control method based on touch screen mobile phone, establish the wireless communication connection between mobile phone and controlled equipment, specifically comprise the following specific mobile phone terminal steps:

1101)在手机触摸屏上显示触摸板界面;所述触摸板包括触摸板面板及其下方的用于模拟鼠标按键的“左”键和“右”键;1101) Displaying a touchpad interface on the touch screen of the mobile phone; the touchpad includes a touchpad panel and a "left" key and a "right" key for simulating mouse buttons below it;

1102)接收用户操作所述触摸板的指令并转换为对应数据;所述数据包括连接类数据和控制类数据;1102) Receive an instruction from the user to operate the touch panel and convert it into corresponding data; the data includes connection data and control data;

1103)将所述数据按时间先后存入发送数据队列;1103) Store the data into the sending data queue sequentially by time;

1104)按先后次序从所述发送数据队列中获取数据并通过所述无线通信连接发送给受控设备;1104) Obtain data from the sending data queue in sequence and send it to the controlled device through the wireless communication connection;

该无线控制方法还包括以下具体受控设备端步骤:The wireless control method also includes the following specific controlled device-side steps:

1201)通过所述无线通信连接接收所述数据;1201) receiving the data via the wireless communication connection;

1202)将所述数据按时间先后存入接收数据队列;1202) Store the data into the receiving data queue sequentially by time;

1203)按先后次序从所述接收数据队列中获取数据并转换为对应触摸板操控指令或建立/断开所述无线通信连接的连接指令;1203) Obtain data from the received data queue in sequence and convert them into corresponding touchpad manipulation instructions or connection instructions for establishing/disconnecting the wireless communication connection;

1204)在受控设备端执行所述触摸板操控指令或连接指令。1204) Execute the touchpad manipulation instruction or connection instruction on the controlled device side.

按照本发明提供的基于触摸屏手机的无线控制方法,所述控制类数据是单点滑动数据,对应的所述触摸板操控指令包括获取当前坐标点执行滑动操作,并将当前坐标点赋值给上个坐标点。According to the wireless control method based on the touch screen mobile phone provided by the present invention, the control data is single-point sliding data, and the corresponding touch panel manipulation instruction includes obtaining the current coordinate point to perform a sliding operation, and assigning the current coordinate point to the previous Coordinate points.

按照本发明提供的基于触摸屏手机的无线控制方法,所述获取当前坐标点包括通过触摸板上的坐标数据按比例获取受控设备屏幕上的坐标数据,所述单点滑动数据包括所述触摸板上的坐标数据。According to the wireless control method based on the touch screen mobile phone provided by the present invention, the obtaining the current coordinate point includes obtaining the coordinate data on the screen of the controlled device proportionally through the coordinate data on the touch panel, and the single point sliding data includes the coordinate data on the touch panel Coordinate data on .

按照本发明提供的基于触摸屏手机的无线控制方法,所述控制类数据是单点点击数据,对应的所述触摸板操控指令包括获取上个坐标点作为当前坐标点,执行双击“左”键、单击“左”键或单击“右”键指令。According to the wireless control method based on the touch screen mobile phone provided by the present invention, the control data is single-point click data, and the corresponding touch panel manipulation instruction includes obtaining the last coordinate point as the current coordinate point, double-clicking the "left" button, Click the "Left" button or click the "Right" button command.

按照本发明提供的基于触摸屏手机的无线控制方法,所述控制类数据是手势数据,对应的所述触摸板操控指令包括放大或缩小指令。According to the wireless control method based on a touch screen mobile phone provided by the present invention, the control data is gesture data, and the corresponding touch panel manipulation instruction includes a zoom-in or zoom-out instruction.

按照本发明提供的基于触摸屏手机的无线控制方法,所述步骤1102)还包括通过实体/虚拟按键或功能菜单接收用户连接或断开所述无线通信连接的指令转换为对应连接类数据;所述步骤1102)对应还包括将获取的连接类数据转换为对应连接或断开所述无线通信连接的指令。According to the wireless control method based on a touch screen mobile phone provided by the present invention, the step 1102) also includes receiving an instruction from the user to connect or disconnect the wireless communication connection through a physical/virtual button or a function menu and converting it into corresponding connection data; Step 1102) corresponds to converting the obtained connection type data into an instruction for corresponding connection or disconnection of the wireless communication connection.

按照本发明提供的基于触摸屏手机的无线控制方法,所述手机显示的触摸板还包括位于“左”键和“右”键中间的用于模拟鼠标滚轮的滚轮控件,对应控制类数据是鼠标滚轮控制数据,对应的所述触摸板操控指令包括向上翻页或向下翻页指令。According to the wireless control method based on a touch screen mobile phone provided by the present invention, the touch panel displayed on the mobile phone also includes a wheel control for simulating a mouse wheel located between the "left" key and the "right" key, and the corresponding control type data is the mouse wheel For the control data, the corresponding touchpad manipulation instruction includes a page-up or page-down instruction.

按照本发明提供的基于触摸屏手机的无线控制方法,所述控制类数据还包括双指上/下滑动数据,对应的所述触摸板操控指令包括向上翻页或向下翻页指令。According to the wireless control method based on a touch screen mobile phone provided by the present invention, the control data further includes two-finger up/down sliding data, and the corresponding touchpad manipulation instruction includes a page-up or page-down instruction.

按照本发明提供的基于触摸屏手机的无线控制方法,所述手机显示的触摸板还包括位于触摸板面板右侧部分的用于模拟鼠标滚轮的上箭头和下箭头,对应控制类数据是鼠标滚轮控制数据,对应的所述触摸板操控指令包括向上翻页或向下翻页指令。According to the wireless control method based on the touch screen mobile phone provided by the present invention, the touch panel displayed on the mobile phone also includes an up arrow and a down arrow for simulating the mouse wheel on the right side of the touch panel panel, and the corresponding control data is the mouse wheel control data, and the corresponding touchpad manipulation instruction includes a page-up or page-down instruction.

按照本发明提供的基于触摸屏手机的无线控制方法,所述无线通信连接包括但不限制于是蓝牙或无线局域网(Wi-Fi)无线连接。According to the wireless control method based on the touch screen mobile phone provided by the present invention, the wireless communication connection includes but not limited to Bluetooth or wireless local area network (Wi-Fi) wireless connection.

按照本发明提供的基于触摸屏手机的无线控制方法,与所述手机无线通信连接的受控设备包括但不限制于是计算机、机顶盒或智能电视等。According to the wireless control method based on a touch screen mobile phone provided by the present invention, the controlled device wirelessly connected to the mobile phone includes but is not limited to a computer, a set-top box, or a smart TV.

本发明提供的基于触摸屏手机的无线控制方法,只需要安装手机端和计算机端两个应用程序即可对计算机进行完全的控制,尤其应用于智能手机,较现有技术具有以下优点:The wireless control method based on the touch screen mobile phone provided by the present invention only needs to install two application programs on the mobile phone terminal and the computer terminal to completely control the computer, especially for smart phones, and has the following advantages compared with the prior art:

1,逻辑简单,便于实现。手机端的发送程序只发送一种形式的数据,即触摸板点触事件的数据;相应地,接收端也只接收一种数据,这样整个逻辑实现起来非常简单。1. The logic is simple and easy to implement. The sending program on the mobile phone only sends one form of data, that is, the data of the touch panel touch event; correspondingly, the receiving end only receives one kind of data, so the whole logic is very simple to implement.

2,速度较快,实时性高。手机端的发送程序可以根据手机处理器(CPU)的速度快慢与否,决定是否压缩发送的数据,如果手机CPU速度较快,则可以选择先对数据进行压缩再发送,如果手机CPU速度较慢,则直接对数据进行发送。而且转换数据的工作完全在计算机端,利用计算机强大的CPU的运算能力,对数据进行转换,这样最大限度的降低了对控制实时性的影响。2. Faster speed and high real-time performance. The sending program on the mobile phone can decide whether to compress the sent data according to the speed of the mobile phone processor (CPU). If the mobile phone CPU is fast, you can choose to compress the data before sending it. If the mobile phone CPU is slow, Then send the data directly. Moreover, the work of converting data is entirely on the computer side, using the computing power of the powerful CPU of the computer to convert the data, which minimizes the impact on the real-time control.

3,无线控制。通过Wi-Fi连接,摆脱了对数据线的束缚,可以在一定距离范围内,自由地通过手机对计算机进行控制。3. Wireless control. Through the Wi-Fi connection, you get rid of the shackles of the data line, and you can freely control the computer through your mobile phone within a certain distance.

附图说明Description of drawings

下面结合附图和具体实施例进一步对本发明进行详细说明:Below in conjunction with accompanying drawing and specific embodiment the present invention is further described in detail:

图1为本发明优选具体实施例应用系统的连接结构示意图;Fig. 1 is a schematic diagram of the connection structure of the application system of the preferred embodiment of the present invention;

图2为图1中手机上触摸板模拟界面一示意图;Fig. 2 is a schematic diagram of a touchpad simulation interface on the mobile phone in Fig. 1;

图3为图1中手机上触摸板模拟界面二示意图;Fig. 3 is a schematic diagram of the touchpad simulation interface 2 on the mobile phone in Fig. 1;

图4为图1中手机上连接请求程序示意图;Fig. 4 is a schematic diagram of the connection request program on the mobile phone in Fig. 1;

图5为图1中计算机上连接服务程序示意图;Fig. 5 is a schematic diagram of connection service program on the computer in Fig. 1;

图6为图1中手机上控制数据发送程序示意图;Fig. 6 is a schematic diagram of the control data sending program on the mobile phone in Fig. 1;

图7为图1中计算机上控制数据接收程序示意图;Fig. 7 is a schematic diagram of the control data receiving program on the computer in Fig. 1;

图8为图1中计算机上控制数据处理程序示意图。FIG. 8 is a schematic diagram of the control data processing program on the computer in FIG. 1 .

具体实施方式detailed description

如图1所示,本发明优选具体实施例中,将智能手机的触摸屏作为一块触摸板,通过Wi-Fi连接计算机,通过手指在手机屏幕上的操作,对计算机进行远程控制,类似于模拟笔记本计算机上的触摸板。这样可以完全控制计算机。As shown in Figure 1, in the preferred embodiment of the present invention, the touch screen of the smart phone is used as a touch panel, connected to the computer through Wi-Fi, and the computer is remotely controlled by finger operations on the screen of the mobile phone, similar to an analog notebook Touchpad on a computer. This allows complete control of the computer.

其具体控制流程包括:Its specific control process includes:

201)打开手机和计算机端的Wi-Fi无线连接。201) Turn on the Wi-Fi wireless connection between the mobile phone and the computer.

202)在手机端和计算机端分别装上相应的控制程序,手机端为模拟触摸板程序,计算机端为接收程序;202) Install corresponding control programs on the mobile phone terminal and the computer terminal respectively, the mobile terminal is an analog touch panel program, and the computer terminal is a receiving program;

203)计算机端打开接收程序的监听设备功能,手机打开模拟触摸板程序并从中搜索可以控制的设备,当搜到匹配的计算机时,发送连接请求。203) The computer side opens the monitoring device function of the receiving program, and the mobile phone opens the simulated touch panel program and searches for a controllable device, and sends a connection request when a matching computer is found.

204)计算机端接收程序收到连接请求,同意该请求,便放弃了光标控制权。204) The receiving program at the computer side receives the connection request, agrees to the request, and gives up the cursor control right.

205)模拟触摸板程序获得光标控制权,用户可以通过在手机屏幕上的滑动和点触,实时控制计算机上的光标;205) The simulated touchpad program obtains the right to control the cursor, and the user can control the cursor on the computer in real time by sliding and touching on the screen of the mobile phone;

206)通过智能手机上的按键或者虚拟按键退出控制。206) Exit the control through the buttons or virtual buttons on the smart phone.

其具体实现分为三个模块:Its specific implementation is divided into three modules:

手机端模拟触摸板程序,计算机端接收程序,通信通道,以下介绍各模块实现细节。The mobile terminal simulates the touch panel program, the computer terminal receives the program, and the communication channel. The following describes the implementation details of each module.

(一)手机端模拟触摸板程序(1) Simulation touchpad program on mobile phone

人机界面 HMI

如图2所示,本发明第一优选具体实施例中手机上触摸板模拟界面,包括触摸板面板及其下方的用于模拟鼠标按键的“左”键和“右”键,还包括位于触摸板面板右侧部分的用于模拟鼠标滚轮的上箭头和下箭头。As shown in Figure 2, the touchpad simulation interface on the mobile phone in the first preferred embodiment of the present invention includes the "left" key and the "right" key for simulating mouse buttons under the touchpad panel and Up and down arrows on the right part of the board panel to simulate a mouse wheel.

如图3所示,本发明第二优选具体实施例中手机上触摸板模拟界面,包括触摸板面板及其下方的用于模拟鼠标按键的“左”键和“右”键,还包括位于“左”键和“右”键中间的用于隔离“左”/“右”键和模拟鼠标滚轮的菱形滚轮控件。As shown in Figure 3, the touchpad simulation interface on the mobile phone in the second preferred embodiment of the present invention includes the touchpad panel and the "left" key and "right" key for simulating mouse buttons below it, and also includes the "left" key located at the " The diamond-shaped scroll wheel control between the "Left" and "Right" keys to isolate the "Left"/"Right" keys and simulate a mouse wheel.

本发明第三优选具体实施例,只包括触摸板面板及其下方的用于模拟鼠标按键的“左”键和“右”键,让触摸板面板任意位置加上识别双指上下滑动操作的功能,以此来模拟鼠标滚轮操作。The third preferred specific embodiment of the present invention only includes the touchpad panel and the "left" and "right" keys below it for simulating mouse buttons, so that any position of the touchpad panel can be added with the function of recognizing the sliding operation of two fingers , to simulate a mouse wheel operation.

主体程序 main program

用户在整个操作过程中,可以进行申请连接的操作(刚开始启动程序时),也可能双击左键,或者是单击右键,抑或是双指上滑下滑,还有可能在计算机端相应的应用程序上(图片浏览器),进行双指捏合或扩张的多点触摸操作来对当前计算机显示的内容进行缩小或放大。对应这些操作,将数据分为以下几类:During the entire operation process, the user can apply for a connection (when the program is just started), or double-click the left button, or click the right button, or slide up and down with two fingers, and it is possible to use the corresponding application on the computer side. Programmatically (picture browser), perform a two-finger pinch or expand multi-touch operation to reduce or enlarge the content currently displayed on the computer. Corresponding to these operations, the data is divided into the following categories:

连接类数据connection class data

●申请连接●Apply for connection

●断开连接●Disconnect

控制类数据control data

●滑动操作●Swipe operation

●单击左键●Left click

●双击左键●Double click the left button

●单击右键●Right click

●滚轮操作●Roll operation

●双指上下滑动操作●Swipe up and down with two fingers

●多点捏合、扩张操作●Multi-point kneading and expansion operation

分清各种数据之后,“模拟触摸板程序”可以分为两个子模块:一是“监听子模块”,二是“发送子模块”。“监听子模块”包含一条“数据队列”,利用手机端操作系统提供的相应的应用程序接口(API),监听在触摸板上的各种操作,转化成相应的数据,添加到数据队列上。“发送子模块”对数据队列上的数据进行压缩或者格式化,压缩是为了提高传输效率,格式化是为了适应传输协议。然后发送到“通信通道”,稍后会有介绍。After sorting out various data, the "analog touch panel program" can be divided into two sub-modules: one is the "monitoring sub-module" and the other is the "sending sub-module". The "monitoring sub-module" includes a "data queue", which uses the corresponding application program interface (API) provided by the mobile phone operating system to monitor various operations on the touch panel, converts them into corresponding data, and adds them to the data queue. The "sending sub-module" compresses or formats the data on the data queue. Compression is to improve transmission efficiency, and formatting is to adapt to the transmission protocol. It is then sent to a "communication channel", which will be covered later.

如图6所示,“监听子模块”包括以下具体步骤:As shown in Figure 6, the "monitoring sub-module" includes the following specific steps:

601)监听子模块监控触摸屏上的触摸操作601) The monitoring sub-module monitors the touch operation on the touch screen

602)判断用户的触摸操作,如果是点击操作(包括单击左键,双击左键,单击右键)转步骤603),滑动操作转步骤605),滚轮操作转步骤606),多点操作转步骤607),双指上下滑动操作转步骤608;602) Judging the user's touch operation, if it is a click operation (including clicking the left button, double-clicking the left button, and clicking the right button), go to step 603), slide operation go to step 605), wheel operation go to step 606), multi-point operation go to Step 607), the two-finger slide operation goes up and down to step 608;

603)计算机点击点的坐标,分别除以屏幕的物理宽高,转换成百分比形式的坐标,然后根据点击的种类进行不同的标识,形成不同种类的数据;603) The coordinates of the point clicked by the computer are respectively divided by the physical width and height of the screen, converted into coordinates in percentage form, and then differently identified according to the type of click to form different types of data;

604)把数据添加到待发送数据的队列上;604) Add data to the queue of data to be sent;

605)不断获取滑动轨迹线上的坐标,转换成百分比形式,加入相关标识,形成滑动数据,加到待发送数据的队列上;605) Continuously obtain the coordinates on the sliding track line, convert them into percentage form, add relevant signs, form sliding data, and add them to the queue of data to be sent;

606)标识成滚轮数据,加入到待发送数据队列;606) mark as wheel data, add to the data queue to be sent;

607)标识成多点数据,加入到待发送数据队列;607) mark it as multi-point data, and add it to the data queue to be sent;

608)标识成双指滑动数据,加入到待发送数据队列;608) mark as two-finger sliding data, and add to the data queue to be sent;

609)发送数据子模块不断从队列上取数据,发送到目标计算机。609) The sending data sub-module continuously fetches data from the queue and sends it to the target computer.

(二)计算机端接收程序(2) Computer-side receiving program

包括两个子模块:一是“接收子模块”,具体如图7;二是“模拟光标子模块”,具体如图8。“接收数据子模块”包含一条“数据队列”,“接收数据子模块”不停地接收发送端发来的数据,添加到“数据队列”上。接着,“模拟光标子模块”不断地获取“数据队列”上的数据,利用计算机CPU的资源,如果发送端有对数据进行压缩,那么先解压缩,然后对手机端的操作数据转换成计算机可以识别的各种操作,最后利用计算机操作系统相应的API,实现对计算机光标的控制。It includes two sub-modules: one is the "receiving sub-module", as shown in Figure 7; the other is the "analog cursor sub-module", as shown in Figure 8. The "receiving data sub-module" contains a "data queue", and the "receiving data sub-module" continuously receives the data sent by the sending end and adds it to the "data queue". Then, the "analog cursor sub-module" continuously obtains the data on the "data queue", using the resources of the computer CPU, if the sending end compresses the data, first decompress it, and then convert the operation data of the mobile phone into a computer that can recognize Various operations, and finally use the corresponding API of the computer operating system to realize the control of the computer cursor.

计算机端接收程序具体包括以下步骤:The computer-side receiving program specifically includes the following steps:

801)“接收子模块”不断接收发送端发来的数据,并加入到“数据队列”;801) The "receiving sub-module" continuously receives the data sent by the sending end and adds it to the "data queue";

802)“模拟光标子模块”不断地从“数据队列”上获取数据,然后进行分析;802) The "analog cursor sub-module" continuously obtains data from the "data queue" and then analyzes it;

803)如果是获得的数据是点击数据(双击左键,单击左键,单击右键),转步骤804);如果是滑动数据,转步骤805),如果是滚轮数据和双指滑动数据,转步骤806),如果是多点操作数据,转步骤807);803) If the obtained data is click data (double-click the left button, click the left button, and click the right button), go to step 804); if it is sliding data, go to step 805), if it is wheel data and two-finger sliding data, Go to step 806), if it is multi-point operation data, go to step 807);

804)得到点击数据的坐标(百分比形式),乘以计算机显示器的物理宽高(或系统指定的宽高上限),得到屏幕区域上对应的真实坐标点,然后在这一点上利用系统API,执行相应的点击操作。跳转到步骤802);804) Obtain the coordinates (percentage form) of the click data, multiply it by the physical width and height of the computer display (or the upper limit of the width and height specified by the system), and obtain the corresponding real coordinate points on the screen area, and then use the system API at this point to execute corresponding click action. Jump to step 802);

805)将得到的滑动点坐标。赋给“当前坐标点”,利用系统API,执行从“上个坐标点”到“当前坐标点”的滑动操作(“上个坐标点”初始值为从队列上获取的第一个坐标),执行完后将“当前坐标点”的坐标赋给“上个坐标点”,跳转到步骤802);805) The coordinates of the sliding point will be obtained. Assign it to the "current coordinate point", and use the system API to perform a sliding operation from the "last coordinate point" to the "current coordinate point" (the initial value of the "last coordinate point" is the first coordinate obtained from the queue), Assign the coordinates of the "current coordinate point" to the "last coordinate point" after execution, and jump to step 802);

806)利用系统API,执行滚屏操作。跳转到步骤802);806) Use the system API to perform a scrolling operation. Jump to step 802);

807)利用系统API,执行对计算机显示器显示内容的放大或缩小操作。跳转到步骤802)。807) Use the system API to perform zoom-in or zoom-out operations on the display content of the computer monitor. Jump to step 802).

(三)通信通道:(3) Communication channel:

包括两个层次:逻辑层和物理层,物理层即手机网卡与计算机网卡之间的无线物理连接,逻辑层即利用“Wi-Fi Direct”通信协议,通信协议中规定好协议中数据的传输格式。其具体建立连接程序包括二大部分:It includes two levels: logical layer and physical layer. The physical layer is the wireless physical connection between the mobile network card and the computer network card. The logical layer uses the "Wi-Fi Direct" communication protocol. The communication protocol specifies the data transmission format in the protocol. . The specific procedure for establishing a connection includes two parts:

如图4所示,手机端连接请求程序包括:As shown in Figure 4, the mobile terminal connection request program includes:

401)手机打开无线连接端口;401) The mobile phone opens the wireless connection port;

402)手机打开模拟触摸板程序;402) The mobile phone opens the simulated touchpad program;

403)搜索受控设备并申请控制;403) Search for controlled equipment and apply for control;

404)判断是否搜到设备?是下一步,否则返回步骤403);404) Determine whether the device is found? is the next step, otherwise return to step 403);

405)配对;405) pairing;

(经过位于远程对端与手机配对的计算机端同意受控)(Consented and controlled by the remote computer paired with the mobile phone)

406)配对成功;406) pairing is successful;

407)开始控制。407) Start control.

如图5所示,计算机端连接服务程序包括:As shown in Figure 5, the computer-side connection service program includes:

501)计算机端打开无线连接端口;501) The computer end opens the wireless connection port;

502)计算机端打开接收程序;502) The computer end opens the receiving program;

503)监听设备;503) monitoring equipment;

504)判断有设备申请控制?是下一步,否则返回步骤503);504) Judging that there is equipment application control? is the next step, otherwise return to step 503);

505)同意受控;505) consent to be controlled;

506)接收并根据放弃光标控制权指令退出连接服务结束,或退出连接服务返回步骤503)。506) Receive and exit the connection service according to the command of giving up the cursor control right to end, or exit the connection service and return to step 503).

最后,以上所述仅为本发明的较佳实施例,凡依本发明权利要求范围所做的均等变化与修饰,皆应属本发明权利要求的涵盖范围。Finally, the above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the claims of the present invention shall fall within the scope of the claims of the present invention.

Claims (10)

Translated fromChinese
1.一种基于触摸屏手机的无线控制方法,其特征在于,建立手机与受控设备之间的无线通信连接,具体包括以下具体手机端步骤:1. A wireless control method based on a touch screen mobile phone, characterized in that, establishing a wireless communication connection between the mobile phone and the controlled device, specifically comprising the following specific mobile phone terminal steps:1101)在手机触摸屏上显示触摸板界面;所述触摸板包括触摸板面板及其下方的用于模拟鼠标按键的“左”键和“右”键;1101) Displaying a touchpad interface on the touch screen of the mobile phone; the touchpad includes a touchpad panel and a "left" key and a "right" key for simulating mouse buttons below it;1102)接收用户操作所述触摸板的指令并转换为对应控制类数据;1102) Receive an instruction from the user to operate the touchpad and convert it into corresponding control data;1103)将所述数据按时间先后存入发送数据队列;1103) Store the data into the sending data queue sequentially by time;1104)按先后次序从所述发送数据队列中获取数据并通过所述无线通信连接发送给受控设备;1104) Obtain data from the sending data queue in sequence and send it to the controlled device through the wireless communication connection;该无线控制方法还包括以下具体受控设备端步骤:The wireless control method also includes the following specific controlled device-side steps:1201)通过所述无线通信连接接收所述数据;1201) receiving the data via the wireless communication connection;1202)将所述数据按时间先后存入接收数据队列;1202) Store the data into the receiving data queue sequentially by time;1203)按先后次序从所述接收数据队列中获取数据并将控制类数据转换为对应触摸板操控指令;1203) Acquiring data from the receiving data queue in sequence and converting the control data into corresponding touchpad manipulation instructions;1204)在受控设备端执行所述触摸板操控指令;1204) Execute the touchpad manipulation instruction on the controlled device side;所述受控设备端接收程序具体包括以下步骤:The receiving program at the controlled device end specifically includes the following steps:801)接收子模块不断接收发送端发来的数据,并加入到数据队列;801) The receiving sub-module continuously receives the data sent by the sending end and adds it to the data queue;802)模拟光标子模块不断地从数据队列上获取数据,然后进行分析;802) The analog cursor sub-module continuously obtains data from the data queue, and then analyzes it;803)如果是获得的数据是点击数据,转步骤804),如果是滑动数据,转步骤805),如果是滚轮数据和双指滑动数据,转步骤806),如果是多点操作数据,转步骤807);803) If the obtained data is click data, go to step 804), if it is sliding data, go to step 805), if it is wheel data and two-finger sliding data, go to step 806), if it is multi-point operation data, go to step 807);804)得到点击数据的坐标,乘以计算机显示器的物理宽高或系统指定的宽高上限,得到屏幕区域上对应的真实坐标点,然后在这一点上利用系统API执行相应的点击操作,跳转到步骤802);804) Obtain the coordinates of the click data, multiply it by the physical width and height of the computer display or the upper limit of the width and height specified by the system, and obtain the corresponding real coordinate points on the screen area, and then use the system API to perform corresponding click operations on this point, and jump to step 802);805)将得到的滑动点坐标赋给当前坐标点,利用系统API,执行从上个坐标点到当前坐标点的滑动操作,执行完后将当前坐标点的坐标赋给上个坐标点,跳转到步骤802);805) Assign the obtained coordinates of the sliding point to the current coordinate point, use the system API to perform a sliding operation from the previous coordinate point to the current coordinate point, assign the coordinates of the current coordinate point to the previous coordinate point after execution, and jump to step 802);806)利用系统API执行滚屏操作,跳转到步骤802);806) Use the system API to perform a scrolling operation, and jump to step 802);807)利用系统API执行对计算机显示器显示内容的放大或缩小操作,跳转到步骤802)。807) Use the system API to perform a zoom-in or zoom-out operation on the displayed content of the computer display, and jump to step 802).2.根据权利要求1所述基于触摸屏手机的无线控制方法,其特征在于,所述控制类数据是单点滑动数据,对应的所述触摸板操控指令包括获取当前坐标点执行滑动操作,并将当前坐标点赋值给上个坐标点。2. The wireless control method based on a touch screen mobile phone according to claim 1, wherein the control type data is single-point sliding data, and the corresponding touch panel manipulation instruction includes obtaining the current coordinate point to perform a sliding operation, and The current coordinate point is assigned to the previous coordinate point.3.根据权利要求2所述基于触摸屏手机的无线控制方法,其特征在于,所述获取当前坐标点包括通过触摸板上的坐标数据按比例获取受控设备屏幕上的坐标数据,所述单点滑动数据包括所述触摸板上的坐标数据。3. The wireless control method based on a touch screen mobile phone according to claim 2, wherein said obtaining the current coordinate point comprises obtaining the coordinate data on the screen of the controlled device proportionally through the coordinate data on the touch panel, and said single point The sliding data includes coordinate data on the touch panel.4.根据权利要求1所述基于触摸屏手机的无线控制方法,其特征在于,所述控制类数据是单点点击数据,对应的所述触摸板操控指令包括获取上个坐标点作为当前坐标点,执行双击“左”键、单击“左”键或单击“右”键指令。4. The wireless control method based on a touch screen mobile phone according to claim 1, wherein the control data is single-point click data, and the corresponding touch panel manipulation instruction includes obtaining the last coordinate point as the current coordinate point, Executes the instruction of double-clicking the "left" button, clicking the "left" button, or clicking the "right" button.5.根据权利要求1所述基于触摸屏手机的无线控制方法,其特征在于,所述控制类数据是手势指令数据,对应的所述触摸板操控指令包括放大或缩小指令。5 . The wireless control method based on a touch screen mobile phone according to claim 1 , wherein the control data is gesture command data, and the corresponding touch panel manipulation command includes a zoom in or zoom out command. 6 .6.根据权利要求1所述基于触摸屏手机的无线控制方法,其特征在于,所述步骤1102)还包括接收用户连接或断开所述无线通信连接的指令转换为对应连接类数据;所述步骤1102)对应还包括将获取的连接类数据转换为对应连接或断开所述无线通信连接的指令。6. The wireless control method based on the touch screen mobile phone according to claim 1, characterized in that, the step 1102) also includes receiving an instruction from the user to connect or disconnect the wireless communication connection and converting it into corresponding connection data; 1102) Corresponding further includes converting the acquired connection type data into a corresponding connection or an instruction for disconnecting the wireless communication connection.7.根据权利要求1-6任一项所述基于触摸屏手机的无线控制方法,其特征在于,所述控制类数据还包括双指上/下滑动数据,对应的所述触摸板操控指令包括向上翻页或向下翻页指令。7. The wireless control method based on a touch screen mobile phone according to any one of claims 1-6, wherein the control data further includes two-finger up/down sliding data, and the corresponding touchpad manipulation instruction includes up Page up or down command.8.根据权利要求1-6任一项所述基于触摸屏手机的无线控制方法,其特征在于,所述手机显示的触摸板还包括位于“左”键和“右”键中间的用于模拟鼠标滚轮的滚轮控件,对应控制类数据是鼠标滚轮控制数据,对应的所述触摸对应的所述触摸板操控指令包括向上翻页或向下翻页指令。8. The wireless control method based on a touch screen mobile phone according to any one of claims 1-6, characterized in that the touch panel displayed on the mobile phone also includes a button for simulating a mouse located between the "left" key and the "right" key For the scroll wheel control of the scroll wheel, the corresponding control data is mouse scroll wheel control data, and the corresponding touch panel manipulation instruction corresponding to the touch includes a page-up or page-down instruction.9.根据权利要求1-6任一项所述基于触摸屏手机的无线控制方法,其特征在于,所述手机显示的触摸板还包括位于触摸板面板右侧部分的用于模拟鼠标滚轮的上箭头和下箭头,对应控制类数据是鼠标滚轮控制数据,对应的所述触摸板操控指令包括向上翻页或向下翻页指令。9. The wireless control method based on a touchscreen mobile phone according to any one of claims 1-6, wherein the touchpad displayed on the mobile phone further includes an up arrow located on the right side of the touchpad panel for simulating a mouse wheel and the down arrow, the corresponding control data is mouse wheel control data, and the corresponding touchpad manipulation instruction includes page up or page down instruction.10.根据权利要求1-6任一项所述基于触摸屏手机的无线控制方法,其特征在于,所述无线通信连接是蓝牙或Wi-Fi无线连接;与所述手机无线通信连接的受控设备是计算机、机顶盒或智能电视。10. The wireless control method based on a touch-screen mobile phone according to any one of claims 1-6, wherein the wireless communication connection is a Bluetooth or Wi-Fi wireless connection; the controlled device connected by wireless communication with the mobile phone Be it a computer, a set-top box, or a smart TV.
CN201210185648.1A2012-06-062012-06-06Wireless control method based on touch-screen mobile phoneExpired - Fee RelatedCN102739887B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210185648.1ACN102739887B (en)2012-06-062012-06-06Wireless control method based on touch-screen mobile phone

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210185648.1ACN102739887B (en)2012-06-062012-06-06Wireless control method based on touch-screen mobile phone

Publications (2)

Publication NumberPublication Date
CN102739887A CN102739887A (en)2012-10-17
CN102739887Btrue CN102739887B (en)2015-04-22

Family

ID=46994640

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210185648.1AExpired - Fee RelatedCN102739887B (en)2012-06-062012-06-06Wireless control method based on touch-screen mobile phone

Country Status (1)

CountryLink
CN (1)CN102739887B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103888586B (en)*2012-12-192016-08-03中国移动通信集团上海有限公司A kind of method transmitting data and terminal
CN103076918B (en)*2012-12-282016-09-21深圳Tcl新技术有限公司Long-range control method based on touch terminal and system
CN103092518B (en)*2013-01-242016-06-01福建升腾资讯有限公司A kind of mobile accurate touch control method of cloud desktop based on RDP agreement
CN103079098A (en)*2013-02-012013-05-01北京奇艺世纪科技有限公司Method for controlling page turning on television interface by using mobile phone
CN103984494A (en)*2013-02-072014-08-13上海帛茂信息科技有限公司System and method for intuitive user interaction among multiple pieces of equipment
CN103279204B (en)*2013-05-302017-12-01上海斐讯数据通信技术有限公司Mouse simulation system and mouse emulation method
WO2014190600A1 (en)*2013-05-312014-12-04深圳市同洲电子股份有限公司Method and system thereof for controlling remotely digital television terminal via mobile terminal
CN104298385A (en)*2013-07-192015-01-21深圳市康睿祥通讯有限公司Cursor positioning method and device
CN103546795A (en)*2013-10-302014-01-29乐视致新电子科技(天津)有限公司Method and device for controlling smart TV interface to roll
CN103747339A (en)*2013-12-232014-04-23乐视致新电子科技(天津)有限公司Method and apparatus for resolving no response condition of on-line video by using android device
CN105677208A (en)*2014-11-192016-06-15中兴通讯股份有限公司Touch input method and device
CN104991645A (en)*2015-06-242015-10-21宇龙计算机通信科技(深圳)有限公司Cursor control method and apparatus
CN105827686A (en)*2015-11-162016-08-03广东亿迅科技有限公司Data transmission method
CN105988602B (en)*2016-06-242019-03-08北京小米移动软件有限公司 Mouse simulation method and device
CN106502817A (en)*2016-10-262017-03-15努比亚技术有限公司A kind of method of processing data and terminal
CN109471667A (en)*2018-11-162019-03-15郑州大学 Computer and mobile phone integrated intelligent interaction method
CN114237458A (en)*2022-02-212022-03-25深圳市嘉利达专显科技有限公司Method, device and storage medium for controlling UI in multidimensional mode independent of OSD position

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102438056A (en)*2011-11-082012-05-02华为终端有限公司Method for controlling non-touch equipment by using touch screen, touch device and handheld equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8077846B2 (en)*2008-11-242011-12-13David Luis GonzalesCombination universal telephone and remote control device
CN101963851A (en)*2009-07-252011-02-02英华达(上海)电子有限公司Mobile equipment and implementation method, receiving host and implementation method as well as communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102438056A (en)*2011-11-082012-05-02华为终端有限公司Method for controlling non-touch equipment by using touch screen, touch device and handheld equipment

Also Published As

Publication numberPublication date
CN102739887A (en)2012-10-17

Similar Documents

PublicationPublication DateTitle
CN102739887B (en)Wireless control method based on touch-screen mobile phone
US8276085B2 (en)Image navigation for touchscreen user interface
CN103034427B (en)A kind of touch-screen page turning method, device and a kind of touch panel device
CN104166531B (en)Electronic device and screen content sharing method
CA2846531C (en)Object control method and apparatus of user device
US8892782B1 (en)System for and method of translating motion-based user input between a client device and an application host computer
CN103345312B (en)Using intelligent terminal simultaneously as the system and method for main frame, mouse and touch pad
CN104360816A (en)Screen capture method and system
CN103324348A (en)Windows desktop control method based on intelligent mobile terminals
CN202050483U (en)Remote controller
RU2014128244A (en) Providing an open instance of the application
CN102855081A (en)Apparatus and method for providing web browser interface using gesture in device
CN103491444B (en)Image interaction method and system and the display device of correspondence
CN102819398A (en)Method for slidingly controlling camera via touch screen device
CN102081500A (en)Display control method, device and system
WO2017012378A1 (en)System for operating computer, wearable device and method for operating computer thereof
CN105262880A (en)Mobile phone control demonstration system applied to WiFi network
CN102685314B (en) Mobile device and mobile device control method
CN104020853A (en) System and method for manipulating web browser based on Kinect
CN104657066A (en)Back control device utilization method
CN113010130B (en)Remote large-screen interaction control method based on image stream
TWI547862B (en) Multi - point handwriting input control system and method
CN104484117B (en)Man-machine interaction method and device
CN104951223B (en)A kind of touch screen realizes the method, apparatus and host of magnifying glass
TWI547871B (en)Displaying method for integrating multiple electronic devices with a dispay apparatus and display apparatus thereof

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CP01Change in the name or title of a patent holder
CP01Change in the name or title of a patent holder

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20150422


[8]ページ先頭

©2009-2025 Movatter.jp