CN105892299B - Computer remote control system and method based on serial ports connection - Google Patents

Computer remote control system and method based on serial ports connection Download PDF

Info

Publication number
CN105892299B
CN105892299B CN201610195976.8A CN201610195976A CN105892299B CN 105892299 B CN105892299 B CN 105892299B CN 201610195976 A CN201610195976 A CN 201610195976A CN 105892299 B CN105892299 B CN 105892299B
Authority
CN
China
Prior art keywords
mail
computer
serial ports
sent
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.)
Active
Application number
CN201610195976.8A
Other languages
Chinese (zh)
Other versions
CN105892299A (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.)
Benxi Puxiang Cold-Rolled Sheet Co Ltd
Bengang Steel Plates Co Ltd
Original Assignee
Benxi Puxiang Cold-Rolled Sheet Co Ltd
Bengang Steel Plates 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 Benxi Puxiang Cold-Rolled Sheet Co Ltd, Bengang Steel Plates Co Ltd filed Critical Benxi Puxiang Cold-Rolled Sheet Co Ltd
Priority to CN201610195976.8A priority Critical patent/CN105892299B/en
Publication of CN105892299A publication Critical patent/CN105892299A/en
Application granted granted Critical
Publication of CN105892299B publication Critical patent/CN105892299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems 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 present invention relates to a kind of computer remote control systems and method based on serial ports connection, wherein system includes: control terminal,, far from the computer of controlled terminal, to be sent and received e-mail by internet on space length, being responsible for sending manipulation instruction and finally showing implementing result picture;Controlled terminal, the core computer being installed on enterprises production line connect corporate intranet, have remote assistance demand;Transfer end: for inner net computer, communication connection is carried out by Intranet with controlled terminal and mail server, is sent and received e-mail by mail server and the external world;Mail server: being set to enterprises, and transfer end is sent and received e-mail by mail server and the external world.The present invention using computer per se with RS232 serial ports communicate, guarantee that internal network is still within the state of physical isolation, it avoids virus attack from causing damages whole system, long-range control is realized in the case where controlled computer is not connect with the external world by cable.

Description

Computer remote control system and method based on serial ports connection
Technical field
The present invention relates to a kind of Computer Remote Control Technology, specifically a kind of computer based on serial ports connection is remote Process control system and method.
Background technique
Enterprises generally have the internal network of oneself, are connected by safety equipments such as gateway, firewalls with internet, Some Intranets even do not allow to surf the Internet, and can only send and receive e-mail.Some enterprises are distinguished according to different purposes Multiple internal networks, such as the three-level network of user's routine office work, the primary network station for automation control.It is examined for safety Consider, such primary network station inherently completely cuts off with the complete network physical of three-level.The computer of special occasions is if necessary to remote in this way Journey is assisted, remote technology is supported, is to cannot achieve in the case where the isolation of other network physicals.
For example, the primary network station of certain iron and steel enterprise's production line automatic control system is a closed Intranet, checks and be used for The chain condition of the PLC program of automatic control, is the important means for diagnosing all kinds of failures of production line, and PLC program is needed at this It can be checked in the terminal of internal network, if professional technician is just not on post (for example have a holiday, go on business), just Difficulty can be caused to fault diagnosis.If at this moment professional technician can remotely check and manipulate an inner computer and carry out Remote technology supports that failure may exclude as early as possible.To realize remote assistance, it is common practice to, an Intranet is calculated Machine installs two network interface cards, and a network interface card connects the Intranet of oneself, another network interface card is connect by another network with outer net, in this way Professional technician can manipulate this inner computer by way of telnet.But thus there is great Security risk, actual conditions are: the computer operating system under primary network station is still very old Windows2000 system, system Loophole itself is very more, lacks security protection, and system is highly prone to the attack of each viroid, even if not attacked by outer net, also very It may be by the computer attack of other virus infections, it is ensured that this is the peace that the closure of a network just can guarantee whole system Entirely, therefore the double netcard scheme mentioned of top and infeasible.
Therefore in active computer remote controlled manner, controlled computer will by wired or wireless way directly or It is connected to internet in succession, then using some third party softwares remotely controlled, to realize the purpose remotely controlled, but for one Strictly and for the enterprises particular network of internet physical isolation, these control methods are simultaneously not suitable for a needs, because this A particular network cannot be connected from system with regard to regulation with internet even other Intranets of enterprise.
Meanwhile in active computer remote controlled manner, controlled computer will by wired or wireless way directly or It is connected indirectly to internet, as long as there is with network connection by the risk of worm-type virus attack, hacker attacks.
Summary of the invention
For needing strictly to cannot achieve calculating with the enterprises particular network of internet physical isolation in the prior art The deficiencies of machine remote assistance, remote technology are supported, the technical problem to be solved in the present invention is to provide one kind both to realize physical network The computer remote control system and method based on serial ports connection remotely controlled is realized in isolation again.
In order to solve the above technical problems, the technical solution adopted by the present invention is that:
The present invention it is a kind of based on serial ports connection computer remote control system, including control terminal, controlled terminal, transfer end with And mail server, in which:
Control terminal is the computer on space length far from controlled terminal, is sent and received e-mail by internet, is responsible for transmission Manipulation instruction simultaneously finally shows implementing result picture;
Controlled terminal, the core computer being installed on enterprises production line connect corporate intranet, and there is remote assistance to need It asks;
Transfer end: for inner net computer, communication connection is carried out by Intranet with controlled terminal and mail server, passes through mail Server is sent and received e-mail with the external world;
Mail server: being set to enterprises, and transfer end is sent and received e-mail by mail server and the external world.
The computer of controlled terminal, transfer end and mail server carries serial ports by USB RS 232 serial port data line generation It replaces.
Controlled terminal, transfer end connect multipair serial port connecting wire, and the string data of a picture is divided into multiple groups while passing It is defeated.
Controlled terminal computer installs high definition video collecting card, and controlled terminal image is sent directly to by high definition video collecting card Transfer end.
The present invention is based on the computer remote control methods of serial ports connection, comprising the following steps:
Control terminal sends mouse-keyboard instruction to mail server by internet;
Mail is sent transfer end by mail server;
Transfer terminates receiving emails, and the mouse-keyboard in mail is instructed and is sent to controlled terminal by serial ports;
Controlled terminal receives the instruction sent by serial ports and executes screenshot capture, and screenshot coding of graphics passes through at character string Serial ports is sent to transfer end;
Transfer end sends mail server by mail for the coding of graphics character string received;
Control terminal receives the mail for having picture character string, and character data is converted to picture and shows display in control terminal On device, remote control person continues to execute operation according to the picture of return.
After screenshot capture, compression processing is carried out first, is encoded into character string using base64.
The communication speed of serial ports is set as 380000Bd.
Mouse-keyboard instruction format be [xxxx:xxxx]<?>{ xxxx }, wherein:
[xxxx:xxxx] indicates mouse coordinates,<?>indicate mouse action, prolonging after one mouse action of { xxxx } expression When, unit is millisecond.
Mouse instructions assist generating by control terminal, and mouse clicking operation on echo picture compiles corresponding format Instruction.
Controlled terminal screen resolution shows the in the same size of picture with control terminal, guarantees that mouse coordinates are consistent at two.
The invention has the following beneficial effects and advantage:
1. the present invention is by the computer program write, using computer per se with RS232 serial ports communicated, protect Card internal network is still within the state of physical isolation, to avoid virus attack from causing damages whole system, in controlled meter Calculation machine realizes long-range control in the case where not connecting with the external world by cable.
2. the present invention can use multipair serial port connecting wire, the string data of a picture is divided into multiple groups while being passed It is defeated, the echo time of screenshot picture can be greatly shortened in this way;It replaces calculating by the USB RS 232 serial port data line of purchase Machine carries serial ports, to obtain bigger transmission speed.
3. the present invention utilizes mail server interim data and instruction, lower to controlled terminal and control terminal requirement, even if net Network limitation, as long as being capable of receiving and dispatching mail, so that it may guarantee system worked well.
4. the present invention is at low cost, is rectified and improved under existing resource, do not need to inject capital into substantially.
Detailed description of the invention
Fig. 1 is present system overall arrangement figure;
Fig. 2 is the control flow chart of present system.
Specific embodiment
The present invention is further elaborated with reference to the accompanying drawings of the specification.
As shown in Figure 1, the present invention is based on serial ports connection computer remote control system, including control terminal, controlled terminal, in Turn end and mail server, in which:
Controlled terminal, the core computer being installed on enterprises production line connect corporate intranet, and there is remote assistance to need It asks;
Control terminal is the computer on space length far from controlled terminal, is sent and received e-mail by internet, is responsible for transmission Manipulation instruction simultaneously finally shows implementing result picture;
Transfer end: for inner net computer, communication connection is carried out by Intranet with controlled terminal and mail server;
Mail server: being set to enterprises, and transfer end is sent and received e-mail by mail server and the external world.
Since the serial ports maximum baud rate that general computer carries is only 128000, in order to improve transmission speed, pass through purchase The USB RS 232 serial port data line bought replaces computer to carry serial ports, to obtain bigger transmission speed.In order to further mention The string data of one picture is divided into multiple groups simultaneous transmission using multipair serial port connecting wire by the rate of high serial ports transmission, The echo time of screenshot picture can be greatly shortened in this way.
Since baud rate is the major parameter for determining serial communication speed, baud rate is bigger, and speed is faster, but baud rate When greatly to a certain extent, the bit error rate can also be greatly increased, thus baud rate to be arranged it is appropriate, meet quickly with it is stable Under the premise of, it is proper to be set as 380000 in actual use.
Since the string data that the bigger screenshot of resolution ratio is converted into is more, transmission time is longer, therefore point of controlled terminal Resolution will be turned down as far as possible, and 1024*768 is proper in practice.Controlled terminal screen resolution will show picture with control terminal simultaneously Face it is in the same size, with guarantee two at mouse coordinates it is consistent.
If screenshot image data is not sent by serial ports, but by VGA high definition video collecting card, image is directly sent out It is sent to transfer computer.Serial communication is only responsible for sending mouse control instruction.Screenshot echo can be reduced to greatest extent in this way Delay.
VGA high definition video collecting card higher cost, needs in addition to buy.If not adopting VGA high definition video collecting card, this hair It is bright to be carried out under existing resource, it does not need to inject capital into substantially.
As shown in Fig. 2, the computer remote control method based on serial ports connection, comprising the following steps:
Control terminal sends mouse-keyboard instruction to mail server by internet;
Mail is sent transfer end by mail server;
Transfer terminates receiving emails, and the mouse-keyboard in mail is instructed and is sent to controlled terminal by serial ports;
Controlled terminal receives the instruction sent by serial ports and executes screenshot capture, and screenshot coding of graphics passes through at character string Serial ports is sent to transfer end;
Transfer end sends mail server by mail for the coding of graphics character string received;
Control terminal receives the mail for having picture character string, and character data is converted to picture and shows display in control terminal On device, remote control person continues to execute operation according to the picture of return.
In the method for the present invention, the screenshot of controlled terminal will pass through compression processing, then be encoded into character string by base64, just It is transmitted in by serial ports.
Since baud rate is the major parameter for determining serial communication speed, baud rate is bigger, and speed is faster, but baud rate When greatly to a certain extent, the bit error rate can also be greatly increased, thus baud rate to be arranged it is appropriate, meet quickly with it is stable Under the premise of, it is proper to be set as 380000 in actual use.
Mouse-keyboard instruction format be [xxxx:xxxx]<?>{ xxxx }, wherein:
[xxxx:xxxx] indicates mouse coordinates,<?>indicate mouse action, for example L is clicked, right click R double-clicks D etc., { xxxx } indicates the delay after a mouse action, and unit is millisecond.
In order to save the echo time, multiple mouse actions can be sent simultaneously, controlled terminal only returns after executing multiple movements One echo screenshot.
Mouse instructions assist generating by control terminal, and mouse clicking operation, program on echo picture compile phase automatically Answer the instruction of format.
The present invention passes through the computer program write, using computer per se with RS232 serial ports communicated, communicate Content there was only string data, sending and receiving for character string is all the process control write, guarantee internal network still locate In the state of physical isolation, so that virus attack be avoided to cause damages whole system.The content of serial communication is two-way, and one It is the instructions such as mouse coordinates, click action, percussion keyboard, weaves into the character string of specific format;One is figure after screen shot Picture string data of the piece after overcompression, coding.It is communicated using both character strings, realization is controlled and echoed control knot Fruit.A mail server is used simultaneously, with the mode of mail by both character string transfers, realizes the mesh remotely controlled 's.
It is lower to controlled terminal and control terminal requirement using mail server interim data and instruction, even if network limits, only Being capable of receiving and dispatching mail, so that it may guarantee system worked well.

Claims (5)

1. a kind of control method of the computer remote control system based on serial ports connection, it is characterised in that the following steps are included:
Control terminal sends mouse-keyboard instruction to mail server by internet;
Mail is sent transfer end by mail server;
Transfer terminates receiving emails, and the mouse-keyboard in mail is instructed and is sent to controlled terminal by serial ports;
Controlled terminal receives the instruction sent by serial ports and executes screenshot capture, and screenshot coding of graphics passes through serial ports at character string It is sent to transfer end;
Transfer end sends mail server by mail for the coding of graphics character string received;
Control terminal receives the mail for having picture character string, and character data is converted to picture and shows display in control terminal On, remote control person continues to execute operation according to the picture of return;
Mouse-keyboard instruction format be [xxxx:xxxx]<?>{ xxxx }, wherein:
[xxxx:xxxx] indicates mouse coordinates,<?>indicate mouse action, { xxxx } indicates the delay after a mouse action, single Position is millisecond;
Mouse instructions assist generating by control terminal, and mouse clicking operation on echo picture compiles the instruction of corresponding format;
Control system includes control terminal, controlled terminal, transfer end and mail server, in which:
Control terminal is the computer on space length far from controlled terminal, is sent and received e-mail by internet, is responsible for sending manipulation It instructs and finally shows implementing result picture;
Controlled terminal, the core computer being installed on enterprises production line connect corporate intranet, have remote assistance demand;
Transfer end: for inner net computer, communication connection is carried out by Intranet with controlled terminal and mail server, passes through mail service Device is sent and received e-mail with the external world;
Mail server: being set to enterprises, and transfer end is sent and received e-mail by mail server and the external world;
The computer of controlled terminal, transfer end and mail server carries serial ports and is replaced by USB RS 232 serial port data line;
Controlled terminal, transfer end connect multipair serial port connecting wire, and the string data of a picture is divided into multiple groups simultaneous transmission.
2. the control method of the computer remote control system according to claim 1 based on serial ports connection, it is characterised in that:
After screenshot capture, compression processing is carried out first, is encoded into character string using base64.
3. the control method of the computer remote control system according to claim 1 based on serial ports connection, it is characterised in that: The communication speed of serial ports is set as 380000Bd.
4. the control method of the computer remote control system according to claim 1 based on serial ports connection, it is characterised in that: Controlled terminal screen resolution shows the in the same size of picture with control terminal, guarantees that mouse coordinates are consistent at two.
5. the control method of the computer remote control system according to claim 1 based on serial ports connection, it is characterised in that: Controlled terminal computer installs high definition video collecting card, and controlled terminal image is sent directly to transfer end by high definition video collecting card.
CN201610195976.8A 2016-03-30 2016-03-30 Computer remote control system and method based on serial ports connection Active CN105892299B (en)

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 CN105892299A (en) 2016-08-24
CN105892299B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN110311904B (en) * 2019-06-26 2021-11-16 沃通电子认证服务有限公司 Internet of things communication method, device, terminal and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020104021A1 (en) * 2001-01-31 2002-08-01 Gross Curtis T. Resource sharing across security boundaries

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105892299A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN101291343B (en) Remote controlling method and system based on transparent proxy equipment
CN104093080A (en) Intelligent television remote debugging system and method
CN102447720A (en) Method for remotely controlling personal computer (PC) by mobile phone
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN105190530B (en) Transmit the graph data of Hardware Render
CN107590036A (en) Remote debugging method, server and the system of Android device
JP2006172441A (en) System for remotely controlling debugging unit and its method
CN106506585A (en) Method and system by browser remotely control router
CN110417783A (en) A kind of data transmission method based on Internet of Things, device, storage medium and terminal
CN105892299B (en) Computer remote control system and method based on serial ports connection
CN105607998B (en) A kind of System and method for carrying out embedded software debugging by online mode
CN106027489B (en) The method, apparatus and system of internet connection
CN108762659A (en) Control method, device, storage medium and the electronic device of cloud terminal
CN108769169A (en) The remote fault diagnosis method of electric system measure and control device
CN106303429B (en) Remote configuring method and device
CN106453561A (en) Remote control system
CN104932452A (en) Method used for aviation bus tester remote control and system used for aviation bus tester remote control
CN107844486A (en) A kind of method and system of analysis webpage problem for client
CN101409731A (en) Remote control method for household electrical equipment through IE
CN114328353B (en) WEB interactive serial port communication architecture
CN109634856B (en) IOS intelligent terminal remote real machine debugging system and method based on cloud service
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN102801777B (en) Method for realizing telnet of shell for vxWorks system
CN205485371U (en) Computer remote control system based on serial port connection
CN108737337B (en) Equipment processing method, device, server and system

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