Switching apparatus, method, device of an interactive device and storage medium
By integrating switching and logic circuits inside the server, the target host node can be detected and identified, solving the problems of complex cabling and difficult maintenance in multi-node servers, and achieving efficient and simple multi-node management.
Patent Information
- Application Number
- CN202511350288.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-22
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-09-22
AI Technical Summary
Configuring a separate external management interface for each host node in a multi-node server leads to complex cabling, interface redundancy, and maintenance difficulties.
The server integrates switching circuits and logic circuits. The logic circuits detect the status signals of the host nodes, identify the target host node, and generate switching control signals. The switching circuits are used to establish a communication connection between the interactive device and the target host node.
It enables multi-node servers to maintain the independence of each host node while achieving efficient and simple unified management and operation through a single set of interactive devices, simplifying deployment and maintenance.
Smart Images

Figure CN120848981B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronics, and in particular to a switching device and method for an interactive device, a device, and a storage medium. BACKGROUND
[0002] With the continuous development of Internet technology and server technology, the demand for computing power and storage capacity of data centers is increasing, and multi-node servers have gradually become an important branch direction in the server system. A multi-node server refers to integrating multiple independent host nodes in the same chassis, and each host node can independently run to provide computing or storage services. This architecture not only accommodates more computing resources in a limited space, but also improves the energy efficiency ratio to meet the needs of large-scale deployment.
[0003] In the design of a multi-node server, if an external management interface is configured for each host node individually, it will lead to complex wiring and redundant interfaces, which not only increases the cost, but also brings difficulties in installation and maintenance. Therefore, how to maintain the independence of multiple nodes while achieving simple and efficient management and operation is one of the key problems in the development of multi-node server technology. SUMMARY
[0004] The present application provides a switching device and method for an interactive device, a device, and a storage medium to at least solve the problem of complex wiring, redundant interfaces, and maintenance difficulties caused by individually configuring an external management interface for each host node in related technologies.
[0005] The present application provides a switching device for an interactive device integrated in a server, the server further comprising a plurality of host nodes running independently, the switching device for an interactive device comprising a switching circuit and a logic circuit; a plurality of host node interfaces of the switching circuit are connected one-to-one with a plurality of interactive interfaces of the host nodes, a device interface of the switching circuit is connected with an interactive device, a controlled interface of the switching circuit is connected with an output interface of the logic circuit, and an input interface of the logic circuit is connected with a state detection interface of a plurality of the host nodes; the logic circuit is configured to detect state detection signals of a plurality of the host nodes, identify a target interactive host node, and generate a switching control signal output to a control end of the switching circuit; the switching circuit is configured to establish a communication connection between the interactive device and the target interactive host node in response to the switching control signal.
[0006] The present application also provides a server comprising the above-mentioned switching device for an interactive device, and further comprising a plurality of host nodes.
[0007] The application further provides a switching method of an interactive device, applied to the switching device of the interactive device, and the switching method of the interactive device comprises the following steps of: detecting state detection signals of multiple host nodes; identifying a target interactive host node according to the state detection signals, generating a switching control signal and outputting the switching control signal to a control end of the switching circuit, so that the switching circuit responds to the switching control signal and establishes a communication connection between the interactive device and the target interactive host node.
[0008] The application further provides an electronic device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of the switching method of the interactive device.
[0009] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the switching method of the interactive device.
[0010] The application further provides a computer program product, comprising a computer program, and the computer program is executed by a processor to implement the steps of the switching method of the interactive device.
[0011] According to the application, the switching circuit and the logic circuit are integrated in the server, so that multiple host nodes can share the same set of interactive devices, and the logic circuit can automatically identify a target host according to a state signal of the host node and output a switching control signal, so that the interactive device and the target host node establish a communication connection. The technical problems of complex wiring, interface redundancy and difficult maintenance caused by separately configuring external management interfaces for each host node are solved, and the technical effect of efficiently and simply managing and operating the multiple-node server while maintaining the independence of each host node through a single set of interactive devices is achieved. BRIEF DESCRIPTION OF DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the application, the drawings required in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort.
[0013] Figure 1 A switching device of an interactive device provided by the embodiments of the application.
[0014] Figure 2 A communication connection diagram of a switching device and a host node provided by the embodiments of the application.
[0015] Figure 3Another switching device provided by the embodiment of the present application and a communication connection diagram of the host node.
[0016] Figure 4 A flow chart of a switching method of an interactive device provided by the embodiment of the present application.
[0017] Figure 5 A flow chart of initial switching of a host node provided by the embodiment of the present application.
[0018] Figure 6 A schematic diagram of a graphical interface corresponding to a preset tool provided by the embodiment of the present application.
[0019] Figure 7 A specific implementation flow chart of a switching method provided by the embodiment of the present application. DETAILED DESCRIPTION
[0020] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
[0021] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. The terms "first", "second" and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0022] In order for those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0023] As Figure 1 , Figure 1In the figure, 0, 1, 2 are respectively the host node interfaces corresponding to the keyboard, mouse and display, and 3 is the state detection interface on the host node; 00, 11, 22 are respectively the device end interfaces provided by the server for external connection corresponding to the keyboard, mouse and display. The application provides a switching device for interactive equipment, which is integrated in the server, and the server further comprises a plurality of host nodes running independently. The switching device for interactive equipment comprises a switching circuit and a logic circuit; the plurality of host end interfaces of the switching circuit are connected to the interactive interfaces of the plurality of host nodes one by one, the device end interface of the switching circuit is connected to the interactive equipment, the controlled interface of the switching circuit is connected to the output interface of the logic circuit, and the input interface of the logic circuit is connected to the state detection interface of the plurality of host nodes; the interactive equipment can include but is not limited to at least one of a keyboard, a mouse and a display; the logic circuit is configured to detect the state detection signals of the plurality of host nodes, identify a target interactive host node, and generate a switching control signal output to the control end of the switching circuit; the switching circuit is configured to establish a communication connection between the interactive equipment and the target interactive host node in response to the switching control signal.
[0024] To realize the orderly occupation and switching of the same group of interactive equipment by multiple host nodes, the switching device for interactive equipment is integrated in the server, and a cooperative unit is formed by the switching circuit and the logic circuit: the switching circuit is connected to the interactive interfaces of the plurality of host nodes and the device end interface of the interactive equipment in topology, and the logic circuit is connected to the state detection interfaces of the plurality of host nodes to form a closed loop of state sensing, instruction output and channel switching. In this way, a controllable connection relationship between a group of interactive equipment and a plurality of host end interfaces is physically presented, and the logic circuit uniformly schedules the interactive equipment logically, avoiding the redundancy and complexity caused by the external connection of multiple cables and scattered control, so that the interactive equipment appears as a single entry to the outside and can be directed to a target interactive host node as needed.
[0025] The logic circuit undertakes the functions of discrimination and decision of the device, continuously receives the state detection signals from the state detection interfaces of the plurality of host nodes, and polls and updates the detection according to a preset period; at any time, the logic circuit identifies a target interactive host node capable of establishing a communication connection with the interactive equipment according to the currently collected state detection signals. The identification process does not depend on the external management interface, but directly completes the judgment and selection of the interactive performance of the host node based on the state detection signals, so as to ensure that the identification of the target interactive host node can be updated synchronously when the running state of the host node changes (for example, power on, power off or state switching). Through such continuous state sensing and identification, the switching device realizes the centralized scheduling and on-demand allocation of interactive resources in the system.
[0026] When the target interaction host node is identified, the logic circuit generates a switching control signal and outputs it to the control end of the switching circuit. The switching circuit responds to the switching control signal and reconfigures the connection relationship in it. While maintaining stable connection with the interaction device at the device end interface, it selects one of the multiple host end interfaces corresponding to the target interaction host node to establish a communication path. This communication path covers the interaction data channel between the interaction device and the host node, so that the interaction data generated on the interaction device side is directed to the target interaction host node, and the interaction data output from the target interaction host node side is directed back to the interaction device. No matter what kind of interaction device it is, keyboard, mouse or display, the path from the device end interface to the target interaction host node interaction interface is established and maintained through the switching circuit.
[0027] Among them, the specific implementation of the switching circuit can be a multi-channel selection switch circuit. By configuring a multi-channel switch device between multiple sets of host end interfaces and device end interfaces, the target interaction host node interface is enabled under the action of the switching control signal output by the logic circuit. USB (Universal Serial Bus, Universal Serial Bus) hub circuit, video signal switching circuit or other circuit structures with multi-channel input and single-channel output function can also be used to ensure stable switching and communication connection of the interaction device between different host nodes.
[0028] Under the above closed-loop working mechanism, the switching device realizes exclusive and controllable communication connection between the interaction device and multiple host nodes. The logic circuit ensures accurate and timely identification of the target interaction host node through periodic polling detection. The preset period is negatively correlated with the demand response speed, and the response of the switching circuit to the switching control signal ensures the rapid and stable redirection of the interaction path. Since the device is integrated in the server, the connection relationship between the host end and the interaction device is completed in the machine, reducing the dependence on external management interfaces and external wiring, and simplifying deployment and maintenance from the structure. At the same time, the switching control signal output by the logic circuit is used to drive the switching circuit to execute, which can realize centralized scheduling and allocation of interaction resources without changing the independent running characteristics of each host node, thereby improving the overall human-computer interaction efficiency and usability while maintaining the independence of multiple host nodes.
[0029] As Figure 2In an exemplary embodiment, the state detection interface of the host node and the input interface of the logic circuit are connected through a communication line; the logic circuit is specifically configured to listen to the state detection signals sent by each host node through the communication line, determine the on-line state of each host node according to the on-line signal, determine the target interactive host node according to the pulse coded signal sent by any host node, and generate a switching control signal and output the switching control signal to the control end of the switching circuit when the target interactive host node is on-line; the state detection signal includes an on-line signal for indicating the physical connection state of the host node and a pulse coded signal for identifying a specific host node.
[0030] In the embodiment, the state detection interface of the plurality of host nodes and the input interface of the logic circuit are connected through one and only one communication line, which can adopt a GPIO (General-purpose input / output) signal line (such as Figure 2 GPIO signal line can be used between the central processor and the complex programmable logic device, between the complex programmable logic device and the logic circuit, between the logic circuit and the video switching circuit, and between the logic circuit and the data switching circuit), and carries two types of state detection signals in a time-division multiplexing manner, one type is an on-line signal (stable level) representing the physical connection or ready state of the host, and the other type is a pulse coded signal (such as a regular square wave sequence) for identifying or encoding a specific host number. Physically, the shared communication line can maintain a default level through a pull-up or pull-down resistor when idle; when a host node completes power-on and enters a ready state, the central processor or complex programmable logic device or other driver inside the host node will set the GPIO to a stable high level to indicate that it is on-line; when a switching request needs to be sent, the host will send a pulse coded signal (for example, a square wave signal in the range of 50-200 Hz) at a predetermined frequency while maintaining the on-line state; the number of pulses or the coding format of the square wave signal is used to identify the target interactive host node to be switched to, and the high level is maintained after sending the coded pulse to continue to indicate that it is on-line.
[0031] The logic circuit continuously monitors and samples the communication line, and resolves the continuous line level changes into bit states or pulse coded states through edge detection and timing judgment. To ensure reliable identification of 50-200 Hz square waves, the logic circuit samples the line level at a sampling rate several times higher than the preset frequency of the square wave signal, and counts the number of pulses and measures the pulse period and width by detecting rising edges / falling edges; at the same time, the logic circuit also determines whether there is an out-of-bit situation according to the duration of the low level or high level on the line, for example, when the communication line enters a low level and the low level duration is greater than 2.5 milliseconds (based on the half cycle of a 200 Hz signal, 1 / 200 seconds ÷ 2 = 0.005 seconds ÷ 2 = 0.0025 seconds, i.e. a discrimination threshold of 2.5 ms), the logic circuit can determine that the corresponding host is out of bit, thereby avoiding misjudgment of noise or transient level jump as an effective in-bit signal or pulse coded signal.
[0032] After analyzing the pulse coded signal, the logic circuit maps the pulse count or decoding result to the identification of the target interactive host node, and verifies it together with the in-bit signal state collected, and only when the mapped target interactive host node is in the in-bit state at the same time, the logic circuit generates and outputs the corresponding switching control signal to the control end of the switching circuit, triggering the switching circuit to physically establish a communication path between the interactive device and the target host node; if the target host node is not in bit or the pulse coded signal is incomplete / timeout, the logic circuit suppresses the switching control signal and can feedback the current host node or user through software or state indication, thereby ensuring the certainty and safety of the switching action. The generation and transmission of the switching control signal follow strict timing and confirmation mechanisms to ensure that the data stream of the interactive device is not lost or competitive when the switching circuit reconfigures the channel.
[0033] To improve reliability and anti-interference ability, the working mechanism of the communication line includes multiple robust designs, the logic circuit de-bounces and filters the input signal to filter out short pulse noise, uses window function and timeout judgment to separate each pulse coded transmission, and sets checks on the minimum / maximum width between pulses to prevent errors; at the software level, the host node end only sends pulse coding when the user triggers or explicitly initiates through the local KVM (Keyboard-Video-Mouse Switch) switching tool, to reduce line conflicts, and can use a simple conflict detection and retry strategy (such as timeout retransmission or retransmission). Overall, by time-multiplexing the in-bit signal and the pulse coded signal on a single GPIO line, the logic circuit can perceive the states of multiple host nodes and reliably decode the interactive device switching request with the lowest line and pin overhead, thereby simplifying the hardware connection and reducing the implementation complexity.
[0034] As Figure 3In an exemplary embodiment, the state detection interface of the host node and the input interface of the logic circuit are connected through two communication lines; the logic circuit is specifically configured to listen to the in-place signals sent by each host node through the first communication line, receive the selection signal sent by any host node through the second communication line, determine the target interactive host node according to the selection signal, and generate a switching control signal and output it to the control end of the switching circuit when the target interactive host node is in place.
[0035] In this embodiment, the state detection interface of each host node and the input interface of the logic circuit can be connected through two independent communication lines, wherein the first communication line is used to carry the in-place signals of each host node, and the second communication line is used to carry the selection signal with the identification of the target interactive host node (for example, the first communication line can be a GPIO line (not shown in the figure), and the second communication line can be an I2C (Inter-Integrated Circuit, internal integrated circuit bus) bus or other message type bus). Figure 3 Figure 3 The I2C signal line can be used between the central processor and the complex programmable logic device, between the complex programmable logic device and the logic circuit, and between the logic circuit and the video switching circuit and the data switching circuit. The first communication line reflects the physical connection or readiness state of each host node in the form of single-bit level or multi-channel parallel level, and the second communication line transmits the selection signal containing the target host identification in the form of a message or a command, realizing the separation of the state indication and the selection command channel, and thus distinguishing the switchable state information and the selection information of the target host.
[0036] The logic circuit is specifically configured to process two types of inputs in parallel, continuously listen to and record the in-place signals sent by each host node through the first communication line to maintain the in-place state table, and receive and analyze the selection signal sent by any host node through the second communication line to obtain the identification of the target interactive host node. After receiving the selection signal, the logic circuit does not immediately perform physical switching, but first verifies the target interactive host node in the in-place state table, and only when the target interactive host node is determined to be in place, the logic circuit generates a switching control signal and outputs it to the control end of the switching circuit to trigger the establishment of the path between the interactive device and the target interactive host node; if the target interactive host node is not in place, the logic circuit suppresses the switching control signal to maintain the current communication connection, avoiding switching the interactive device to a host node that is not ready.
[0037] Through the embodiment, the logic circuit can realize accurate identification and safe switching control of the target interactive host node under the architecture of two communication lines with clear division of labor, and then drive the switching circuit to stably establish a reliable communication connection between the interactive device and the target host node.
[0038] In the above two embodiments of the present application, the state detection interface of the host node and the input interface of the logic circuit can be connected by one communication line or two communication lines, and the two embodiments have different effects respectively. Specifically, when connected by one communication line, for example, time division multiplexing is realized through GPIO, the transmission of the in-place signal and the pulse coding signal can be carried at the same time under limited hardware resources, thereby simplifying system wiring and reducing hardware cost, which is suitable for scenarios with a large number of nodes but low signal bandwidth demand; when connected by two communication lines, for example, the in-place signal is transmitted by GPIO and the selection signal is transmitted by I2C, the in-place signal and the selection signal can be independent of each other, avoiding time sequence conflict or signal interference caused by time division multiplexing, which can improve the reliability of communication and the real-time performance of switching response, and is especially suitable for application environments requiring high stability and high precision switching. Therefore, the two methods can be flexibly selected according to different design requirements, taking into account the simplicity and reliability of the system.
[0039] It should be understood that the in-place signal is defined as a high-level signal actively output by the internal circuit of the host node after it completes the startup, and the high-level signal is only effectively output when the host node is in a normal power-on and running state; through this mechanism, it can be ensured that the logic circuit only switches the interactive device to the target interactive host node that is in an actual available state when performing the switching operation, thereby avoiding false switching caused by the host node being physically inserted but not yet completing the power-on startup.
[0040] It is also understood that, to ensure reliable resolution of the selection signal and determinacy of the switching operation, the logic circuit can perform timing and integrity checks when receiving and processing signals on the two communication lines. The on-signal on the first communication line is subjected to debouncing and state retention strategies to avoid transient misjudgment; the selection signal on the second communication line is subjected to frame boundary identification, checking and timeout determination to ensure error-free identification resolution; before generating the switching control signal, the logic circuit can perform switching preparation and handshake procedures to prevent concurrent switching conflicts, and when necessary, handle selection requests from multiple hosts simultaneously according to preset priority or arbitration rules. Specifically, in the running process of the multi-host node, multiple host nodes may send selection signals through the second communication line almost simultaneously, requesting to switch the interactive device to different target interactive host nodes. To avoid competition or incorrect switching of the logic circuit, the logic circuit can introduce preset priority or arbitration rules at the design time. For example, one priority rule is to set the priority according to the physical serial number of the host node (host node 1 > host node 2 > host node 3 > …), and when multiple selection signals are detected simultaneously, the logic circuit prioritizes the selection request of the host node with the earlier serial number. Another way is to use a time arbitration rule, that is, the logic circuit records the arrival time stamp of the selection signal, and when a conflict occurs, the selection signal that arrives earliest is prioritized, and subsequent requests are queued and waiting. An administrator node priority can also be set, for example, a certain host node is designated as the management node, whose selection signal is always prioritized over other nodes, so as to ensure that in a specific scenario, the operation and maintenance personnel can take over the control right of the interactive device at any time. Through the above priority or arbitration rules, even if concurrent selection requests occur, the logic circuit can determine the target interactive host node in an orderly manner, ensuring that the switching process of the interactive device is stable and reliable, and that random or incorrect switching results do not occur.
[0041] In one exemplary embodiment, the switching circuit includes: a data switching circuit, whose host-side interface is connected to the data interface of each host node, and whose device-side interface is connected to a keyboard and / or mouse; the interactive device includes a keyboard and / or mouse and a monitor; a video switching circuit, whose host-side interface is connected to the video interface of each host node, and whose device-side interface is connected to a monitor, wherein the interactive interface of the host node includes a data interface and a video interface; the output interface of the logic circuit is connected to the control terminal of the data switching circuit and the control terminal of the video switching circuit respectively, wherein the logic circuit is specifically configured to detect the status detection signals of multiple host nodes, identify the target interactive host node, generate a first switching control signal and output it to the control terminal of the data switching circuit, and generate a second switching control signal and output it to the control terminal of the video switching circuit; the switching control signal includes a first switching control signal and a second switching control signal; the data switching circuit is configured to establish a communication connection between the keyboard and / or mouse and the target interactive host node in response to the first switching control signal; the video switching circuit is configured to establish a communication connection between the monitor and the target interactive host node in response to the second switching control signal.
[0042] In this embodiment, the switching device is physically and logically divided into two functional units: a data switching circuit and a video switching circuit. The former's host-side interface connects to the data interface of each host node, and its device-side interface connects to the keyboard and / or mouse; the latter's host-side interface connects to the video interface of each host node, and its device-side interface connects to the display. The logic circuit acts as the control center, detecting status detection signals from each host node and identifying the target interactive host node. Once the target is determined, the logic circuit generates a first switching control signal to drive the data switching circuit and a second switching control signal to drive the video switching circuit, thereby establishing a communication path between the interactive device and the target interactive host node at the physical level.
[0043] The first and second switching control signals generated by the logic circuit are conceptually independent. When the data switching circuit responds to the first switching control signal, it redirects the data channels for the keyboard and / or mouse, directing keyboard / mouse input and output data to the target interactive host node by selecting or reconstructing the data path between the host and device. When the video switching circuit responds to the second switching control signal, it switches the display signal path, enabling the monitor to receive and display the video output from the target interactive host node. Functionally, these two types of switching process the data interaction channel and video output channel respectively, ensuring the integrity and continuity of their respective signal links, thereby achieving reliable connection establishment for various interactive devices.
[0044] To ensure consistency and user experience of switching, the logical circuit can manage the output timing and execution sequence of the first switching control signal and the second switching control signal. After identifying the target interaction host node and confirming its in-place state, the logical circuit can choose to send control signals to both sets of switching circuits simultaneously to achieve synchronous switching, or can send control signals step by step according to a preset sequence, such as first ensuring display or first ensuring input stable reconnection. During the switching process, the logical circuit suppresses the switching request for the host that is not in place based on the state detection result, avoiding guiding the interaction device to a host that is not ready; and can implement a short timing control or state locking before and after switching to prevent data loss or display abnormalities caused by transient interference during the switching process, ensuring that the data flow and display flow of the interaction device resume normal operation when the switching circuit completes the path reconstruction and reaches a stable state.
[0045] By driving the control of the data switching circuit and the video switching circuit by the first switching control signal and the second switching control signal output by the logical circuit, respectively, the embodiment not only supports unified synchronous switching of the keyboard / mouse and the display, but also supports independent scheduling and strategy control of the two, improving the flexibility and controllability of the system. The structure of the embodiment can meet the complete KVM switching demand of a single target host, and can also realize separate routing of input and display in specific application scenarios, providing more flexible and reliable human-computer interaction switching capability without increasing external interface and wiring complexity.
[0046] On the other hand, the application also provides a server comprising the switching device of the interaction device as described above, and further comprising a plurality of host nodes. In the multi-node server, each host node adopts an independent but identical circuit design, and uniformly provides a set of KVM interfaces (such as 00, 11, 22 three device interfaces respectively connected with keyboard, mouse, display) to the outside, so that a single set of interaction devices can manage and operate multiple host nodes, thereby realizing efficient and simple multi-node control. Figure 1
[0047] As Figure 4 The embodiment of the application provides a switching method of an interaction device, which is described in detail in combination with the execution process of the switching method of the interaction device. The switching method of the interaction device is applied to the switching device of the interaction device as described above, and comprises the following steps:
[0048] S11: detecting state detection signals of a plurality of host nodes.
[0049] In this step, the logic circuit continuously monitors the status detection signals from multiple host nodes to obtain the real-time running status of each host node. The status detection signals include a set signal indicating the physical connection or started state of the host node, and a selection signal (such as a pulse coded signal or a message signal) identifying a specific host node or a switching request. The logic circuit samples, debounces, and times the signals to ensure the reliability of the set signal and the selection signal, and to avoid misjudgment of transient interference or unstarted nodes.
[0050] Through analysis of the status detection signals, the logic circuit can establish a set state table of each host node, reflecting whether each host node is in an interactive state. On this basis, the logic circuit can distinguish the state changes of different host nodes and identify which host nodes are started and can receive the input / output of the interactive device in time, providing accurate basis for subsequent generation of switching control signals.
[0051] S12: According to the status detection signal, the target interactive host node is identified, and the switching control signal is generated and output to the control end of the switching circuit, so that the switching circuit responds to the switching control signal to establish a communication connection between the interactive device and the target interactive host node.
[0052] Specifically, according to the above obtained set state and selection signal of each host node, the target interactive host node is identified. The logic circuit judges whether the selected target host node is in an effective set state. Only when the target node has been started and can interact, the logic circuit generates the corresponding switching control signal, so as to ensure that the interactive device will not be switched to a host node that has not been ready, and to ensure the safety and reliability of the operation.
[0053] The logic circuit outputs the generated switching control signal to the control end of the switching circuit, so that the switching circuit establishes a communication path between the interactive device and the target host node according to the control signal. For keyboard and mouse, the data switching circuit redirects the input / output channel; for display, the video switching circuit establishes a display signal path. Through such identification and control signal driving, fast and stable connection between the interactive device and the target host node can be achieved, thereby providing reliable and efficient human-computer interaction switching in a multi-host environment.
[0054] In an exemplary embodiment, the state detection interface of the host node and the input interface of the logic circuit are connected through a communication line; the target interactive host node is identified according to the state detection signal, including: analyzing the level duration of the state detection signal; when the level duration is greater than a preset time, determining that the state detection signal is an in-place signal; when the level duration is not greater than the preset time and the level change rule of the state detection signal conforms to a square wave signal of a preset frequency, determining that the state detection signal is a pulse coded signal; the state detection signal includes an in-place signal for indicating the physical connection state of the host node and a pulse coded signal for identifying a specific host node; the preset time is determined according to the preset frequency of the square wave signal; and the target interactive host node is determined according to the in-place signal and the pulse coded signal.
[0055] In the embodiment, the state detection interfaces of the plurality of host nodes and the input interface of the logic circuit are connected through one communication line, which simultaneously carries two types of state detection signals: an in-place signal for indicating the physical connection and startup state of the host node, and a pulse coded signal for identifying a specific host node or transmitting a switching request. By multiplexing the two types of signals on the same communication line, the perception of the states of the host nodes and the transmission of the switching request of the interactive device can be realized while reducing the number of lines and pins, thereby simplifying the hardware wiring and reducing the cost.
[0056] The logic circuit continuously samples and times the level signal on the communication line, and distinguishes the signal types by analyzing the level duration. When the sampled level duration is greater than a preset time, the logic circuit determines that the level is a stable in-place signal, thereby confirming that the corresponding host node has completed the startup and is in an interactive state. This determination mechanism ensures that even if there is a short-term interference or pulse jump on the line, the host node that is not ready will not be incorrectly determined as in-place, thereby ensuring the safety of the interactive device switching.
[0057] When the sampled level duration is not greater than the preset time and forms a square wave sequence conforming to a preset frequency, the logic circuit identifies the signal as a pulse coded signal for transmitting the identification of the target interactive host node. The preset time is determined by the preset frequency of the square wave signal, that is, the logic circuit sets a threshold (i.e., the preset time) according to the square wave period and frequency to distinguish the pulse signal from the in-place signal. By decoding the number of pulses or the pulse sequence, the logic circuit can accurately identify the switching request sent by the user or the host node, and determine the target interactive host node that the user wants to switch to.
[0058] In combination with the on-line signal and the pulse coded signal, the logic circuit can reliably identify the target interactive host node in the environment. Specifically, first, the on-line signal confirms which host nodes have been started and can be switched, and second, the pulse coded signal determines the specific target node number. The logic circuit then uses the identification result to generate a switching control signal output to the switching circuit, so that the interactive device establishes a communication connection with the target interactive host node. This mechanism based on level duration analysis and pulse coding decoding realizes multi-signal bearing on a single communication line and ensures the accuracy and stability of the interactive device switching.
[0059] In an exemplary embodiment, determining the target interactive host node according to the on-line signal and the pulse coded signal includes: determining the valid on-line state of each host node according to the on-line signal; determining the target interactive host node from the host nodes in the valid on-line state by analyzing the number of continuous square waves in the pulse coded signal; and the number of continuous square waves representing the serial number of the target interactive host node.
[0060] In this embodiment, the logic circuit first determines the valid on-line state of each host node according to the on-line signal received on the communication line. Specifically, when a host node outputs a high level and the duration exceeds a preset time, the logic circuit determines it as a valid on-line state, indicating that the host node has completed the start and can normally communicate with the interactive device; otherwise, it is considered as a non-ready state, so that the host node is excluded in the subsequent switching process, ensuring that the interactive device will not be switched to a node that has not started or is not available.
[0061] After completing the on-line state confirmation, the logic circuit analyzes the pulse coded signal. The pulse coded signal is composed of continuous square waves, and the number of each group of continuous square waves corresponds to a specific target interactive host node serial number. The logic circuit determines the final target interactive host node by counting the number of continuous square waves and combining the confirmed valid on-line state table. In this way, even if multiple host nodes send selection requests at the same time, the logic circuit can accurately identify the switchable target node according to the on-line state and the square wave coding.
[0062] As can be seen, the logic circuit of the present embodiment can realize reliable target interactive host node identification. Among them, the on-line signal provides the guarantee of node availability, and the pulse coded signal provides the specific identification information of the target node. After analysis, the logic circuit uses the identified target node information to generate a switching control signal, so that the switching circuit establishes a communication connection between the interactive device and the target host node, realizing the switching of the multi-node interactive device.
[0063] In an exemplary embodiment, the number of continuous square waves in the pulse coded signal is parsed, including: continuously monitoring the level change of the state detection signal, when the level change of the state detection signal is identified to be consistent with a square wave signal of a preset frequency, starting timing and beginning to count the square wave signals; after the last square wave signal ends, if the state detection signal is detected to be maintained at a first preset level and the duration is greater than a preset time, it is determined that the pulse coded signal transmission is completed, and the number of square wave signals counted is taken as the number of continuous square waves.
[0064] In the embodiment, the logic circuit identifies the pulse coded signal by continuously monitoring the level change of the state detection signal. When the level change is detected to be in the form of a square wave of a preset frequency, the logic circuit starts the counting program and begins to count the continuous square wave signals. The frequency and period of the square wave are preset by the system to ensure that they can match the sampling rate of the logic circuit, while avoiding that a short-term interference or noise is misjudged as an effective square wave.
[0065] During the counting process, the logic circuit detects the falling edge of each square wave and accumulates the number of square waves in sequence. The counter is incremented by one for each complete square wave period detected, so as to accurately reflect the number of continuous square waves. In this way, the logic circuit can track the number of square waves during signal transmission and provide a reliable data basis for the subsequent identification of the target interactive host node.
[0066] After the last square wave signal ends, the logic circuit continues to monitor the level of the state detection signal and determines whether the signal is maintained at a first preset level and the duration is greater than a preset threshold. The continuous high level stage indicates that the pulse coded signal has completed transmission and no new square wave signal is accessed, and the logic circuit confirms the end of the pulse coded signal transmission accordingly, thereby avoiding false accumulation of the number of square waves due to line jitter or subsequent interference.
[0067] After the pulse coded signal is determined to be completed, the logic circuit takes the number of continuous square waves counted as the effective coding value of the pulse coded signal, which is used to determine the serial number of the target interactive host node. Through the above monitoring, counting and end determination mechanism, the logic circuit can accurately decode the pulse coded signal and ensure that the switching request sent by the user or the host node can be reliably identified in a multi-host environment, thereby providing support for the switching of the interactive device.
[0068] In an exemplary embodiment, after the level change of the state detection signal is identified to be consistent with a square wave signal of a preset frequency, the timing is started and the counting of the square wave signals is begun, and the method further includes: after the last square wave signal ends, if the state detection signal is detected to be maintained at a second preset level and the duration is greater than a preset time, it is determined that the host node sending the pulse coded signal is abnormal.
[0069] In this embodiment, the logic circuit continuously monitors the level change of the state detection signal after starting the square wave counting, and accumulatively counts each square wave for identifying the serial number of the target interactive host node. After the last square wave ends, the logic circuit continues to monitor the level state of the signal to determine whether the running state of the sending host node is normal. At this time, if the state detection signal maintains at the second preset level and the duration exceeds the preset threshold, the logic circuit will determine that the host node has an abnormal condition, such as power failure, no power supply or not in place, to avoid false switching.
[0070] Through the detection of this embodiment, the logic circuit can verify the validity of the host node while analyzing the pulse coded signal, ensure that the interactive device will not be switched to an abnormal or unavailable host node, and improve the stability and security of the system in a multi-host environment, so that the interactive device switching not only accurately identifies the serial number of the target node, but also prevents operation interruption or switching errors caused by node abnormalities.
[0071] In an exemplary embodiment, before identifying the target interactive host node according to the state detection signal, it further includes: determining the valid in-place state of each host node according to the state detection signal when the server is powered on; and determining the host node with the smallest serial number as the initial target interactive host node.
[0072] In this embodiment, when the server is powered on, the logic circuit first determines the valid in-place state of each host node according to the state detection signal output by each host node. By analyzing the level and duration of the in-place signal, the logic circuit can determine which host nodes have completed startup and are in an interactive state, establish a host node in-place list in the initial state after power-on, and ensure that even if part of the host nodes have not started or have abnormalities, they will not be mistakenly judged as switchable targets.
[0073] After confirming the valid in-place host nodes, the logic circuit selects the initial target interactive host node according to a preset rule, usually using the host node with the smallest serial number as the initial target. Selecting the node with the smallest serial number as the default target can immediately establish a usable interactive path after the system is powered on, and ensure that the switching operation has a clear starting node. Subsequently, the switching device selects the path of the interactive device to the initial target host node, so that the keyboard, mouse and display can immediately establish a communication connection with the first available host node, and realize stable and reliable human-computer interaction at the moment of power-on of the multi-node server. Figure 5 As shown in
[0074] As shown in Figure 6In an example embodiment, the state detection signal includes an in-place signal for indicating the physical connection state of the host node and a selection signal for identifying the specific host node, the selection signal corresponding to an operation triggered by a preset tool on any host node corresponding to a graphical interface; the graphical interface provides a plurality of selection controls for directly selecting a target interactive host node and navigation controls for sequentially switching to a previous host node or a next host node; before identifying the target interactive host node according to the state detection signal, the method further includes: receiving, on the host node, a switching selection operation of the user through the graphical interface; the switching selection operation is an operation corresponding to the selection control or the navigation control; in response to the switching selection operation, causing the preset tool to generate a selection signal including an identification of the target interactive host node, and sending the selection signal to the logic circuit.
[0075] In the embodiment, the preset tool installed on the host node interacts with the user through the graphical interface, and the graphical interface provides two types of controls. One type is a selection control for directly specifying a target interactive host node, and the user can click to specify the target node (e.g., the first host node, the second host node, …, the nth host node in Figure 6 Another type is a navigation control for sequentially switching to a previous host node or a next host node, enabling the user to quickly browse and switch between multiple host nodes (e.g., the two arrows in Figure 6 The left arrow is used to switch to the previous host node, and the right arrow is used to switch to the next host node). There is no need to directly input the node number. Through the graphical interface, the user's operation is converted into a logical instruction for the preset tool to generate a subsequent selection signal.
[0076] When the user performs a selection control or navigation control operation on the graphical interface, the preset tool captures the operation and converts it into a corresponding selection signal. The selection signal contains identification information of the target interactive host node, which is used to indicate which host node the logic circuit should switch the interactive device to. This design directly associates user operations with hardware control signals, achieving closed-loop control from the software interface to physical switching. The preset tool sends the generated selection signal to the logic circuit through the state detection interface of the host node. After receiving the selection signal, the logic circuit combines it with the in-place state of each host node to analyze it, ensuring that only the in-place and available host node can become the switching target, avoiding mis-switching to a node that is not started or abnormal, and ensuring the safety and reliability of the switching process.
[0077] It can be seen that in the embodiment, the user can initiate the interactive device switching operation through the intuitive graphical interface, whether it is direct selection of the target host node or sequential navigation switching, which can be converted into a selection signal by the preset tool in real time and transmitted to the logic circuit, realizing seamless connection between human-computer interaction and system hardware control. This design improves the operation convenience and switching efficiency in the multi-node server environment, while ensuring the stability and security of the system in the multi-host state.
[0078] In an exemplary embodiment, after the preset tool generates the selection signal including the identification of the target interactive host node and transmits the selection signal to the logic circuit, it further includes: detecting the in-place signal of the target interactive host node, determining the in-place state of the target interactive host node; when the target interactive host node is not in place, generating a feedback signal indicating that the target interactive host node is invalid and feeding back to the host node currently issuing the selection signal; triggering the host node issuing the selection signal to respond to the feedback signal and displaying prompt information through the graphical interface that the target interactive host node is not in place or invalid.
[0079] In the embodiment, after the logic circuit receives the selection signal generated and transmitted by the preset tool, it detects the in-place signal of the target interactive host node to determine the actual in-place state of the node. The logic circuit determines whether the target node has been started and can communicate with the interactive device by analyzing the level and duration of the in-place signal, thereby ensuring the reliability of the switching operation.
[0080] If the logic circuit determines that the target interactive host node is not in place, i.e., the node has not been started or is in an abnormal state, the logic circuit will generate a feedback signal indicating that the target node is invalid or unavailable. The feedback signal is returned to the host node issuing the selection signal through the logic path, so that it can perceive the situation that the switching operation cannot be completed.
[0081] After the host node issuing the selection signal receives the feedback signal, the corresponding processing logic is triggered. The preset tool displays prompt information through the graphical interface on the host node, such as the target interactive host node is not in place or the target interactive host node is invalid, to inform the user that the switching operation is not successful, while avoiding the interactive device being incorrectly switched to an unavailable node.
[0082] In the embodiment, dynamic verification and feedback of the selection signal can be realized in the multi-host environment, ensuring the safety and accuracy of the interactive device switching operation. The user receives timely feedback on the graphical interface and can reselect an effective target interactive host node, improving the reliability of the operation and user experience, and avoiding misoperation or system interruption caused by node abnormalities.
[0083] As Figure 7The process starts, the keyboard and mouse accept commands, identify and analyze the target interactive host node to be cut in, and then any host node sends a selection signal to the interactive device. The interactive device switches the channels of the keyboard, mouse and display, and then judges whether the target interactive host node is in place. If it is in place, the interface of the target interactive host node is displayed, and then the step of the keyboard and mouse accepting commands is returned. If it is not in place, a prompt information that the target interactive host node is not in place is popped up, and then the step of the keyboard and mouse accepting commands is returned.
[0084] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment.
[0085] Embodiments of the present application also provide an electronic device, comprising a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above-mentioned switching method embodiments of the interactive device.
[0086] Embodiments of the present application also provide a computer readable storage medium, which stores a computer program, wherein the computer program is configured to perform the steps in any of the above-mentioned switching method embodiments of the interactive device when running.
[0087] In an exemplary embodiment, the above-mentioned computer readable storage medium can include but is not limited to: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0088] Embodiments of the present application also provide a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps in any of the above-mentioned switching method embodiments of the interactive device.
[0089] Embodiments of the present application also provide another computer program product, which comprises a non-volatile computer readable storage medium, and the non-volatile computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in any of the above-mentioned switching method embodiments of the interactive device.
[0090] Those skilled in the art will further realize that the mere concepts, teachings, and embodiments described herein are merely meant to provide an enabling description of the claimed application. Accordingly, modifications and / or additions, other than those explicitly described herein, can be obvious to those skilled in the art in the light of this disclosure. The claimed application is intended to embrace all such modifications and / or additions.
[0091] The switching device, method, device and storage medium of the interactive device provided by the present application are described in detail above. The principles and implementation manners of the present application are described by applying specific examples herein. The above description of the embodiments is only applicable to helping understand the method and core idea of the present application. It should be pointed out that, for those skilled in the art, some improvements and modifications can be made to the present application without departing from the principles of the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A switching device for an interactive device, characterized in that, Integrated within a server, the server also includes multiple independently operating host nodes, and the switching device for the interactive device includes a switching circuit and a logic circuit; The multiple host-side interfaces of the switching circuit are configured to be connected one-to-one with the interaction interfaces of the multiple host nodes, the device-side interface of the switching circuit is configured to be connected to the interaction device, the controlled interface of the switching circuit is connected to the output interface of the logic circuit, and the input interface of the logic circuit is configured to be connected to the status detection interfaces of the multiple host nodes. The logic circuit is configured to detect the status detection signals of multiple host nodes, identify the target interactive host node, and generate a switching control signal to be output to the control terminal of the switching circuit. The switching circuit is configured to establish a communication connection between the interactive device and the target interactive host node in response to the switching control signal.
2. The switching device for the interactive device according to claim 1, characterized in that, The status detection interface of the host node and the input interface of the logic circuit are connected through a communication line; The logic circuit is specifically configured to listen to the status detection signals sent by each of the host nodes through the communication line, determine the presence status of each of the host nodes based on the presence signal, determine the target interactive host node based on the pulse code signal sent by any of the host nodes, and generate a switching control signal and output it to the control terminal of the switching circuit when the target interactive host node is in place. The status detection signal includes an in-situ signal indicating the physical connection status of the host node and a pulse-coded signal identifying a specific host node.
3. The switching device for the interactive device according to claim 1, characterized in that, The status detection interface of the host node and the input interface of the logic circuit are connected through two communication lines. The logic circuit is specifically configured to listen to the presence signal sent by each of the host nodes through the first communication line, receive the selection signal sent by any of the host nodes with the identifier of the target interactive host node through the second communication line, determine the target interactive host node according to the selection signal, and generate a switching control signal when the target interactive host node is in place and output it to the control terminal of the switching circuit. The status detection signal includes an presence signal indicating the physical connection status of the host node and a selection signal identifying a specific host node.
4. The switching device for the interactive device according to any one of claims 1-3, characterized in that, The switching circuit includes: A data switching circuit, wherein its host-side interface is connected to the data interface of each host node, and its device-side interface is connected to a keyboard and / or mouse; the interactive device includes the keyboard and / or mouse and a display. The video switching circuit has a host-side interface connected to the video interface of each host node and a device-side interface connected to a display. The interaction interface of the host node includes the data interface and the video interface. The output interface of the logic circuit is connected to the control terminal of the data switching circuit and the control terminal of the video switching circuit, respectively. The logic circuit is specifically configured to detect the status detection signals of multiple host nodes, identify the target interactive host node, generate a first switching control signal and output it to the control terminal of the data switching circuit, and generate a second switching control signal and output it to the control terminal of the video switching circuit. The switching control signal includes the first switching control signal and the second switching control signal. The data switching circuit is configured to establish a communication connection between the keyboard and / or the mouse and the target interactive host node in response to the first switching control signal. The video switching circuit is configured to establish a communication connection between the display and the target interactive host node in response to the second switching control signal.
5. A server, characterized in that, The device includes a switching apparatus for the interactive device as described in any one of claims 1-4, and also includes multiple host nodes.
6. A method for switching between interactive devices, characterized in that, The switching device for the interactive device as described in any one of claims 1-4, wherein the switching method for the interactive device comprises: Detect status detection signals from multiple host nodes; The target interactive host node is identified based on the state detection signal, and a switching control signal is generated and output to the control terminal of the switching circuit. The switching circuit responds to the switching control signal and establishes a communication connection between the interactive device and the target interactive host node.
7. The switching method for interactive devices according to claim 6, characterized in that, The host node's status detection interface and logic circuit input interface are connected via a communication line; Identifying the target interactive host node based on the state detection signal includes: Analyze the duration of the level of the state detection signal; When the duration of the level is greater than a preset time, the state detection signal is determined to be an in-situ signal; When the duration of the level is not greater than a preset time and the level change pattern of the status detection signal conforms to a square wave signal of a preset frequency, the status detection signal is determined to be a pulse-coded signal; the status detection signal includes an in-situ signal for indicating the physical connection status of the host node and a pulse-coded signal for identifying a specific host node; the preset time is determined according to the preset frequency of the square wave signal; The target interactive host node is determined based on the in-situ signal and the pulse-coded signal.
8. The switching method for interactive devices according to claim 7, characterized in that, Determining the target interactive host node based on the in-situ signal and the pulse-coded signal includes: The effective presence status of each host node is determined based on the presence signal; The number of consecutive square waves in the pulse-coded signal is analyzed to determine the target interactive host node from the valid host nodes in place; the number of consecutive square waves represents the sequence number of the target interactive host node.
9. The switching method for interactive devices according to claim 8, characterized in that, Determining the number of consecutive square waves in the pulse-coded signal includes: The level change of the state detection signal is continuously monitored. When a square wave signal that matches the preset frequency is detected, timing is started and the square wave signal is counted. After the last square wave signal ends, if the state detection signal is detected to remain at the first preset level for a duration greater than the preset time, it is determined that the pulse code signal transmission is complete, and the number of square wave signals counted is taken as the number of consecutive square waves.
10. The switching method for interactive devices according to claim 8, characterized in that, When a square wave signal matching the preset frequency is detected, after starting the timer and beginning to count the square wave signal, the process further includes: After the last square wave signal ends, if the status detection signal is detected to remain at the second preset level for a duration greater than the preset time, then the host node that sent the pulse-coded signal is determined to be abnormal.
11. The switching method for interactive devices according to claim 6, characterized in that, Before identifying the target interactive host node based on the state detection signal, the method further includes: When the server is powered on, the effective presence status of each host node is determined based on the status detection signal; The host node with the smallest sequence number will be selected as the initial target interactive host node.
12. The switching method for an interactive device according to any one of claims 6-11, characterized in that, The status detection signal includes an presence signal indicating the physical connection status of the host node and a selection signal identifying a specific host node. The instruction corresponding to the selection signal is generated by an operation triggered by the graphical interface corresponding to a preset tool on any of the host nodes. The graphical interface provides multiple selection controls for directly selecting the target interactive host node, as well as navigation controls for sequentially switching to the previous or next host node. Before identifying the target interactive host node based on the state detection signal, the method further includes: On the host node, the user's switching selection operation is received through the graphical interface; the switching selection operation is the operation corresponding to the selection control or the navigation control. In response to the switching selection operation, the preset tool generates a selection signal including the identifier of the target interactive host node and sends the selection signal to the logic circuit.
13. The switching method for interactive devices according to claim 12, characterized in that, After the preset tool generates a selection signal including the identifier of the target interactive host node and sends the selection signal to the logic circuit, the method further includes: Detect the presence signal of the target interactive host node to determine the presence status of the target interactive host node; When the target interactive host node is not in place, a feedback signal is generated to indicate that the target interactive host node is invalid and fed back to the host node that currently issued the selection signal; The host node that triggered the selection signal responds to the feedback signal and displays a prompt message that the target interactive host node is not present or is invalid through the graphical interface.
14. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the switching method for an interactive device as described in any one of claims 6-13 when executing the computer program.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the switching method for the interactive device as described in any one of claims 6-13.
Citation Information
Patent Citations
Display communication port management and control method and system, terminal equipment and storage medium
CN115629729A
Storage system, cluster node, system, storage resource scheduling method and device
CN119045750A