CN107908296B - KVM control method, device, storage medium and computer equipment - Google Patents

KVM control method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN107908296B
CN107908296B CN201711214525.5A CN201711214525A CN107908296B CN 107908296 B CN107908296 B CN 107908296B CN 201711214525 A CN201711214525 A CN 201711214525A CN 107908296 B CN107908296 B CN 107908296B
Authority
CN
China
Prior art keywords
computer
mouse
keyboard
window
equipment
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
CN201711214525.5A
Other languages
Chinese (zh)
Other versions
CN107908296A (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.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent 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 Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN201711214525.5A priority Critical patent/CN107908296B/en
Publication of CN107908296A publication Critical patent/CN107908296A/en
Application granted granted Critical
Publication of CN107908296B publication Critical patent/CN107908296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Abstract

The invention relates to a KVM control method, a device, a storage medium and a computer device, wherein the KVM control method comprises the following steps: establishing connection between a computer and display equipment, and distributing a signal source of the computer to a corresponding window; acquiring an initial window associated with the keyboard and mouse equipment, and establishing connection between the keyboard and mouse equipment and a computer corresponding to the initial window; and when detecting that the mouse pointer moves to the update window, establishing connection between the keyboard and mouse equipment and the computer corresponding to the update window. The method comprises the steps of establishing connection between a computer and display equipment, distributing a signal source of the computer to enable the computer to be connected with display windows in a one-to-one correspondence mode, establishing connection between keyboard and mouse equipment and the computer through a preset initial window to achieve control over the computer, connecting the keyboard and mouse equipment to the computer corresponding to a window where the mouse pointer is located when the mouse pointer corresponding to the keyboard and mouse equipment is detected to move to the window corresponding to other computers, achieving free switching of multiple computer equipment, and saving time and being simple to operate.

Description

KVM control method, device, storage medium and computer equipment
Technical Field
The present invention relates to a KVM (Keyboard Video Mouse) technology, and in particular, to a KVM control method, device, storage medium, and computer apparatus.
Background
The KVM (multi-computer switching) technology is an advanced hardware solution, and is composed of the first letters of three words, namely, a Keyboard, a Video and a Mouse, so that multiple devices can be controlled by one set of the Keyboard, the display and the Mouse, and a KVM system can access and control a computer, and is a key device supervised by a modern server, by directly connecting the Keyboard, the Mouse and the display. The KVM switches among a plurality of computers through a keyboard and mouse device and a display to control the computer peripheral equipment of a plurality of servers or computer hosts, and can realize easy access and centralized management of up to thousands of computers, wherein the keyboard and mouse device is a general name of a device capable of collecting keyboard and mouse events.
However, the existing KVM technology has the disadvantages of long time consumption and inconvenient use in the process of realizing the switching control of a plurality of computers.
Disclosure of Invention
In view of the above, it is necessary to provide a KVM control method, apparatus, storage medium, and computer device for freely switching a plurality of computer devices, in order to solve the problems of long time consumption and inconvenience in use in the switching control process of the plurality of computers.
A KVM control method comprises the following steps:
establishing connection between a computer and display equipment, and distributing a signal source of the computer to a corresponding window of the display equipment;
acquiring an initial window associated with the keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device with the first computer;
detecting whether a mouse pointer corresponding to the keyboard and mouse equipment moves to an update window or not;
and when the mouse pointer is detected to move to the updating window, identifying a second computer corresponding to the updating window, and switching the computer connected with the keyboard and mouse equipment from the first computer to the second computer.
In one embodiment, the step of establishing a connection between the computer and the display device and allocating the signal source of the computer to the corresponding window of the display device comprises:
collecting a signal source of a computer;
transmitting the signal source subjected to the encoding processing to display equipment through a protocol network;
decoding the signal source, and establishing the connection between the computer and the display equipment;
and distributing the signal source of the computer to the corresponding window of the display device.
In one embodiment, after the steps of obtaining an initial window associated with a keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device to the first computer, the method further includes:
monitoring a keyboard and mouse event;
and controlling the computer connected with the keyboard and mouse equipment through a USB keyboard and mouse protocol according to the keyboard and mouse event.
In one embodiment, the step of detecting whether the mouse pointer corresponding to the keyboard and mouse device moves to the update window comprises the following steps:
monitoring a keyboard and mouse event and collecting keyboard and mouse event associated data to obtain a coordinate parameter of a mouse pointer;
and judging whether the mouse pointer moves to the update window or not by comparing the position parameter of the initial window with the coordinate parameter of the mouse pointer.
In one embodiment, before the step of detecting whether the mouse pointer corresponding to the keyboard and mouse device moves to the update window, the method further includes:
when a plurality of sets of keyboard and mouse equipment exist, connection between the plurality of sets of keyboard and mouse equipment and the display equipment is established at the same time, and connection between the keyboard and mouse equipment and a corresponding computer of a window where a corresponding mouse pointer is located is established respectively.
In one embodiment, after the step of identifying the second computer corresponding to the update window and switching the computer connected to the keyboard and mouse device from the first computer to the second computer when the mouse pointer is detected to move to the update window, the method further includes:
when window operation is detected, a target window where a keyboard and mouse pointer is located when the window operation is completed is obtained, a computer corresponding to the target window is identified, the computer connected with the keyboard and mouse device is switched to the computer corresponding to the target window from a second computer, and the window operation comprises window dragging, window replacement, window overlapping, window moving and window zooming.
In one embodiment, after the step of identifying the second computer corresponding to the update window and switching the computer connected to the keyboard and mouse device from the first computer to the second computer when the mouse pointer is detected to move to the update window, the method further includes:
when a plurality of display devices exist and the operation of switching the mouse pointer of the keyboard and mouse device among the plurality of display devices is detected, the connection between the keyboard and mouse device and the display device where the mouse pointer is located after the switching action is completed is established according to the display device where the mouse pointer is located after the switching action is completed.
A KVM control system, comprising:
the screen-loading module is used for establishing the connection between the computer and the display equipment and distributing a signal source of the computer to a corresponding window of the display equipment;
the connecting module is used for acquiring an initial window associated with the keyboard and mouse device, identifying a first computer corresponding to the initial window and connecting the keyboard and mouse device with the first computer;
the position detection module is used for detecting whether a mouse pointer corresponding to the keyboard and mouse equipment moves to an update window or not;
and the switching module is used for identifying a second computer corresponding to the update window when the mouse pointer is detected to move to the update window, and switching the computer connected with the keyboard and mouse equipment from the first computer to the second computer.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the KVM control method when executing the program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a KVM control method.
According to the KVM control method, the KVM control device, the storage medium and the computer equipment, the connection between the computer and the display equipment is established, the signal source of the computer is distributed to enable the computer to be connected with the display windows in a one-to-one correspondence mode, the connection between the keyboard and mouse equipment and the computer is established through the preset initial window, the control of the keyboard and mouse equipment on the computer is achieved, when the mouse pointer corresponding to the keyboard and mouse equipment is detected to move to the window corresponding to the other computer, the keyboard and mouse equipment is connected to the computer corresponding to the window where the mouse pointer is located, the free switching of multiple computer equipment is achieved, and the operation is time-saving and simple.
Drawings
FIG. 1 is a flow chart illustrating a KVM control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a KVM control method according to another embodiment of the present application;
FIG. 3 is a schematic diagram illustrating data transmission in a KVM control method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a display device in a KVM control method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a KVM control device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that the terms "first," "second," and the like as used herein may be used herein to describe various devices, but these devices are not limited by these terms. These terms are only used to distinguish one device from another. For example, a first computer may be termed a second computer without departing from the scope of the present invention.
The KVM control controls all computer equipment on one platform to achieve unified management, so as to solve the problem of inconvenient management caused by the scattered distribution of a large number of equipment, avoid a plurality of unnecessary peripheral equipment and save a large amount of space, so that an administrator can control all equipment on a console of a master control center, conveniently and quickly eliminate machine faults and carry out daily maintenance work, thereby more effectively ensuring the normal operation of the whole machine room.
As shown in fig. 1, a KVM control method includes the following steps:
and step S200, establishing connection between the computer and the display equipment, and distributing a signal source of the computer to a corresponding window of the display equipment.
The display device is a device which has a plurality of display windows and can display signal sources of a plurality of computers in the corresponding display windows, the display device can be a spliced screen, the connection process between the computers and the display device is established, the signal sources of the computers can be collected through a coding unit, and the collected signal sources are transmitted to a decoding unit connected with the display device through a private network protocol, so that the connection relationship is established.
Step S400, obtaining an initial window associated with the keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device with the first computer.
The keyboard and mouse device refers to a device which can collect keyboard and mouse events, such as events occurring on a keyboard, a virtual keyboard, a mouse, a touch screen and the like. The initial window refers to a window which is associated with the keyboard and mouse device in the display device according to a preset control rule, and the initial window can be set as a window which is positioned at the upper left corner in the display device. After the KVM control is started, according to a preset operation rule, the keyboard and mouse device directly completes the binding with a preset initial window of the display device, and according to the one-to-one corresponding connection relationship between each window of the display device and the plurality of computers, the connection between the keyboard and mouse device and the computer corresponding to the initial window is established for distinguishing the plurality of computers, and the computer corresponding to the initial window may be referred to as a first computer.
Step S600, detecting whether a mouse pointer corresponding to the keyboard and mouse device moves to an update window.
The mouse pointer is an icon used for identifying the position of a mouse on a graphical interface, the mouse pointer corresponds to the keyboard and mouse device, when the mouse moves, the position of the mouse pointer can be calculated through the relevant data of keyboard and mouse events collected by the keyboard and mouse device, so that whether the mouse pointer corresponding to the keyboard and mouse device moves to an update window or not is detected, and the update window is a new window which is reached after the mouse pointer is about to leave the initial window.
And step S800, when the mouse pointer is detected to move to the updating window, identifying a second computer corresponding to the updating window, and switching the computer connected with the keyboard and mouse equipment from the first computer to the second computer.
According to the correlation relationship between the window and the computer, the second computer corresponding to the updated window can be quickly identified. The connection switching means establishing connection between the keyboard and mouse device and the second computer and disconnecting the connection between the keyboard and mouse device and the first computer, specifically, the connection establishment means that the collected keyboard and mouse events can be sent to the computer through the keyboard and mouse device, and the computer is controlled according to the keyboard and mouse events; after the keyboard and mouse device is disconnected with the computer, the keyboard and mouse device cannot control the corresponding computer.
According to the KVM control method, the computer is connected with the display equipment in a one-to-one corresponding mode by establishing the connection between the computer and the display equipment and distributing the signal source of the computer, the keyboard and mouse equipment is connected with the computer through the preset initial window, the keyboard and mouse equipment is controlled by the computer, when the mouse pointer corresponding to the keyboard and mouse equipment is detected to move to the window corresponding to other computers, the keyboard and mouse equipment is connected to the computer corresponding to the window where the mouse pointer is located, the free switching of a plurality of computer equipment is achieved, and the operation is time-saving and simple.
As shown in fig. 2 and 3, in one embodiment, step S200 includes:
and step S220, collecting a signal source of the computer.
The signal source refers to a display interface of a computer and audio and video data, the coding unit is connected with the computer through a video line, and the collected signal source is transmitted to the coding unit for coding processing.
Step S240, the signal source after the encoding process is sent to the display device through the protocol network.
The protocol network is a network for realizing signal and data transmission functions through a private protocol, and the video data processed by the encoding unit can be transmitted to the decoding unit connected with the display device through the private protocol network.
And step S260, decoding the signal source and establishing the connection between the computer and the display equipment.
And decoding the signal source by using a decoding unit, and transmitting the signal source to display equipment through a video line to finish the connection between the computer and the display equipment.
Step S280, allocating the signal source of the computer to the corresponding window of the display device.
And distributing the signal sources of the computers to corresponding windows of the display equipment one by one, thereby displaying a plurality of computers in the same display equipment and establishing the connection between the computers and the corresponding windows.
Specifically, a plurality of signal sources can be dragged into a window of the display device through external control, and the assignment task of the signal sources is realized according to a preset assignment rule.
In one embodiment, step S400 includes:
starting the KVM connection, acquiring an initial window associated with the keyboard and mouse equipment, controlling a mouse pointer of the keyboard and mouse equipment to be displayed in the initial window, and establishing the connection between the keyboard and mouse equipment and a computer corresponding to the initial window.
The KVM connection is that connection relations among the keyboard and mouse equipment, the display equipment and the computer are established, and the initial window associated with the keyboard and mouse equipment is obtained according to a preset rule.
As shown in fig. 2, in one embodiment, after step S400, the method further includes:
step S520, the keyboard and mouse event is intercepted.
The keyboard and mouse event refers to an operation instruction sent by equipment with a keyboard and mouse function, the position of a mouse pointer on a display window can be obtained by calculating the associated data of the keyboard and mouse event, and the keyboard and mouse event can be intercepted through keyboard and mouse equipment.
And step S540, controlling a computer connected with the keyboard and mouse equipment through a USB keyboard and mouse protocol according to the keyboard and mouse event.
The keyboard and mouse device sends the intercepted keyboard and mouse event to the coding unit and the server through the IP technology, the coding unit is connected with the computer through the USB data line, and sends the keyboard and mouse event to the computer through the USB mouse and keyboard protocol, and the computer is controlled by the keyboard and mouse event.
In one embodiment, step S600 includes:
step S620, the keyboard and mouse events are intercepted, the associated data of the keyboard and mouse events are collected, and the coordinate parameters of the mouse pointer are obtained.
And monitoring the keyboard and mouse event through the coding unit and the keyboard and mouse equipment, acquiring data associated with the keyboard and mouse event, and calculating the acquired data to obtain coordinate parameter information of a mouse pointer corresponding to the keyboard and mouse equipment. The coordinate parameter information refers to the position of the mouse pointer in the window of the display device.
Step S640, comparing the position parameter of the initial window with the coordinate parameter of the mouse pointer, and determining whether the mouse pointer moves to the update window.
The position parameters comprise coordinates, width and height information and the like of the window, the position parameter information of the initial window is obtained, the position relation between the mouse pointer and the initial window is judged by comparing the position parameter of the initial window with the coordinate parameter of the mouse pointer, and whether the mouse pointer moves to the updating window is further judged.
In one embodiment, before step S600, the method further includes:
step S580, when there are multiple sets of keyboard and mouse devices, establishing connections between the multiple sets of keyboard and mouse devices and the display device at the same time, and respectively establishing connections between the keyboard and mouse devices and corresponding computers of windows where corresponding mouse pointers are located.
Multiple sets of keyboard and mouse devices can be connected with 1 display device at the same time, and taking the existence of 2 sets of keyboard and mouse devices as an example, when starting up the KVM connection, 2 sets of keyboard and mouse devices can be respectively bound with 2 preset display windows, and the connection between the keyboard and mouse devices and the computer corresponding to the window where the mouse pointer is located is respectively established. When any mouse pointer moves to other windows, the control switching is completed; when a plurality of mice appear in the same window, a plurality of mouse devices can control the same remote computer at the same time, and the remote computer can be controlled according to the time sequence of the mouse events collected by the mouse devices.
In one embodiment, after step S800, the method further includes:
step S820, when detecting a window operation, acquiring a target window where the keyboard and mouse pointer is located when the window operation is completed, identifying a computer corresponding to the target window, and switching the computer connected to the keyboard and mouse device from the second computer to the computer corresponding to the target window, where the window operation includes window dragging, window replacement, window overlapping, window moving, and window zooming.
The window operation refers to operations such as dragging in, dragging out, replacing, moving, zooming, overlaying and the like performed on a window through an external instruction, and the target window can be a window with a fixed position, can be a window closest to the current window and a mouse pointer, a new window after replacement, or can be the uppermost window of overlapped windows. When the window is detected to be dragged, the mouse pointer can be moved to the window positioned at the upper left corner in the display equipment; when detecting that the window at the current position of the mouse pointer is dragged out, moving the mouse pointer to the window closest to the current window; when detecting that the window at the current position of the mouse pointer is replaced, switching the mouse pointer to the replaced window; when the window where the mouse pointer is located is detected to be overlapped with other windows, the mouse pointer is switched to the top window in the overlapped windows.
In one embodiment, after step S800, the method further includes:
step 840, when a plurality of display devices exist and the operation of switching the mouse pointer of the keyboard and mouse device among the plurality of display devices is detected, establishing the connection between the keyboard and mouse device and the display device where the mouse pointer is located after the switching action is completed according to the display device where the mouse pointer is located after the switching action is completed.
Specifically, when it is detected that the mouse pointer of the keyboard and mouse device is switched from the current display device to the other display device, the binding between the keyboard and mouse device and the display device is switched according to dragging of the mouse pointer on the operation interface of the other display device.
The keyboard and mouse device can be bound with a plurality of display devices, for example, 2 display devices exist, when a mouse pointer of the keyboard and mouse device is switched from one display device to another display device, when a keyboard and mouse event dragged by the mouse pointer on another display interface is detected, the connection between the keyboard and mouse device and the current display device is disconnected, and the connection between the keyboard and mouse device and the other display devices is established.
To explain the KVM control method of the present application in further detail, a practical application scenario of the present application is described below.
As shown in fig. 3, the system includes a server, a tiled display, a decoding unit, an encoding unit, a remote computer, and a keyboard and a mouse, wherein the encoding unit and the decoding unit may be hardware devices, or may be control software having encoding and decoding functions, and specifically, the encoding unit may use an encoder with a model of folder-100E. The encoding unit is connected with a remote computer through a USB data line and is used for controlling the remote computer; the encoding unit and the decoding unit are in data transmission through a private network protocol, the decoding unit can be connected with a keyboard and a mouse and other devices, the keyboard and the mouse can be used as a keyboard and mouse device to complete the collection of keyboard and mouse events, the collected keyboard and mouse events are sent to the encoding unit and the server through an IP technology, and the encoding unit can realize the control of a remote computer through the keyboard and mouse events through a USB keyboard and mouse protocol. The encoding unit is also connected with a remote computer through an HDMI video line and used for acquiring audio and video data, the decoding unit is connected with the spliced screen and used for receiving the audio and video data of the remote computer acquired by the encoding unit and sending a signal source to the spliced screen through the video line, and the screen-on process of the remote computer is realized; the system controls the connection and switching among the devices through the server.
As shown in fig. 4, the following description will be made by taking an example of KVM control in which a plurality of remote computers, a plurality of display devices, and a plurality of keyboard and mouse devices are present, and 6 display windows are present in the display devices, and 6 remote computer interfaces can be displayed correspondingly.
When detecting that there is an operation of dragging the signal source of the remote computer numbered 1-6 into the first display device, the first keyboard and mouse device is bound with the first display device, and a KVM connection between the first keyboard and mouse device and the remote computer 1 is automatically established, wherein the remote computer 1 may be a remote computer corresponding to a display window located at the upper left corner of the first display device. When detecting that the mouse pointer corresponding to the first keyboard and mouse device moves out of the window corresponding to the remote computer 1 and enters the operation of the window of the remote computer 2, automatically changing to the KVM connection between the first keyboard and mouse device and the remote computer 2. When an operation of dragging the signal source of the remote computer numbered 7 into the first display device to replace the window of the remote computer 2 is detected, the KVM connection of the keyboard and mouse device to the remote computer 7 is automatically changed. When detecting the operation of dragging the window corresponding to the remote computer 7 on the operation interface of the display device, detecting that the window corresponding to the remote computer 7 and the window with the closest distance between the mouse pointer and the window corresponding to the remote computer 7 are the windows corresponding to the remote computer 1, and automatically changing the KVM connection between the first keyboard and mouse device and the remote computer 1. When the operations of moving, overlapping, zooming and the like on the window are detected, and when the window where the mouse pointer is located is overlapped with other windows, the KVM connection between the first keyboard and mouse device and the remote computer corresponding to the uppermost window is automatically changed. When detecting that the signal source of the remote computer with the serial number of 8-13 is dragged into the second display device and the first keyboard and mouse device is bound with the second display device, automatically changing to the KVM connection between the first keyboard and mouse device and the remote computer 8, wherein the remote computer 8 is a remote computer corresponding to a display window located at the upper left corner in the second display device, and the second display device and the first display device may be located at different positions, for example, the first display device may be located in a conference room, the second display device may be located in a hall, and the like. When detecting that the second keyboard and mouse device is connected with the second display device, establishing KVM connection between the second keyboard and mouse device and the remote computer 8, where the remote computer 8 is a remote computer corresponding to a display window located at the upper left corner of the second display device. If the server network is disconnected, the connected remote computer can be controlled through the keyboard and the mouse, and the mouse can be moved to other windows after the server network is connected.
As shown in fig. 5, a KVM control apparatus includes:
the screen-loading module 100 is configured to establish a connection between a computer and a display device, and allocate a signal source of the computer to a corresponding window of the display device.
The connection module 200 is configured to acquire an initial window associated with the keyboard and mouse device, identify a first computer corresponding to the initial window, and connect the keyboard and mouse device with the first computer.
The position detection module 300 is configured to detect whether a mouse pointer corresponding to the keyboard and mouse device moves to an update window.
And a switching module 400, configured to, when it is detected that the mouse pointer moves to the update window, identify a second computer corresponding to the update window, and switch the computer connected to the keyboard and mouse device from the first computer to the second computer.
According to the KVM control device, the computer is connected with the display equipment in a one-to-one corresponding mode by establishing the connection between the computer and the display equipment and distributing the signal source of the computer, the keyboard and mouse equipment is connected with the computer through the preset initial window, the keyboard and mouse equipment is controlled by the computer, when the mouse pointer corresponding to the keyboard and mouse equipment is detected to move to the window corresponding to other computers, the keyboard and mouse equipment is connected to the computer corresponding to the window where the mouse pointer is located, the free switching of multiple computer equipment is achieved, and the operation is time-saving and simple.
Specifically, the screen-on module 100 is further configured to collect a signal source of the computer; transmitting the signal source subjected to the encoding processing to display equipment through a protocol network; decoding the signal source, and establishing the connection between the computer and the display equipment; and distributing the signal source of the computer to the corresponding window of the display device.
The KVM control device also comprises a control module, wherein the control module is used for monitoring keyboard and mouse events; and controlling the computer connected with the keyboard and mouse equipment through a USB keyboard and mouse protocol according to the keyboard and mouse event.
The position detection module 300 is further configured to listen for keyboard and mouse events; acquiring keyboard and mouse event associated data and acquiring a coordinate parameter of a mouse pointer; and judging whether the mouse pointer moves to the update window or not by comparing the position parameter of the initial window with the coordinate parameter of the mouse pointer.
The connection module 200 is further configured to establish connections between the plurality of keyboard and mouse devices and the display device simultaneously when there are a plurality of sets of keyboard and mouse devices, and establish connections between the keyboard and mouse devices and corresponding computers corresponding to windows where the mouse pointers are located, respectively.
The switching module 400 is further configured to, when detecting a window operation, acquire a target window where a keyboard and mouse pointer is located when the window operation is completed, identify a computer corresponding to the target window, and switch a computer connected to the keyboard and mouse device from a second computer to the computer corresponding to the target window, where the window operation includes window dragging, window replacement, window superimposition, window movement, and window scaling.
The switching module 400 is further configured to, when there are multiple display devices and an operation of switching a mouse pointer of a keyboard and mouse device among the multiple display devices is detected, establish a connection between the keyboard and mouse device and the display device where the mouse pointer is located after the switching action is completed, according to the display device where the mouse pointer is located after the switching action is completed.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the KVM control method when executing the program.
The computer device specifically comprises a processor, a memory, a network interface, an input device and a display screen which are connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the KVM control method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the KVM control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the above-described arrangements are merely part of the arrangements associated with the present application and do not constitute a limitation on the computing devices to which the present application may be applied, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the KVM control apparatus provided herein may be implemented in the form of a computer program, and the computer program may be run on a computer device. The memory of the computer device may store various program modules constituting the KVM control apparatus, such as the screen-up module 100, the connection module 200, the position detection module 300, and the switching module 400 shown in fig. 5. The computer program constituted by the respective program modules causes the processor to execute the steps in the KVM control method of the respective embodiments of the present application described in the present specification.
For example, the computer device may perform step S200 through the upper screen module 100 in the KVM control apparatus as shown in fig. 5; the computer device may perform step S400 through the connection module 200; the computer device may perform step S600 through the location detection module 300; the computer device may perform step S800 through the switching module 400.
According to the computer equipment for realizing the KVM control method, the connection between the computer and the display equipment is established, the signal source of the computer is distributed to enable the computer to be connected with the display windows in a one-to-one correspondence mode, the connection between the keyboard and mouse equipment and the computer is established through the preset initial window, the control of the keyboard and mouse equipment on the computer is realized, when the mouse pointer corresponding to the keyboard and mouse equipment is detected to move to the window corresponding to the other computer, the keyboard and mouse equipment is connected to the computer corresponding to the window where the mouse pointer is located, the free switching of a plurality of computer equipment is realized, and the operation is time-saving and simple.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a KVM control method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing associated hardware to execute, and the program of the KVM control method may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
According to the computer-readable storage medium for realizing the KVM control method, the connection between the computer and the display device is established, the signal source of the computer is distributed to enable the computer to be connected with the display window in a one-to-one correspondence mode, the connection between the keyboard and mouse device and the computer is established through the preset initial window, the control of the keyboard and mouse device on the computer is realized, when the mouse pointer corresponding to the keyboard and mouse device is detected to move to the window corresponding to the other computer, the keyboard and mouse device is connected to the computer corresponding to the window where the mouse pointer is located, the free switching of a plurality of computer devices is realized, and the operation is time-saving and simple.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A KVM control method is characterized by comprising the following steps:
establishing connection between a computer and display equipment, and distributing a signal source of the computer to a corresponding window of the display equipment;
acquiring an initial window associated with a keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device with the first computer;
detecting whether a mouse pointer corresponding to the keyboard and mouse equipment moves to an update window or not;
when the mouse pointer is detected to move to the updating window, identifying a second computer corresponding to the updating window, and switching the computer connected with the keyboard and mouse equipment from the first computer to the second computer;
the method further comprises the following steps:
when a plurality of sets of keyboard and mouse equipment exist, simultaneously establishing the connection between the plurality of sets of keyboard and mouse equipment and the display equipment, and respectively establishing the connection between the keyboard and mouse equipment and a corresponding computer of a window where a corresponding mouse pointer is located;
when a plurality of mouse pointers appear in the same window, a plurality of sets of keyboard and mouse devices corresponding to the mouse pointers control a computer corresponding to the window, and the computer is controlled according to the time sequence of keyboard and mouse events collected by the keyboard and mouse devices.
2. The KVM control method of claim 1, wherein the step of establishing a connection between a computer and a display device, and assigning a signal source of the computer to a corresponding window of the display device comprises:
collecting a signal source of a computer;
sending the signal source subjected to coding processing to display equipment through a protocol network;
decoding the signal source, and establishing the connection between the computer and the display equipment;
and distributing the signal source of the computer to the corresponding window of the display equipment.
3. The KVM control method of claim 1, wherein the steps of obtaining an initial window associated with a keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device to the first computer further comprise:
monitoring a keyboard and mouse event;
and controlling a computer connected with the keyboard and mouse equipment through a USB keyboard and mouse protocol according to the keyboard and mouse event.
4. The KVM control method of claim 1, wherein the step of detecting whether the mouse pointer corresponding to the keyboard and mouse device moves to the update window comprises:
monitoring a keyboard and mouse event and collecting the keyboard and mouse event associated data to obtain the coordinate parameter of the mouse pointer;
and judging whether the mouse pointer moves to the update window or not by comparing the position parameter of the initial window with the coordinate parameter of the mouse pointer.
5. The KVM control method of claim 1, wherein the step of identifying a second computer corresponding to the update window when the mouse pointer is detected to move to the update window, and switching the computer connected to the keyboard and mouse device from the first computer to the second computer further comprises:
when window operation is detected, a target window where the keyboard and mouse pointer is located when the window operation is completed is obtained, a computer corresponding to the target window is identified, the computer connected with the keyboard and mouse device is switched to the computer corresponding to the target window from the second computer, and the window operation comprises window dragging, window replacement, window overlapping, window moving and window zooming.
6. The KVM control method of claim 1, wherein the step of identifying a second computer corresponding to the update window when the mouse pointer is detected to move to the update window, and switching the computer connected to the keyboard and mouse device from the first computer to the second computer further comprises:
when a plurality of display devices exist and the operation of switching the mouse pointer of the keyboard and mouse device among the plurality of display devices is detected, the connection between the keyboard and mouse device and the display device where the mouse pointer is located after the switching action is completed is established according to the display device where the mouse pointer is located after the switching action is completed.
7. A KVM control system, comprising:
the screen-loading module is used for establishing connection between a computer and display equipment and distributing a signal source of the computer to a corresponding window of the display equipment;
the connecting module is used for acquiring an initial window associated with the keyboard and mouse device, identifying a first computer corresponding to the initial window, and connecting the keyboard and mouse device with the first computer;
the position detection module is used for detecting whether a mouse pointer corresponding to the keyboard and mouse equipment moves to an update window or not;
the switching module is used for identifying a second computer corresponding to the updating window and switching the computer connected with the keyboard and mouse equipment from the first computer to the second computer when the mouse pointer is detected to move to the updating window;
the connection module is also used for establishing the connection between a plurality of sets of keyboard and mouse equipment and the display equipment simultaneously when the plurality of sets of keyboard and mouse equipment exist, and respectively establishing the connection between the keyboard and mouse equipment and a corresponding computer of a window where a corresponding mouse pointer is located;
the KVM control system is further used for controlling the computers corresponding to the windows through the sets of keyboard and mouse devices corresponding to the mouse pointers when the mouse pointers appear in the same window, and controlling the computers according to the time sequence of the keyboard and mouse events collected by the keyboard and mouse devices.
8. The KVM control system of claim 7, wherein the screen-up module is further configured to collect a signal source of a computer; sending the signal source subjected to coding processing to display equipment through a protocol network; decoding the signal source, and establishing the connection between the computer and the display equipment; and distributing the signal source of the computer to the corresponding window of the display equipment.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the KVM control method according to any of claims 1-6 are implemented when the program is executed by the processor.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, carries out the steps of the KVM control method according to any of the claims 1 to 6.
CN201711214525.5A 2017-11-28 2017-11-28 KVM control method, device, storage medium and computer equipment Active CN107908296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711214525.5A CN107908296B (en) 2017-11-28 2017-11-28 KVM control method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711214525.5A CN107908296B (en) 2017-11-28 2017-11-28 KVM control method, device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107908296A CN107908296A (en) 2018-04-13
CN107908296B true CN107908296B (en) 2021-03-26

Family

ID=61847834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711214525.5A Active CN107908296B (en) 2017-11-28 2017-11-28 KVM control method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107908296B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312125A (en) * 2021-04-30 2021-08-27 北京仁光科技有限公司 Multi-window adjusting method, system, readable storage medium and electronic equipment

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595140B (en) * 2018-05-09 2021-07-23 歌尔光学科技有限公司 Method and device for displaying multi-display content and electronic equipment
CN108874166B (en) * 2018-06-15 2021-08-03 西安微电子技术研究所 KVM controller based on FPGA and PS2 protocol
CN109117042B (en) * 2018-07-26 2021-07-20 深圳市富途网络科技有限公司 Financial and newspaper information display method for stock trading system
TWI729507B (en) * 2018-09-28 2021-06-01 宏正自動科技股份有限公司 Switch device and switch system and the methods thereof
CN109388257A (en) * 2018-09-30 2019-02-26 北京淳中科技股份有限公司 Control switching method, device and KVM switch
CN109343810A (en) * 2018-09-30 2019-02-15 北京淳中科技股份有限公司 Control switching method, device and KVM switch
CN109491527B (en) * 2018-11-15 2022-10-21 威创集团股份有限公司 Switching method and system of remote input equipment
CN110209294B (en) * 2019-06-10 2020-10-09 威创集团股份有限公司 Mouse control method and system and KVM system
CN110286825B (en) * 2019-06-26 2020-09-08 西南民族大学 Mechanical full-automatic mouse operating device based on machine vision
CN113419651B (en) * 2021-06-17 2022-03-18 深圳市秦安科技有限公司 Multi-window double-screen switching method and system, intelligent terminal and computer readable storage medium
CN113434452A (en) * 2021-08-26 2021-09-24 统信软件技术有限公司 Hardware equipment sharing method, system, computing equipment and storage medium
CN114296566A (en) * 2021-12-28 2022-04-08 威创集团股份有限公司 Method, system, equipment and medium for displaying mouse on spliced wall
CN114721529B (en) * 2022-03-30 2022-11-29 四川交子纪元数字信息技术有限公司 Software compatibility control method and system based on artificial intelligence and cloud platform
CN117369682A (en) * 2022-06-30 2024-01-09 华为技术有限公司 Input control method, electronic equipment and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101228515A (en) * 2005-04-12 2008-07-23 贝尔金国际公司 Apparatus and system for managing multiple computers
CN101739137A (en) * 2008-11-05 2010-06-16 北京广利核***工程有限公司 KVM device for realizing quick switching
CN101853086A (en) * 2010-05-06 2010-10-06 广东威创视讯科技股份有限公司 Computer matching display system as well as desktop control switcher and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930447B2 (en) * 2008-10-17 2011-04-19 International Business Machines Corporation Listing windows of active applications of computing devices sharing a keyboard based upon requests for attention

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101228515A (en) * 2005-04-12 2008-07-23 贝尔金国际公司 Apparatus and system for managing multiple computers
CN101739137A (en) * 2008-11-05 2010-06-16 北京广利核***工程有限公司 KVM device for realizing quick switching
CN101853086A (en) * 2010-05-06 2010-10-06 广东威创视讯科技股份有限公司 Computer matching display system as well as desktop control switcher and method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312125A (en) * 2021-04-30 2021-08-27 北京仁光科技有限公司 Multi-window adjusting method, system, readable storage medium and electronic equipment
CN113312125B (en) * 2021-04-30 2022-11-25 北京仁光科技有限公司 Multi-window adjusting method, system, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107908296A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107908296B (en) KVM control method, device, storage medium and computer equipment
CN110703966A (en) File sharing method, device and system, corresponding equipment and storage medium
CN110147256B (en) Multi-screen interaction method and device
US10254950B2 (en) Display method of terminal device and terminal device
CN106610784B (en) Control method and system for multi-system touch screen
CN106990908B (en) Local touch shielding method, device, system, equipment and storage medium
CN106161763B (en) Control method and device and electronic equipment
US9801146B2 (en) Terminal and synchronization control method among terminals
CN108769175B (en) Remote real machine access control method and device, storage medium and electronic equipment
US8943373B1 (en) Keyboard, video and mouse switch identifying and displaying nodes experiencing a problem
KR20180048927A (en) Method, apparatus and storage medium for controlling a screen between terminals
CN113590146A (en) Server and container upgrading method
CN105630345B (en) A kind of method and apparatus controlling display direction
CN111813700B (en) Monitoring data display method and device
CN116991519A (en) Display control method and electronic equipment
CN111352552A (en) Application login method and device, electronic equipment and storage medium
TW201506787A (en) Electronic device and inputting managemtne method thereof
CN104363394B (en) The treating method and apparatus of the multimedia resource of video wall
CN106648729B (en) Application freezing method and system
CN107197345A (en) Remote control interface collocation method and device
CN104571583A (en) Method and device for switching KVM (Keyboard Video Mouse)
CN104363439A (en) Information processing method and electronic device
CN113467866A (en) Processing method and device
CN113938651A (en) Monitoring method, monitoring system, monitoring device and storage medium for panoramic video interaction
CN113760169A (en) Control method and control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 518051 R & D building 1601, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16th floor, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 518051 floor 2, block C, office building, Hanchuang new garden, 16 Langshan Road, Nanshan District, Shenzhen, Guangdong, 2

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder