CN102508796B - Serial port redirection method and system - Google Patents

Serial port redirection method and system Download PDF

Info

Publication number
CN102508796B
CN102508796B CN201110311398.7A CN201110311398A CN102508796B CN 102508796 B CN102508796 B CN 102508796B CN 201110311398 A CN201110311398 A CN 201110311398A CN 102508796 B CN102508796 B CN 102508796B
Authority
CN
China
Prior art keywords
serial port
virtual
terminal
serial
controller
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
CN201110311398.7A
Other languages
Chinese (zh)
Other versions
CN102508796A (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.)
Guangzhou Fengyun Information Technology Co.,Ltd.
Original Assignee
SHENZHEN JINGHUA KEXUN TECHNOLOGY 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 SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd filed Critical SHENZHEN JINGHUA KEXUN TECHNOLOGY Co Ltd
Priority to CN201110311398.7A priority Critical patent/CN102508796B/en
Publication of CN102508796A publication Critical patent/CN102508796A/en
Application granted granted Critical
Publication of CN102508796B publication Critical patent/CN102508796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a serial port redirection method and system. The method comprises the following steps that: a. terminal serial port redirection is initialized; b. a virtual serial port controller intercepts the I/O (input/output) request and operation of a user on serial port equipment and redirects the I/O request and operation to a terminal; c. a terminal serial port controller processes the received redirected I/O request and operation and returns the processing results to the virtual serial port controller; and d. the virtual serial port controller analyzes and processes the processing results returned by the terminal and then returns the analysis and processing results to an operating system, and the operating system finally feeds the I/O processing result fed back by the virtual serial port controller back to a user experience layer. The method and the system have the following advantages: equipment use experience on the traditional desktop is provided; the compatibility is good; and flexibility and convenience are ensured.

Description

The method and system that a kind of serial port is redirected
Technical field
The present invention relates to port redirection technical field, relate in particular to the redirected method and system of a kind of serial port.
Background technology
Serial port provides a kind of device-independent compunication mode, and the device type of support is very extensive.Existing desktop virtual agreement is all built-in serial port passage, for the use of serial port apparatus in desktop virtual environment provides support.As long as by opening the serial ports passage of associated desktop agreement, just can in virtual desktop session, freely use the serial port apparatus being linked in terminal.
But there is following problem in existing serial port apparatus:
A, equipment experience are different from conventional desktop
Existing serial port technology is not set up in terminal serial ports to the mapping end to end of virtual desktop by creating the mode of virtual unit and relevant device node, but meets the pipe file of serial ports naming rule by establishment in virtual desktop.User cannot identify corresponding port by watching device node, has brought one deck ambiguity to the use of equipment.
B, very flexible, equipment compatibility are poor
The driving of serial port apparatus need to be bound corresponding port, and existing serial port apparatus drives and can only be arranged on terminal, and this has not only reduced dirigibility, and in the time of platform that device drives is not moved on support terminal machine, equipment cannot use.
C, lack centralized management mechanism
Existing serial port technology is not supported the centralized management to the serial-port mapping on terminating machine.
Summary of the invention
The object of the present invention is to provide the redirected method and system of a kind of serial port.
The object of the invention is to be achieved through the following technical solutions.
The method that serial port is redirected, comprises step:
A: terminal serial port redirection initialization operation;
B: virtual serial port controller intercepts user the I/O of serial equipment is asked to sum operation, is redirected to terminal;
C: the redirected I/O that the processing of terminal serial ports controller receives asks sum operation, and result is returned to virtual serial port controller;
D: the result that virtual serial port controller returns to terminal returns to operating system after processing by analysis; Operating system finally feeds back to user according to the I/O result of virtual serial port controller feedback and experiences layer;
Initialization operation described in step a, specifically comprises:
A1: user opens virtual desktop session and logs in virtual desktop;
A2: terminal serial ports controller reads in user and configures and switch serial equipment to mapped mode;
A3: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding device node;
A4: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in virtual desktop, and be tied to corresponding virtual serial ports, complete the mapping of end-to-end serial equipment I/O service.
Preferably, before step a, also comprise: start virtual serial port controller and in terminal, start terminal serial ports controller at virtual desktop end.
Preferably, after steps d, also comprise: user finishes virtual desktop session and disconnects virtual desktop, and virtual serial port controller discharges virtual serial port sweep equipment node, finishes the mapping of serial port.
The present invention compared with prior art, has the following advantages:
A, provide the experience of the equipment in conventional desktop
In virtual desktop, remote desktop, create virtual serial port and device node, completely transparent equipment experience be provided, user can not feel with conventional desktop on difference.
The dirigibility of b, enhancing equipment compatibility and use
Due to the existence of virtual serial port, make the driver of serial equipment can be arranged on terminal or any one end of virtual desktop end, strengthened dirigibility, and this makes when driver is not in support terminal platform situation, still have other choice, virtually just strengthened the compatibility of equipment.
C, add the centralized management mechanism of port mapping
Carry out trustship with configuration server and configure for user's serial-port mapping, make convenient management, quick.
Brief description of the drawings
Fig. 1 is serial port redirecting system theory diagram of the present invention;
Fig. 2 is serial port reorientation method process flow diagram of the present invention;
Fig. 3 is that serial port is redirected initialization flowchart.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to shown in Fig. 1, serial port redirecting system theory diagram of the present invention, comprise: terminal, network router/hub, gateway server, virtual desktop and configuration server, terminal is set up data communication through network router/hub by gateway server and virtual desktop and is connected, and virtual desktop is set up data interaction by configuration server through network router/hub and terminal.
Terminal comprises terminal serial ports controller, for scanning, identify and with the serial port in the mode access terminal of file, completing transmission, reception and the processing of control information and data message.
Virtual desktop comprises application program, user and virtual serial port controller, and virtual desktop end creates virtual serial port and corresponding device node by virtual serial port controller, sets up the serial port mapping of terminal to virtual desktop; Intercept application program and user the I/O of serial equipment is asked to sum operation, and be redirected to terminal processes, the result that terminal is returned is analyzed and is processed.
Gateway server is used for realizing data retransmission, and wide area network access capability is provided, and breaks through LAN (Local Area Network) restriction.
Configuration server is used for managing concentratedly user and configures list, strengthens the control and management to serial port mapping in terminal.
Refer to shown in Fig. 2, serial port reorientation method process flow diagram of the present invention, comprising:
Step 201: start virtual serial port controller at virtual desktop end, for creating virtual serial port and corresponding device node, develop and manage serial port and shine upon end to end;
Step 202: start terminal serial ports controller in terminal, the request such as port scanning and identification and the redirected equipment I/O of virtual serial port of response virtual serial port controller ask sum operation;
Step 203: terminal serial port redirection initialization operation, concrete, consult shown in Fig. 3, comprising:
Step 301: user opens virtual desktop session and logs in virtual desktop;
Step 302: terminal serial ports controller reads in user and configures and switch serial equipment to mapped mode;
Step 303: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding device node;
Step 304: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in virtual desktop, and be tied to corresponding virtual serial ports, complete the mapping of end-to-end serial equipment I/O service;
Wherein, serial port is redirected, and refers to serial-port mapping to use in other computing machine in network, and does not use in this locality;
Step 204: virtual serial port controller intercepts user the I/O of serial equipment is asked to sum operation, is redirected to terminal;
Step 205: the redirected I/O that the processing of terminal serial ports controller receives asks sum operation, and result is returned to virtual serial port controller;
Step 206: the result that virtual serial port controller returns to terminal returns to operating system after processing by analysis;
Step 207: operating system finally feeds back to user according to the I/O result of virtual serial port controller feedback and experiences layer;
Step 208: user finishes virtual desktop session and disconnects virtual desktop, and virtual serial port controller discharges virtual serial port sweep equipment node, finishes the mapping of serial port.
Wherein, when causing due to Network Abnormal in the interrupted situation of serial-port mapping, adopt the mechanism such as disconnection reconnecting and the recovery of I/O passage buffering to carry out the mapping of restorer I/O from abnormality, this Restoration Mechanism is transparent, user is almost imperceptible an abnormal generation, can be good at the continuity that keeps user to experience.
Described I/O passage buffering is recovered, and refers to adopt disconnection reconnecting technology from Network Abnormal after restorer mapping, takes out finally before abnormal generation to complete I/O request and processing again for normal process from the I/O request of buffering before.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (3)

1. the redirected method of serial port, is characterized in that, comprises step:
A: terminal serial port redirection initialization operation;
B: virtual serial port controller intercepts user the I/O of serial equipment is asked to sum operation, is redirected to terminal;
C: the redirected I/O that the processing of terminal serial ports controller receives asks sum operation, and result is returned to virtual serial port controller;
D: the result that virtual serial port controller returns to terminal returns to operating system after processing by analysis; Operating system finally feeds back to user according to the I/O result of virtual serial port controller feedback and experiences layer;
Initialization operation described in step a, specifically comprises:
A1: user opens virtual desktop session and logs in virtual desktop;
A2: terminal serial ports controller reads in user and configures and switch serial equipment to mapped mode;
A3: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding device node;
A4: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in virtual desktop, and be tied to corresponding virtual serial ports, complete the mapping of end-to-end serial equipment I/O service.
2. the redirected method of serial port as claimed in claim 1, is characterized in that, before step a, also comprises: start virtual serial port controller and in terminal, start terminal serial ports controller at virtual desktop end.
3. the redirected method of serial port as claimed in claim 1, it is characterized in that, after steps d, also comprise: user finishes virtual desktop session and disconnects virtual desktop, and virtual serial port controller discharges virtual serial port sweep equipment node, finishes the mapping of serial port.
CN201110311398.7A 2011-10-14 2011-10-14 Serial port redirection method and system Active CN102508796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110311398.7A CN102508796B (en) 2011-10-14 2011-10-14 Serial port redirection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110311398.7A CN102508796B (en) 2011-10-14 2011-10-14 Serial port redirection method and system

Publications (2)

Publication Number Publication Date
CN102508796A CN102508796A (en) 2012-06-20
CN102508796B true CN102508796B (en) 2014-10-22

Family

ID=46220887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110311398.7A Active CN102508796B (en) 2011-10-14 2011-10-14 Serial port redirection method and system

Country Status (1)

Country Link
CN (1) CN102508796B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819448B (en) * 2012-08-08 2016-01-13 深圳市京华科讯科技有限公司 A kind of data transmission system and multiple virtual desktop adaptive method for switching thereof
CN103902949B (en) * 2012-12-30 2017-02-15 航天信息股份有限公司 Method and device for using ordinary scanning gun based on specific application
CN103218321A (en) * 2013-04-23 2013-07-24 深圳市京华科讯科技有限公司 Port mapping method based on all-in-one machine
CN105721566B (en) * 2016-01-29 2019-05-24 华为技术有限公司 A kind of method of port redirection, server
CN107203408B (en) 2016-03-17 2021-02-23 华为技术有限公司 Redirection method, device and system
CN106598803A (en) * 2016-04-29 2017-04-26 福建先创通信有限公司 Method for remotely monitoring operation of host system
CN107395423A (en) * 2017-07-28 2017-11-24 郑州云海信息技术有限公司 The method and apparatus for binding the network port and network card interface
CN108153579A (en) * 2017-12-29 2018-06-12 佛山市幻云科技有限公司 Desktop cloud peripheral hardware access system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744591A (en) * 2004-08-31 2006-03-08 中国科学院计算技术研究所 Distributed apparatus Redirectional system and method thereof in a kind of terminal network environment
CN1946082A (en) * 2006-10-26 2007-04-11 上海华为技术有限公司 Re-orienting method for multiple users terminal series interface and main control device
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
CN202257551U (en) * 2011-10-14 2012-05-30 深圳市京华科讯科技有限公司 Serial port redirecting system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101007356B1 (en) * 2008-08-28 2011-01-13 한국전자통신연구원 Apparatus and method for establishing input/output device in virtualization system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744591A (en) * 2004-08-31 2006-03-08 中国科学院计算技术研究所 Distributed apparatus Redirectional system and method thereof in a kind of terminal network environment
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN1946082A (en) * 2006-10-26 2007-04-11 上海华为技术有限公司 Re-orienting method for multiple users terminal series interface and main control device
CN102141930A (en) * 2010-12-20 2011-08-03 华为技术有限公司 Method and device for distributing resources to virtual machines
CN202257551U (en) * 2011-10-14 2012-05-30 深圳市京华科讯科技有限公司 Serial port redirecting system

Also Published As

Publication number Publication date
CN102508796A (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN102508796B (en) Serial port redirection method and system
CN102368231B (en) Method and system for redirecting USB (universal serial bus) devices
EP2351315B1 (en) A virtualization platform
US20060259612A1 (en) Smart switch management module system and method
US20120200662A1 (en) Method and System for Controlling Multipoint Video Conference, Central Control Subsystem and Video Terminal
WO2016008379A1 (en) Automatic configuration method and device for storage array, and storage system
US10873527B2 (en) Link protection method in SDN, switching device, and network controller
CN102143138A (en) Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine
US20100146104A1 (en) System and method for detecting a remote apparatus
CN105763385A (en) Flow scheduling method and apparatus
CN202257551U (en) Serial port redirecting system
CN108234518A (en) A kind of method, apparatus, terminal and the storage medium of terminal communication
CN102508795B (en) Parallel port redirection method and system
CN106303429B (en) Remote configuring method and device
AU2008298594A1 (en) Software method and system for controlling and observing computer networking devices
CN102438022A (en) Method and device, and system for logging in server system
CN102932470B (en) Handheld device controls the method and system of computer terminal
CN103179102B (en) A kind of desktop virtual method, equipment and system
CN202257550U (en) Re-orientating system for USB (Universal Series Bus) equipment
CN101309154B (en) Datagram sending method, sending apparatus and transmission system
CN103873450A (en) Network access method and system
CN107769973B (en) Message forwarding method and device
CN108055337A (en) The method and apparatus that multiple service platform docks public platform
WO2017151181A1 (en) Data network analysis system and method for a communication network
Michalski A software and hardware system for a fully functional remote access to laboratory networks

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
TR01 Transfer of patent right

Effective date of registration: 20220128

Address after: 510000 room b1309, No. 161, Linhe West Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Fengyun Information Technology Co.,Ltd.

Address before: 518000 room 425, floor 4, building 4, Zhongxing Industrial City, Chuangye Road, Nanshan District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Jinghua Kexun Technology Co.,Ltd.

TR01 Transfer of patent right