Summary of the invention
In view of this, purpose of the present invention just provides a kind of system and method that on mobile phone remote computer is conducted interviews and controls, in order to realize to remote computer start/login/close, mouse/keyboard operation, clipbook management, screen content are checked, file system management and program management etc.
For achieving the above object, a kind of system that realizes mobile phone access and control computer of the present invention, comprise master control mobile phone and controlled computer, the master control mobile module wherein is installed in the master control mobile phone, this module comprises at least: database, order form module and Master Communications module; The controlled computer module is installed in controlled computer, and this module comprises at least: controlled communication module, order analysis and Coordination module and command execution module.
Wherein, above-mentioned database is responsible for the related data of the above-mentioned controlled computer of storage and the related data of execution result;
Mentioned order forms module, is responsible for forming visit and control command according to the data in user's input and the above-mentioned database, wherein comprises the related data of controlled computer in this visit and the control command at least;
Above-mentioned Master Communications module is responsible for that above-mentioned visit and control command are packaged into message and is sent or resolve message from above-mentioned controlled computer to above-mentioned controlled computer;
Above-mentioned controlled communication module, the visit that the above-mentioned master control mobile phone of responsible reception transmits and the message of control command, content is resolved and will be resolved to this message to above-mentioned order analysis and Coordination module transmission, and execution result is pressed message format fill the back to above-mentioned dominant hand's machine transmission;
Mentioned order is analyzed and Coordination module, be responsible for the visit and the control command information that transmit from above-mentioned controlled communication module are analyzed, and this information sent to the mentioned order execution module, and the information that transmits from the mentioned order execution module is analyzed and should execution information be sent to above-mentioned controlled communication module;
The mentioned order execution module is responsible for information and execution analysis that reception mentioned order analysis and Coordination module transmit, and execution result is returned mentioned order analysis and Coordination module.
In addition, the mentioned order execution module comprises startup command execution module, querying command execution module at least, command execution module and control command execution module is set.
For achieving the above object, the present invention provides a kind of method that realizes mobile phone access and control computer simultaneously, may further comprise the steps:
Step 1 is installed the master control mobile module in the master control mobile phone, to form visit and control command;
Step 2 is installed the controlled computer module in controlled computer, and it is set to the state that automatically performs under the situation without any the User login system;
Step 3, above-mentioned master control mobile phone is upwards stated controlled computer and is sent above-mentioned visit and control command, and the controlled communication module of above-mentioned controlled computer receives this visit and control command;
Step 4, the order analysis of above-mentioned controlled computer and Coordination module are analyzed above-mentioned visit and control command, and judge whether this order is legal;
Step 5, the command execution module of above-mentioned controlled computer is carried out legal visit and control command, returns execution result to above-mentioned order analysis and Coordination module simultaneously;
Step 6, the controlled communication module of above-mentioned controlled computer sends execution result to above-mentioned dominant hand's machine;
Step 7, the Master Communications module of above-mentioned master control mobile phone receives above-mentioned execution result, and shows execution result and preserve this execution result on the user interface of this master control mobile phone in database.
Wherein, above-mentioned steps five also further comprises: the command execution module of above-mentioned controlled computer is to the execution of classifying of legal visit and control command, and described classification is carried out and comprised that at least startup command is carried out, querying command is carried out, command execution is set and control command is carried out.
Embodiment
Now in conjunction with the accompanying drawings the present invention is done further and describe in detail.A kind of system that realizes mobile phone access and control computer of the present invention comprises master control mobile phone and controlled computer, and the master control mobile module wherein is installed in the master control mobile phone, and this module comprises at least: database, order form module and Master Communications module.As shown in Figure 1, the annexation between the master control mobile module of in the master control mobile phone, installing and function is as follows separately:
(1) user interface: accept user's various visits and control command, and execution result is fed back to the user in close friend's mode;
(2) database: preserve the various related datas of user's operation, as IP, password, control mode etc., these data can be by user interface query and modification, and it also takes orders and forms the inquiry of module simultaneously, to form various visits and control command;
(3) order forms module: this module forms visit and control command according to user's input and the related data in the database, wherein comprises the related data of controlled computer in this visit and the control command at least;
(4) Master Communications module: this module is responsible for parsing and the encapsulation to message, for upper system provides physical layer interface;
(5) communication link: be meant wireless network, for example 3G network and Internet network.
As shown in Figure 2, the controlled computer module is installed in controlled computer, this module comprises at least: controlled communication module, order analysis and Coordination module and command execution module.Annexation between them and function is as follows separately:
(1) communication link: as the above-mentioned finger wireless network that is both, for example 3G network and Internet network;
(2) controlled communication module: receive the message that transmits from the master control mobile phone, according to communication protocol message is resolved then, command context is delivered to next module.Execution result to order is filled by message format, sends to the master control mobile phone then;
(3) order analysis and Coordination module: the command information that transmits from controlled communication module is analyzed, carried out if order legal then it is sent to command execution module;
(4) command execution module: according to different command types execution is analyzed in order, and execution result is returned;
(5) Ming Ling classification execution module: finish the execution of orders such as startup, control, setting and inquiry at least.
Carrying out the mobile phone remote control computer, in fact is exactly a controlled computer module and a master control mobile module: the controlled computer module can be installed on the long-range computing machine that needs Be Controlled and visit, and it monitors client's request, and handles it; The master control mobile module is installed on the mobile phone, it passes through wireless network, as GPRS (General Packet Radio Service) (General Packer RadioService, be called for short GPRS) network, CDMA 1x (Code Division Multiple Access1x is called for short CDMA1x) network and 3G network send the request of oneself to controlled computer, controlled computer just carries out different responses according to the request of master control mobile phone, at last the content on the controlled computer is delivered on the master control mobile phone by wireless network.This method can adopt the Java storehouse to realize, available its establishment is by the graphic package of controlled computer control, for example Swing, AWT (Abstract Windowing Toolkit is called for short AWT) and can be by the application program of any virtual network computing machine browser visit in Java etc.The user can pass through mobile phone, personal digital assistant (Personal Digital Assistant, be called for short PDA) and alternate manner visit controlled computer, allow the user to browse file on the computer by text message mode, voxel model and the local interface of Java, and can edit them.
Above-mentioned controlled computer module can be at the running background of controlled computer system, and requires to automatically perform under the situation without any logging in system by user, can realize by the service routine of it being made Windows at this.A Windows service routine of observing Service Management control program interface requirement must comprise following three programs:
1. service routine master routine: the Service Management control program starts after the service routine, the service routine master routine is at first carried out, and start service for sub-thread of every service entrance point program creation, wait on the backstage then, response is called the control corresponding request handler to the control request of respective services, all is stopped just up to all service functions and finishes.
2. service entrance point program: it is the Windows callback procedure, and this program is registered service control and treatment program, and the state of update service program is finished the concrete initialization operation of service routine.
3. serve the control and treatment program: when controlled program was sent control request to a certain service, the control corresponding handling procedure will be called to respond control request.
Controlled program wanted the call operation system program to register in system before normal operation, can specify the association attributes of controlled program run during registration, here should specify it be automatic startup (SERVICE AUTO START), can with desktop mutual (SERVICE-INTERACTIVE-PROCESS).For the normal execution that guarantees service function and to effective realization of its control, general concrete function executing part all will be placed in the new thread, and uses synchronization object to carry out synchronously.Such as allowing service thread waiting, in the program of response SERVICE-CONTROL-STOP message, this incident is set then by the time finish after an incident in order to stop this service.
The process of moving in Windows all has certain authority, and these authorities use " access token " to describe." access token " be one and comprise the data structure that process or thread-safe are represented, comprising: the tabulation of group and the privilege tabulation of enabling and forbidding under safe ID (SID), the user.Because access token is output to user's attitude, so can use application programming interfaces (Application Program Interface is called for short API) to create and handle it.For some special operations, as restart, operation such as shutdown, need especially corresponding authority is assigned to corresponding process.Because what create the service routine use is keeper's number of the account, this number of the account has the authority that system is controlled fully, and the process of therefore inheriting this number of the account " access token " also has this authority, only corresponding privilege activation need be got final product.
Aspect security mechanism, be mainly concerned with following two aspects: 1) authentification of user: prevent that unauthorized user from using uncommitted order to the control or the user of controlled computer; 2) transmission protection: the message that prevents mobile phone and controlled computer is cracked by intercepting and capturing.The security means that native system uses is to utilize password to come the user is authenticated.When controlled computer moved for the first time, whether the order that it uses a default password to verify the master control mobile phone was legal.Master control this moment mobile phone can be given an order and be changed this password, and controlled computer writes registration table to the authority of password and this password correspondence (control or part control fully) after the change of secret code after encrypting.The master control mobile phone can be at any time to user and authority add, operation such as deletion, change finishes security audit work.
Owing to need compare perfect control to controlled computer, need the control command of setting many.Therefore set rule once the cover order and seem essential.In native system, the control degree that can carry out controlled computer according to type and it of order is divided into four classes with order, is respectively startup command, querying command, control command, order is set, and respectively it is set then.
A kind of method of mobile phone access and control computer that realizes of the present invention is: the master control mobile phone sends to controlled computer with user's order.The controlled computer designated port is monitored, and for example designated port 12345.When order arrives, order is received, analyzes, carries out.After carry out finishing,, and the result turned back to mobile phone according to execution result returned packet structure.
The master control mobile phone after receiving the result of feedback shows execution result.
Figure 3 shows that system flow block diagram when the present invention carries out startup command, at first, in controlled computer, install and comprise the controlled module of controlled communication module, startup command analysis and Coordination module, startup command execution module at least, and be arranged under the situation without any the User login system and automatically perform state.Wherein, controlled communication module is in order to the message of parsing or encapsulation and the contact of master control mobile phone, and transmits this command information; Startup command analysis and Coordination module are analyzed in order to the startup command information that controlled communication module is transmitted, and the startup command execution module is in order to analyzing execution to startup command, and return execution result.
Secondly, the main control module that comprises database, startup command formation module and Master Communications module at least is installed in the master control mobile phone.Wherein, database is accepted inquiry in order to form startup command simultaneously in order to preserve the various related datas of controlled computer; Startup command forms module in order to according to the startup command of master control cell-phone user interface input and inquire about the related data of preserving in the above-mentioned database and form startup command; The Master Communications module is packaged into message in order to the startup command that will comprise above-mentioned controlled computer relevant information at least and sends or resolve message from controlled computer to controlled computer.
The specific implementation process is as follows: the user sends the order of " startups " by the master control mobile phone interface, and the formation startup command was delivered to the Master Communications module after the controlled computer related data of preserving in startup command forms module and database combined; The Master Communications module is packaged into message with this startup command and sends to controlled computer by communication link.Controlled communication module in the controlled computer is resolved the message from the master control mobile phone, and transmits this startup command information; Startup command analysis in the controlled computer and Coordination module are analyzed and are sent to the startup command execution module to this startup command information and analyze execution, and the execution result order is turned back to the master control mobile phone interface.
Though the present invention discloses as above with embodiment; but it is not in order to limit the present invention; any person of ordinary skill in the field; without departing from the spirit and scope of the invention; change and improve when doing some, so protection scope of the present invention should be looked the scope that claim defines and is as the criterion.