CN103529954A - Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor - Google Patents

Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor Download PDF

Info

Publication number
CN103529954A
CN103529954A CN201310474576.7A CN201310474576A CN103529954A CN 103529954 A CN103529954 A CN 103529954A CN 201310474576 A CN201310474576 A CN 201310474576A CN 103529954 A CN103529954 A CN 103529954A
Authority
CN
China
Prior art keywords
keyboard
virtual machine
mouse
monitor
mouse event
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.)
Pending
Application number
CN201310474576.7A
Other languages
Chinese (zh)
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.)
CHENGDU FUTE TECHNOLOGY CO LTD
Original Assignee
CHENGDU FUTE 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 CHENGDU FUTE TECHNOLOGY CO LTD filed Critical CHENGDU FUTE TECHNOLOGY CO LTD
Priority to CN201310474576.7A priority Critical patent/CN103529954A/en
Publication of CN103529954A publication Critical patent/CN103529954A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for mutual exclusion of a remote virtual machine keyboard mouse and a local monitor. The method comprises the following steps: when the local monitor activates a virtual machine window of the local monitor, conducting keyboard mouse operation, scanning and processing keyboard mouse events, and then sending the keyboard mouse events to the remote virtual machine monitor through the RFB protocol; utilizing the remote virtual machine monitor to receive the keyboard mouse events, then judging the priority of the processed keyboard mouse events, and further judging whether the remote virtual machine monitor keyboard mouse is operated or not; the remote virtual machine monitor responding and executing corresponding keyboard mouse events and returning the state to the virtual machine window of the local monitor.

Description

A kind of method of remote virtual machine keyboard and mouse and local monitor mutual exclusion
Technical field
The present invention relates to telemonitoring field, relate in particular to a kind of remote virtual machine monitor of remote monitor supervision area and method of local monitor and mutual mutual exclusion thereof of being applied to.
Background technology
Along with the large scale deployment of Intel Virtualization Technology, cloud is used, original virtual management software for separate unit virtualized server can not meet the needs of large-scale virtual server, and some can be managed the virtualization software of many virtualized servers simultaneously and constantly release.And other virtual management most importants are exactly user's virtual machine of the local remote control operating remote by virtual machine again.
When this virtualized management software is while showing virtual machine desktop operated by local monitor window, just can face the problem of the keyboard and mouse data input operation simultaneously on monitor window and local virtual aircraft window mouth, having its source in of its problem, remote virtual machine self keyboard and mouse, when operating, receives long-range keyboard and mouse operational order simultaneously.Operating system, according to the sequencing of keyboard and mouse message queue, is carried out its operation, so the problem that there will be local and remote keyboard and mouse to input is needed the industrial environment of remote real_time control to bring puzzlement simultaneously.
Summary of the invention
The object of the invention is the defect existing for above-mentioned background technology, a kind of method of remote virtual machine monitor for remote monitor supervision area and local monitor and mutual mutual exclusion thereof is provided.
For achieving the above object, one of the present invention provides and is a kind of local monitor, communicates with remote virtual machine monitor, local monitor comprises, keyboard and mouse scan module, for obtaining the mouse-keyboard event of local monitor, by event transfer to keyboard and mouse event processing module; Keyboard and mouse event processing module, for the treatment of obtaining keyboard and mouse event, and by keyboard and mouse event handling for carrying out transformat by RFB agreement; Keyboard and mouse event sending module, for the good mouse-keyboard event content of transmission processing.
The present invention's two is to provide a kind of remote virtual machine monitor, communicates with local monitor, and this remote virtual machine monitor comprises, keyboard and mouse event receiver module, the mouse-keyboard event of coming for receiving RFB protocol transmission; Keyboard and mouse event processing module, for the processing to keyboard and mouse event, judges the priority of self and long-range event, judges that whether self keyboard and mouse has input, is passing to result keyboard and mouse event execution module; Keyboard and mouse execution module, carries out executable operations for basis to the keyboard and mouse event result value after processing, and feedback of status is given in the described remote virtual machine window in described local monitor and shown.
The present invention's three is the system of a kind of remote virtual machine monitor keyboard and mouse and local monitor mutual exclusion, comprising: local monitor and remote monitor.
The present invention's four is a kind of method of remote virtual machine keyboard and mouse and local monitor mutual exclusion, comprising:
Step S1: when local monitor activates the virtual machine window of local monitor, carry out keyboard and mouse operation, send keyboard mouse event to remote virtual machine monitor by RFB agreement after keyboard scan mouse event processing;
Step S2: after utilizing remote virtual machine monitor to receive keyboard and mouse event, keyboard and mouse Event Priority is processed in judgement, and further judges whether this remote virtual machine monitor keyboard and mouse is being operated;
Step S3: remote virtual machine monitor responds and carry out corresponding keyboard and mouse event, and state is returned to the virtual machine window of local monitor.
In sum, the method of remote virtual machine monitor keyboard and mouse provided by the invention and local monitor mutual exclusion, local monitor and remote virtual machine monitor and system, do not changing the processing code of remote virtual machine virtual platform about remote keyboard mouse event, do not change the relevant setting of remote virtual machine, do not change in the situation of setting of local monitor place system yet, solved the problem of remote keyboard mouse and local monitor operation mutual exclusion, and can process according to the priority of setting, industrial environment for remote real_time control is very important.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of a kind of remote virtual machine monitor of the present invention and local monitor mutual exclusion.
Fig. 2 is the method detailed process schematic diagram of the mutual exclusion of a kind of remote virtual machine monitor of the present invention and local monitor.
Fig. 3 is the structural representation of a kind of remote virtual machine monitor of the present invention and local monitor system.
Embodiment
By describing technology contents of the present invention, structural attitude in detail, being reached object and effect, below hereby exemplify embodiment and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, Fig. 2 and Fig. 3, the invention provides a kind of remote virtual machine monitor and local monitor, wherein,
Local monitor comprises:
Keyboard and mouse scan module, for obtaining the mouse-keyboard event of local monitor, by event transfer to keyboard and mouse event processing module;
Keyboard and mouse event processing module, for the treatment of obtaining keyboard and mouse event, and by keyboard and mouse event handling for carrying out transformat by RFB agreement;
Keyboard and mouse event sending module, for the good mouse-keyboard event content of transmission processing.
Remote virtual machine monitor comprises:
Keyboard and mouse event receiver module, the mouse-keyboard event of coming for receiving RFB protocol transmission;
Keyboard and mouse event processing module, for the processing to keyboard and mouse event, judges the priority of self and long-range event, judges that whether self keyboard and mouse has input, is passing to result keyboard and mouse event execution module;
Keyboard and mouse execution module, for according to the keyboard and mouse event result value after processing is carried out to executable operations, and by feedback of status to showing in the remote virtual machine window in local monitor, can operated from a distance show: can operate; Otherwise show: quiescing;
In order to address the above problem, the present invention also provides the system of a kind of remote virtual machine keyboard and mouse and local monitor mutual exclusion, comprising: local monitor as above and remote monitor.
The method of a kind of remote virtual machine keyboard and mouse of the present invention and local monitor mutual exclusion, local monitor and remote virtual machine monitor and system thereof, do not changing the processing code of remote virtual machine virtual platform about remote keyboard mouse event, do not change the relevant setting of remote virtual machine, do not change in the situation of setting of local monitor place system yet, while realizing the input of self keyboard and mouse, shielding remote keyboard mouse event, and state is returned to remote port, when self keyboard and mouse is without input time, status report is given long-range, accept remote keyboard mouse event and carry out, can define local and remote priority authority, thereby avoid operation keyboard mouse event simultaneously, realize the problem of local keyboard and mouse and remote virtual machine monitor interface keyboard and mouse input synchronization and mutex.
A kind of method that the invention provides remote virtual machine keyboard and mouse and local monitor mutual exclusion, comprises;
Step S1: when local monitor is gone forward side by side line unit dish mouse action by the virtual machine window activation of local monitor, keyboard scan mouse event is also processed the rear RFB agreement transmission keyboard mouse event that passes through to remote virtual machine monitor;
Step S2: after remote virtual machine monitor receives keyboard and mouse event, keyboard and mouse Event Priority is processed in judgement, and further judges whether this remote virtual machine monitor keyboard and mouse is being operated;
Step S3: remote virtual machine monitor responds and carries out corresponding keyboard and mouse event, and can operate or quiescing status information returns to the virtual machine window of local monitor.
Particularly, in the method for this remote virtual machine keyboard and mouse and local monitor mutual exclusion:
When local monitor activates virtual machine window, the line unit dish mouse event of going forward side by side operation, can be scanned by the keyboard and mouse event scanning module of the virtual machine window writing routine of local monitor, and the content of reception is encoded into keyboard and mouse event processing module after the form of RFB agreement needs, by keyboard and mouse event sending module, by RFB agreement, to the keyboard and mouse event of described remote virtual machine monitor, accept module transmission keyboard and mouse event message;
Keyboard and mouse event processing module relatively judges the priority of the keyboard and mouse event of remote dummy monitor unit self setting and the keyboard and mouse event of local monitor by the keyboard and mouse event with actual, be long-range preferential or self is preferential, long-range preferential in this way, the keyboard and mouse event that first response receives, shields self keyboard and mouse incoming event; Self is preferential in this way, first responds self keyboard and mouse incoming event, masks the keyboard and mouse event receiving;
Particularly, whether the keyboard and mouse Event Priority that the remote virtual machine monitor self that judgement is set is set higher than the priority of the keyboard and mouse event of local monitor, in this way, performs step 1; As no, perform step 2;
Step 1, judges that remote virtual machine monitor self keyboard and mouse event, whether in operation, in this way, performs step 3; As no, perform step 4;
Step 2, judges that local monitor self keyboard and mouse event, whether in operation, in this way, performs step 5; As no, perform step 6;
Step 3, shields the keyboard and mouse event that remote virtual machine monitor receives, and only responds the keyboard and mouse event of local monitor self, operates accordingly, finally performs step 7;
Step 4, accepts the keyboard and mouse event that remote virtual machine monitor receives, and operates accordingly, finally performs step 7;
Step 5, shielding local monitor self keyboard and mouse event, accepts the KeyEvent that described remote virtual machine receives, and operates accordingly, finally performs step 7;
Step 6, accepts the keyboard and mouse event that remote virtual machine monitor receives, and operates accordingly, finally performs step 7;
Step 7, the described virtual machine window that state is fed back to local monitor by RFB agreement shows, and can operated from a distance show: can operate; Otherwise show: quiescing.
Further, local monitor adopts remote frame buffering RFB agreement and remote virtual machine monitor to establish a communications link, and by the figure output display of remote virtual machine monitor in the virtual machine window of local monitor.
In sum, the method of remote virtual machine monitor keyboard and mouse provided by the invention and local monitor mutual exclusion, local monitor and remote virtual machine monitor and system, do not changing the processing code of remote virtual machine virtual platform about remote keyboard mouse event, do not change the relevant setting of remote virtual machine, do not change in the situation of setting of local monitor place system yet, solved the problem of remote keyboard mouse and local monitor operation mutual exclusion, and can process according to the priority of setting, industrial environment for remote real_time control is very important.
Above-described technical scheme is only the preferred embodiment of the method for a kind of remote virtual machine keyboard and mouse of the present invention and local monitor mutual exclusion, within the scope of the claim that any equivalent transformation of doing on the method basis of a kind of remote virtual machine keyboard and mouse of the present invention and local monitor mutual exclusion or replacement are included in this patent.

Claims (9)

1. a local monitor, communicates with remote virtual machine monitor, it is characterized in that: local monitor comprises,
Keyboard and mouse scan module, for obtaining the mouse-keyboard event of local monitor, by event transfer to keyboard and mouse event processing module;
Keyboard and mouse event processing module, for the treatment of obtaining keyboard and mouse event, and by keyboard and mouse event handling for carrying out transformat by RFB agreement;
Keyboard and mouse event sending module, for the good mouse-keyboard event content of transmission processing.
2. a remote virtual machine monitor, communicates with local monitor, it is characterized in that: remote virtual machine monitor comprises,
Keyboard and mouse event receiver module, the mouse-keyboard event of coming for receiving RFB protocol transmission;
Keyboard and mouse event processing module, for the processing to keyboard and mouse event, judges the priority of self and long-range event, judges that whether self keyboard and mouse has input, is passing to result keyboard and mouse event execution module;
Keyboard and mouse execution module, carries out executable operations for basis to the keyboard and mouse event result value after processing, and feedback of status is given in the described remote virtual machine window in described local monitor and shown.
3. the method for a kind of remote virtual machine keyboard and mouse according to claim 2 and local monitor mutual exclusion, it is characterized in that: the keyboard and mouse event processing module in described remote virtual machine monitor, for the treatment of the keyboard and mouse event of self and long-range reception.
4. a system for remote virtual machine monitor keyboard and mouse and local monitor mutual exclusion, comprising: local monitor and remote monitor.
5. a method for remote virtual machine monitor keyboard and mouse and local monitor mutual exclusion, comprising:
Step S1: when local monitor activates the described virtual machine window of described local monitor, carry out keyboard and mouse operation, send keyboard mouse event to remote virtual machine monitor by RFB agreement after keyboard scan mouse event processing;
Step S2: after utilizing remote virtual machine monitor to receive keyboard and mouse event, keyboard and mouse Event Priority is processed in judgement, and further judges whether this remote virtual machine monitor keyboard and mouse is being operated;
Step S3: remote virtual machine monitor responds and carry out corresponding keyboard and mouse event, and state is returned to the virtual machine window of local monitor.
6. the method for a kind of remote virtual machine keyboard and mouse according to claim 5 and local monitor mutual exclusion, it is characterized in that: when local monitor activates virtual machine window, the line unit dish mouse event of going forward side by side operation, can be scanned by the keyboard and mouse event scanning module of the virtual machine window writing routine of local monitor, and the content of reception is encoded into after the form of RFB agreement needs to keyboard and mouse event processing module, by keyboard and mouse event sending module, by RFB agreement, to the keyboard and mouse event of described remote virtual machine monitor, accept module transmission keyboard and mouse event message.
7. the method for a kind of remote virtual machine keyboard and mouse according to claim 6 and local monitor mutual exclusion, it is characterized in that: keyboard and mouse event processing module relatively judges the priority of the keyboard and mouse event of remote dummy monitor unit self setting and the keyboard and mouse event of local monitor by the keyboard and mouse event with actual, be long-range preferential or self is preferential, long-range preferential in this way, the keyboard and mouse event that first response receives, shields self keyboard and mouse incoming event; Self is preferential in this way, first responds self keyboard and mouse incoming event, masks the keyboard and mouse event receiving.
8. the method for a kind of remote virtual machine keyboard and mouse according to claim 7 and local monitor mutual exclusion, it is characterized in that: whether the keyboard and mouse Event Priority that the remote virtual machine monitor self that judgement is set is set is higher than the priority of the keyboard and mouse event of local monitor, in this way, perform step 1; As no, perform step 2;
Step 1, judges that remote virtual machine monitor self keyboard and mouse event, whether in operation, in this way, performs step 3; As no, perform step 4;
Step 2, judges that local monitor self keyboard and mouse event, whether in operation, in this way, performs step 5; As no, perform step 6;
Step 3, shields the keyboard and mouse event that remote virtual machine monitor receives, and only responds the keyboard and mouse event of local monitor self, operates accordingly, finally performs step 7;
Step 4, accepts the keyboard and mouse event that remote virtual machine monitor receives, and operates accordingly, finally performs step 7;
Step 5, shielding local monitor self keyboard and mouse event, accepts the KeyEvent that remote virtual machine receives, and operates accordingly, finally performs step 7;
Step 6, accepts the keyboard and mouse event that remote virtual machine monitor receives, and operates accordingly, finally performs step 7;
Step 7, the virtual machine window that state is fed back to local monitor by RFB agreement shows, and can operated from a distance show: can operate; Otherwise show: quiescing.
9. the method for a kind of remote virtual machine keyboard and mouse according to claim 5 and local monitor mutual exclusion, it is characterized in that: local monitor adopts remote frame buffering RFB agreement and remote virtual machine monitor to establish a communications link, and by the figure output display of remote virtual machine monitor in the virtual machine window of local monitor.
CN201310474576.7A 2013-10-12 2013-10-12 Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor Pending CN103529954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310474576.7A CN103529954A (en) 2013-10-12 2013-10-12 Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310474576.7A CN103529954A (en) 2013-10-12 2013-10-12 Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor

Publications (1)

Publication Number Publication Date
CN103529954A true CN103529954A (en) 2014-01-22

Family

ID=49932026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310474576.7A Pending CN103529954A (en) 2013-10-12 2013-10-12 Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor

Country Status (1)

Country Link
CN (1) CN103529954A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802762A (en) * 2015-11-26 2017-06-06 思杰系统有限公司 Sync server side keyboard layout is laid out with client-side in virtual session
CN107807737A (en) * 2017-11-14 2018-03-16 广东工业大学 Multimedia control method, device, system and readable storage medium storing program for executing
CN109144300A (en) * 2018-07-27 2019-01-04 中国船舶重工集团公司第七0九研究所 A kind of long-range mouse control method of multipurpose and system
CN110336802A (en) * 2019-06-20 2019-10-15 苏州浪潮智能科技有限公司 A kind of remote operation method and device of server
CN111813237A (en) * 2020-07-21 2020-10-23 山东超越数控电子股份有限公司 Method for realizing remote control of virtual keyboard and mouse
CN111936983A (en) * 2018-04-27 2020-11-13 惠普发展公司,有限责任合伙企业 Message based on input/output device signals to virtual computers
CN112269639A (en) * 2020-10-29 2021-01-26 四川长虹电器股份有限公司 Authority management method of virtual equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1412668A (en) * 2001-08-08 2003-04-23 松下电器产业株式会社 Method and device of remote using personal computer
US20040215743A1 (en) * 2003-03-04 2004-10-28 Soronti, Inc. Mouse synchronization for virtual presence architecture (VPA)
CN101393487A (en) * 2007-09-18 2009-03-25 大道计算机技术(上海)有限公司 Network sharing and multi-mouse control method for large-screen splicing wall display system
CN102929415A (en) * 2012-09-17 2013-02-13 浪潮(北京)电子信息产业有限公司 Local monitor and mouse display synchronization method for local monitor and remote virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1412668A (en) * 2001-08-08 2003-04-23 松下电器产业株式会社 Method and device of remote using personal computer
US20040215743A1 (en) * 2003-03-04 2004-10-28 Soronti, Inc. Mouse synchronization for virtual presence architecture (VPA)
CN101393487A (en) * 2007-09-18 2009-03-25 大道计算机技术(上海)有限公司 Network sharing and multi-mouse control method for large-screen splicing wall display system
CN102929415A (en) * 2012-09-17 2013-02-13 浪潮(北京)电子信息产业有限公司 Local monitor and mouse display synchronization method for local monitor and remote virtual machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姜卫东,刘曙生: "双CPU实现远程多键盘鼠标交互", 《微处理机》 *
朱磊,魏忠义: "多键盘/鼠标系统", 《西安工程科技学院学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802762A (en) * 2015-11-26 2017-06-06 思杰系统有限公司 Sync server side keyboard layout is laid out with client-side in virtual session
CN107807737A (en) * 2017-11-14 2018-03-16 广东工业大学 Multimedia control method, device, system and readable storage medium storing program for executing
CN111936983A (en) * 2018-04-27 2020-11-13 惠普发展公司,有限责任合伙企业 Message based on input/output device signals to virtual computers
CN109144300A (en) * 2018-07-27 2019-01-04 中国船舶重工集团公司第七0九研究所 A kind of long-range mouse control method of multipurpose and system
CN109144300B (en) * 2018-07-27 2021-12-21 中国船舶重工集团公司第七0九研究所 Multipurpose remote mouse key control method and system
CN110336802A (en) * 2019-06-20 2019-10-15 苏州浪潮智能科技有限公司 A kind of remote operation method and device of server
CN111813237A (en) * 2020-07-21 2020-10-23 山东超越数控电子股份有限公司 Method for realizing remote control of virtual keyboard and mouse
CN112269639A (en) * 2020-10-29 2021-01-26 四川长虹电器股份有限公司 Authority management method of virtual equipment
CN112269639B (en) * 2020-10-29 2022-09-16 四川长虹电器股份有限公司 Authority management method of virtual equipment

Similar Documents

Publication Publication Date Title
CN103529954A (en) Method for mutual exclusion of remote virtual machine keyboard mouse and local monitor
KR101739532B1 (en) Enhanced rehosting capability for legacy hardware and software
US20210232498A1 (en) Method for testing edge computing, device, and readable storage medium
USRE46386E1 (en) Updating a user session in a mach-derived computer system environment
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
JP2017520853A (en) Numerical control system based on virtual host device
US10254950B2 (en) Display method of terminal device and terminal device
CN103874984A (en) Virtualizable and forward-compatible hardware-software interface
EP3126974A1 (en) Incremental parallel processing of data
CN106970720A (en) A kind of many mouse independent parallel control methods of virtual emulation device and unit
CN109753258A (en) A kind of two-shipper double screen single machine control method
CN102929415A (en) Local monitor and mouse display synchronization method for local monitor and remote virtual machine
CN113285866B (en) Information sending method and device and electronic equipment
CN102664924A (en) Method and apparatus for information processing during remote assistance process
CN104102508A (en) FlexRay bus-based multimachine program online upgrade method
CN113360116A (en) Method, device and equipment for controlling terminal and storage medium
CN111859354A (en) Picture verification method and device, electronic equipment and computer-readable storage medium
CN104796390A (en) Electronic whiteboard whole-network synchronous undoing and recovering system and method thereof
CN111814959A (en) Model training data processing method, device and system and storage medium
CN105320480A (en) Screen broadcasting method and system and device using the same
CN103377228A (en) Page content presenting method and device for browser
CN104144212B (en) A kind of virtual desktop image transfer method, apparatus and system
CN102541563A (en) Method and system for generating monitoring interfaces
CN104460437A (en) Communication control method and communication device
CN102866917B (en) A kind of cold fiery real-time processing method based on Linux platform 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140122

WD01 Invention patent application deemed withdrawn after publication