CN1330128C - Long-range control method and system for communication device - Google Patents

Long-range control method and system for communication device Download PDF

Info

Publication number
CN1330128C
CN1330128C CNB031437826A CN03143782A CN1330128C CN 1330128 C CN1330128 C CN 1330128C CN B031437826 A CNB031437826 A CN B031437826A CN 03143782 A CN03143782 A CN 03143782A CN 1330128 C CN1330128 C CN 1330128C
Authority
CN
China
Prior art keywords
terminal
operating
operable
operable terminal
command
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.)
Expired - Lifetime
Application number
CNB031437826A
Other languages
Chinese (zh)
Other versions
CN1581794A (en
Inventor
程宏国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031437826A priority Critical patent/CN1330128C/en
Publication of CN1581794A publication Critical patent/CN1581794A/en
Application granted granted Critical
Publication of CN1330128C publication Critical patent/CN1330128C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention provides a long-range control method for a communication device. The method comprises the following steps: a control command to be transmitted in an operating terminal is transmitted to a remote communication device namely a command interpretation part of an operating system of an operated terminal; the command interpretation part of the operating system of the operated terminal receives the control command transmitted by the operating terminal and processes the control command; the operated terminal carries out the corresponding operation according to a processing result, and the operated terminal is controlled in a long-range mode. The present invention also provides a system which can realize the long-range control method for a communication device of the present invention. The system comprises a data transmission part, the command interpretation part of the operating system of the operated terminal, and an executing part of the operated terminal. The present invention simplifies a server set in the operated terminal and leads the cycle for designing and developing the server to be shortened. Resources of the operated terminal are released. Therefore, the cost of the long-range control system of the communication device is lowered, resources of network terminal equipment are saved, and the processing ability of the network terminal equipment is improved.

Description

A kind of method and system of communication apparatus Long-distance Control
Technical field
The present invention relates to the network communications technology field, be specifically related to a kind of method and system of communication apparatus Long-distance Control.
Background technology
Along with developing rapidly of computer, computer has become a kind of indispensable instrument in people's work, the life.
Computer Communication Networks has been deep in our work and life along with the development of computer.
Computer is carrying out in the process used in everyday it as network communication apparatus, often has a certain the demand that computer is operated control in the network.As shown in Figures 1 and 2, in Fig. 1, operating terminal and operable terminal are network-termination device, operating terminal and operable terminal 1, operable terminal 2 are network-termination device in Fig. 2, if the user need operate control to operable terminal at operating terminal among Fig. 1, the user need operate control to operable terminal 1 and operable terminal 2 at operating terminal among Fig. 2, and the user can realize the control to it directly to operating on it its end of controlling.If but can realize that the user utilizes operating terminal that operable terminal is operated control at the operating terminal place, promptly realize the communication apparatus Long-distance Control, can bring a lot of facilities to live and work.
The computer remote control method has two kinds.
First method: share the control of realization computer remote by the network of operable terminal.
Under operating systems such as window or UNIX, share the bookkeeping that to realize the far-end computer file by network.Operable terminal is shared, can operation such as be checked, duplicate the file in the operable terminal, be under the complete state shared at operable terminal can also make amendment to the file of operable terminal storage, operation such as deletion.But, when operable terminal is in shared state, if the executable file of operation operable terminal, then this executable file moves on operating terminal, can not reach executable file and on operable terminal, move living result, and can not be created in the operation effect that executable file produced on the operable terminal.Therefore, utilize network to share and to realize remote computer control fully.
Second method: by client and server realization communication apparatus Long-distance Control being set respectively at operating terminal and operable terminal.
Among Fig. 1, if the user need realize control to operable terminal need and moving a client in the operating terminal setting by operating terminal, in the operable terminal setting and move a server.Server in the operable terminal should be supported fully to the operational order of operating terminal, can finish the order that comes from client transmissions like this.
The user utilizes the client input to wish the order of carrying out on operable terminal at operating terminal, client is transmitted through the network to operable terminal with this order, after the server of operable terminal receives this order, carry out this order by server, and execution result is transmitted through the network to operating terminal, after client on the operating terminal receives execution result, the result is presented on the operating terminal.Thereby realize the communication apparatus Long-distance Control.
Because the operating terminal order of sending need realize by the server on the operable terminal self, thus need the server on the operable terminal to support the order that operating terminal sends fully, so the server on the operable terminal is provided with complexity.Thereby taken the resource of a large amount of operable terminals, the disposal ability of operable terminal is reduced, wasted the resource of network-termination device, and the complexity of the setting of the server on the operable terminal, make the cycle of design and exploitation server long, workload is big, is not easy to realize, thereby makes communication apparatus tele-control system cost height.
In Fig. 2, if the user need need be provided with server respectively by the control of operating terminal realization to operable terminal 1 and operable terminal 2 on operable terminal 1 and operable terminal 2.If the operating system that adopts on operable terminal 1 and the operable terminal 2 is identical, the server that is provided with on operable terminal 1 and operable terminal 2 is identical so.If the operating system that adopts on operable terminal 1 and the operable terminal 2 is different, the operating system of setting operable terminal 1 is Window operating system, and the operating system of operable terminal 2 is Unix operating system.Need a server that be applicable under the Window operating system be set on the operable terminal 1 so, a server that is applicable under the Unix operating system is being set on the operable terminal 2.Because the process of the designing and developing complexity of server, be not easy to realize, designing and developing the server that is applicable to different operating system respectively can make workload significantly increase, and the serviced device of system resource of operable terminal 1 and operable terminal 2 takies in a large number, waste the network-termination device resource, caused the network-termination device disposal ability to descend.
Summary of the invention
The objective of the invention is to, a kind of method and system of communication apparatus Long-distance Control is provided, and to simplify the server setting of operable terminal, advantages of simplicity and high efficiency realizes the communication apparatus Long-distance Control, realize saving the network-termination device resource, improve the purpose of the disposal ability of network-termination device.
For achieving the above object, the method for communication apparatus Long-distance Control provided by the invention comprises:
A, operating terminal control command waiting for transmission is transferred to the command interpretation part that remote communication equipment is the operating system of operable terminal;
The command interpretation of b, operable terminal operating system partly receives the next control command of operating terminal transmission and it is handled;
C, operable terminal carry out corresponding operating according to described result, realize the Long-distance Control to operable terminal.
Described command interpretation partly comprises SHELL (command interpreter).
Described step a comprises:
The input of the command interpretation of operable terminal operating system part is redirected the port that links with operating terminal for operable terminal;
The port that operating terminal control command waiting for transmission is linked by operating terminal and operable terminal sends to the command interpretation part.
Described method also comprises:
D, be the port that links with operating terminal of operable terminal with the output redirection of the command interpretation of operable terminal operating system part.
Described steps d comprises:
The command interpretation that operable terminal is monitored its operating system partly be redirected the data of output and with the data that listen to by the port transmission that links with operating terminal to operating terminal.
Described method also comprises:
Described operating terminal receives and shows the data that the operable terminal transmission comes, and described data are the execution result of operable terminal.
The present invention also provides a kind of system that realizes communication apparatus long-range control method of the present invention, comprising:
Tcp data segment: the command interpretation part that is used for operating terminal control command waiting for transmission is transferred to by operating terminal and linking of operable terminal operable terminal operating system;
The command interpretation part of operable terminal operating system: the reception tcp data segment transmits next control command by described link and it is handled accordingly, result is transferred to the operating part of operable terminal;
The operating part of operable terminal: partly transmit the result of coming according to the command interpretation of operable terminal operating system and operate accordingly, realize Long-distance Control to operable terminal.
Described tcp data segment comprises:
Redirection module: with input, the output redirection of the command interpretation of operable terminal operating system part is the port that links with operating terminal of operable terminal;
Operating terminal data transmission blocks: the command interpretation part that operating terminal control command waiting for transmission is transferred to operable terminal operating system by described link.
Described system also comprises:
Operable terminal tcp data segment: be used to monitor the partly redirected data of exporting of command interpretation of operable terminal operating system and its data that listen to are transferred to operating terminal by described link;
Operating terminal Data Receiving part: reception also shows the data that operable terminal comes by described link transmission.
Utilize the present invention, when needs carry out the communication apparatus Long-distance Control, by operating terminal control command waiting for transmission being transferred to the command interpretation processing section of operable terminal operating system, command interpretation part by operable terminal operating system is handled it, rather than it is handled by the server that is provided with on the operable terminal, simplified the server that is provided with on the operable terminal, alleviated the server design development workload greatly, the cycle of designing and developing of server is shortened; Because server is simple and easy to realize that it is little to take resource space, makes the resource of operable terminal obtain liberation; Thereby realized reducing the cost of communication apparatus tele-control system, the resource of saving network-termination device, the purpose of the disposal ability of raising network-termination device.
Description of drawings
Fig. 1 is a communication apparatus Long-distance Control schematic diagram;
Fig. 2 realizes the Long-distance Control schematic diagram to a plurality of communication apparatus;
Fig. 3 is a communication apparatus tele-control system of the present invention.
Embodiment
The present invention handles by the command process part control command that transmission comes to operating terminal of utilizing operable terminal operating system, and advantages of simplicity and high efficiency realizes the communication apparatus Long-distance Control.Its specific implementation principle is: the command interpretation part that operating terminal control command to be transmitted is transferred to operable terminal operating system, command interpretation part by operable terminal operating system is handled transmitting the control command of coming, operable terminal carries out corresponding operating according to described result, thereby realizes the Long-distance Control of operating terminal to operable terminal.
Its specific implementation method is:
Operating terminal and operable terminal are the network communication terminal equipment, and client is set on operating terminal, and server is set on operable terminal.
The function that server is realized: after starting server, server is at first created a Socket (socket), and Socket is monitored, and waits for the link of the client on the operating terminal.
When the data that listen to the Socket reception are the data of client-requested link, set up the Socket of server and linking of client.
After the linking of the Socket that sets up server and client, server is created a subprocess, this subprocess loads the Shell of its place operable terminal operating system, promptly the execution body of this subprocess is the Shell of server place operable terminal operating system, this subprocess is redirected the input and output of the Shell of operable terminal operating system, allow the control command that Socket receives that is input as of Shell, allow the output of Shell be transferred to Socket.Simultaneously server is created a thread, and this thread is constantly read the output that Shell is redirected, and the output that Shell is redirected is by transferring to the client of operating terminal with linking of operating terminal.
The function that client realizes: after starting client, client is at first created a Socket, and the server on operable terminal sends the link application, sets up with server to link.After successfully linking, wait for the control command that receives user's input with server.After user input control command to operable terminal, receive user's input control command and with its by with the Socket that transfers to server from the Socket of client that links of operable terminal.Simultaneously the client on the operating terminal is created a thread, the data that send over from server end that read that the Socket of client receives, if read the data that the Socket of client receives, client is shown to operating terminal to data.
The user is by the control command of the client on operating terminal input like this, carries out dissection process by the Shell of operable terminal operating system, and operable terminal is operated accordingly and operating result is exported by Shell according to the result of dissection process.The thread of the server establishment on the operable terminal is constantly read the output that Shell is redirected simultaneously, the redirected output of Shell is transmitted through the network to the client of operating terminal, the operating result that comes from Server Transport that will be received by client shows at operating terminal, thereby has realized the communication apparatus Long-distance Control.
When many operable terminals of operating terminal control, if the operating system difference of operable terminal, the server that is provided with on operable terminal so only need load the Shell of its place terminal operating system, be the Shell that subprocess that server is created loads its place operable terminal operating system, just can have realized server.Such server implementation reduces the cycle of designing and developing of server greatly, has reduced the cost of realizing the communication apparatus tele-control system.
Below in conjunction with accompanying drawing communication apparatus tele-control system of the present invention is described in further detail.
Communication apparatus tele-control system of the present invention as shown in Figure 3.
In Fig. 3, the communication apparatus tele-control system comprises: the command interpretation part 330 of operating terminal data transmission blocks 300, operating terminal Data Receiving part 310, redirection module 320, operable terminal operating system, the operating part 340 of operable terminal, operable terminal tcp data segment 350.
Operating terminal data transmission blocks 300 and redirection module 320 are formed tcp data segment.
Redirection module 320 is the port that links with operating terminal of operable terminal with input, the output redirection of the command interpretation part 330 of operable terminal operating system.
Operating terminal data transmission blocks 300 transfers to the user command interpretation part 330 of operable terminal operating system in the control command of operating terminal input.The command interpretation part 330 of operable terminal operating system receives after the control command that operating terminal data transmission blocks 300 transmission comes its processing that makes an explanation, and result is transferred to the operating part 340 of operable terminal.The result that the result that the operating part 340 of operable terminal comes according to transmission is operated accordingly and will be operated sends by the redirected output of the command interpretation part 330 of operable terminal operating system.The command interpretation part 330 that operable terminal tcp data segment 350 is monitored the operable terminal operating systems is redirected the data of output, and with its data that listen to by transferring to operating terminal Data Receiving part 310 with linking of operating terminal.Operating terminal Data Receiving part 310 receives the data that 350 transmission of operable terminal tcp data segment come, and it is shown on operating terminal.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wishes that appended claim comprises these distortion and variation.

Claims (9)

1. the method for a communication apparatus Long-distance Control is characterized in that comprising:
A, operating terminal control command waiting for transmission is transferred to the command interpretation part that remote communication equipment is the operating system of operable terminal;
The command interpretation of b, operable terminal operating system partly receives the control command that the operating terminal transmission comes, and directly this control command is carried out dissection process;
C, operable terminal carry out corresponding operating according to described result, realize the Long-distance Control to operable terminal.
2. the method for a kind of communication apparatus Long-distance Control as claimed in claim 1 is characterized in that described command interpretation partly comprises command interpreter SHELL.
3. the method for a kind of communication apparatus Long-distance Control as claimed in claim 1 or 2 is characterized in that described step a comprises:
The input of the command interpretation of operable terminal operating system part is redirected the port that links with operating terminal for operable terminal;
The port that operating terminal control command waiting for transmission is linked by operating terminal and operable terminal sends to the command interpretation part.
4. the method for a kind of communication apparatus Long-distance Control as claimed in claim 1 is characterized in that described method also comprises:
D, be the port that links with operating terminal of operable terminal with the output redirection of the command interpretation of operable terminal operating system part.
5. the method for a kind of communication apparatus Long-distance Control as claimed in claim 4 is characterized in that described steps d comprises:
The command interpretation that operable terminal is monitored its operating system partly be redirected the data of output and with the data that listen to by the port transmission that links with operating terminal to operating terminal.
6. the method for a kind of communication apparatus Long-distance Control as claimed in claim 5 is characterized in that described method also comprises:
Described operating terminal receives and shows the data that the operable terminal transmission comes, and described data are the execution result of operable terminal.
7. the system of a communication apparatus Long-distance Control is characterized in that comprising:
Tcp data segment: the command interpretation part that is used for operating terminal control command waiting for transmission is transferred to by operating terminal and linking of operable terminal operable terminal operating system;
The command interpretation part of operable terminal operating system: the reception tcp data segment transmits next control command by described link and it is handled accordingly, result is transferred to the operating part of operable terminal;
The operating part of operable terminal: the command interpretation according to operable terminal operating system partly passes
Defeated next result is operated accordingly, realizes the Long-distance Control to operable terminal.
8. the system of a kind of communication apparatus Long-distance Control as claimed in claim 7 is characterized in that described tcp data segment comprises:
Redirection module: with input, the output redirection of the command interpretation of operable terminal operating system part is the port that links with operating terminal of operable terminal;
Operating terminal data transmission blocks: the command interpretation part that operating terminal control command waiting for transmission is transferred to operable terminal operating system by described link.
9. the system of a kind of communication apparatus Long-distance Control as claimed in claim 8 is characterized in that described system also comprises:
Operable terminal tcp data segment: be used to monitor the partly redirected data of exporting of command interpretation of operable terminal operating system and its data that listen to are transferred to operating terminal by described link;
Operating terminal Data Receiving part: reception also shows the data that operable terminal comes by described link transmission.
CNB031437826A 2003-08-05 2003-08-05 Long-range control method and system for communication device Expired - Lifetime CN1330128C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031437826A CN1330128C (en) 2003-08-05 2003-08-05 Long-range control method and system for communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031437826A CN1330128C (en) 2003-08-05 2003-08-05 Long-range control method and system for communication device

Publications (2)

Publication Number Publication Date
CN1581794A CN1581794A (en) 2005-02-16
CN1330128C true CN1330128C (en) 2007-08-01

Family

ID=34579520

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031437826A Expired - Lifetime CN1330128C (en) 2003-08-05 2003-08-05 Long-range control method and system for communication device

Country Status (1)

Country Link
CN (1) CN1330128C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960276B (en) * 2005-11-04 2010-05-12 英业达股份有限公司 Remote control system and method
CN102736936B (en) * 2012-05-31 2015-01-28 东南大学 Method for remotely interacting console programs
CN104391695B (en) * 2014-11-06 2017-11-24 北京凌阳益辉科技有限公司 A kind of method and its device that control is synchronized by external equipment
CN105577831A (en) * 2016-02-02 2016-05-11 明博教育科技股份有限公司 Data communication method and system in mobile teaching of electronic courseware
CN106850731A (en) * 2016-10-14 2017-06-13 水熊有限公司 A kind of method of remote control, server and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003049402A1 (en) * 2001-11-30 2003-06-12 Oracle International Corporation Servicing requests that are issued in a protocol other than the protocol expected by the service
CN1512333A (en) * 2002-12-27 2004-07-14 联想(北京)有限公司 Heterogeneous machine group management system and information processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003049402A1 (en) * 2001-11-30 2003-06-12 Oracle International Corporation Servicing requests that are issued in a protocol other than the protocol expected by the service
CN1512333A (en) * 2002-12-27 2004-07-14 联想(北京)有限公司 Heterogeneous machine group management system and information processing method

Also Published As

Publication number Publication date
CN1581794A (en) 2005-02-16

Similar Documents

Publication Publication Date Title
KR101706876B1 (en) Service processing method and device
CN102651915B (en) Intelligent wireless router and wireless communication system
CN102065152A (en) Joined screen system and communication device thereof
CN1330128C (en) Long-range control method and system for communication device
Alam Tactile internet and its contribution in the development of smart cities
CN113472637A (en) LORA gateway
CN101917464A (en) Networked multi-robot system
CN103945567A (en) Inverter system communication networking method
EP3745375A1 (en) Method for transmitting signal via mesh network and remote control system thereof
CN101010917A (en) Creation of a non-wired communication network, by determining local topology information from the identifiers of communication appliances
CN105471718A (en) Realization method of full duplex message queue
KR20030070300A (en) Home Appliance Network System Including Bridge device and Its Operating Method
KR20000055999A (en) a system of in-line equipments and a controlling method thereof
KR20170127348A (en) System and method for data connection between semiconductor manufacturing facility and external analysis system
CN114362821A (en) Cross-network information reminding method, system and device of photoelectric conversion device
CN107517234A (en) A kind of data transmission method, equipment and system
CN101360292A (en) Method and system implementing dual SIM card interchanging supported by single Bluetooth in mobile phone
CN116095159A (en) Method and system for remotely controlling communication equipment
CN1329857C (en) Unified input output method and equipment under multiprocessing unit environment
US20030162531A1 (en) Wireless communication device, wireless communication system, and device configuring method for information processing system
CN216216973U (en) Intelligent Internet of things system Internet of things terminal HTTP-MQTT protocol adaptation device
CN111667678B (en) Remote controller and airplane short-distance code matching method
CN108200009A (en) A kind of terminal device network communication method and device
CN115278927A (en) Wireless connection and upgrading method
CN107733753B (en) Networking expansion device

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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070801