CN112462955A - Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat - Google Patents

Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat Download PDF

Info

Publication number
CN112462955A
CN112462955A CN202110098071.XA CN202110098071A CN112462955A CN 112462955 A CN112462955 A CN 112462955A CN 202110098071 A CN202110098071 A CN 202110098071A CN 112462955 A CN112462955 A CN 112462955A
Authority
CN
China
Prior art keywords
output node
seat
main output
nodes
main
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
CN202110098071.XA
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.)
Beijing Digibird Technology Co ltd
Original Assignee
Beijing Digibird 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 Beijing Digibird Technology Co ltd filed Critical Beijing Digibird Technology Co ltd
Priority to CN202110098071.XA priority Critical patent/CN112462955A/en
Publication of CN112462955A publication Critical patent/CN112462955A/en
Pending legal-status Critical Current

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
    • G06F3/0383Signal control means within the pointing device
    • 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/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to the technical field of electronic information and communication, and particularly relates to a multi-output node control method, system and equipment of a distributed KVM (keyboard, mouse) seat, aiming at solving the problems that a keyboard and mouse cannot be used and the implementation efficiency is low due to the fault of a fixed main output node in the seat of the existing distributed KVM seat system. The system method comprises the steps of obtaining seat configuration information corresponding to each output node of a current seat; selecting one of the output nodes as a main output node through a preset selection rule by combining the agent configuration information; detecting whether heartbeats exist between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes by the main output node and triggering corresponding seat control actions; otherwise, selecting a new main output node. The invention improves the convenience of seat keyboard and mouse control of the distributed KVM seat system and improves the implementation efficiency of the KVM seat system.

Description

Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat
Technical Field
The invention belongs to the technical field of electronic information and communication, and particularly relates to a multi-output node control method, a system and equipment for a distributed KVM (keyboard video mouse) seat.
Background
The distributed KVM (keyboard Video mouse) seat system mainly comprises input nodes, output nodes and a switch, wherein the output nodes are connected with a display, a plurality of output nodes form a seat, a keyboard mouse is connected to one of the output nodes, and a set of keyboard mouse is used for controlling and managing signal sources on a plurality of screens.
A typical distributed KVM agent is shown in fig. 3, an output node connected to a keyboard and a mouse (keyboard and mouse) is responsible for controlling the movement of the mouse of the entire agent, and the output node determines which display the current mouse is displayed on, and informs other output nodes of which position on the display the current mouse is displayed on. When the upper computer software configures the seat, the output node connected with the keyboard and mouse is designated as the main output node, and the keyboard and mouse can only be connected to the box to control the seat.
This brings great trouble to the field implementation, and the implementer must remember which output nodes are the main nodes so that the keyboard and mouse can be connected to the main output nodes to normally control the seats; moreover, if the main output node fails, the whole seat cannot be normally controlled, and even if the keyboard and mouse are connected to other output nodes of the seat, the keyboard and mouse cannot be used for the purpose. Based on this, the invention provides a multi-output node control method of a distributed KVM (keyboard video mouse) seat.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problems that a keyboard and a mouse cannot be used and the implementation efficiency is low due to the failure of a fixed main output node in the seat of the existing distributed KVM seat system, the first aspect of the present invention provides a multi-output node control method for a distributed KVM seat, which is applied to the distributed KVM seat system, the system includes an input node, an output node, a switch, and an upper computer, the plurality of output nodes form one seat, and each seat is provided with a set of keyboard and a mouse, and the multi-output node control method is characterized by comprising the following steps:
step S10, obtaining the seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
step S20, combining the agent configuration information, selecting one of the output nodes as a main output node through a preset selection rule;
step S30, detecting whether heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes by the main output node and triggering corresponding seat control actions; otherwise, selecting a new main output node.
In some preferred embodiments, the agent configuration information is sent from an upper computer to each output node, and the agent configuration information received by each output node carries node information of all output nodes of the current agent seat; the node information includes an IP address.
In some preferred embodiments, in step S20, one of the output nodes is selected as the main output node according to a preset selection rule, where the method includes:
each output node sends a request for inquiring the main output node to other output nodes, and if the main output node exists, the selection is finished; if the reply of the main output node is not received within the set time, all the output nodes send main output node confirmation requests to the output node with the minimum IP address according to the principle of the minimum IP address, if the output node with the minimum IP address works normally, the output node with the minimum IP address confirms responses to the initiated output node after receiving the confirmation requests, the output node with the minimum IP address is identified as the main output node, and meanwhile, the output node with the minimum IP address also broadcasts a notice that the node is the main output node to other nodes; and if the output node with the minimum IP address works abnormally and other output nodes do not receive responses within the set time, continuing to select the output node according to the principle that the IP address is the second smallest until the main output node is selected.
In some preferred embodiments, in step S30, it is detected whether there is a heartbeat between the master output node and other output nodes of the current seat, and if so, the master output node receives the keyboard and mouse data of the local node and other output nodes and triggers a corresponding seat control action; otherwise, selecting a new main output node, wherein the method comprises the following steps:
step S31, whether the current output node is the main output node is sequentially judged, if yes, step S32 is executed, and if not, step S34 is executed;
step S32, detecting whether the heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes and triggering corresponding seat control actions, and after triggering, executing the step circularly; otherwise, executing step S33;
step S33, inquiring whether a new main output node exists, if so, converting the node into a non-main output node, detecting whether heartbeat exists between the node and the new main output node, if so, sending corresponding keyboard and mouse data to the new main output node, and jumping to the step S31; otherwise, selecting a new main output node;
and step S34, detecting whether the current output node has heartbeat with the main output node, if yes, sending the corresponding keyboard and mouse data to the main output node, otherwise, selecting a new main output node.
In a second aspect of the present invention, a multi-output node control system of a distributed KVM agent is provided, the system comprising: the system comprises an information acquisition module, a main output node selection module and a heartbeat detection module;
the information acquisition module is configured to acquire seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
the main output node selection module is configured to select one of the output nodes as a main output node through a preset selection rule in combination with the agent configuration information;
the heartbeat detection module is used for detecting whether heartbeats exist between the main output node and other output nodes of the current seat, and if so, the main output node receives keyboard and mouse data of the main output node and other output nodes and triggers corresponding seat control actions; otherwise, a new main output node is selected again.
In some preferred embodiments, the main output node selection module selects one of the output nodes as the main output node according to a preset selection rule, and the method includes:
each output node sends a request for inquiring the main output node to other output nodes, and if the main output node exists, the selection is finished; if the reply of the main output node is not received within the set time, all the output nodes send main output node confirmation requests to the output node with the minimum IP address according to the principle of the minimum IP address, if the output node with the minimum IP address works normally, the output node with the minimum IP address confirms responses to the initiated output node after receiving the confirmation requests, the output node with the minimum IP address is identified as the main output node, and meanwhile, the output node with the minimum IP address also broadcasts a notice that the node is the main output node to other nodes; and if the output node with the minimum IP address works abnormally and other output nodes do not receive responses within the set time, continuing to select the output node according to the principle that the IP address is the second smallest until the main output node is selected.
In a third aspect of the present invention, a multi-output node control device of a distributed KVM agent is provided, including: at least one processor; and a memory communicatively coupled to at least one of the processors; wherein the memory stores instructions executable by the processor for execution by the processor to implement the multi-output node control method of distributed KVM agents described above.
In a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions for being executed by the computer to implement the multi-output node control method for distributed KVM agents described above.
The invention has the beneficial effects that:
the invention improves the convenience of seat keyboard and mouse control of the distributed KVM seat system and improves the implementation efficiency of the KVM seat system. In the distributed KVM seat system, the output nodes do not have the fixed main output nodes and non-main output nodes, when the output node of a certain connecting keyboard mouse fails, a new main output node is reselected through a selection rule, the output nodes of other connecting keyboard mice can still control the seat, and the influence caused by the fault of the output node is reduced; meanwhile, the main output node and the non-main upper output node do not need to be distinguished by implementing personnel, great convenience is brought to system implementation, and implementation efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
FIG. 1 is a flow chart illustrating a method for controlling multiple output nodes of a distributed KVM agent according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary configuration of a multi-output node control system for a distributed KVM agent according to one embodiment of the present invention;
FIG. 3 is a diagram of an example organization of a typical distributed KVM agent system according to one embodiment of the present invention;
FIG. 4 is an exemplary diagram of a keyboard and mouse data flow forwarding process according to one embodiment of the invention;
FIG. 5 is an exemplary diagram of a specific workflow of an output node of one embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The invention discloses a multi-output node control method of a distributed KVM (keyboard, video and mouse) seat, which is applied to a distributed KVM seat system, the system comprises input nodes, output nodes, a switch and an upper computer, a plurality of output nodes form a seat, and each seat is provided with a set of keyboard and mouse, and the multi-output node control method is characterized by comprising the following steps as shown in figure 1:
step S10, obtaining the seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
step S20, combining the agent configuration information, selecting one of the output nodes as a main output node through a preset selection rule;
step S30, detecting whether heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes by the main output node and triggering corresponding seat control actions; otherwise, selecting a new main output node.
In order to more clearly describe the multi-output node control method of the distributed KVM agent of the present invention, the following describes the steps of the method embodiment of the present invention in detail with reference to the accompanying drawings.
Step S10, obtaining the seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
in this embodiment, each output node receives agent configuration information sent by the upper computer, where the configuration information carries node information of all the output nodes of an agent, such as an IP address. Wherein, the host computer is connected with the switch.
Step S20, combining the agent configuration information, selecting one of the output nodes as a main output node through a preset selection rule;
in this embodiment, one of the output nodes of the current seat is selected as a main output node, and the specific process of the selection is as follows:
each output node sends a request for inquiring the main output node to other output nodes, and if the main output node exists, the selection is finished; if the reply of the main output node is not received within the set time, all output nodes send a main output node confirmation request to the output node with the minimum IP address according to the principle of minimum IP address, if the output node with the minimum IP address works normally, the output node with the minimum IP address confirms a response to the initiated output node after receiving the confirmation request, the output node with the minimum IP address is identified as the main output node, meanwhile, the output node with the minimum IP address is identified to broadcast a notice that the node is the main output node to other nodes, and all other output nodes can be ensured to receive the information of the current main output node in time; and if the output node with the minimum IP address works abnormally and other output nodes do not receive responses within the set time, continuing the selection process according to the principle that the IP address is the second smallest until the main output node is selected.
Step S30, detecting whether heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes by the main output node and triggering corresponding seat control actions; otherwise, selecting a new main output node.
In this embodiment, the master output node is responsible for determining the mouse range of the entire seat and triggering the seat control action, that is, the master output node needs to process the keyboard and mouse data of the keyboard and mouse (keyboard and mouse) device connected to the master output node and also needs to process the keyboard and mouse data forwarded by the output nodes connected to the keyboard and mouse (for example, through the network), so that each output node can connect the keyboard and mouse and control the function of the seat; the other output nodes are only responsible for identifying the keyboard and mouse devices and forwarding the data of the keyboard and mouse devices (namely the data of the keyboard and the mouse) to the main output node. In the present invention, the flow of keyboard and mouse data is shown by the dotted line in FIG. 4.
In the operation process of the KVM agent system of the present invention, the primary output node and other output nodes periodically detect the heartbeat, and if the primary output node fails (e.g., network disconnection), the other output nodes select and generate a new primary output node according to the selection rule in step S200, and the new primary output node replaces the old primary output node. After the old master output node fails, periodically inquiring current new output master nodes from other output nodes, taking a network disconnection as an example, if the network is not recovered, the old master output node always generates a request for inquiring the new master output node; once the network is recovered, other output nodes can send the information of the current new main output node of the agent to the old main output node, and if the old main output node finds that the new main output node exists, the old main output node is converted into a non-main output node to work; if there is no new primary output node, then it is selected with the other output nodes to generate a new primary output node. As shown in fig. 5, the specific steps are as follows:
step S31, whether the current output node is the main output node is sequentially judged, if yes, step S32 is executed, and if not, step S34 is executed;
step S32, detecting whether the heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes and triggering corresponding seat control actions, and after triggering, executing the step circularly; otherwise, executing step S33;
step S33, inquiring whether a new main output node exists, if so, converting the node into a non-main output node, detecting whether heartbeat exists between the node and the new main output node, if so, sending corresponding keyboard and mouse data to the new main output node, and jumping to the step S31; otherwise, selecting a new main output node;
and step S34, detecting whether the current output node has heartbeat with the main output node, if yes, sending the corresponding keyboard and mouse data to the main output node, otherwise, selecting a new main output node. The selecting method is the same as step S20, and is not described further herein.
Based on the method, the output node of each seat of the distributed KVM seat system can be connected with a keyboard and mouse and controls the seat.
A multi-output node control system of a distributed KVM agent according to a second embodiment of the present invention includes: the system comprises an information acquisition module, a main output node selection module and a heartbeat detection module;
the information acquisition module is configured to acquire seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
the main output node selection module is configured to select one of the output nodes as a main output node through a preset selection rule in combination with the agent configuration information;
the heartbeat detection module is used for detecting whether heartbeats exist between the main output node and other output nodes of the current seat, and if so, the main output node receives keyboard and mouse data of the main output node and other output nodes and triggers corresponding seat control actions; otherwise, a new main output node is selected again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and related description of the system described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
It should be noted that, the multi-output node control system of the distributed KVM agent provided in the foregoing embodiment is only illustrated by the division of the above functional modules, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the modules or steps in the embodiment of the present invention are further decomposed or combined, for example, the modules in the foregoing embodiment may be combined into one module, or may be further split into multiple sub-modules, so as to complete all or part of the above described functions. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not to be construed as limiting the present invention
A third embodiment of the present invention provides a multi-output node control device for a distributed KVM agent, including: at least one processor; and a memory communicatively coupled to at least one of the processors; wherein the memory stores instructions executable by the processor for execution by the processor to implement the multi-output node control method of distributed KVM agents described above.
In a fourth embodiment of the present invention, a computer-readable storage medium is provided, where the computer-readable storage medium stores computer instructions for being executed by the computer to implement the multi-output node control method for distributed KVM agents described above.
It is clear to those skilled in the art that, for convenience and brevity, the specific working processes and descriptions of the storage device and the processing device described above may refer to the corresponding processes in the example of the signing method, and are not described herein again.
Referring now to FIG. 6, there is illustrated a block diagram of a computer system suitable for use as a server in implementing embodiments of the method, system, and apparatus of the present application. The server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for system operation are also stored. The CPU601, ROM 602, and RAM603 are connected to each other via a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), a compact disc read-only memory (CD-ROM), Optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing or implying a particular order or sequence.
The terms "comprises," "comprising," or any other similar term are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (8)

1. A multi-output node control method of a distributed KVM (keyboard, video and mouse) seat is applied to a distributed KVM seat system, the system comprises input nodes, output nodes, a switch and an upper computer, the output nodes form a seat, and each seat is provided with a set of keyboard and mouse, and the multi-output node control method is characterized by comprising the following steps:
step S10, obtaining the seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
step S20, combining the agent configuration information, selecting one of the output nodes as a main output node through a preset selection rule;
step S30, detecting whether heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes by the main output node and triggering corresponding seat control actions; otherwise, selecting a new main output node.
2. The multi-output node control method of the distributed KVM agent according to claim 1, wherein the agent configuration information is sent from the upper computer to each output node, and the agent configuration information received by each output node carries node information of all output nodes of the current agent seat; the node information includes IP information.
3. The method according to claim 1, wherein in step S20, one of the output nodes is selected as the primary output node according to a predetermined selection rule, and the method comprises:
each output node sends a request for inquiring the main output node to other output nodes, and if the main output node exists, the selection is finished; if the reply of the main output node is not received within the set time, all the output nodes send main output node confirmation requests to the output node with the minimum IP address according to the principle of the minimum IP address, if the output node with the minimum IP address works normally, the output node with the minimum IP address confirms responses to the initiated output node after receiving the confirmation requests, the output node with the minimum IP address is identified as the main output node, and meanwhile, the output node with the minimum IP address also broadcasts a notice that the node is the main output node to other nodes; and if the output node with the minimum IP address works abnormally and other output nodes do not receive responses within the set time, continuing to select the output node according to the principle that the IP address is the second smallest until the main output node is selected.
4. The method according to claim 1, wherein in step S30, it is detected whether there is a heartbeat between the primary output node and other output nodes of the current seat, and if so, the primary output node receives keyboard and mouse data of the local output node and other output nodes and triggers corresponding seat control actions; otherwise, selecting a new main output node, wherein the method comprises the following steps:
step S31, whether the current output node is the main output node is sequentially judged, if yes, step S32 is executed, and if not, step S34 is executed;
step S32, detecting whether the heartbeat exists between the main output node and other output nodes of the current seat, if so, receiving keyboard and mouse data of the main output node and other output nodes and triggering corresponding seat control actions, and after triggering, executing the step circularly; otherwise, executing step S33;
step S33, inquiring whether a new main output node exists, if so, converting the node into a non-main output node, detecting whether heartbeat exists between the node and the new main output node, if so, sending corresponding keyboard and mouse data to the new main output node, and jumping to the step S31; otherwise, selecting a new main output node;
and step S34, detecting whether the current output node has heartbeat with the main output node, if yes, sending the corresponding keyboard and mouse data to the main output node, otherwise, selecting a new main output node.
5. A multi-output node control system for a distributed KVM agent, the system comprising: the system comprises an information acquisition module, a main output node selection module and a heartbeat detection module;
the information acquisition module is configured to acquire seat configuration information corresponding to each output node of the current seat; the agent configuration information comprises an IP address;
the main output node selection module is configured to select one of the output nodes as a main output node through a preset selection rule in combination with the agent configuration information;
the heartbeat detection module is used for detecting whether heartbeats exist between the main output node and other output nodes of the current seat, and if so, the main output node receives keyboard and mouse data of the main output node and other output nodes and triggers corresponding seat control actions; otherwise, a new main output node is selected again.
6. The multi-output node control system of the distributed KVM agent according to claim 5, wherein said primary output node selecting module selects one of the output nodes as the primary output node according to a predetermined selection rule, and the method comprises:
each output node sends a request for inquiring the main output node to other output nodes, and if the main output node exists, the selection is finished; if the reply of the main output node is not received within the set time, all the output nodes send main output node confirmation requests to the output node with the minimum IP address according to the principle of the minimum IP address, if the output node with the minimum IP address works normally, the output node with the minimum IP address confirms responses to the initiated output node after receiving the confirmation requests, the output node with the minimum IP address is identified as the main output node, and meanwhile, the output node with the minimum IP address also broadcasts a notice that the node is the main output node to other nodes; and if the output node with the minimum IP address works abnormally and other output nodes do not receive responses within the set time, continuing to select the output node according to the principle that the IP address is the second smallest until the main output node is selected.
7. A multi-output node control device of a distributed KVM agent, comprising:
at least one processor; and
a memory communicatively coupled to at least one of the processors; wherein the content of the first and second substances,
the memory stores instructions executable by the processor for execution by the processor to implement the multi-output node control method of distributed KVM agents of any of claims 1-4.
8. A computer readable storage medium storing computer instructions for execution by the computer to implement the multi-output node control method of a distributed KVM agent of any of claims 1-4.
CN202110098071.XA 2021-01-25 2021-01-25 Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat Pending CN112462955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110098071.XA CN112462955A (en) 2021-01-25 2021-01-25 Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110098071.XA CN112462955A (en) 2021-01-25 2021-01-25 Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat

Publications (1)

Publication Number Publication Date
CN112462955A true CN112462955A (en) 2021-03-09

Family

ID=74802282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110098071.XA Pending CN112462955A (en) 2021-01-25 2021-01-25 Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat

Country Status (1)

Country Link
CN (1) CN112462955A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571452A (en) * 2012-02-20 2012-07-11 华为技术有限公司 Multi-node management method and system
CN108874171A (en) * 2017-05-11 2018-11-23 广州魅视电子科技有限公司 A kind of distribution KVM attends a banquet cooperation management system
CN108959167A (en) * 2018-07-03 2018-12-07 威创集团股份有限公司 A kind of seat system management method, device and seat system
CN110365854A (en) * 2019-07-01 2019-10-22 辽宁载德科技有限公司 One kind is attended a banquet management system
CN110752955A (en) * 2019-10-30 2020-02-04 北京计算机技术及应用研究所 Seat invariant fault migration system and method
CN111479132A (en) * 2019-07-15 2020-07-31 广州湖森电子科技有限公司 Seat cooperation control system, seat cooperation system, control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571452A (en) * 2012-02-20 2012-07-11 华为技术有限公司 Multi-node management method and system
CN108874171A (en) * 2017-05-11 2018-11-23 广州魅视电子科技有限公司 A kind of distribution KVM attends a banquet cooperation management system
CN108959167A (en) * 2018-07-03 2018-12-07 威创集团股份有限公司 A kind of seat system management method, device and seat system
CN110365854A (en) * 2019-07-01 2019-10-22 辽宁载德科技有限公司 One kind is attended a banquet management system
CN111479132A (en) * 2019-07-15 2020-07-31 广州湖森电子科技有限公司 Seat cooperation control system, seat cooperation system, control method and device
CN110752955A (en) * 2019-10-30 2020-02-04 北京计算机技术及应用研究所 Seat invariant fault migration system and method

Similar Documents

Publication Publication Date Title
KR950010833B1 (en) Automated enrollement of a computer system into a service network of computer systems
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN108900388B (en) Method, apparatus, and medium for monitoring network quality
US20190196898A1 (en) Log transmission apparatus and log collection system
CN104301140A (en) Service request responding method, device and system
CN112015654A (en) Method and apparatus for testing
CN104579830A (en) Service monitoring method and device
CN108401168B (en) Conflict resolution method, device, equipment and storage medium
CN113282444B (en) Visualization method and device for debugging business process
CN113138934A (en) Automatic test method, medium, device and computing equipment
CN113987303A (en) Automatic driving log data processing method and device
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN110620806A (en) Information generation method and device
CN112887355B (en) Service processing method and device for abnormal server
US20200028733A1 (en) Method and apparatus for processing information
CN112462955A (en) Multi-output node control method, system and equipment of distributed KVM (keyboard video mouse) seat
CN111324364A (en) Method, device, equipment and storage medium for equipment management
CN112583617A (en) Fault determination method, server, control terminal and storage medium
CN113296911B (en) Cluster calling method, cluster calling device, electronic equipment and readable storage medium
CN109698774A (en) Method and device for monitoring device working condition
CN113032188B (en) Method, device, server and storage medium for determining main server
CN112258116A (en) Position coverage range data updating method of logistics service and related equipment
CN109324802B (en) Method and device for configuring server
CN110908763A (en) Acceptance method, device, equipment and storage medium
CN115865924B (en) Cluster deployment method, device, equipment, medium and product

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210309

RJ01 Rejection of invention patent application after publication