Handheld device controls the method and system of computer terminal
Technical field
The present invention relates to the control technology between a kind of equipment, particularly relate to and utilize handheld device to control the method and system of computer terminal.
Background technology
Along with the develop rapidly of a series of handheld device such as smart mobile phone and panel computer is with universal, developer's a large amount of application software that has been smart mobile phone and dull and stereotyped development of computers, such as originally can only run video playback client on computers, and also can run on smart mobile phone and panel computer now.
But, than the disposal ability of computer, the disposal ability of smart mobile phone and this kind of handheld device of panel computer is more limited, and limit by the capacity of the memory device in handheld device, and the video resource often in handheld device is nothing like the aboundresources on computer.
And the aboundresources on computer but portability is poor, handheld device good portability but resource are not enriched, and owing to there is not association between handheld device and computer, causing each other can not be complementary, causes data resource to waste.
Summary of the invention
The object of the invention is to solve the problem, provide the method and system that a kind of handheld device controls computer terminal, can be controlled computer terminal by handheld device, such as selected by handheld device and play the video resource be positioned on computer terminal, make the characteristic of computer terminal and handheld device obtain complementation, avoid the waste of data resource.
Technical scheme of the present invention is: present invention is disclosed a kind of method that handheld device controls computer terminal, comprising:
One computer terminal logs in a server by an account number, and server obtains user name, the outer net IP and Intranet IP of this computer terminal;
One handheld device logs in this server with the account number same with this computer terminal, initiates request, obtain outer net IP and the Intranet IP of this computer terminal from this server according to username information to this server;
This handheld device, according to the outer net IP of this computer terminal obtained from this server and Intranet IP, judges whether self and this computer terminal are in same outer net and/or same Intranet;
If this handheld device and this computer terminal are in same outer net and/or same Intranet, then this handheld device is initiated to this computer terminal to control request;
This computer terminal receives the control request of this handheld device, sets up the connection between this computer terminal and this handheld device, the operation controlling on this computer terminal to make this handheld device.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, this handheld device and this computer terminal are positioned at same outer net, and comprising this handheld device with this computer terminal is carry out Internet connection by same dns server.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, be between this handheld device under same dns server and this computer terminal and communicated by ICP/IP protocol.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, this handheld device and this computer terminal are positioned at same Intranet, and comprising this handheld device with this computer terminal is be in the same network segment.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, also comprise after the connection establishment between this computer terminal and this handheld device completes:
This handheld device controls the video playback on this computer terminal.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, this handheld device controls video playback on this computer terminal and comprises:
By the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, both realizations synchronous.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, the video playback client end interface of this handheld device also provides user to select to open or close the option of this synchronizing function.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, this handheld device controls video playback on this computer terminal and comprises:
User sends control command by voice to handheld device, and handheld device sends to computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal.
Control an embodiment of the method for computer terminal according to handheld device of the present invention, this handheld device controls video playback on this computer terminal and comprises:
User utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, and the video playback client to this computer terminal sends control command, controls the video playback on this computer terminal.
Present invention further teaches the system that a kind of handheld device controls computer terminal, comprise a server, a computer terminal and a handheld device, wherein:
This computer terminal comprises:
One computer terminal login module, this computer terminal logs in this server by an account number via this login module;
This server comprises:
One log-on message acquisition module, connects this computer terminal, obtains the user name of this computer terminal, outer net IP and Intranet IP;
One log-on message sending module, connects this handheld device, according to the username information that this handheld device provides, the outer net IP of the computer terminal of correspondence and Intranet IP is sent to this handheld device;
This handheld device comprises:
One handheld terminal login module, connects this server, logs in this server with the account number same with this computer terminal, initiates request according to username information to this server;
One judge module, according to outer net IP and the Intranet IP of this computer terminal obtained from this server, judges whether self and this computer terminal are in same outer net and/or same Intranet;
One connection control sets up module, if this handheld device and this computer terminal are in same outer net and/or same Intranet, then this handheld device is initiated to this computer terminal to control request, set up the connection between this computer terminal and this handheld device, the operation controlling on this computer terminal to make this handheld device.
An embodiment of the system of computer terminal is controlled 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 and this computer terminal carry out Internet connection by same dns server.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, be between this handheld device under same dns server and this computer terminal and communicated by ICP/IP protocol.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, in judge module, this handheld device and this computer terminal are positioned at same Intranet, and this handheld device and this computer terminal are in the same network segment.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, this handheld device also comprises:
Transmit control module, controls the video playback on this computer terminal.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, in this transmit control module, the video playback controlled on this computer terminal comprises:
By the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, both realizations synchronous.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, the video playback client end interface of this handheld device also provides user to select to open or close the option of this synchronizing function.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, in this transmit control module, the video playback controlled on this computer terminal comprises:
User sends control command by voice to handheld device, and handheld device sends to computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal.
Control an embodiment of the system of computer terminal according to handheld device of the present invention, in this transmit control module, the video playback controlled on this computer terminal comprises:
User utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, and the video playback client to this computer terminal sends control command, 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 whether handheld device and computer terminal are in same outer net and same Intranet based on same username information, with the control that connects between, and then carry out the follow-up video selected by handheld device on broadcasting computer terminal.
Accompanying drawing explanation
Fig. 1 shows the flow chart that handheld device of the present invention controls the preferred embodiment of the method for computer terminal.
Fig. 2 shows the schematic diagram that handheld device of the present invention controls the preferred embodiment of the system of computer terminal.
Fig. 3 shows handheld device of the present invention carries out conputer controlled schematic diagram by account number.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
handheld device controls the embodiment of the method for computer terminal
Fig. 1 shows the flow process that handheld device of the present invention controls the preferred embodiment of the method for computer terminal.Refer to Fig. 1, the method for the present embodiment comprises following treatment step.
Step S10: computer terminal is by logging in account number logon server, and server obtains user name, the outer net IP and Intranet IP of computer terminal.
Step S11: handheld device logs in this server with the account number same with computer terminal, initiates request according to username information to server, obtains outer net IP and the Intranet IP of computer terminal from server.
Handheld device opens control inerface, and input logs in account number.
Step S12: handheld device, according to the outer net IP of the computer terminal obtained from server and Intranet IP, judges whether self and computer terminal are in same outer net and/or same Intranet.
Step S13: if handheld device and computer terminal are in same outer net and/or same Intranet, then handheld device is initiated to computer terminal to control request.
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 handheld device and computer terminal carries out Internet connection by same dns server.And communicated by ICP/IP protocol between the handheld device be under same dns server and computer terminal.
Intranet IP refers to LAN IP.Handheld device and computer terminal are positioned at same Intranet, comprise handheld device and computer terminal is in the same network segment, such as, under being connected to same router.
Outer net IP is identical to be not necessarily in the same network segment, that is can mark off multiple network segment under a dns server, and the terminal equipment between cross-network segment can realize communication by routing forwarding.
Step S14: computer terminal receives the control request of handheld device, sets up the connection between computer terminal and handheld device, to make the operation on handheld device control computer terminal.
Preferably, also comprise after the connection establishment between computer terminal and handheld device completes: handheld device controls the video playback on computer terminal.After computer terminal and handheld device connect, concrete operation has several:
By the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, both realizations synchronous;
The video playback client end interface of this handheld device also provides user to select to open or close the option of this synchronizing function;
User sends control command by voice to handheld device, and handheld device sends to computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal;
User utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, and the video playback client to this computer terminal sends control command, controls the video playback on this computer terminal.
handheld device controls the embodiment of the system of computer terminal
Fig. 2 shows the principle that handheld device of the present invention controls the embodiment of the system of computer terminal.Fig. 3 shows server, connection establishment process between computer terminal and handheld device.Please simultaneously see Fig. 2 and Fig. 3, the system of the present embodiment comprises server 1, computer terminal 2 and a handheld device 3.
One computer terminal login module 10 is set in computer terminal 1.Server 2 comprises log-on message acquisition module 20, log-on message sending module 22.Handheld device 3 comprises handheld terminal login module 30, judge module 32, connection control and sets up module 34.
Computer terminal 1 logs in account number via computer terminal login module 10 logon server 2 by one.Log-on message acquisition module 20 connects computer terminal 1, obtains user name, the outer net IP and Intranet IP of computer terminal 1.
Handheld terminal login module 30 connection server 2, with the account number logon server 2 same with computer terminal 1, initiates request according to username information to server 2.
Log-on message sending module 22 connects handheld device 3, according to the username information that handheld device 3 provides, the outer net IP of the computer terminal 1 of correspondence and Intranet IP is sent to handheld device 3.
Judge module 32, according to the outer net IP of the computer terminal 1 obtained from server 2 and/or Intranet IP, judges whether self and computer terminal 1 are in same outer net and/or 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 handheld device 3 and computer terminal 1 carries out Internet connection by same dns server.And communicated by ICP/IP protocol between the handheld device 3 be under same dns server and computer terminal 1.
Intranet IP refers to LAN IP.Handheld device 3 and computer terminal 1 are positioned at same Intranet, comprise handheld device 3 and computer terminal 1 is in the same network segment, such as, under being connected to same router.
Outer net IP is identical to be not necessarily in the same network segment, that is can mark off multiple network segment under a dns server, and the terminal equipment between cross-network segment can realize communication by routing forwarding.
If handheld device 3 and computer terminal 1 are in same outer net and/or same Intranet, then set up module 34 by connection control to process: handheld device 3 is initiated to computer terminal 1 to control request, set up the connection between computer terminal 1 and handheld device 3, the operation controlling on computer terminal 1 to make handheld device 3.
Preferably, handheld device also comprises transmit control module, controls the video playback on this computer terminal.
After computer terminal 1 and handheld device 3 connect, concrete operation has following several:
By the operation of user on handheld device video playback client end interface, be mapped on the interface of video playback client of computer terminal, both realizations synchronous;
The video playback client end interface of this handheld device also provides user to select to open or close the option of this synchronizing function;
User sends control command by voice to handheld device, and handheld device sends to computer terminal after phonetic order is changed into executable control command, controls the video playback on this computer terminal;
User utilizes the touch screen of this handheld device to simulate the touch pad of this computer terminal, and the video playback client to this computer terminal sends control command, controls the video playback on this computer terminal.
Above-described embodiment is available to those of ordinary skill in the art to realize and uses of the present invention; those of ordinary skill in the art can be without departing from the present invention in the case of the inventive idea; various modifications or change are made to above-described embodiment; thus protection scope of the present invention not limit by above-described embodiment, and should be the maximum magnitude meeting the inventive features that claims are mentioned.