Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Below by the embodiment being described with reference to the drawings, be exemplary, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and all changes within the scope of intension, modification and the equivalent that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as indication or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be to be also electrically connected to; Can be to be directly connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition,, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
In flow chart or any process of otherwise describing at this or method describe and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of the step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
In order to solve user, be sometimes inconvenient to carry all terminals, but need again to obtain at any time the data in different terminals, or by the needed task dispatching problem of other terminal completing user of a terminal control, the present invention proposes a kind of long-range control method and device of terminal.Below with reference to accompanying drawing, describe according to the long-range control method of the terminal of the embodiment of the present invention and device.
A long-range control method for terminal, comprising: receive the control command that first terminal sends, control command is sent to the second terminal; If listen to the notification event that the second terminal is carried out control command, inquire about response data corresponding to control command in the mirror image of the second terminal; And the response data inquiring is sent to first terminal.
Fig. 1 is the flow chart of the long-range control method of terminal according to an embodiment of the invention.
As shown in Figure 1, the long-range control method of terminal comprises:
S101, receives the control command that first terminal sends, and control command is sent to the second terminal.
In one embodiment of the invention, first terminal and the second terminal can be mobile terminal or PC(personal computer, personal computer) machine etc., wherein, mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Particularly, if user wants to control other-end by first terminal, can be to server sending controling instruction, server receives this control command, and this control command is sent to the second terminal, and user wants the terminal of controlling.
In addition, control command is to embody task statement or the code segment that first terminal needs other-end to complete, and for example, the object that control command realizes can be to obtain new message in other-end, obtain message registration in other-end etc.
S102 if listen to the notification event that the second terminal is carried out control command, inquires about response data corresponding to control command in the mirror image of the second terminal.
Particularly, when the second terminal is obtained control command and carries out, server can listen to the notification event of carrying out control command.For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, and at this moment server listens to this notification event, according to corresponding identification information, can identify this notification event.
For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, and at this moment server listens to this notification event, according to corresponding identification information, can identify this notification event.
Wherein, mirror image refers to the independent and complete copy of certain logic magnetic disc volume.In one embodiment of the invention, mirror image refers to real-time data in the second terminal etc. are copied on server, comprises system data and user data, to guarantee continuous availability, consistency and the accuracy of data.For example, the system data of smart mobile phone, user data etc. are carried out to complete backup in the memory space of server.
After server listens to this notification event, according to corresponding control command, in corresponding mirror image, search to obtain the response data of the execution result of control command.For example, when control command is while obtaining the note of the second terminal, at mirror image corresponding to this second terminal, search to obtain corresponding short message content.
S103, sends to first terminal by the response data inquiring.
The long-range control method of the terminal of the embodiment of the present invention, mirror image by the second terminal is realized the control to the second terminal, thus, make to have the user of a plurality of terminals, in the situation that only carrying a terminal, control at any time the problem of the required task of other terminal completing user, for example, use PC can control a plurality of mobile terminals, promoted user's experience; In addition, by the data synchronous mirror of the second terminal, the mirror image of the second terminal can be directly accessed to obtain data, flowing of access can be saved significantly.
According to above-described embodiment, may there is not inquiring in corresponding mirror image according to control command the phenomenon of response data.Fig. 2 is the flow chart of the long-range control method of the terminal of another embodiment according to the present invention.Particularly, as shown in Figure 2, the long-range control method of terminal comprises:
S201, receives the control command that first terminal sends, and control command is sent to the second terminal.
In one embodiment of the invention, first terminal and the second terminal can be mobile terminal or PC etc., and wherein, mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Particularly, if user wants to control other-end by first terminal, can be to server sending controling instruction, server receives this control command, and this control command is sent to the second terminal, and user wants the terminal of controlling.
In addition, control command is to embody task statement or the code segment that first terminal needs other-end to complete, and for example, the object that control command realizes can be to obtain new message in other-end, obtain message registration in other-end etc.
S202 if listen to the notification event that the second terminal is carried out control command, inquires about response data corresponding to control command in the mirror image of the second terminal.
Particularly, when the second terminal is obtained control command and carries out, server can listen to the notification event of carrying out control command.For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, and at this moment server listens to this notification event, according to corresponding identification information, can identify this notification event.
For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, and at this moment server listens to this notification event, according to corresponding identification information, can identify this notification event.
Wherein, mirror image refers to the independent and complete copy of certain logic magnetic disc volume.In one embodiment of the invention, mirror image refers to real-time data in the second terminal etc. are copied on server, comprises system data and user data, to guarantee continuous availability, consistency and the accuracy of data.For example, the system data of smart mobile phone, user data etc. are carried out to complete backup in the memory space of server.
After server listens to this notification event, according to corresponding control command, in corresponding mirror image, search to obtain the response data of the execution result of control command.For example, when control command is while obtaining the note of the second terminal, at mirror image corresponding to this second terminal, search to obtain corresponding short message content.
S203, sends to first terminal by the response data inquiring.
S204 if there is not response data corresponding to control command in the mirror image of the second terminal, obtains response data corresponding to control command, and response data is sent to first terminal from the second terminal.
Particularly, when not finding the response data of execution result according to control command in corresponding mirror image, server is sent to the second terminal by push channel by control command, the second terminal is received control command, by general module, (for example carry out, send note, set up applications, general module in second terminal such as edit contact) or (for example specify third party's module, Baidu's search box, microblogging, the module that the third parties such as map provide) after carrying out, response data and notification event are sent to server by notice passage, then, server is sent to first terminal by response data and notification event.
The long-range control method of the terminal of the embodiment of the present invention, if do not find the response data of execution result in corresponding mirror image according to control command, according to notification event, from the second terminal, directly obtain response data, and response data and notification event are sent to first terminal, can make to have thus the user of a plurality of terminals, realization is in the situation that only carrying a terminal, control at any time the problem of the required task of other terminal completing user, for example, use PC can control a plurality of mobile terminals, further promoted user's experience.
In one embodiment of the invention, before S101 and S201, also comprise: be the second terminal distribution memory space, and in memory space, the second terminal carried out to mirror image.
In one embodiment of the invention, also comprise: the mirror image and the second terminal synchronizes that keep the second terminal in memory space.Particularly, keep mirror image and second terminal synchronizes of the second terminal in memory space, once the data in the second terminal change, so this change can synchronously generation in mirror image automatically.For example, there is new note in the second terminal, and this new message can synchronously be updated in mirror image so.
In order to facilitate the transmission of control command, in one embodiment of the invention, also comprise: provide control command standard interface and/or default control instruction, so that first terminal generates control command according to control command standard interface and/or default control instruction.
Particularly, third party's module for example, sends instruction request in any terminal (first terminal) to server, server is by abstract control command standard interface and/or default control instruction out, third party's access terminal (for example the second terminal) is provided, and predefined terminal operation behavior is provided, as sent note, edit contact; Also can self-defined terminal operation behavior, as obtain QQ buddy list, send Email, monitor news messages in micro-letter etc.Wherein, control command standard interface and/or default control instruction class are similar to virtual terminal.
For example, first terminal can generate self-defining instruction by control command standard interface, as obtains QQ buddy list, opens the control commands such as micro-letter message, also can directly generate control command by default control instruction.
In order to realize above-described embodiment, the present invention also proposes a kind of remote control of terminal.
A remote control for terminal, comprising: receiver module, the control command sending for receiving first terminal; Sending module, for being sent to control command the second terminal; Enquiry module for when listening to the notification event of the second terminal execution control command, is inquired about response data corresponding to control command in the mirror image of the second terminal; And sending module is also for sending to first terminal by the response data inquiring.
Fig. 3 is the structural representation of the remote control of terminal according to an embodiment of the invention.
As shown in Figure 3, the remote control of terminal comprises: receiver module 100, sending module 200 and enquiry module 300.
Particularly, the control command that receiver module 100 sends for receiving first terminal.Wherein, if user wants to control other-end by first terminal, can be to remote control sending controling instruction, the receiver module 100 of remote control receives this control command.In addition, control command is to embody task statement or the code segment that first terminal needs other-end to complete, and for example, the object that control command realizes can be to obtain new message in other-end, obtain message registration in other-end etc.
Sending module 200 is for being sent to control command the second terminal.In one embodiment of the invention, first terminal and the second terminal can be mobile terminal or PC etc., and wherein, mobile terminal can be the hardware device that mobile phone, panel computer, personal digital assistant, e-book etc. have various operating systems.
Enquiry module 300, for monitoring when the second terminal is carried out the notification event of control command, is inquired about response data corresponding to control command in the mirror image of the second terminal.Wherein, when the second terminal is obtained control command and carries out, the remote control of terminal can listen to the notification event of carrying out control command.For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, and at this moment the remote control of terminal listens to this notification event, according to corresponding identification information, can identify this notification event.For example, if control command is the note of obtaining in the second terminal, the result of carrying out control command is that the second terminal starts short message application program with interception note, now, trigger a notification event in the second terminal, this notification event can have identification information, at this moment listens to this notification event, according to corresponding identification information, can identify this notification event.
Wherein, mirror image refers to the independent and complete copy of certain logic magnetic disc volume.In one embodiment of the invention, mirror image refers to real-time data in the second terminal etc. are copied on remote control, comprises system data and user data, to guarantee continuous availability, consistency and the accuracy of data.For example, the system data of smart mobile phone, user data etc. are carried out to complete backup in the memory space of remote control.
After listening to this notification event, according to corresponding control command, in corresponding mirror image, search to obtain the response data of the execution result of control command.For example, when control command is while obtaining the note of the second terminal, at mirror image corresponding to this second terminal, search to obtain corresponding short message content.
Sending module 200 is also for sending to first terminal by the response data inquiring.
The remote control of the terminal of the embodiment of the present invention, mirror image by the second terminal is realized the control to the second terminal, thus, make to have the user of a plurality of terminals, in the situation that only carrying a terminal, control at any time the problem of the required task of other terminal completing user, for example, use PC can control a plurality of mobile terminals, promoted user's experience; In addition, by the data synchronous mirror of the second terminal, the mirror image of the second terminal can be directly accessed to obtain data, flowing of access can be saved significantly.
Fig. 4 is the structural representation of the remote control of terminal in accordance with another embodiment of the present invention.
As shown in Figure 4, the remote control of terminal comprises: receiver module 100, sending module 200, enquiry module 300 and acquisition module 400.
Particularly, when acquisition module 400 does not exist response data corresponding to control command for the mirror image in the second terminal, from the second terminal, obtain response data corresponding to control command, and by sending module 200, response data is sent to first terminal.
Wherein, when not finding the response data of execution result according to control command in corresponding mirror image, acquisition module 400 is sent to the second terminal by push channel by control command, the second terminal is received control command, by general module, (for example carry out, send note, set up applications, general module in second terminal such as edit contact) or (for example specify third party's module, Baidu's search box, microblogging, the module that the third parties such as map provide) after carrying out, response data and notification event are sent to sending module 200 by notice passage, then, sending module 200 is sent to first terminal by response data and notification event.
The remote control of the terminal of the embodiment of the present invention, if do not find the response data of execution result in corresponding mirror image according to control command, according to notification event, from the second terminal, directly obtain response data, and response data and notification event are sent to first terminal, can make to have thus the user of a plurality of terminals, realization is in the situation that only carrying a terminal, control at any time the problem of the required task of other terminal completing user, for example, use PC can control a plurality of mobile terminals, further promoted user's experience.
Fig. 5 is the structural representation of the remote control of the terminal of another embodiment according to the present invention.
As shown in Figure 5, the remote control of terminal comprises: receiver module 100, sending module 200, enquiry module 300, acquisition module 400, mirror image module 500 and module 600 is provided.
Particularly, mirror image module 500, for before receiving the control command of first terminal transmission, is the second terminal distribution memory space, and in memory space, the second terminal is carried out to mirror image.
In one embodiment of the invention, mirror image module 500 is also for keeping mirror image and second terminal synchronizes of memory space the second terminal.Wherein, keep mirror image and second terminal synchronizes of the second terminal in memory space, once the data in the second terminal change, so this change can synchronously generation in mirror image automatically.For example, there is new note in the second terminal, and this new message can synchronously be updated in mirror image so.
Provide module 600 for control command standard interface and/or default control instruction are provided, so that first terminal generates control command according to control command standard interface and/or default control instruction.
Wherein, third party's module for example, sends instruction request in any terminal (first terminal) to remote control, remote control is by abstract control command standard interface and/or default control instruction out, third party's access terminal (for example the second terminal) is provided, and predefined terminal operation behavior is provided, as sent note, edit contact; Also can self-defined terminal operation behavior, as obtain QQ buddy list, send Email, monitor news messages in micro-letter etc.Wherein, control command standard interface and/or default control instruction class are similar to virtual terminal.
For example, first terminal can generate self-defining instruction by control command standard interface, as obtains QQ buddy list, opens the control commands such as micro-letter message, also can directly generate control command by default control instruction.
In one embodiment of the invention, it is optional providing module 600.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in memory and by software or the firmware of suitable instruction execution system execution.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, the application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or feature can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that not departing from principle of the present invention and aim, can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.