CN105892299A - Computer remote control system and method based on serial port connection - Google Patents
Computer remote control system and method based on serial port connection Download PDFInfo
- Publication number
- CN105892299A CN105892299A CN201610195976.8A CN201610195976A CN105892299A CN 105892299 A CN105892299 A CN 105892299A CN 201610195976 A CN201610195976 A CN 201610195976A CN 105892299 A CN105892299 A CN 105892299A
- Authority
- CN
- China
- Prior art keywords
- computer
- serial ports
- remote control
- mail server
- controlled terminal
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a computer remote control system and method based on serial port connection. The system comprises a control end, a controlled end, a transfer end, and a mail server. The control end is a computer far from the controlled end in spatial distance, receives and sends electronic mails via the Internet, sends control instructions and finally displays an execution result frame. The controlled end is a core computer installed on a production line inside an enterprise, is connected with the internal network of the enterprise, and has a remote assistance request. The transfer end is an internal-network computer and is in communication connection with the controlled end and the mail server via the internal network, and receives and sends the electronic mails from and to external units via the mail server. The mail server is disposed inside the enterprise. The transfer end receives and sends the electronic mails from and to external units via the mail server. The computer remote control system carries out communication via the RS232 serial port of a computer, guarantees the internal network a physically isolated state, prevents harm of virus attack on a whole system, and achieves remote control when the controlled computer is not connected with the external units via a network cable.
Description
Technical field
The present invention relates to a kind of Computer Remote Control Technology, a kind of based on serial ports connection
Computer remote control system and method.
Background technology
Enterprises typically has the internal network of oneself, by the safety equipment such as gateway, fire wall with
The Internet is connected, and some Intranets even do not allow online, can only send and receive e-mail.Have
Enterprise separate three grades of nets of multiple internal network, such as user's routine office work according to different zones
Network, for the primary network station of Automated condtrol.For security consideration, such primary network station is inherently
With three grades of complete network physical isolations.If so the computer of special occasions needs remote assistance, remote
Journey technical support, cannot realize in the case of being the isolation of other network physicals.
Such as, the primary network station of certain iron and steel enterprise's production line automatic control system is an Intranet closed,
Check the chain condition for the PLC program automatically controlled, be the important hands of diagnosis all kinds of fault of production line
Section, PLC program needs can check in the terminal of this internal network, if professional and technical personnel
(such as have a holiday, go on business) the most not on post, difficulty will be caused to fault diagnosis.If
At this moment professional and technical personnel can remotely check and handle an inner computer and carries out remote technology and prop up
Holding, fault may be got rid of as early as possible.Want to realize remote assistance, it is common practice to, by one
Two network interface cards installed by net computer, and a network interface card connects the Intranet of oneself, and another network interface card passes through another
Individual network is connected with outer net, and such professional and technical personnel can manipulate this by the way of telnet
Platform inner computer.But, thus there is great potential safety hazard, practical situation is: one-level
Computer operating system under network is still the oldest Windows2000 system, and the leak of system own is very
Many, lack security protection, system is highly prone to the attack of each viroid, even if not attacked by outer net,
It is also likely to be infected viral computer attack by other, it is ensured that this is the closure ability of a network
Can guarantee that the safety of whole system, double netcard scheme that therefore top is mentioned is the most infeasible.
Therefore, in active computer remote controlled manner, controlled computer will pass through wired or wireless side
Formula is directly or indirectly connected to the Internet, then uses some third party softwares remotely controlled, and comes real
The purpose now remotely controlled, but need strict and the Internet physical isolation enterprises special for one
For determining network, these control methods are the most inapplicable, because this particular network just specifies from system
Can not be connected with other Intranets of the Internet even enterprise.
Meanwhile, in active computer remote controlled manner, controlled computer will be by wired or wireless
Mode is directly or indirectly connected to the Internet, if connected to the network, exist for by worm-type virus attack,
The risk of hacker attacks.
Summary of the invention
Cannot for the enterprises particular network needing strict and the Internet physical isolation in prior art
Realizing the deficiencies such as computer remote assistance, remote technology support, the technical problem to be solved in the present invention is
There is provided a kind of computer based on serial ports connection not only realizing physical network isolation but also realizing remotely controlling remote
Process control system and method.
For solving above-mentioned technical problem, the technical solution used in the present invention is:
A kind of computer remote control system connected based on serial ports of the present invention, including controlling end, controlled
End, transfer end and mail server, wherein:
Control end, for computer away from controlled terminal on space length, by the Internet transceiver electronics postal
Part, is responsible for sending manipulation instruction and finally showing execution result screen;
Controlled terminal, is installed on the core computer on enterprises production line, connects corporate intranet, tool
There is remote assistance demand;
Transfer end: for inner net computer, carry out communication even with controlled terminal and mail server by Intranet
Connect, sent and received e-mail with the external world by mail server;
Mail server: be arranged at enterprises, transfer end is by mail server and extraneous transmitting-receiving electricity
Sub-mail.
The computer of controlled terminal, transfer end and mail server carries serial ports by USB RS 232 serial ports
Data wire replaces.
Controlled terminal, transfer end connect multipair serial port connecting wire, and the string data of a picture is divided into
Many groups transmit simultaneously.
High definition video collecting card installed by controlled terminal computer, and controlled terminal image passes through high definition video collecting card
It is sent directly to transfer end.
The computer remote control method that the present invention connects based on serial ports, comprises the following steps:
Control end and instruct mail server by the Internet transmission mouse-keyboard;
Mail is sent to transfer end by mail server;
Transfer termination receiving emails, instructs the mouse-keyboard in mail and is sent to controlled terminal by serial ports;
Controlled terminal is received the instruction sent by serial ports and performs screenshot capture, and sectional drawing coding of graphics becomes
Character string is sent to transfer end by serial ports;
The coding of graphics character string received is sent to mail server by mail by transfer end;
Control termination take-up and have the mail of picture character string, character data is converted to picture and shows in control
On the display of end processed, remote control person, according to the picture returned, continues executing with operation.
After screenshot capture, first it is compressed processing, then is encoded into character string through base64.
The communication speed of serial ports is set as 380000Bd.
Mouse-keyboard instruction format be [xxxx:xxxx] <?> xxxx}, wherein:
[xxxx:xxxx] represents mouse coordinates, <?> represent mouse action, { xxxx} represents a mouse action
After time delay, unit is millisecond.
Mouse instructions generates by controlling end auxiliary, and mouse is clicking operation on echo picture, develops
The instruction of corresponding format.
Controlled terminal screen resolution shows the in the same size of picture with controlling end, it is ensured that mouse coordinates at two
Unanimously.
The invention have the advantages that and advantage:
1. the present invention is by the computer program write, utilize computer per se with RS232 serial ports
Carry out communication, it is ensured that internal network is still within the state of physical isolation, thus avoids virus attack pair
Whole system works the mischief, and realizes remote in the case of controlled computer is not connected by netting twine with the external world
Process control.
2. the present invention can utilize multipair serial port connecting wire, the string data of a picture is divided into
Many groups transmit simultaneously, so can be greatly shortened the echo time of sectional drawing picture;By the USB bought
RS 232 serial port data line replaces computer to carry serial ports, to obtain bigger transmission speed.
3. the present invention utilizes mail server interim data and instruction, requires controlled terminal and control end relatively
Low, even if network limits, as long as can receiving and dispatching mail, it is possible to ensure system worked well.
Low cost the most of the present invention, rectifies and improves under existing resource, substantially need not infusion of financial resources.
Accompanying drawing explanation
Fig. 1 is present system overall arrangement figure;
Fig. 2 is the control flow chart of present system.
Detailed description of the invention
Below in conjunction with Figure of description, the present invention is further elaborated.
As it is shown in figure 1, the computer remote control system that the present invention connects based on serial ports, including controlling
End, controlled terminal, transfer end and mail server, wherein:
Controlled terminal, is installed on the core computer on enterprises production line, connects corporate intranet, tool
There is remote assistance demand;
Control end, for computer away from controlled terminal on space length, by the Internet transceiver electronics postal
Part, is responsible for sending manipulation instruction and finally showing execution result screen;
Transfer end: for inner net computer, carry out communication even with controlled terminal and mail server by Intranet
Connect;
Mail server: be arranged at enterprises, transfer end is by mail server and extraneous transmitting-receiving electricity
Sub-mail.
The serial ports maximum baud rate carried due to general computer is only 128000, in order to improve transmission speed
Degree, replaces computer to carry serial ports by the USB RS 232 serial port data line bought, bigger to obtain
Transmission speed.In order to improve the speed of Serial Port Transmission further, utilize multipair serial port connecting wire, will
The string data of one picture is divided into many groups to transmit simultaneously, so can be greatly shortened sectional drawing picture
The echo time.
Owing to baud rate is to determine the major parameter of serial communication speed, the biggest speed of baud rate is the fastest,
But baud rate big the most to a certain extent time, the bit error rate also can be greatly increased, and therefore baud rate is to be arranged
Want suitably, on the premise of meeting quickly and be stable, time actually used, be set as that 380000 is proper.
The string data being converted into due to the biggest sectional drawing of resolution is the most, and the transmission time is the longest, therefore
The resolution of controlled terminal to be turned down as far as possible, and in practice, 1024*768 is proper.Controlled terminal screen simultaneously
Curtain resolution to show the in the same size, to ensure that at two, mouse coordinates is consistent of picture with controlling end.
If sectional drawing image data is not sent by serial ports, but by VGA high definition video collecting card,
Image is sent directly to transfer computer.Serial communication is only responsible for sending mouse control instruction.So
The time delay of sectional drawing echo can be reduced to greatest extent.
VGA high definition video collecting card is relatively costly, needs additionally to buy.If not adopting VGA high definition to regard
Frequently capture card, the present invention is carried out under existing resource, substantially need not infusion of financial resources.
As in figure 2 it is shown, the computer remote control method connected based on serial ports, comprise the following steps:
Control end and instruct mail server by the Internet transmission mouse-keyboard;
Mail is sent to transfer end by mail server;
Transfer termination receiving emails, instructs the mouse-keyboard in mail and is sent to controlled terminal by serial ports;
Controlled terminal is received the instruction sent by serial ports and performs screenshot capture, and sectional drawing coding of graphics becomes
Character string is sent to transfer end by serial ports;
The coding of graphics character string received is sent to mail server by mail by transfer end;
Control termination take-up and have the mail of picture character string, character data is converted to picture and shows in control
On the display of end processed, remote control person, according to the picture returned, continues executing with operation.
In the inventive method, the sectional drawing of controlled terminal to process through overcompression, is then passed through base64 and is encoded into
Character string, it is simple to pass through Serial Port Transmission.
Owing to baud rate is to determine the major parameter of serial communication speed, the biggest speed of baud rate is the fastest,
But baud rate big the most to a certain extent time, the bit error rate also can be greatly increased, and therefore baud rate is to be arranged
Want suitably, on the premise of meeting quickly and be stable, time actually used, be set as that 380000 is proper.
Mouse-keyboard instruction format be [xxxx:xxxx] <?> xxxx}, wherein:
[xxxx:xxxx] represents mouse coordinates, <?> represent mouse action, such as click L, right click R, double
Hitting D etc., { xxxx} represents the time delay after a mouse action, and unit is millisecond.
In order to save the echo time, can send multiple mouse action, controlled terminal performs multiple dynamic simultaneously
An echo sectional drawing is only returned after work.
Mouse instructions generates by controlling end auxiliary, and mouse is clicking operation on echo picture, and program is certainly
The dynamic instruction developing corresponding format.
The present invention by the computer program write, utilize computer per se with RS232 serial ports carry out
Communication, the content of communication only has string data, the transmission of character string and to receive be all the program write
Control, it is ensured that internal network is still within the state of physical isolation, thus avoids virus attack to whole
System works the mischief.The content of serial communication is two-way, one be mouse coordinates, click action, strike
Beating keyboards etc. instruct, and weave into the character string of specific format;One is that the picture after screen shot is through overvoltage
Picture string data after contracting, coding.Utilize both character string communications, it is achieved controlled and return
Aobvious control result.Use a mail server, by the mode of mail by both character strings simultaneously
Transfer, it is achieved the purpose remotely controlled.
Utilize mail server interim data and instruction, controlled terminal and control end are required relatively low, even if
Network limits, as long as can receiving and dispatching mail, it is possible to ensure system worked well.
Claims (10)
1. the computer remote control system connected based on serial ports, it is characterised in that: include controlling
End, controlled terminal, transfer end and mail server, wherein:
Control end, for computer away from controlled terminal on space length, by the Internet transceiver electronics postal
Part, is responsible for sending manipulation instruction and finally showing execution result screen;
Controlled terminal, is installed on the core computer on enterprises production line, connects corporate intranet, tool
There is remote assistance demand;
Transfer end: for inner net computer, carry out communication even with controlled terminal and mail server by Intranet
Connect, sent and received e-mail with the external world by mail server;
Mail server: be arranged at enterprises, transfer end is by mail server and extraneous transmitting-receiving electricity
Sub-mail.
2. the computer remote control system connected based on serial ports as described in claim 1, its feature
It is: the computer of controlled terminal, transfer end and mail server carries serial ports by USB RS 232
Serial port data line replaces.
3. the computer remote control system connected based on serial ports as described in claim 1, its feature
It is: controlled terminal, transfer end connect multipair serial port connecting wire, the string data segmentation of a picture
Become many groups to transmit simultaneously.
4. the computer remote control system connected based on serial ports as described in claim 1, its feature
It is: high definition video collecting card installed by controlled terminal computer, and controlled terminal image passes through high definition video collecting
Card is sent directly to transfer end.
5. the computer remote control method connected based on serial ports as described in claim 1, its feature
It is to comprise the following steps:
Control end and instruct mail server by the Internet transmission mouse-keyboard;
Mail is sent to transfer end by mail server;
Transfer termination receiving emails, instructs the mouse-keyboard in mail and is sent to controlled terminal by serial ports;
Controlled terminal is received the instruction sent by serial ports and performs screenshot capture, and sectional drawing coding of graphics becomes
Character string is sent to transfer end by serial ports;
The coding of graphics character string received is sent to mail server by mail by transfer end;
Control termination take-up and have the mail of picture character string, character data is converted to picture and shows in control
On the display of end processed, remote control person, according to the picture returned, continues executing with operation.
6. the computer remote control method connected based on serial ports as described in claim 5, its feature
It is:
After screenshot capture, first it is compressed processing, then is encoded into character string through base64.
7. the computer remote control method connected based on serial ports as described in claim 5, its feature
It is: the communication speed of serial ports is set as 380000Bd.
8. the computer remote control method connected based on serial ports as described in claim 5, its feature
It is:
Mouse-keyboard instruction format be [xxxx:xxxx] <?> xxxx}, wherein:
[xxxx:xxxx] represents mouse coordinates, <?> represent mouse action, { xxxx} represents a mouse action
After time delay, unit is millisecond.
9. the computer remote control method connected based on serial ports as described in claim 5, its feature
It is:
Mouse instructions generates by controlling end auxiliary, and mouse is clicking operation on echo picture, develops
The instruction of corresponding format.
10. the computer remote control method connected based on serial ports as described in claim 5, it is special
Levy and be: controlled terminal screen resolution shows the in the same size of picture with controlling end, it is ensured that mouse at two
Coordinate is consistent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610195976.8A CN105892299B (en) | 2016-03-30 | 2016-03-30 | Computer remote control system and method based on serial ports connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610195976.8A CN105892299B (en) | 2016-03-30 | 2016-03-30 | Computer remote control system and method based on serial ports connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105892299A true CN105892299A (en) | 2016-08-24 |
CN105892299B CN105892299B (en) | 2019-05-03 |
Family
ID=57014081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610195976.8A Active CN105892299B (en) | 2016-03-30 | 2016-03-30 | Computer remote control system and method based on serial ports connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105892299B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967184A (en) * | 2017-11-30 | 2018-04-27 | 北京奇艺世纪科技有限公司 | Method of attaching, device and electronic equipment are replicated in remote assistance |
WO2020258351A1 (en) * | 2019-06-26 | 2020-12-30 | 沃通电子认证服务有限公司 | Internet of things communication method and apparatus, terminal, and computer storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020104021A1 (en) * | 2001-01-31 | 2002-08-01 | Gross Curtis T. | Resource sharing across security boundaries |
CN101459608A (en) * | 2008-12-08 | 2009-06-17 | 上海华平信息技术股份有限公司 | Resource sharing method for internal and external network |
CN102946383A (en) * | 2012-10-24 | 2013-02-27 | 珠海市君天电子科技有限公司 | Method and system for remotely inquiring and modifying virus characteristic on basis of third party public interface |
CN103177015A (en) * | 2011-12-22 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and system for webpage image presentation |
CN103200235A (en) * | 2013-03-07 | 2013-07-10 | 哈耐龙(杭州)物联网科技有限公司 | Remote data collecting and remote controlling method based on emails |
CN104243426A (en) * | 2013-06-19 | 2014-12-24 | 鞍钢股份有限公司 | Protocol isolation internal and external network data communication method |
CN104252242A (en) * | 2013-06-28 | 2014-12-31 | 联想(北京)有限公司 | Long-range control method and data processing equipment used for realizing same |
CN205485371U (en) * | 2016-03-30 | 2016-08-17 | 本钢板材股份有限公司 | Computer remote control system based on serial port connection |
-
2016
- 2016-03-30 CN CN201610195976.8A patent/CN105892299B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020104021A1 (en) * | 2001-01-31 | 2002-08-01 | Gross Curtis T. | Resource sharing across security boundaries |
CN101459608A (en) * | 2008-12-08 | 2009-06-17 | 上海华平信息技术股份有限公司 | Resource sharing method for internal and external network |
CN103177015A (en) * | 2011-12-22 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and system for webpage image presentation |
CN102946383A (en) * | 2012-10-24 | 2013-02-27 | 珠海市君天电子科技有限公司 | Method and system for remotely inquiring and modifying virus characteristic on basis of third party public interface |
CN103200235A (en) * | 2013-03-07 | 2013-07-10 | 哈耐龙(杭州)物联网科技有限公司 | Remote data collecting and remote controlling method based on emails |
CN104243426A (en) * | 2013-06-19 | 2014-12-24 | 鞍钢股份有限公司 | Protocol isolation internal and external network data communication method |
CN104252242A (en) * | 2013-06-28 | 2014-12-31 | 联想(北京)有限公司 | Long-range control method and data processing equipment used for realizing same |
CN205485371U (en) * | 2016-03-30 | 2016-08-17 | 本钢板材股份有限公司 | Computer remote control system based on serial port connection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967184A (en) * | 2017-11-30 | 2018-04-27 | 北京奇艺世纪科技有限公司 | Method of attaching, device and electronic equipment are replicated in remote assistance |
WO2020258351A1 (en) * | 2019-06-26 | 2020-12-30 | 沃通电子认证服务有限公司 | Internet of things communication method and apparatus, terminal, and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105892299B (en) | 2019-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103368809B (en) | Internet reverse penetration tunnel implementation method | |
CN105939291B (en) | Message processing method and the network equipment | |
CN104484612A (en) | Sensitive information shielding method and system for remote desktop applications | |
CN101291343B (en) | Remote controlling method and system based on transparent proxy equipment | |
CN204759403U (en) | System based on data pass realization equipment internal module thoroughly and upgrade | |
CN105190530B (en) | Transmit the graph data of Hardware Render | |
CN105892299A (en) | Computer remote control system and method based on serial port connection | |
CN108600274A (en) | Safe communication system and its application method between a kind of realization computer inner-external network | |
CN102223267A (en) | IDS (intrusion detection system) detecting method and IDS detecting equipment | |
CN106568168A (en) | Debugging method, debugger and system | |
CN106027489B (en) | The method, apparatus and system of internet connection | |
CN201878181U (en) | Intelligent home system | |
CN104355193B (en) | A kind of elevator device of integrated wireless communications function | |
CN205485371U (en) | Computer remote control system based on serial port connection | |
CN113765712B (en) | Server management method, device, electronic equipment and readable storage medium | |
CN101902394B (en) | Signal deep-sea long-distance transmission method based on serial communication | |
CN104184729B (en) | A kind of message processing method and device | |
CN107835161A (en) | Method, system and the computer-readable storage medium of inside and outside user's unified management | |
CN104113510A (en) | Virtual desktop system and message data transmitting method thereof | |
WO2020125705A1 (en) | Novel kvm extender | |
CN109831652A (en) | Portable intelligent glasses high-voltage transmission equipment auxiliary repair system based on raspberry pie and WebRTC | |
CN108924178B (en) | Intelligent handheld terminal system for mooring in open wharf and control method | |
CN103049262A (en) | Window restoring method based on remote frame buffering | |
CN106657335A (en) | Method and system for temporarily sharing network intelligent equipment | |
CN109873989A (en) | Construction site monitoring remote video platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |