CN102707994A - Method for controlling computer by handheld mobile equipment in local area network - Google Patents
Method for controlling computer by handheld mobile equipment in local area network Download PDFInfo
- Publication number
- CN102707994A CN102707994A CN2012101288483A CN201210128848A CN102707994A CN 102707994 A CN102707994 A CN 102707994A CN 2012101288483 A CN2012101288483 A CN 2012101288483A CN 201210128848 A CN201210128848 A CN 201210128848A CN 102707994 A CN102707994 A CN 102707994A
- Authority
- CN
- China
- Prior art keywords
- computer
- mobile device
- handheld mobile
- socket
- address
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000005540 biological transmission Effects 0.000 abstract description 11
- 238000005516 engineering process Methods 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 19
- 230000000694 effects Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开一种局域网络中手持移动设备控制电脑的方法,其步骤为:(1)连接局域网络;(2)开启电脑端服务;(3)获取局域网络号;(4)构建可用电脑信息集合;(5)输入控制密码;(6)发送CMD命令;(7)执行CMD命令;(8)发送命令执行结果;(9)释放资源。本发明采用了CMD命令作为网络传输对象,克服了现有技术由于采用视频传输技术导致的网络带宽要求较高,网络流量耗费多的问题,使本发明能够应用于实时性要求较高的环境中;并且通过调用CMD命令直接控制电脑,克服了现有技术由于采用虚拟鼠标键盘技术控制电脑导致的功能单一,没有返回结果,有效控制距离不足的问题,使本发明的应用范围较广。
The invention discloses a method for controlling a computer with a handheld mobile device in a local area network, the steps of which are: (1) connecting to the local area network; (2) opening the computer terminal service; (3) obtaining the local area network number; (4) constructing available computer information Set; (5) input control password; (6) send CMD command; (7) execute CMD command; (8) send command execution result; (9) release resource. The present invention adopts the CMD command as the network transmission object, which overcomes the problems of high network bandwidth and high network traffic consumption caused by the use of video transmission technology in the prior art, so that the present invention can be applied to environments with high real-time requirements and by calling the CMD command to directly control the computer, it overcomes the single function of the prior art due to the use of virtual mouse and keyboard technology to control the computer, no return result, and the problem of insufficient effective control distance, so that the application range of the present invention is wider.
Description
技术领域 technical field
本发明属于计算机技术领域,更进一步涉及在局域网络中,手持移动设备应用软件开发领域,基于套接字技术和Windows系统命令提示符窗口技术的手持移动设备控制电脑的方法。本发明可用于局域网络中使用手持移动设备实现对电脑控制的多媒体教学、家庭智能设备控制、远程办公、家长监控领域。The invention belongs to the field of computer technology, and further relates to a method for controlling a computer by a hand-held mobile device based on socket technology and Windows system command prompt window technology in the field of application software development of a hand-held mobile device in a local area network. The invention can be used in the fields of multimedia teaching controlled by a computer, family smart device control, remote office and parental monitoring by using a hand-held mobile device in a local area network.
背景技术 Background technique
手持移动设备控制电脑是指用户手持使用移动设备与电脑交互,通过移动设备的便携性和交互多样性,扩充电脑的输入设备和输出设备并与电脑共享文件资源,从而方便用户对电脑的控制。Handheld mobile device control computer means that users use mobile devices to interact with computers. Through the portability and interactive diversity of mobile devices, the input devices and output devices of the computer are expanded and file resources are shared with the computer, so as to facilitate the user's control of the computer.
目前,手持移动设备控制电脑方法中常见的两种是:基于实时视频传输的电脑控制和基于虚拟鼠标键盘的电脑控制。Currently, there are two common methods for controlling computers with handheld mobile devices: computer control based on real-time video transmission and computer control based on virtual mouse and keyboard.
国外现有软件“PhoneMyPC”是基于实时视频传输电脑控制的一个典型实例。该软件利用视频流技术向移动设备端应用程序实时发送当前电脑截屏图像信息,界面直观友好,用户使用方便,是目前最为流行的移动设备控制电脑类软件。该软件使用方法所存在的不足是,一方面电脑端和移动设备端必须接入Internet才能互联,并在软件使用过程中实时发送电脑桌面视频,既要求较高的网络带宽又耗费大量的网络流量。家用移动设备,一般带宽低,流量贵。这使得用户体验不流畅,因此使用有局限性。另一方面,由于电脑端接入Internet后,只要移动设备端账号密码正确就能完全控制该电脑。使电脑端容易被黑客入侵,造成电脑端安全性较差。The existing foreign software "PhoneMyPC" is a typical example of computer control based on real-time video transmission. The software uses video streaming technology to send the current computer screenshot image information to the mobile device application program in real time. The interface is intuitive and friendly, and the user is easy to use. It is currently the most popular mobile device control computer software. The disadvantage of using this software is that, on the one hand, the computer and mobile devices must be connected to the Internet to be connected to each other, and real-time computer desktop video is sent during the use of the software, which requires high network bandwidth and consumes a lot of network traffic . Home mobile devices generally have low bandwidth and expensive traffic. This makes for a choppy user experience and therefore limited use. On the other hand, since the computer end is connected to the Internet, as long as the account password of the mobile device end is correct, the computer can be fully controlled. Make the computer end easy to be hacked, resulting in poor security of the computer end.
松迅达中科电子(深圳)有限公司提出的专利申请“一种通过手机控制电脑的方法”(专利申请号:200710028902.6,公开号:CN101082889A)中,对基于虚拟鼠标键盘的电脑控制方法进行了详细的介绍。该方法利用将控制信息发送至电脑端,并将所述控制信息转换为相应控制键值,在电脑端执行控制键值的方法,使得手机可在任何具有蓝牙功能或红外红能的电脑上达到控制电脑的效果。该方法具有操作简单、使用方便、传输可靠等优点。但是,该方法存在的不足之处在于,一方面手机端没有输出信息,导致用户无法远程控制电脑。另一方面功能较为单一,使该方法使用范围较小,难以推广。In the patent application "a method of controlling a computer through a mobile phone" (patent application number: 200710028902.6, publication number: CN101082889A) filed by Songxunda Zhongke Electronics (Shenzhen) Co., Ltd., a computer control method based on a virtual mouse and keyboard is carried out. detailed introduction. In this method, the control information is sent to the computer, and the control information is converted into a corresponding control key, and the control key is executed on the computer, so that the mobile phone can be reached on any computer with bluetooth function or infrared energy. Control computer effects. The method has the advantages of simple operation, convenient use, reliable transmission and the like. However, the disadvantage of this method is that, on the one hand, the mobile phone does not output information, so that the user cannot remotely control the computer. On the other hand, the function is relatively single, so that the method is used in a small range and is difficult to promote.
发明内容 Contents of the invention
本发明的目的是克服上述技术存在的缺点,提供一种利用TCP传输协议,分别实现客户端应用程序和电脑端服务程序,直接基于命令行和Windows消息处理机制控制电脑,并在命令提示符窗口读取电脑数据,有效降低信息传输量,提供流畅的用户体验和完整的控制功能。The purpose of the present invention is to overcome the shortcoming that above-mentioned technology exists, provide a kind of utilization TCP transmission agreement, realize client application program and computer end service program respectively, control computer directly based on command line and Windows message processing mechanism, and in command prompt window Read computer data, effectively reduce the amount of information transmission, provide a smooth user experience and complete control functions.
实现本发明的技术思路是:首先将手持移动设备和电脑通过Wifi连接于同一局域网络中,再通过手持移动设备在局域网络中搜索可用电脑,然后通过手持移动设备向电脑发送控制命令,最后电脑解析控制命令并执行相应的CMD命令。The technical idea of realizing the present invention is: first connect the handheld mobile device and the computer to the same local area network through Wifi, then search for available computers in the local area network through the handheld mobile device, then send control commands to the computer through the handheld mobile device, and finally the computer Parse control commands and execute corresponding CMD commands.
本发明包括如下步骤:The present invention comprises the steps:
(1)连接局域网络(1) Connect to LAN
1a)开启无线路由器,启动无线路由器动态主机设置协议的服务功能;1a) Turn on the wireless router, and start the service function of the wireless router dynamic host setting protocol;
1b)将电脑连接至无线路由器;1b) Connect the computer to the wireless router;
1c)开启手持移动设备的Wifi功能并通过手持移动设备的Wifi连接至无线路由器的无线局域网接入点;1c) Turn on the Wifi function of the handheld mobile device and connect to the wireless LAN access point of the wireless router through the Wifi of the handheld mobile device;
(2)开启电脑端服务(2) Turn on the computer service
2a)调用系统函数,开启电脑端Socket服务器的监听端口;2a) Call the system function to open the listening port of the Socket server on the computer side;
2b)调用系统函数,在电脑端建立命令提示符窗口进程;2b) call the system function, and establish a command prompt window process on the computer side;
(3)获取局域网络号(3) Obtain the LAN number
3a)调用系统函数,获得手持移动设备网卡信息中的IP地址;3a) Call the system function to obtain the IP address in the network card information of the handheld mobile device;
3b)判断IP地址的地址类型:若IP地址为A类地址,则子网掩码为0xFF000000;若IP地址为B类地址,则子网掩码为0xFFFF0000;若IP地址为C类地址,则子网掩码为0xFFFFFF00;3b) Determine the address type of the IP address: if the IP address is a Class A address, the subnet mask is 0xFF000000; if the IP address is a Class B address, the subnet mask is 0xFFFF0000; if the IP address is a Class C address, then The subnet mask is 0xFFFFFF00;
3c)将子网掩码和IP地址进行与运算得出网络号;3c) performing an AND operation on the subnet mask and the IP address to obtain the network number;
(4)构建可用电脑信息集合(4) Construct a collection of available computer information
4a)将手持移动设备端可用电脑信息集合设为空集,完成初始化;4a) Set the available computer information set at the handheld mobile device as an empty set, and complete the initialization;
4b)将32位二进制变量i设置为步骤3b)所述的子网掩码;4b) 32-bit binary variable i is set to the subnet mask described in step 3b);
4c)将i设置为i+1,并将i与步骤3b)所述子网掩码的非进行与运算,再将运算结果与步骤3c)算出的网络号进行或运算得到局域网络中一个未访问IP地址;4c) i is set to i+1, and i is ANDed with the subnet mask described in step 3b), and then the result of the operation is ORed with the network number calculated in step 3c) to obtain an unidentified network number in the local area network access IP address;
4d)将手持移动设备的Socket端口连接至该IP地址对应电脑端Socket服务器监听端口;4d) Connect the Socket port of the handheld mobile device to the listening port of the computer-side Socket server corresponding to the IP address;
4e)判断Socket连接是否成功:若是,则在手持移动设备与电脑端间建立Socket连接,将该Socket连接的信息作为可用电脑信息存入可用电脑信息集合;否则,执行步骤4f);4e) determine whether the Socket connection is successful: if so, then establish a Socket connection between the handheld mobile device and the computer terminal, and store the information of the Socket connection into the available computer information collection as available computer information; otherwise, perform step 4f);
4f)判断i是否小于0xFFFFFFFF:若是,则执行步骤4c);否则,可用电脑信息集合构建完成,执行步骤4g);4f) Determine whether i is less than 0xFFFFFFFF: if so, execute step 4c); otherwise, use the computer information set to complete the construction, execute step 4g);
4g)将可用电脑集合信息在移动设备端控制界面显示;4g) Display the available computer collection information on the control interface of the mobile device;
(5)输入控制密码(5) Enter the control password
5a)用户在手持移动设备端控制界面上选择需控制的可用电脑,将选中的可用电脑对应的Socket连接保留,释放其余Socket连接;5a) The user selects an available computer to be controlled on the control interface of the handheld mobile device, reserves the Socket connection corresponding to the selected available computer, and releases the remaining Socket connections;
5b)用户在手持移动设备端控制界面上输入与选中的可用电脑对应的控制密码;5b) The user enters the control password corresponding to the selected available computer on the control interface of the handheld mobile device;
5c)将控制密码通过步骤4f)建立的Socket连接发送至电脑;5c) Send the control password to the computer through the Socket connection established in step 4f);
5e)判断发送至电脑的控制密码与电脑端数据库中原密码是否相同:若是,则密码正确,执行步骤6a);否则,密码错误,执行步骤5f);5e) Judging whether the control password sent to the computer is the same as the original password in the computer database: if yes, the password is correct, and step 6a) is executed; otherwise, the password is wrong, and step 5f) is executed;
5f)将密码错误提示信息通过步骤4f)建立的Socket连接发送至手持移动设备;5f) Send the password error prompt information to the handheld mobile device through the Socket connection established in step 4f);
5g)将密码错误提示显示到手持移动设备端控制界面,执行步骤4a);5g) Display the password error prompt to the control interface of the handheld mobile device, and perform step 4a);
(6)发送CMD命令(6) Send CMD command
6a)用户在手持移动设备端控制界面上输入命令提示符窗口CMD命令;6a) The user inputs a command prompt window CMD command on the control interface of the handheld mobile device;
6b)将用户输入的命令提示符窗口CMD命令通过步骤4f)建立的Socket连接发送至电脑;6b) the command prompt window CMD command input by the user is sent to the computer through the Socket connection established in step 4f);
(7)执行CMD命令(7) Execute the CMD command
7a)将命令提示符窗口CMD命令写入步骤2b)建立的命令提示符窗口进程的输入流;7a) the command prompt window CMD command is written into the input flow of the command prompt window process that step 2b) establishes;
7b)在步骤2b)建立的命令提示符窗口进程中执行传入的命令提示符窗口CMD命令;7b) execute the incoming command prompt window CMD command in the command prompt window process that step 2b) establishes;
(8)发送命令执行结果(8) Send command execution result
8a)读步骤2b)建立的命令提示符窗口进程的输出流,判断命令提示符窗口CMD命令中是否存在返回结果:若存在,则将返回结果通过步骤4f)建立的Socket连接发送至手持移动设备;否则,将字符串“NULL”通过该Socket连接发送至手持移动设备;8a) read the output stream of the command prompt window process that step 2b) sets up, judge whether there is return result in the command prompt window CMD order: if exist, then return result is sent to handheld mobile device by the Socket connection that step 4f) establishes ; Otherwise, send the character string "NULL" to the handheld mobile device through the Socket connection;
8b)判断发送至手持移动设备的返回结果是否为字符串“NULL”:若是,则执行步骤9a);否则,将返回信息显示到移动设备端控制界面;8b) Judging whether the return result sent to the handheld mobile device is the string "NULL": if so, then perform step 9a); otherwise, display the returned information on the control interface of the mobile device;
(9)释放资源(9) Release resources
9a)判断用户是否继续控制电脑:若是,执行步骤9b);否则执行步骤6a);9a) Determine whether the user continues to control the computer: if so, execute step 9b); otherwise execute step 6a);
9b)调用系统函数,释放步骤4f)建立的Socket连接;9b) call system function, release the Socket connection that step 4f) establishes;
9c)调用系统函数,关闭步骤2b)在电脑端建立的命令提示符窗口进程;9c) call the system function, close step 2b) the command prompt window process established at the computer end;
9d)调用系统函数,关闭电脑端Socket服务器的监听端口。9d) calling the system function to close the listening port of the Socket server on the computer side.
本发明与现有技术相比,具有如下优点:Compared with the prior art, the present invention has the following advantages:
第一,本发明采用了CMD命令作为网络传输对象,克服了现有技术由于采用视频传输技术导致的网络带宽要求较高,网络流量耗费多的问题,使本发明能够应用于实时性要求较高的环境中。First, the present invention uses the CMD command as the network transmission object, which overcomes the problems of high network bandwidth and high network traffic consumption in the prior art due to the use of video transmission technology, so that the present invention can be applied to real-time requirements. environment.
第二,本发明通过调用CMD命令直接控制电脑,克服了现有技术由于采用虚拟鼠标键盘技术控制电脑导致的功能单一,没有返回结果,有效控制距离不足的问题,使本发明的应用范围较广。Second, the present invention directly controls the computer by calling the CMD command, which overcomes the single function of the prior art due to the use of virtual mouse and keyboard technology to control the computer, no return result, and insufficient effective control distance, making the present invention have a wider range of applications .
附图说明 Description of drawings
图1为本发明的流程图;Fig. 1 is a flowchart of the present invention;
图2为本发明CMD命令视图返回信息仿真效果图;Fig. 2 is the CMD command view of the present invention and returns information emulation effect diagram;
图3为本发明显示进程信息仿真效果图。Fig. 3 is a simulation effect diagram of displaying process information in the present invention.
具体实施方式 Detailed ways
下面结合附图1对本发明方法的实现具体步骤做详细的描述:Below in conjunction with accompanying drawing 1 the realization concrete steps of the inventive method are described in detail:
步骤1.连接局域网络Step 1. Connect to LAN
开启无线路由器并启动无线路由器动态主机设置协议的服务功能,此时连接至无线路由器的设备会被分配IP地址。如果电脑具有有线网络适配器则可使用双绞线,将电脑连接至无线路由器的局域网端口。如果电脑具有无线网络适配器则可使用无线网络适配器,将电脑连接至无线路由器的无线局域网接入点。开启手持移动设备的Wifi功能并通过手持移动设备的Wifi连接至无线路由器的无线局域网接入点。此时,局域网络连接完毕。由此步骤可以看出,本发明建立局域网络连接的过程在大多数移动设备和电脑中都只需设置一次,之后在打开Wifi的情况下电脑和手持移动设备会自动连接至路由器。使用局域网络连接控制电脑既提高连接方式的多样性,使本方法使用范围较广,又可以通过无线路由器、交换机和集线器的扩展连接,增大连接距离,提高控制的范围。Turn on the wireless router and start the service function of the wireless router dynamic host setting protocol. At this time, the device connected to the wireless router will be assigned an IP address. If the computer has a wired network adapter, use a twisted pair cable to connect the computer to the LAN port of the wireless router. If the computer has a wireless network adapter, use the wireless network adapter to connect the computer to the wireless LAN access point of the wireless router. Turn on the Wifi function of the handheld mobile device and connect to the wireless LAN access point of the wireless router through the Wifi of the handheld mobile device. At this point, the LAN connection is complete. It can be seen from these steps that the process of establishing a local area network connection in the present invention only needs to be set once in most mobile devices and computers, and then the computers and handheld mobile devices will automatically connect to the router when Wifi is turned on. Using the local area network to connect the control computer not only improves the diversity of connection modes, but also makes the method widely used, and can increase the connection distance and improve the control range through the extended connection of wireless routers, switches and hubs.
步骤2.开启电脑端服务
调用系统函数,开启电脑端Socket服务器的监听端口。该监听端口用于与手持移动设备进行通信。在电脑端建立CMD进程。此进程用来执行手持移动设备传来的命令。Call the system function to open the listening port of the Socket server on the computer. This listening port is used for communication with handheld mobile devices. Create a CMD process on the computer side. This process is used to execute commands from handheld mobile devices.
步骤3.获取局域网络号
通过调用系统函数,获得手持移动设备网卡信息中的IP地址。判断IP地址的地址类型:若IP地址为A类地址,则子网掩码为0xFF000000;若IP地址为B类地址,则子网掩码为0xFFFF0000;若IP地址为C类地址,则子网掩码为0xFFFFFF00。将子网掩码和IP地址进行与运算得出网络号。此步骤的目的是确定局域网络号,为后续步骤遍历局域网络IP地址提供条件。By calling the system function, the IP address in the network card information of the handheld mobile device is obtained. Determine the address type of the IP address: if the IP address is a class A address, the subnet mask is 0xFF000000; if the IP address is a class B address, the subnet mask is 0xFFFF0000; if the IP address is a class C address, the subnet mask is The mask is 0xFFFFFF00. Perform an AND operation on the subnet mask and the IP address to obtain the network number. The purpose of this step is to determine the LAN number and provide conditions for traversing the IP addresses of the LAN in the subsequent steps.
步骤4.构建可用电脑信息集合
将可用电脑信息集合设为空集,完成初始化。可用电脑信息集合是一个存储于手持移动设备内存中的用于保存局域网络中开启电脑端服务的电脑信息集合。设i是一个32位二进制数,将i设置为步骤3所述的子网掩码。i是用来表示局域网IP地址的循环变量。通过循环的访问IP地址i就可以遍历局域网络中所有的IP地址。将i设置为i+1,将i与步骤3所述的子网掩码的非进行与运算,再将运算结果与步骤3算出的网络号进行或运算得到局域网络中一个IP地址。将手持移动设备的Socket端口连接至该IP地址对应电脑端Socket服务器监听端口,并判断Socket连接是否成功:若是,则在手持移动设备与电脑端间建立Socket连接,将该Socket连接的信息作为可用电脑信息存入可用电脑信息集合。判断局域网络中i是否小于0xFFFFFFFF:若是,则将i重复的自增1,然后按照上述步骤将i与步骤3所述的子网掩码的非进行与运算,再将运算结果与步骤3算出的网络号进行或运算得到局域网络中一个IP地址,直到i等于0xFFFFFFFF。将可用电脑集合信息在移动设备端控制界面显示。电脑集合信息包括Socket信息中携带的IP地址和端口号等信息。由此步骤可以看出,本发明避免用户手动输入电脑端IP地址的过程,如果在电脑端将步骤2设置为开机自动运行,那么只需要将电脑开机就可以使用手持移动设备对其进行控制。Set the available computer information set to an empty set to complete the initialization. The available computer information set is a set of computer information stored in the memory of the handheld mobile device and used to save the computer information for starting the computer service in the local area network. Let i be a 32-bit binary number, and set i to the subnet mask described in
步骤5.输入控制密码
用户在手持移动设备端控制界面上选择需控制的可用电脑,将选中的可用电脑对应的Socket连接保留,释放其余Socket连接。用户在手持移动设备端控制界面上输入与选中的可用电脑对应的控制密码。控制密码是指8至20位的无特殊字符的字符串。将控制密码通过步骤4建立的Socket连接发送至电脑。可以将控制密码进行加密传输以保证本发明的安全性。判断发送至电脑的控制密码与电脑端数据库中原密码是否相同:若是,则密码正确可以对电脑进行控制,执行步骤6。否则,将密码错误提示信息通过步骤4建立的Socket连接发送至手持移动设备,并将密码错误提示显示到手持移动设备端控制界面,执行步骤4。原密码是指用户在控制电脑之前事先在电脑端设置的8至20位无特殊字符的字符串。由此步骤可以看出,当用户不知道控制密码时就无法控制电脑,此步骤提高了本发明的安全性,使电脑免遭非法用户的控制。The user selects an available computer to be controlled on the control interface of the handheld mobile device, reserves the Socket connection corresponding to the selected available computer, and releases the remaining Socket connections. The user inputs the control password corresponding to the selected available computer on the control interface of the handheld mobile device. The control password is a string of 8 to 20 characters without special characters. Send the control password to the computer through the Socket connection established in
步骤6.发送CMD命令
用户在手持移动设备端控制界面上输入CMD命令。此CMD命令也可由用户在手持移动设备端图形界面的输入转化而来,这样就无需用户记忆种类繁多CMD命令,降低用户使用的难度。将用户输入的CMD命令通过步骤4建立的Socket连接发送至电脑。由此步骤可以看出,本发明使用的网络传输对象是CMD命令,这使本方法的网络负载较小。The user inputs a CMD command on the control interface of the handheld mobile device. This CMD command can also be converted from the user's input on the graphical interface of the handheld mobile device, so that the user does not need to memorize a wide variety of CMD commands, reducing the difficulty of the user's use. Send the CMD command entered by the user to the computer through the Socket connection established in
步骤7.执行CMD命令
将CMD命令写入步骤2建立的CMD进程的输入流,并在步骤2建立的CMD进程中执行传入的CMD命令。Write a CMD command to the input stream of the CMD process established in
步骤8.发送命令执行结果
读步骤2建立的命令提示符窗口进程的输出流,判断命令提示符窗口CMD命令中是否存在返回结果:若存在,则将返回结果通过步骤4建立的Socket连接发送至手持移动设备;否则,将字符串“NULL”通过该Socket连接发送至手持移动设备。判断发送至手持移动设备的返回结果是否为字符串“NULL”:若是,则执行步骤9;否则,将返回信息显示到手持移动设备端控制界面。此步骤的返回信息可以以视图的方式显示到手持移动设备端控制界面的控制界面上,这样使得用户体验更好。由此步骤可以看出,本发明在实施控制时有返回信息,并且返回信息占用传输带宽小。Read the output stream of the command prompt window process established in
步骤9.释放资源
判断用户是否继续控制电脑:若是,则释放步骤4建立的Socket连接,关闭步骤2在电脑端建立的命令提示符窗口进程并关闭步骤2所述电脑端Socket服务器的监听端口;否则执行步骤6。Judge whether the user continues to control the computer: if so, then release the Socket connection established in
下面结合附图2,附图3对本发明的效果做进一步的描述:Below in conjunction with accompanying drawing 2, accompanying drawing 3 is further described to the effect of the present invention:
附图2,附图3实现的仿真环境为:Intel(R)Core(TM)2CPU T81002.10GHz,Window 7,测试程序Cellphone Controller,该测试程序是本专利发明人使用本专利所述方法开发的测试程序。Accompanying drawing 2, the emulation environment that accompanying drawing 3 realizes is: Intel (R) Core (TM) 2CPU T8100 2.10GHz,
图2为使用本发明浏览磁盘文件信息的仿真效果图。用户通过在手持移动设备端控制界面上点击磁盘盘符图标,向电脑端服务程序发送CMD命令“dir”。电脑端服务程序通过命令消息提示符窗口进程运行该CMD命令并将返回信息发送给手持移动设备,手持设备端应用程序将返回的文件信息转化为视图信息返回给用户,视图信息为图2所显示的内容。图2中左上的扫描可用主机按钮的功能是通过Socket扫描可用电脑信息集合相当于步骤4。向上按钮的功能是返回上一级文件夹相当于先使用步骤6,步骤7,步骤8执行了CMD命令“cd..”,再使用骤6,步骤7,步骤8执行CMD命令“dir”并将返回结果以视图形式表示在图中的主体部分。磁盘信息按钮的功能是显示磁盘信息相当于先使用步骤6,步骤7,步骤8执行了CMD命令“wmiclogicaldisk get DeviceID,DriveType,FileSystem,FreeSpace,Size,VolumeName”并将返回结果以视图形式表示在图2中除了三个按钮以外的主体部分。图2中除了三个按钮以外的主体部分显示了D:号磁盘下的文件信息是在D:号磁盘下使用骤6,步骤7,步骤8执行CMD命令“dir”后的视图化返回信息。用户可通过本发明方便的浏览文件信息及磁盘信息,实现对电脑中所有文件的查看。Fig. 2 is a simulation effect diagram of using the present invention to browse disk file information. The user sends the CMD command "dir" to the computer-side service program by clicking the disk drive letter icon on the control interface of the handheld mobile device. The computer-side service program runs the CMD command through the command message prompt window process and sends the returned information to the handheld mobile device. The handheld device-side application program converts the returned file information into view information and returns it to the user. The view information is shown in Figure 2 Content. The function of the scan available host button on the upper left in Figure 2 is to scan the available computer information collection through the Socket, which is equivalent to
图3为使用本发明浏览进程信息的仿真效果图。当用户打开测试程序进程面板时,手持移动设备端应用程序将点击操作转化为CMD命令“wmic process getCSName,Name,HandleCount,Priority,ProcessId,ThreadCount,WorkingSetSize”,并使用骤6,步骤7,步骤8执行该CMD命令,然后将返回的进程信息转化为表格信息返回给用户,表格信息为图3所显示的内容。图3中显示了仿真电脑当前时刻进程信息表格,其中第一行为表头信息,其余行为具体进程信息。表头信息所表示的含义依次为进程ID,进程的名称,进程所属的用户名,进程的优先级,进程拥有的线程数,进程的句柄数和进程工作集大小。工作集的单位为KB。其余每行显示了每个进程的具体信息。用户还能通过长按某一进程信息所在的行使用骤6,步骤7,步骤8执行CMD命令“wmic process where ProcessId=PID delete”结束该进程。其中PID为待结束的进程ID。使用户可通过本发明方便的浏览进程信息并控制进程。Fig. 3 is a simulation effect diagram of browsing process information using the present invention. When the user opens the test program process panel, the handheld mobile device application converts the click operation into the CMD command "wmic process getCSName, Name, HandleCount, Priority, ProcessId, ThreadCount, WorkingSetSize", and uses
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210128848.3A CN102707994B (en) | 2012-04-27 | 2012-04-27 | Method for controlling computer by handheld mobile equipment in local area network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210128848.3A CN102707994B (en) | 2012-04-27 | 2012-04-27 | Method for controlling computer by handheld mobile equipment in local area network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102707994A true CN102707994A (en) | 2012-10-03 |
CN102707994B CN102707994B (en) | 2014-08-20 |
Family
ID=46900810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210128848.3A Expired - Fee Related CN102707994B (en) | 2012-04-27 | 2012-04-27 | Method for controlling computer by handheld mobile equipment in local area network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102707994B (en) |
Cited By (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103957212A (en) * | 2014-05-06 | 2014-07-30 | 北京万里红科技股份有限公司 | Information leakage prevention method and system |
CN105024882A (en) * | 2015-07-23 | 2015-11-04 | 上海极测信息科技有限公司 | C/S structure based WIFI communication testing system and method |
US9548050B2 (en) | 2010-01-18 | 2017-01-17 | Apple Inc. | Intelligent automated assistant |
US9633674B2 (en) | 2013-06-07 | 2017-04-25 | Apple Inc. | System and method for detecting errors in interactions with a voice-based digital assistant |
US9847999B2 (en) | 2016-05-19 | 2017-12-19 | Apple Inc. | User interface for a device requesting remote authorization |
US9990129B2 (en) | 2014-05-30 | 2018-06-05 | Apple Inc. | Continuity of application across devices |
US10142835B2 (en) | 2011-09-29 | 2018-11-27 | Apple Inc. | Authentication with secondary approver |
US10178234B2 (en) | 2014-05-30 | 2019-01-08 | Apple, Inc. | User interface for phone call routing among devices |
US10466891B2 (en) | 2016-09-12 | 2019-11-05 | Apple Inc. | Special lock mode user interface |
US10484384B2 (en) | 2011-09-29 | 2019-11-19 | Apple Inc. | Indirect authentication |
US10567477B2 (en) | 2015-03-08 | 2020-02-18 | Apple Inc. | Virtual assistant continuity |
US10637986B2 (en) | 2016-06-10 | 2020-04-28 | Apple Inc. | Displaying and updating a set of application views |
US10908781B2 (en) | 2011-06-05 | 2021-02-02 | Apple Inc. | Systems and methods for displaying notifications received from multiple applications |
US10992795B2 (en) | 2017-05-16 | 2021-04-27 | Apple Inc. | Methods and interfaces for home media control |
US10996917B2 (en) | 2019-05-31 | 2021-05-04 | Apple Inc. | User interfaces for audio media control |
US11037150B2 (en) | 2016-06-12 | 2021-06-15 | Apple Inc. | User interfaces for transactions |
US11126704B2 (en) | 2014-08-15 | 2021-09-21 | Apple Inc. | Authenticated device used to unlock another device |
US11283916B2 (en) | 2017-05-16 | 2022-03-22 | Apple Inc. | Methods and interfaces for configuring a device in accordance with an audio tone signal |
US11360634B1 (en) | 2021-05-15 | 2022-06-14 | Apple Inc. | Shared-content session user interfaces |
US11392291B2 (en) | 2020-09-25 | 2022-07-19 | Apple Inc. | Methods and interfaces for media control with dynamic feedback |
US11431836B2 (en) | 2017-05-02 | 2022-08-30 | Apple Inc. | Methods and interfaces for initiating media playback |
US11539831B2 (en) | 2013-03-15 | 2022-12-27 | Apple Inc. | Providing remote interactions with host device using a wireless device |
US11620103B2 (en) | 2019-05-31 | 2023-04-04 | Apple Inc. | User interfaces for audio media control |
US11683408B2 (en) | 2017-05-16 | 2023-06-20 | Apple Inc. | Methods and interfaces for home media control |
US11847378B2 (en) | 2021-06-06 | 2023-12-19 | Apple Inc. | User interfaces for audio routing |
US11907605B2 (en) | 2021-05-15 | 2024-02-20 | Apple Inc. | Shared-content session user interfaces |
US12242707B2 (en) | 2017-05-15 | 2025-03-04 | Apple Inc. | Displaying and moving application views on a display of an electronic device |
US12302035B2 (en) | 2010-04-07 | 2025-05-13 | Apple Inc. | Establishing a video conference during a phone call |
US12405631B2 (en) | 2022-06-05 | 2025-09-02 | Apple Inc. | Displaying application views |
US12423052B2 (en) | 2021-06-06 | 2025-09-23 | Apple Inc. | User interfaces for audio routing |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050352A1 (en) * | 2003-08-28 | 2005-03-03 | International Business Machines Corporation | Method and system for privacy in public networks |
WO2007132233A2 (en) * | 2006-05-15 | 2007-11-22 | Software Cellular Network Limited | Method and system for user equipment configuration |
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
CN101116354A (en) * | 2005-02-08 | 2008-01-30 | 艾利森电话股份有限公司 | Method and device in mobile communication network |
TW200906164A (en) * | 2007-07-20 | 2009-02-01 | Far Eastone Telecomm Co Ltd | Mobile terminal data transmission method based on short message control |
CN101491126A (en) * | 2006-07-21 | 2009-07-22 | 微软公司 | Location-based, software control of mobile devices |
CN101547342A (en) * | 2008-12-31 | 2009-09-30 | 深圳创维-Rgb电子有限公司 | System and method for audio-video monitoring based on WLAN |
CN102065175A (en) * | 2010-11-11 | 2011-05-18 | 喜讯无限(北京)科技有限责任公司 | Touch screen-based remote gesture identification and transmission system and implementation method for mobile equipment |
-
2012
- 2012-04-27 CN CN201210128848.3A patent/CN102707994B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050352A1 (en) * | 2003-08-28 | 2005-03-03 | International Business Machines Corporation | Method and system for privacy in public networks |
CN101116354A (en) * | 2005-02-08 | 2008-01-30 | 艾利森电话股份有限公司 | Method and device in mobile communication network |
WO2007132233A2 (en) * | 2006-05-15 | 2007-11-22 | Software Cellular Network Limited | Method and system for user equipment configuration |
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
CN101491126A (en) * | 2006-07-21 | 2009-07-22 | 微软公司 | Location-based, software control of mobile devices |
TW200906164A (en) * | 2007-07-20 | 2009-02-01 | Far Eastone Telecomm Co Ltd | Mobile terminal data transmission method based on short message control |
CN101547342A (en) * | 2008-12-31 | 2009-09-30 | 深圳创维-Rgb电子有限公司 | System and method for audio-video monitoring based on WLAN |
CN102065175A (en) * | 2010-11-11 | 2011-05-18 | 喜讯无限(北京)科技有限责任公司 | Touch screen-based remote gesture identification and transmission system and implementation method for mobile equipment |
Non-Patent Citations (1)
Title |
---|
张永丽,刘志镜: "《无线局域网络技术》", 《电子科技》 * |
Cited By (70)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9548050B2 (en) | 2010-01-18 | 2017-01-17 | Apple Inc. | Intelligent automated assistant |
US12302035B2 (en) | 2010-04-07 | 2025-05-13 | Apple Inc. | Establishing a video conference during a phone call |
US11442598B2 (en) | 2011-06-05 | 2022-09-13 | Apple Inc. | Systems and methods for displaying notifications received from multiple applications |
US11487403B2 (en) | 2011-06-05 | 2022-11-01 | Apple Inc. | Systems and methods for displaying notifications received from multiple applications |
US10908781B2 (en) | 2011-06-05 | 2021-02-02 | Apple Inc. | Systems and methods for displaying notifications received from multiple applications |
US11921980B2 (en) | 2011-06-05 | 2024-03-05 | Apple Inc. | Systems and methods for displaying notifications received from multiple applications |
US10484384B2 (en) | 2011-09-29 | 2019-11-19 | Apple Inc. | Indirect authentication |
US10142835B2 (en) | 2011-09-29 | 2018-11-27 | Apple Inc. | Authentication with secondary approver |
US10419933B2 (en) | 2011-09-29 | 2019-09-17 | Apple Inc. | Authentication with secondary approver |
US11755712B2 (en) | 2011-09-29 | 2023-09-12 | Apple Inc. | Authentication with secondary approver |
US10516997B2 (en) | 2011-09-29 | 2019-12-24 | Apple Inc. | Authentication with secondary approver |
US11200309B2 (en) | 2011-09-29 | 2021-12-14 | Apple Inc. | Authentication with secondary approver |
US11539831B2 (en) | 2013-03-15 | 2022-12-27 | Apple Inc. | Providing remote interactions with host device using a wireless device |
US9633674B2 (en) | 2013-06-07 | 2017-04-25 | Apple Inc. | System and method for detecting errors in interactions with a voice-based digital assistant |
CN103957212A (en) * | 2014-05-06 | 2014-07-30 | 北京万里红科技股份有限公司 | Information leakage prevention method and system |
CN103957212B (en) * | 2014-05-06 | 2017-05-24 | 北京万里红科技股份有限公司 | Information leakage prevention method |
US9990129B2 (en) | 2014-05-30 | 2018-06-05 | Apple Inc. | Continuity of application across devices |
US10616416B2 (en) | 2014-05-30 | 2020-04-07 | Apple Inc. | User interface for phone call routing among devices |
US10866731B2 (en) | 2014-05-30 | 2020-12-15 | Apple Inc. | Continuity of applications across devices |
US11907013B2 (en) | 2014-05-30 | 2024-02-20 | Apple Inc. | Continuity of applications across devices |
US10178234B2 (en) | 2014-05-30 | 2019-01-08 | Apple, Inc. | User interface for phone call routing among devices |
US11256294B2 (en) | 2014-05-30 | 2022-02-22 | Apple Inc. | Continuity of applications across devices |
US11126704B2 (en) | 2014-08-15 | 2021-09-21 | Apple Inc. | Authenticated device used to unlock another device |
US10567477B2 (en) | 2015-03-08 | 2020-02-18 | Apple Inc. | Virtual assistant continuity |
CN105024882A (en) * | 2015-07-23 | 2015-11-04 | 上海极测信息科技有限公司 | C/S structure based WIFI communication testing system and method |
US11206309B2 (en) | 2016-05-19 | 2021-12-21 | Apple Inc. | User interface for remote authorization |
US10749967B2 (en) | 2016-05-19 | 2020-08-18 | Apple Inc. | User interface for remote authorization |
US9847999B2 (en) | 2016-05-19 | 2017-12-19 | Apple Inc. | User interface for a device requesting remote authorization |
US10334054B2 (en) | 2016-05-19 | 2019-06-25 | Apple Inc. | User interface for a device requesting remote authorization |
US11323559B2 (en) | 2016-06-10 | 2022-05-03 | Apple Inc. | Displaying and updating a set of application views |
US10637986B2 (en) | 2016-06-10 | 2020-04-28 | Apple Inc. | Displaying and updating a set of application views |
US12363219B2 (en) | 2016-06-10 | 2025-07-15 | Apple Inc. | Displaying and updating a set of application views |
US11037150B2 (en) | 2016-06-12 | 2021-06-15 | Apple Inc. | User interfaces for transactions |
US11900372B2 (en) | 2016-06-12 | 2024-02-13 | Apple Inc. | User interfaces for transactions |
US11281372B2 (en) | 2016-09-12 | 2022-03-22 | Apple Inc. | Special lock mode user interface |
US12153791B2 (en) | 2016-09-12 | 2024-11-26 | Apple Inc. | Special lock mode user interface |
US11803299B2 (en) | 2016-09-12 | 2023-10-31 | Apple Inc. | Special lock mode user interface |
US10466891B2 (en) | 2016-09-12 | 2019-11-05 | Apple Inc. | Special lock mode user interface |
US10877661B2 (en) | 2016-09-12 | 2020-12-29 | Apple Inc. | Special lock mode user interface |
US11567657B2 (en) | 2016-09-12 | 2023-01-31 | Apple Inc. | Special lock mode user interface |
US11431836B2 (en) | 2017-05-02 | 2022-08-30 | Apple Inc. | Methods and interfaces for initiating media playback |
US12242707B2 (en) | 2017-05-15 | 2025-03-04 | Apple Inc. | Displaying and moving application views on a display of an electronic device |
US11201961B2 (en) | 2017-05-16 | 2021-12-14 | Apple Inc. | Methods and interfaces for adjusting the volume of media |
US11283916B2 (en) | 2017-05-16 | 2022-03-22 | Apple Inc. | Methods and interfaces for configuring a device in accordance with an audio tone signal |
US11683408B2 (en) | 2017-05-16 | 2023-06-20 | Apple Inc. | Methods and interfaces for home media control |
US11750734B2 (en) | 2017-05-16 | 2023-09-05 | Apple Inc. | Methods for initiating output of at least a component of a signal representative of media currently being played back by another device |
US11095766B2 (en) | 2017-05-16 | 2021-08-17 | Apple Inc. | Methods and interfaces for adjusting an audible signal based on a spatial position of a voice command source |
US10992795B2 (en) | 2017-05-16 | 2021-04-27 | Apple Inc. | Methods and interfaces for home media control |
US12107985B2 (en) | 2017-05-16 | 2024-10-01 | Apple Inc. | Methods and interfaces for home media control |
US11412081B2 (en) | 2017-05-16 | 2022-08-09 | Apple Inc. | Methods and interfaces for configuring an electronic device to initiate playback of media |
US12244755B2 (en) | 2017-05-16 | 2025-03-04 | Apple Inc. | Methods and interfaces for configuring a device in accordance with an audio tone signal |
US11010121B2 (en) | 2019-05-31 | 2021-05-18 | Apple Inc. | User interfaces for audio media control |
US11853646B2 (en) | 2019-05-31 | 2023-12-26 | Apple Inc. | User interfaces for audio media control |
US10996917B2 (en) | 2019-05-31 | 2021-05-04 | Apple Inc. | User interfaces for audio media control |
US12223228B2 (en) | 2019-05-31 | 2025-02-11 | Apple Inc. | User interfaces for audio media control |
US11755273B2 (en) | 2019-05-31 | 2023-09-12 | Apple Inc. | User interfaces for audio media control |
US11620103B2 (en) | 2019-05-31 | 2023-04-04 | Apple Inc. | User interfaces for audio media control |
US11392291B2 (en) | 2020-09-25 | 2022-07-19 | Apple Inc. | Methods and interfaces for media control with dynamic feedback |
US12112037B2 (en) | 2020-09-25 | 2024-10-08 | Apple Inc. | Methods and interfaces for media control with dynamic feedback |
US11782598B2 (en) | 2020-09-25 | 2023-10-10 | Apple Inc. | Methods and interfaces for media control with dynamic feedback |
US11928303B2 (en) | 2021-05-15 | 2024-03-12 | Apple Inc. | Shared-content session user interfaces |
US11907605B2 (en) | 2021-05-15 | 2024-02-20 | Apple Inc. | Shared-content session user interfaces |
US12242702B2 (en) | 2021-05-15 | 2025-03-04 | Apple Inc. | Shared-content session user interfaces |
US11822761B2 (en) | 2021-05-15 | 2023-11-21 | Apple Inc. | Shared-content session user interfaces |
US12260059B2 (en) | 2021-05-15 | 2025-03-25 | Apple Inc. | Shared-content session user interfaces |
US11449188B1 (en) | 2021-05-15 | 2022-09-20 | Apple Inc. | Shared-content session user interfaces |
US11360634B1 (en) | 2021-05-15 | 2022-06-14 | Apple Inc. | Shared-content session user interfaces |
US11847378B2 (en) | 2021-06-06 | 2023-12-19 | Apple Inc. | User interfaces for audio routing |
US12423052B2 (en) | 2021-06-06 | 2025-09-23 | Apple Inc. | User interfaces for audio routing |
US12405631B2 (en) | 2022-06-05 | 2025-09-02 | Apple Inc. | Displaying application views |
Also Published As
Publication number | Publication date |
---|---|
CN102707994B (en) | 2014-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102707994B (en) | Method for controlling computer by handheld mobile equipment in local area network | |
CN106657370B (en) | Data transmission method and device | |
CN1867012B (en) | Method for remote controlling computer based on intelligent mobile phone platform | |
JP2023098999A (en) | Systems and methods for real-time remote control of mobile applications | |
CN102739887B (en) | Wireless control method based on touch-screen mobile phone | |
CN100583080C (en) | A method and system of computer remote control | |
WO2018120884A1 (en) | Method and system for controlling mobile device by pc terminal | |
CN109765793B (en) | Equipment state display method and device, terminal and storage medium | |
CN102625010A (en) | A method for Eye-Free touch-screen mobile phone to control TV | |
CN108616712B (en) | Camera-based interface operation method, device, equipment and storage medium | |
CN103024503A (en) | System and method for achieving remote control through mobile communication equipment terminal | |
WO2014090016A1 (en) | Device control method and mobile communication terminal | |
CN102662618B (en) | Image processing method in remote assistance process and device | |
US9838460B2 (en) | Tool for sharing applications across client devices | |
WO2020199937A1 (en) | Method and device for processing information in game, storage medium and electronic device | |
CN107203432A (en) | A kind of method and system of remote control Android device | |
CN111143017B (en) | Cloud operation system interaction processing method, client and cloud operation system | |
CN103513858A (en) | Remote assistance method and device | |
JP2007251630A (en) | Remote desktop displaying method | |
CN107222519A (en) | A kind of method that remote access to intranet equipment is realized based on outer net | |
CN110149371A (en) | Equipment connection method, device and terminal device | |
CN102571953B (en) | Remote management method and device thereof | |
CN210807344U (en) | A Remote FPGA Experiment System | |
CN104636073A (en) | Method and device for operating a portable device with a touch screen smart device | |
CN112015320B (en) | Electronic color matching device, color matching method, drawing system and drawing method |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140820 Termination date: 20200427 |