CN102508795A - Parallel port redirection method and system - Google Patents
Parallel port redirection method and system Download PDFInfo
- Publication number
- CN102508795A CN102508795A CN2011103113328A CN201110311332A CN102508795A CN 102508795 A CN102508795 A CN 102508795A CN 2011103113328 A CN2011103113328 A CN 2011103113328A CN 201110311332 A CN201110311332 A CN 201110311332A CN 102508795 A CN102508795 A CN 102508795A
- Authority
- CN
- China
- Prior art keywords
- parallel port
- terminal
- virtual
- redirected
- user
- 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
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a parallel port redirection method and system. The method comprises the following steps that: a. terminal parallel port redirection is initialized; b. a virtual parallel port controller intercepts the I/O (input/output) request and operation of a user on parallel port equipment and redirects the I/O request and operation to a terminal; c. a terminal parallel port controller processes the received redirected I/O request and operation and returns the processing results to the virtual parallel port controller; and d. the virtual parallel 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 parallel 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
Technical field
The present invention relates to the port redirection technical field, relate in particular to the method and system that a kind of parallel port is redirected.
Background technology
Parallel 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 parallel port passage in all, for the use of parallel port device in desktop virtual environment provides support.As long as through opening the parallel port passage of associated desktop agreement, just can in the virtual desktop session, freely use and be linked into the parallel port device on the terminal.
But there is following problem in existing parallel port device:
A, equipment experience are different from conventional table
Existing parallel port technology is not set up the mapping end to end that virtual desktop is arrived in the parallel port on the terminal through the mode of creating virtual unit and relevant device node, but through in virtual desktop, creating the pipe file that meets the parallel port naming rule.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 parallel port device is need to bind corresponding ports, and existing parallel port device 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 parallel port technology is not supported the centralized management to the mapping of the parallel port 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 parallel port to be redirected.
The objective of the invention is to realize through following technical scheme.
The method that a kind of parallel port is redirected comprises step:
A: the terminal parallel port is redirected initialization operation;
B: virtual parallel port controller intercepting user is redirected to the terminal to the also I/O request and the operation of jaws equipment;
C: the terminal parallel port controller is handled redirected I/O request and the operation that receives, and result is returned to virtual parallel port controller;
D: the result that virtual parallel 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 parallel port controller feedback.
Preferably, also comprise before the step a: start virtual parallel port controller and on the terminal, start the terminal parallel port 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 parallel port controller reads in user's configuration and switching and jaws equipment to mapped mode;
A3: virtual parallel port controller end of scan and jaws equipment, the virtual parallel port of establishment and corresponding apparatus node;
A4: open the end-to-end parallel port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual parallel port, accomplish the mapping of end-to-end parallel port equipment I/O service.
Preferably, also comprise after the steps d: the user finishes the virtual desktop session and breaks off virtual desktop, and virtual parallel port controller discharges virtual parallel port and sweep equipment node, finishes the mapping of parallel port.
A kind of parallel 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 parallel port controller, is used to scan, discern and with the parallel port on the mode access terminal of file, accomplishes transmission, reception and the processing of control information and data message;
Virtual desktop comprises virtual parallel port controller, is used for creating virtual parallel port and corresponding apparatus node, sets up the parallel port mapping of terminal to virtual desktop; Intercepting application program and user to and the I/O of jaws equipment request and operation, and be redirected to terminal processes, 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 parallel 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 parallel 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 parallel port; Make and the driver of jaws 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 the mapping configuration of user parallel port, make convenient management, quick.
Description of drawings
Fig. 1 is a parallel port Redirectional system theory diagram of the present invention;
Fig. 2 is a parallel port reorientation method process flow diagram of the present invention;
Fig. 3 is that parallel 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; Parallel 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 parallel port controller, is used to scan, discern and with the parallel 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 parallel port controller, and the virtual desktop end is created virtual parallel port and corresponding apparatus node through virtual parallel port controller, sets up the parallel port mapping of terminal to virtual desktop; Intercepting application program and user to and the I/O of jaws equipment request and operation, and be redirected to terminal processes, 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 parallel port mapping on the terminal.
See also shown in Figure 2ly, parallel port reorientation method process flow diagram of the present invention comprises:
Step 201: start virtual parallel port controller at the virtual desktop end, be used to create virtual parallel port and corresponding apparatus node, develop and manage parallel port and shine upon end to end;
Step 202: start the terminal parallel port controller on the terminal, equipment I/O request that be redirected request such as the TCP that responds virtual parallel port controller and identification and virtual parallel port and operating;
Step 203: the terminal parallel port is redirected initialization operation, and is concrete, consults shown in Figure 3ly, comprising:
Step 301: the user opens the virtual desktop session and lands virtual desktop;
Step 302: the terminal parallel port controller reads in user's configuration and switching and jaws equipment to mapped mode;
Step 303: virtual parallel port controller end of scan and jaws equipment, the virtual parallel port of establishment and corresponding apparatus node;
Step 304: open the end-to-end parallel port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual parallel port, accomplish the mapping of end-to-end parallel port equipment I/O service;
Wherein, parallel port is redirected, and refers to the parallel port is mapped in other computing machine in the network use, and does not use in this locality;
Step 204: virtual parallel port controller intercepting user is redirected to the terminal to the also I/O request and the operation of jaws equipment;
Step 205: the terminal parallel port controller is handled redirected I/O request and the operation that receives, and result is returned to virtual parallel port controller;
Step 206: the result that virtual parallel 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 parallel port controller feedback;
Step 208: the user finishes the virtual desktop session and breaks off virtual desktop, and virtual parallel port controller discharges virtual parallel port and sweep equipment node, finishes the mapping of parallel port.
Wherein, Shine upon under the interrupted situation when cause the parallel port owing to network anomaly; 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 parallel port is redirected is characterized in that, comprises step:
A: the terminal parallel port is redirected initialization operation;
B: virtual parallel port controller intercepting user is redirected to the terminal to the also I/O request and the operation of jaws equipment;
C: the terminal parallel port controller is handled redirected I/O request and the operation that receives, and result is returned to virtual parallel port controller;
D: the result that virtual parallel 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 parallel port controller feedback.
2. the method that parallel port as claimed in claim 1 is redirected is characterized in that, also comprises before the step a: start virtual parallel port controller and on the terminal, start the terminal parallel port controller at the virtual desktop end.
3. the method that parallel 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 parallel port controller reads in user's configuration and switching and jaws equipment to mapped mode;
A3: virtual parallel port controller end of scan and jaws equipment, the virtual parallel port of establishment and corresponding apparatus node;
A4: open the end-to-end parallel port mapping of terminal to virtual desktop, user installation device drives in the virtual desktop, and be tied to the corresponding virtual parallel port, accomplish the mapping of end-to-end parallel port equipment I/O service.
4. the method that parallel 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 virtual parallel port controller discharges virtual parallel port and sweep equipment node, finishes the mapping of parallel port.
5. a parallel 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 parallel port controller, is used to scan, discern and with the parallel port on the mode access terminal of file, accomplishes transmission, reception and the processing of control information and data message;
Virtual desktop comprises virtual parallel port controller, is used for creating virtual parallel port and corresponding apparatus node, sets up the parallel port mapping of terminal to virtual desktop; Intercepting application program and user to and the I/O of jaws equipment request and operation, and be redirected to terminal processes, the result that the terminal is returned analyzes and handles.
6. parallel 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. parallel 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 parallel port mapping on the terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110311332.8A CN102508795B (en) | 2011-10-14 | 2011-10-14 | Parallel port redirection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110311332.8A CN102508795B (en) | 2011-10-14 | 2011-10-14 | Parallel port redirection method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102508795A true CN102508795A (en) | 2012-06-20 |
CN102508795B CN102508795B (en) | 2014-10-22 |
Family
ID=46220886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110311332.8A Active CN102508795B (en) | 2011-10-14 | 2011-10-14 | Parallel port redirection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102508795B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN108595248A (en) * | 2018-04-24 | 2018-09-28 | 深信服科技股份有限公司 | A kind of virtualization system communication means, device, equipment and virtualization system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658129A (en) * | 2005-03-01 | 2005-08-24 | 蔡高升 | Redirectional system and method of man-machine interactive input-output equipment of blind equipment |
CN1744591A (en) * | 2004-08-31 | 2006-03-08 | 中国科学院计算技术研究所 | Distributed apparatus Redirectional system and method thereof in a kind of terminal network environment |
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 |
-
2011
- 2011-10-14 CN CN201110311332.8A patent/CN102508795B/en active Active
Patent Citations (4)
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 |
CN1658129A (en) * | 2005-03-01 | 2005-08-24 | 蔡高升 | Redirectional system and method of man-machine interactive input-output equipment of blind equipment |
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 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN108595248A (en) * | 2018-04-24 | 2018-09-28 | 深信服科技股份有限公司 | A kind of virtualization system communication means, device, equipment and virtualization system |
Also Published As
Publication number | Publication date |
---|---|
CN102508795B (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 | |
US8353020B2 (en) | Transparently extensible firewall cluster | |
CN202257551U (en) | Serial port redirecting system | |
CN107566671B (en) | Network voice communication method and system, storage medium and electronic equipment | |
WO2010051054A3 (en) | Performing networking tasks based on destination networks | |
US9887939B2 (en) | Transmitting multi-destination packets in overlay networks | |
CN106936683B (en) | A kind of method and device for realizing tunnel configuration | |
CN104869063A (en) | Host route processing method in virtual subnet, related devices and communication system | |
CN104092760A (en) | System and method for cloud terminal multicast redirection | |
US7788392B2 (en) | Mechanism for universal media redirection control | |
CN108882262B (en) | Equipment state synchronization method and system, intelligent terminal and readable storage medium | |
CN102508795A (en) | Parallel port redirection method and system | |
US20170142028A1 (en) | Network communication method based on software-defined networking and server using the method | |
WO2024061308A1 (en) | Notification processing method, and terminal device, server side and computer storage medium | |
CN101626345A (en) | Message processing method and real-time stream protocol application layer gateway in home gateway | |
CN202257550U (en) | Re-orientating system for USB (Universal Series Bus) equipment | |
CN102932470B (en) | Handheld device controls the method and system of computer terminal | |
CN103685017A (en) | Message forwarding method in stacking system, stacking equipment and stacking system | |
WO2012079374A1 (en) | Method, device, and system for binding virtual serial port and physical serial port | |
CN104219240A (en) | Host information learning method and host information learning device | |
CN104780106B (en) | More example implementation methods and device | |
CN104954440B (en) | A kind of operational system and method for Android set-top box |
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 |