The method and system of handheld device control computer terminal
Technical field
The present invention relates to the control technology between a kind of equipment, relate in particular to the method and system that utilizes handheld device to control the computer terminal.
Background technology
Along with the develop rapidly of a series of handheld devices such as smart mobile phone and panel computer with popularize, developer's a large amount of application software that has been smart mobile phone and dull and stereotyped development of computers, for example originally can only move video playback client on computers, and on smart mobile phone and panel computer, also can move now.
Yet, disposal ability than computer, the disposal ability of this class handheld device of smart mobile phone and panel computer is more limited, and limit by the capacity of the memory device on the handheld device, and often the video resource on the handheld device is nothing like the aboundresources on the computer.
And, the aboundresources on the computer but portable relatively poor, handheld device good portability but resource is abundant, owing to do not have association between handheld device and the computer, causing each other can not be complementary, causes the data resource waste.
Summary of the invention
The object of the invention is to address the above problem, the method and system of a kind of handheld device control computer terminal is provided, can control the computer terminal by handheld device, for example select and play the video resource that is positioned on the computer terminal by handheld device, so that the characteristic of computer terminal and handheld device obtains complementation, avoided the waste of data resource.
Technical scheme of the present invention is: the present invention has disclosed the method for a kind of handheld device control computer terminal, comprising:
A server is logined by an account number in one computer terminal, and server obtains user name, outer net IP and the Intranet IP of this computer terminal;
One handheld device is initiated request according to username information to this server to login this server with the same account number in this computer terminal, obtains outer net IP and the Intranet IP of this computer terminal from this server;
This handheld device judges according to outer net IP and the Intranet IP of this computer terminal that obtains from this server whether self and this computer terminal are in same outer net and/or the same Intranet;
If this handheld device and this computer terminal are in same outer net and/or the same Intranet, then this handheld device is initiated the control request to this computer terminal;
The control request of this handheld device is received in this computer terminal, sets up the connection between this computer terminal and this handheld device, so that this handheld device is controlled the operation on this computer terminal.
According to an embodiment of the method for handheld device of the present invention control computer terminal, this handheld device and this computer terminal are positioned at same outer net, comprise that this handheld device and this computer terminal are to carry out the Internet connection by same dns server.
According to an embodiment of the method for handheld device of the present invention control computer terminal, be between this handheld device under the same dns server and this computer terminal by ICP/IP protocol communication.
According to an embodiment of the method for handheld device of the present invention control computer terminal, this handheld device and this computer terminal are positioned at same Intranet, comprise that this handheld device and this computer terminal are to be in the same network segment.
According to an embodiment of the method for handheld device of the present invention control computer terminal, the connection between this computer terminal and this handheld device also comprises after setting up and finishing:
This handheld device is controlled the video playback on this computer terminal.
According to an embodiment of the method for handheld device of the present invention control computer terminal, this handheld device controls that video playback comprises on this computer terminal:
With the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, realize both synchronously.
According to an embodiment of the method for handheld device of the present invention control computer terminal, the video playback client end interface of this handheld device also provides user selection to open or close the option of this synchronizing function.
According to an embodiment of the method for handheld device of the present invention control computer terminal, this handheld device controls that video playback comprises on this computer terminal:
The user sends control command by voice to handheld device, and handheld device sends to the computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal.
According to an embodiment of the method for handheld device of the present invention control computer terminal, this handheld device controls that video playback comprises on this computer terminal:
The user utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, sends control command to the video playback client of this computer terminal, controls the video playback on this computer terminal.
The present invention has also disclosed the system of a kind of handheld device control computer terminal, comprises a server, a computer terminal and a handheld device, wherein:
This computer terminal comprises:
One computer terminal login module, this computer terminal is logined this server by an account number via this login module;
This server comprises:
One log-on message acquisition module connects this computer terminal, obtains user name, outer net IP and the Intranet IP of this computer terminal;
One log-on message sending module connects this handheld device, and the username information that provides according to this handheld device sends to this handheld device with outer net IP and the Intranet IP of the computer terminal of correspondence;
This handheld device comprises:
One hand-held terminal login module connects this server, to login this server with the same account number in this computer terminal, initiates request according to username information to this server;
One judge module, outer net IP and Intranet IP according to this computer terminal that obtains from this server judge whether self and this computer terminal are in same outer net and/or the same Intranet;
One connects control sets up module, if this handheld device and this computer terminal are in same outer net and/or the same Intranet, then this handheld device is initiated the control request to this computer terminal, set up the connection between this computer terminal and this handheld device, so that this handheld device is controlled the operation on this computer terminal.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, in this judge module, this handheld device and this computer terminal are positioned at same outer net, and this handheld device is to carry out Internet by same dns server to connect with this computer terminal.
According to an embodiment of the system of handheld device of the present invention control computer terminal, be between this handheld device under the same dns server and this computer terminal by ICP/IP protocol communication.
According to an embodiment of the system of handheld device of the present invention control computer terminal, in judge module, this handheld device and this computer terminal are positioned at same Intranet, and this handheld device and this computer terminal are to be in the same network segment.
According to an embodiment of the system of handheld device of the present invention control computer terminal, this handheld device also comprises:
Transmit control module is controlled the video playback on this computer terminal.
According to an embodiment of the system of handheld device of the present invention control computer terminal, in this transmit control module, the video playback of controlling on this computer terminal comprises:
With the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, realize both synchronously.
According to an embodiment of the system of handheld device of the present invention control computer terminal, the video playback client end interface of this handheld device also provides user selection to open or close the option of this synchronizing function.
According to an embodiment of the system of handheld device of the present invention control computer terminal, in this transmit control module, the video playback of controlling on this computer terminal comprises:
The user sends control command by voice to handheld device, and handheld device sends to the computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal.
According to an embodiment of the system of handheld device of the present invention control computer terminal, in this transmit control module, the video playback of controlling on this computer terminal comprises:
The user utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, sends control command to the video playback client of this computer terminal, controls the video playback on this computer terminal.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is that handheld device and computer terminal are by same account number logon server, judge based on same username information whether handheld device and computer terminal are in same outer net and the same Intranet, with the between control that connects, and then carry out the follow-up handheld device of passing through and select to play video on the computer terminal.
Description of drawings
Fig. 1 shows the flow chart of preferred embodiment of the method for handheld device of the present invention control computer terminal.
Fig. 2 shows the schematic diagram of preferred embodiment of the system of handheld device of the present invention control computer terminal.
Fig. 3 shows handheld device of the present invention is carried out computer control by account number schematic diagram.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The embodiment of the method for handheld device control computer terminal
Fig. 1 shows the flow process of preferred embodiment of the method for handheld device of the present invention control computer terminal.See also Fig. 1, the method for present embodiment comprises following treatment step.
Step S10: the computer terminal is by login account number logon server, and server obtains user name, outer net IP and the Intranet IP of computer terminal.
Step S11: handheld device is initiated request according to username information to server to login this server with the same account number in computer terminal, obtains outer net IP and the Intranet IP of computer terminal from server.
Handheld device is opened the control interface, input login account number.
Step S12: handheld device judges according to outer net IP and the Intranet IP of the computer terminal that obtains from server whether self and computer terminal are in same outer net and/or the same Intranet.
Step S13: if handheld device and computer terminal are in same outer net and/or the same Intranet, then handheld device is initiated the control request to the computer terminal.
Outer net IP refers to the dns server address that the Internet connects.Handheld device and computer terminal are positioned at same outer net, comprise that handheld device and computer terminal are connected to carry out Internet by same dns server to connect.And be between handheld device under the same dns server and the computer terminal by ICP/IP protocol communication.
Intranet IP refers to LAN IP.Handheld device and computer terminal are positioned at same Intranet, comprise that handheld device and computer terminal are to be in the same network segment, for example are connected under the same router.
Outer net IP is identical not necessarily to be in the same network segment, that is to say under the dns server to mark off a plurality of network segments, and the terminal equipment between the cross-network segment can be realized communication by routing forwarding.
Step S14: the control request of handheld device is received in the computer terminal, sets up the connection between computer terminal and the handheld device, so that the operation on the handheld device control computer terminal.
Better, the connection between computer terminal and handheld device also comprises after setting up and finishing: the video playback on the handheld device control computer terminal.After computer terminal and handheld device connected, concrete operation had several:
With the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, realize both synchronously;
The video playback client end interface of this handheld device also provides user selection to open or close the option of this synchronizing function;
The user sends control command by voice to handheld device, and handheld device sends to the computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal;
The user utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, sends control command to the video playback client of this computer terminal, controls the video playback on this computer terminal.
The embodiment of the system of handheld device control computer terminal
Fig. 2 shows the principle of embodiment of the system of handheld device of the present invention control computer terminal.Process is set up in the connection that Fig. 3 shows between server, computer terminal and the handheld device.Please be simultaneously referring to Fig. 2 and Fig. 3, the system of present embodiment comprises a server 1, a computer terminal 2 and a handheld device 3.
One computer terminal login module 10 is set in the computer terminal 1.Server 2 comprises a log-on message acquisition module 20, a log-on message sending module 22.Handheld device 3 comprises that a hand-held terminal login module 30, a judge module 32, connect control and set up module 34.
Account number is logined via computer terminal login module 10 logon servers 2 by one in computer terminal 1.Log-on message acquisition module 20 connects computer terminal 1, obtains user name, outer net IP and the Intranet IP of computer terminal 1.
Handheld terminal login module 30 connection servers 2 with the account number logon server 2 same with computer terminal 1, are initiated request according to username information to server 2.
Log-on message sending module 22 connects handheld devices 3, and the username information that provides according to handheld device 3 sends to handheld device 3 with outer net IP and the Intranet IP of the computer terminal 1 of correspondence.
Judge module 32 judges according to outer net IP and/or the Intranet IP of the computer terminal 1 that obtains from server 2 whether self and computer terminal 1 are in same outer net and/or the same Intranet.
Outer net IP refers to the dns server address that the Internet connects.Handheld device 3 and computer terminal 1 are positioned at same outer net, comprise that it is to carry out Internet by same dns server to connect that handheld device 3 is connected with the computer terminal.And be between handheld device 3 under the same dns server and the computer terminal 1 by ICP/IP protocol communication.
Intranet IP refers to LAN IP.Handheld device 3 and computer terminal 1 are positioned at same Intranet, comprise that handheld device 3 and computer terminal 1 are to be in the same network segment, for example are connected under the same router.
Outer net IP is identical not necessarily to be in the same network segment, that is to say under the dns server to mark off a plurality of network segments, and the terminal equipment between the cross-network segment can be realized communication by routing forwarding.
If handheld device 3 and computer terminal 1 are in same outer net and/or the same Intranet, then setting up module 34 by connection control processes: handheld device 3 is 1 initiation control request to the computer terminal, set up the connection between computer terminal 1 and the handheld device 3, so that the operation on the handheld device 3 control computer terminals 1.
Better, handheld device also comprises transmit control module, controls the video playback on this computer terminal.
After computer terminal 1 and handheld device 3 connected, concrete operation had following several:
With the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, realize both synchronously;
The video playback client end interface of this handheld device also provides user selection to open or close the option of this synchronizing function;
The user sends control command by voice to handheld device, and handheld device sends to the computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal;
The user utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, sends control command to the video playback client of this computer terminal, controls the video playback on this computer terminal.
Above-described embodiment provides to those of ordinary skills and realizes and use of the present invention; those of ordinary skills can be in the situation that does not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.