CN102508796A - Serial port redirection method and system - Google Patents

Serial port redirection method and system Download PDF

Info

Publication number
CN102508796A
CN102508796A CN2011103113987A CN201110311398A CN102508796A CN 102508796 A CN102508796 A CN 102508796A CN 2011103113987 A CN2011103113987 A CN 2011103113987A CN 201110311398 A CN201110311398 A CN 201110311398A CN 102508796 A CN102508796 A CN 102508796A
Authority
CN
China
Prior art keywords
serial port
terminal
virtual
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.)
Granted
Application number
CN2011103113987A
Other languages
Chinese (zh)
Other versions
CN102508796B (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

Images

Landscapes

  • Computer And Data Communications (AREA)

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 the port redirection technical field, relate in particular to the method and system that a kind of serial port is redirected.
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 has been built the serial port passage in all, for the use of serial port apparatus in desktop virtual environment provides support.As long as through opening the serial ports passage of associated desktop agreement, just can in the virtual desktop session, freely use and be linked into the serial port apparatus on the terminal.
But there is following problem in existing serial port apparatus:
A, equipment experience are different from conventional table
Existing serial port technology is not set up on the terminal serial ports to the mapping end to end of virtual desktop through the mode of creating virtual unit and relevant device node, but meets the pipe file of serial ports naming rule through establishment in virtual desktop.The user can't identify corresponding ports through watching device node, has brought one deck ambiguity for the use of equipment.
B, very flexible, equipment compatibility are poor
The driving of serial port apparatus is need to bind corresponding ports, and existing serial port apparatus drives and can only be installed in the terminal, and this has not only reduced dirigibility, and when platform that device drives is not moved on the support terminal machine, equipment can't use.
C, lack centralized management mechanism
Existing serial port technology is not supported the centralized management to the mapping of the serial ports on the terminating machine.
Summary of the invention
The method and system that the object of the present invention is to provide a kind of serial port to be redirected.
The objective of the invention is to realize through following technical scheme.
The method that a kind of serial port is redirected comprises step:
A: terminal serial port redirection initialization operation;
B: virtual serial port controller intercepting user is redirected to the terminal to the I/O request and the operation of serial equipment;
C: the terminal serial ports controller is handled redirected I/O request and the operation that receives, and result is returned to the virtual serial port controller;
D: the result that the virtual serial port controller returns the terminal returns to operating system after analyzing and processing; Operating system finally feeds back to the user experience layer according to the I/O result of virtual serial port controller feedback.
Preferably, also comprise before the step a: start the virtual serial port controller and on the terminal, start the terminal serial ports controller at the virtual desktop end.
Preferably, the said initialization operation of step a specifically comprises:
A1: the user opens the virtual desktop session and lands virtual desktop;
A2: the terminal serial ports controller reads in user's configuration and switches serial equipment to mapped mode;
A3: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding apparatus node;
A4: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual serial ports, accomplish the mapping of end-to-end serial equipment I/O service.
Preferably, also comprise after the steps d: the user finishes the virtual desktop session and breaks off virtual desktop, and the virtual serial port controller discharges virtual serial port and sweep equipment node, finishes the mapping of serial port.
A kind of serial port Redirectional system comprises: terminal, network router/hub and virtual desktop, terminal are set up data communication through network router/hub and virtual desktop and are connected;
The terminal comprises the terminal serial ports controller, is used to scan, discern and with the serial port on the mode access terminal of file, accomplishes transmission, reception and the processing of control information and data message;
Virtual desktop comprises the virtual serial port controller, is used for creating virtual serial port and corresponding apparatus node, sets up the serial port mapping of terminal to virtual desktop; Intercepting application program and user ask and operation the I/O of serial equipment, and are redirected to terminal processes, and the result that the terminal is returned analyzes and handles.
Preferably, also comprise gateway server, be used to realize data forwarding, the wide area network access operation is provided.
Preferably, also comprise configuration server, be used to manage concentratedly the user and dispose list, strengthen control and management serial port mapping on the terminal.
The present invention compared with prior art has the following advantages:
A, the experience of the equipment on the conventional table is provided
In virtual desktop, remote desktop, create virtual serial port and device node, transparent equipment experience fully be provided, the user can not feel with conventional table on difference.
B, enhancement apparatus compatibility and the dirigibility of using
Because the existence of virtual serial port; Make the driver of serial equipment can be installed in terminal or any end of virtual desktop end, strengthened dirigibility, and this makes when driver not under the support terminal platform situation; Still have other choice, just strengthened the compatibility of equipment virtually.
The centralized management mechanism of c, adding port mapping
Use configuration server to come trustship to be directed against user's serial ports mapping configuration, make convenient management, quick.
Description of drawings
Fig. 1 is a serial port Redirectional system theory diagram of the present invention;
Fig. 2 is a 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 the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also shown in Figure 1; Serial port Redirectional system theory diagram of the present invention; Comprise: terminal, network router/hub, gateway server, virtual desktop and configuration server; The terminal is set up data communication through network router/hub through gateway server and virtual desktop and is connected, and virtual desktop is set up data interaction through configuration server through network router/hub and terminal.
The terminal comprises the terminal serial ports controller, is used to scan, discern and with the serial port on the mode access terminal of file, accomplishes transmission, reception and the processing of control information and data message.
Virtual desktop comprises application program, user and virtual serial port controller, and the virtual desktop end is created virtual serial port and corresponding apparatus node through the virtual serial port controller, sets up the serial port mapping of terminal to virtual desktop; Intercepting application program and user ask and operation the I/O of serial equipment, and are redirected to terminal processes, and the result that the terminal is returned analyzes and handles.
Gateway server is used to realize data forwarding, and the wide area network access capability is provided, and breaks through the LAN restriction.
Configuration server is used to manage concentratedly the user and disposes list, strengthens control and management to serial port mapping on the terminal.
See also shown in Figure 2ly, serial port reorientation method process flow diagram of the present invention comprises:
Step 201: start the virtual serial port controller at the virtual desktop end, be used to create virtual serial port and corresponding apparatus node, develop and manage serial port and shine upon end to end;
Step 202: start the terminal serial ports controller on the terminal, request and redirected equipment I/O request and the operations of virtual serial port such as the TCP of response virtual serial port controller and identification;
Step 203: terminal serial port redirection initialization operation, concrete, consult shown in Figure 3ly, comprising:
Step 301: the user opens the virtual desktop session and lands virtual desktop;
Step 302: the terminal serial ports controller reads in user's configuration and switches serial equipment to mapped mode;
Step 303: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding apparatus node;
Step 304: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual serial ports, accomplish the mapping of end-to-end serial equipment I/O service;
Wherein, serial port is redirected, and refers to serial ports is mapped in other computing machine in the network use, and does not use in this locality;
Step 204: virtual serial port controller intercepting user is redirected to the terminal to the I/O request and the operation of serial equipment;
Step 205: the terminal serial ports controller is handled redirected I/O request and the operation that receives, and result is returned to the virtual serial port controller;
Step 206: the result that the virtual serial port controller returns the terminal returns to operating system after analyzing and processing;
Step 207: operating system finally feeds back to the user experience layer according to the I/O result of virtual serial port controller feedback;
Step 208: the user finishes the virtual desktop session and breaks off virtual desktop, and the virtual serial port controller discharges virtual serial port and sweep equipment node, finishes the mapping of serial port.
Wherein, When causing that owing to network anomaly serial ports shines upon under the interrupted situation; The mapping that mechanism such as employing disconnection reconnecting and the recovery of I/O passage buffering are come restorer I/O from ERST; This Restoration Mechanism is transparent, and the user is almost imperceptible to have unusual generation, can be good at keeping the continuity of user experience.
Said I/O passage buffering is recovered, and refers to adopt the disconnection reconnecting technology from network anomaly after the restorer mapping, from before take out the I/O request of buffering and accomplish I/O request and processing again for normal process at last before unusual the generation.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the method that serial port is redirected is characterized in that, comprises step:
A: terminal serial port redirection initialization operation;
B: virtual serial port controller intercepting user is redirected to the terminal to the I/O request and the operation of serial equipment;
C: the terminal serial ports controller is handled redirected I/O request and the operation that receives, and result is returned to the virtual serial port controller;
D: the result that the virtual serial port controller returns the terminal returns to operating system after analyzing and processing; Operating system finally feeds back to the user experience layer according to the I/O result of virtual serial port controller feedback.
2. the method that serial port as claimed in claim 1 is redirected is characterized in that, also comprises before the step a: start the virtual serial port controller and on the terminal, start the terminal serial ports controller at the virtual desktop end.
3. the method that serial port as claimed in claim 2 is redirected is characterized in that the said initialization operation of step a specifically comprises:
A1: the user opens the virtual desktop session and lands virtual desktop;
A2: the terminal serial ports controller reads in user's configuration and switches serial equipment to mapped mode;
A3: virtual serial port controller end of scan serial equipment, establishment virtual serial port and corresponding apparatus node;
A4: open the end-to-end serial port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual serial ports, accomplish the mapping of end-to-end serial equipment I/O service.
4. the method that serial port as claimed in claim 1 is redirected; It is characterized in that; Also comprise after the steps d: the user finishes the virtual desktop session and breaks off virtual desktop, and the virtual serial port controller discharges virtual serial port and sweep equipment node, finishes the mapping of serial port.
5. a serial port Redirectional system is characterized in that, comprising: terminal, network router/hub and virtual desktop, terminal are set up data communication through network router/hub and virtual desktop and are connected;
The terminal comprises the terminal serial ports controller, is used to scan, discern and with the serial port on the mode access terminal of file, accomplishes transmission, reception and the processing of control information and data message;
Virtual desktop comprises the virtual serial port controller, is used for creating virtual serial port and corresponding apparatus node, sets up the serial port mapping of terminal to virtual desktop; Intercepting application program and user ask and operation the I/O of serial equipment, and are redirected to terminal processes, and the result that the terminal is returned analyzes and handles.
6. serial port Redirectional system as claimed in claim 5 is characterized in that, also comprises gateway server, is used to realize data forwarding, and the wide area network access operation is provided.
7. serial port Redirectional system as claimed in claim 5 is characterized in that, also comprises configuration server, is used to manage concentratedly the user and disposes list, strengthens control and management to serial port mapping on the terminal.
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 true CN102508796A (en) 2012-06-20
CN102508796B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819448A (en) * 2012-08-08 2012-12-12 深圳市京华科讯科技有限公司 Data transmission system and self-adaption switching method of a plurality of virtual desktops of data transmission system
CN103218321A (en) * 2013-04-23 2013-07-24 深圳市京华科讯科技有限公司 Port mapping method based on all-in-one machine
CN105721566A (en) * 2016-01-29 2016-06-29 华为技术有限公司 Method for redirecting port, server and system
CN103902949B (en) * 2012-12-30 2017-02-15 航天信息股份有限公司 Method and device for using ordinary scanning gun based on specific application
CN106598803A (en) * 2016-04-29 2017-04-26 福建先创通信有限公司 Method for remotely monitoring operation of host system
CN107203408A (en) * 2016-03-17 2017-09-26 华为技术有限公司 The methods, devices and systems of redirection
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 (6)

* 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
US20100058341A1 (en) * 2008-08-28 2010-03-04 Jung Joonyoung Apparatus and method for setting input/output device in virtualization system
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

Patent Citations (6)

* 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
US20100058341A1 (en) * 2008-08-28 2010-03-04 Jung Joonyoung Apparatus and method for setting input/output device in virtualization system
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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819448A (en) * 2012-08-08 2012-12-12 深圳市京华科讯科技有限公司 Data transmission system and self-adaption switching method of a plurality of virtual desktops of data transmission system
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
CN105721566A (en) * 2016-01-29 2016-06-29 华为技术有限公司 Method for redirecting port, server and system
CN105721566B (en) * 2016-01-29 2019-05-24 华为技术有限公司 A kind of method of port redirection, server
CN107203408A (en) * 2016-03-17 2017-09-26 华为技术有限公司 The methods, devices and systems of redirection
US10810024B2 (en) 2016-03-17 2020-10-20 Huawei Technologies Co., Ltd. Redirection method and apparatus, and system
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

Also Published As

Publication number Publication date
CN102508796B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102508796A (en) Serial port redirection method and system
CN102368231B (en) Method and system for redirecting USB (universal serial bus) devices
US9872173B2 (en) Communication method of hiding privacy information and system thereof
CN102025535B (en) Virtual machine management method and device and network equipment
EP2351315B1 (en) A virtualization platform
CN202257551U (en) Serial port redirecting system
US8353020B2 (en) Transparently extensible firewall cluster
CN107566671B (en) Network voice communication method and system, storage medium and electronic equipment
CN103095783A (en) Method and device for web application debugging
CN104869063A (en) Host route processing method in virtual subnet, related devices and communication system
US7788392B2 (en) Mechanism for universal media redirection control
CN104092760A (en) System and method for cloud terminal multicast redirection
CN106713684A (en) Method and equipment for binding unified communication client account number with phone number
CN107817962B (en) Remote control method, device, control server and storage medium
CN102508795A (en) Parallel port redirection method and system
CN107948565A (en) Realize the method and device of wired biography screen
US9479438B2 (en) Link aggregation based on virtual interfaces of VLANs
CN101340317A (en) Method for debugging embedded software and application system thereof
WO2024061308A1 (en) Notification processing method, and terminal device, server side and computer storage medium
CN202257550U (en) Re-orientating system for USB (Universal Series Bus) equipment
CN102932470B (en) Handheld device controls the method and system of computer terminal
KR20180012312A (en) Data manipulation control method and system and user terminal
CN101626345A (en) Message processing method and real-time stream protocol application layer gateway in home gateway
US20140344427A1 (en) Device and method for automatic switching of communication protocol of network devices based on user action
CN114443192B (en) Multi-window virtual application method and device based on cloud desktop

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
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.