A signal source switching method and device, electronic equipment and storage medium

CN116347012BActive Publication Date: 2026-08-28CRSC RESEARCH & DESIGN INSTITUTE GROUP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310173809.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2026-08-28
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

[0004]然而,现有的光纤KVM系统在进行信号源切换时,由于无法准确确定信号源的切换,导致在信号源切换失败时向错误的计算机设备发送控制指令,从而无法准确的对计算机设备进行远程控制

Benefits of technology

[0025] The technical solution of this invention involves obtaining a first switching code through the fiber optic KVM operator and sending it to the fiber optic KVM host. The fiber optic KVM host receives the first switching code sent by the operator and determines the signal source information based on the first switching code. Then, it determines a second switching code based on the signal source information and sends the second switching code to the operator. The operator receives the second switching code fed back from the fiber optic KVM host and performs a code consistency check based on the first and second switching codes. Based on the consistency check result, it sends a remote control command for the signal source to the fiber optic KVM host. This solves the problem in existing technologies where the inability to accurately determine the signal source switching leads to sending control commands to incorrect computer devices when the signal source switching fails. It enables accurate signal source switching, thereby improving the accuracy of remote control of computer devices and ultimately enhancing the security of the fiber optic KVM system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347012B_ABST
    Figure CN116347012B_ABST
Patent Text Reader

Abstract

This invention discloses a signal source switching method, apparatus, electronic device, and storage medium. The signal source switching method applied to the operator of a fiber optic KVM includes: acquiring a first switching code and sending the first switching code to the fiber optic KVM host; receiving a second switching code fed back from the fiber optic KVM host and performing a code consistency check based on the first and second switching codes; and sending a remote control command for the signal source to the fiber optic KVM host based on the consistency check result. The signal source switching method applied to the fiber optic KVM host includes: receiving the first switching code sent by the fiber optic KVM operator and determining signal source information based on the first switching code; determining a second switching code based on the signal source information and sending the second switching code to the fiber optic KVM operator. The technical solution of this invention can accurately switch signal sources, thereby improving the accuracy of remote control of computer equipment and thus improving the security of the fiber optic KVM system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a signal source switching method, apparatus, electronic device and storage medium. Background Technology

[0002] With the rapid development of KVM (Keyboard Video Mouse) technology, fiber optic KVM has penetrated into control projects across various sectors in China, becoming an essential product for data management centers in many IT companies. Based on multi-host switching technology, KVM allows switching between multiple servers using a single keyboard or mouse and monitor, thereby saving space, reducing costs, simplifying management, and ultimately improving work efficiency.

[0003] For example, in industrial control or monitoring fields such as rail transportation, there is often a considerable physical distance between the operator and the computer equipment being operated. Fiber optic KVM provides a channel for operators to control remote computer equipment. Operators can operate computer equipment tens of meters to kilometers away by connecting external devices such as keyboards, mice, monitors, and speakers to the KVM, thus realizing optical communication transmission of display data, audio data, and keyboard and mouse control data through the fiber optic KVM system.

[0004] However, existing fiber optic KVM systems cannot accurately determine the signal source when switching signals, resulting in the sending of control commands to the wrong computer device when the signal source switching fails, thus making it impossible to accurately control the computer device remotely. Summary of the Invention

[0005] This invention provides a signal source switching method, apparatus, electronic device, and storage medium, which can accurately switch signal sources, thereby improving the accuracy of remote control of computer equipment and enhancing the security of fiber optic KVM systems.

[0006] According to one aspect of the present invention, a signal source switching method is provided, applied to the operation end of a fiber optic KVM, comprising:

[0007] Obtain the first switching code and send the first switching code to the fiber optic KVM host;

[0008] Receive the second switching code fed back from the fiber optic KVM host, and perform a code consistency check based on the first switching code and the second switching code;

[0009] Based on the consistency verification result, a remote control command for the signal source is sent to the fiber optic KVM host.

[0010] According to another aspect of the present invention, a signal source switching method is provided, applied to the fiber optic KVM host, comprising:

[0011] Receive the first switching code sent by the fiber optic KVM operator and determine the signal source information based on the first switching code;

[0012] The second switching code is determined based on the signal source information, and the second switching code is sent to the fiber optic KVM operator terminal.

[0013] According to another aspect of the present invention, a signal source switching device is provided, configured at the operating end of a fiber optic KVM, comprising:

[0014] The first switching code sending module is used to obtain the first switching code and send the first switching code to the fiber optic KVM host.

[0015] The encoding consistency verification module is used to receive the second switching code fed back by the fiber optic KVM host, and to perform encoding consistency verification based on the first switching code and the second switching code;

[0016] The remote control command sending module is used to send remote control commands for the signal source to the fiber optic KVM host based on the consistency verification result.

[0017] According to another aspect of the present invention, a signal source switching device is provided, configured at the fiber optic KVM host, comprising:

[0018] The first switching code receiving module is used to receive the first switching code sent by the fiber optic KVM operator and determine the signal source information based on the first switching code.

[0019] The second switching code feedback module is used to determine the second switching code based on the signal source information and send the second switching code to the fiber optic KVM operator terminal.

[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0021] At least one processor; and

[0022] A memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the signal source switching method according to any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the signal source switching method according to any embodiment of the present invention.

[0025] The technical solution of this invention involves obtaining a first switching code through the fiber optic KVM operator and sending it to the fiber optic KVM host. The fiber optic KVM host receives the first switching code sent by the operator and determines the signal source information based on the first switching code. Then, it determines a second switching code based on the signal source information and sends the second switching code to the operator. The operator receives the second switching code fed back from the fiber optic KVM host and performs a code consistency check based on the first and second switching codes. Based on the consistency check result, it sends a remote control command for the signal source to the fiber optic KVM host. This solves the problem in existing technologies where the inability to accurately determine the signal source switching leads to sending control commands to incorrect computer devices when the signal source switching fails. It enables accurate signal source switching, thereby improving the accuracy of remote control of computer devices and ultimately enhancing the security of the fiber optic KVM system.

[0026] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a flowchart of a signal source switching method provided in Embodiment 1 of the present invention;

[0029] Figure 2 This is a schematic diagram of a fiber optic KVM system provided in Embodiment 1 of the present invention;

[0030] Figure 3 This is another schematic diagram of a fiber optic KVM system provided in Embodiment 1 of the present invention;

[0031] Figure 4 This is a flowchart of a signal source switching method provided in Embodiment 2 of the present invention;

[0032] Figure 5This is a flowchart of a signal source switching method provided in Embodiment 3 of the present invention;

[0033] Figure 6 This is a schematic diagram of a fiber optic KVM system provided in Embodiment 4 of the present invention;

[0034] Figure 7 This is an example flowchart of a signal source switching method provided in Embodiment 4 of the present invention;

[0035] Figure 8 This is a schematic diagram of a signal source switching device provided in Embodiment 5 of the present invention;

[0036] Figure 9 This is a schematic diagram of a signal source switching device provided in Embodiment Six of the present invention;

[0037] Figure 10 This is a schematic diagram of the structure of an electronic device that implements the signal source switching method of the present invention. Detailed Implementation

[0038] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0039] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0040] Example 1

[0041] Figure 1This is a flowchart of a signal source switching method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations requiring accurate signal source switching. The method can be executed by a signal source switching device, which can be implemented through software and / or hardware, and is generally directly integrated into the electronic device executing this method. This electronic device can be a fiber optic KVM operating terminal. Specifically, the fiber optic KVM operating terminal can be the end of the fiber optic KVM system connected to external devices such as a keyboard, mouse, and monitor. Figure 1 As shown, the signal source switching method applied to the operation end of a fiber optic KVM can specifically include the following steps:

[0042] S110. Obtain the first switching code and send the first switching code to the fiber optic KVM host.

[0043] The first switching code can be a signal source switching code obtained by the fiber optic KVM operator. The fiber optic KVM host can be the end of the fiber optic KVM system connected to the computer device. It is understood that the fiber optic KVM operator can communicate with the fiber optic KVM host via optical fiber.

[0044] Specifically, Figure 2 This is a schematic diagram of a fiber optic KVM system provided in Embodiment 1 of the present invention. Figure 3 This is another schematic diagram of a fiber optic KVM system provided in Embodiment 1 of the present invention, as shown below. Figure 2 and Figure 3 As shown, a fiber optic KVM system can include a host server (i.e., computer equipment), a host terminal (i.e., the fiber optic KVM host terminal), an operator terminal (i.e., the fiber optic KVM operator terminal), and a keyboard, mouse, monitor, and speaker terminal (i.e., a control terminal or external devices such as a keyboard, mouse, and monitor). The host server and the host terminal communicate via keyboard / mouse interfaces, video input interfaces, and audio input interfaces. The host terminal and the operator terminal communicate via fiber optic cable. The operator terminal and the keyboard, mouse, monitor, and speaker terminal communicate via keyboard / mouse interfaces, video input interfaces, and audio input interfaces.

[0045] In this embodiment of the invention, the fiber optic KVM operator can obtain a first switching code and send it to the fiber optic KVM host. It is understood that the first switching code can be in the form of an electrical signal, or in the form of an optical signal, etc., and this embodiment of the invention does not impose any limitations on this.

[0046] It should be noted that the embodiments of the present invention do not limit the specific implementation method of sending the first switching code to the fiber optic KVM host, as long as the transmission of the first switching code can be achieved. For example, assuming that the first switching code is obtained in the form of an electrical signal, then sending the first switching code to the fiber optic KVM host can be achieved by electro-optic conversion of the electrical signal form to obtain the optical signal form of the first switching code, thereby sending the optical signal form of the first switching code to the fiber optic KVM host.

[0047] S120: Receive the second switching code fed back by the fiber optic KVM host, and perform a code consistency check based on the first switching code and the second switching code.

[0048] The second switching code can be the code for switching another signal source fed back from the fiber optic KVM host. The code consistency check can be used to verify the consistency of the code.

[0049] In this embodiment of the invention, after the fiber optic KVM operator sends the first switching code to the fiber optic KVM host, it can further receive the second switching code fed back by the fiber optic KVM host, so as to perform code consistency verification based on the first switching code and the second switching code.

[0050] S130. Send a remote control command for the signal source to the fiber optic KVM host based on the consistency verification result.

[0051] The consistency verification result can be the result obtained by verifying the consistency of the encoding. The remote control command for the signal source can be a command to remotely control the signal source. It can be understood that the signal source can be a computer device connected to the fiber optic KVM host. The remote control command for the signal source can be a control command sent from external devices such as a keyboard, mouse, and monitor connected to the fiber optic KVM operator terminal to the computer device connected to the fiber optic KVM host.

[0052] In this embodiment of the invention, after performing a code consistency check based on the first switching code and the second switching code, the fiber optic KVM operator can further send a remote control command for the signal source to the fiber optic KVM host based on the consistency check result. It is understood that sending the remote control command for the signal source to the fiber optic KVM host can involve receiving a remote control command for the signal source from an external device such as a keyboard, mouse, or monitor connected to the fiber optic KVM operator and then sending it to the fiber optic KVM host.

[0053] The technical solution of this embodiment obtains a first switching code through the fiber optic KVM operator terminal, sends the first switching code to the fiber optic KVM host terminal, and receives a second switching code fed back from the fiber optic KVM host terminal. It then performs a code consistency check based on the first and second switching codes, and sends a remote control command for the signal source to the fiber optic KVM host terminal based on the consistency check result. This solves the problem in existing technologies where the inability to accurately determine the signal source switching leads to the sending of control commands to the wrong computer device when the signal source switching fails. It enables accurate signal source switching, thereby improving the accuracy of remote control of computer devices and ultimately enhancing the security of the fiber optic KVM system.

[0054] Example 2

[0055] Figure 4 This is a flowchart of a signal source switching method provided in Embodiment 2 of the present invention. This embodiment further refines the above-described technical solutions, providing various specific optional implementation methods for obtaining a first switching code, performing code consistency verification based on the first switching code and the second switching code, and sending a remote control command for the signal source to the fiber optic KVM host based on the consistency verification result. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 4 As shown, the method may include the following steps:

[0056] S410. Obtain the first switching code and send the first switching code to the fiber optic KVM host.

[0057] Optionally, obtaining the first switching code may include: generating the first switching code according to the signal source switching command when a signal source switching command is received; or, updating the first switching code when a timer event is triggered, and determining the first switching code based on the update result.

[0058] The signal source switching command can be an instruction to switch signal sources. The timer event can be an event that updates the encoding at regular intervals. The update result can be the result of updating the encoding of the first switching code.

[0059] Specifically, the fiber optic KVM operator can generate a first switching code based on the signal source switching command when it receives the signal source switching command, or it can update the first switching code when a timed event is triggered, so as to determine the first switching code based on the update result.

[0060] Optionally, receiving a signal source switching command can be a signal source switching command generated by the fiber optic KVM operating terminal, or a signal source switching command sent by an external device connected to the fiber optic KVM operating terminal, etc. This embodiment of the invention does not impose limitations on this. For example, receiving a signal source switching command can be a command generated by the user triggering the switching button module in the fiber optic KVM operating terminal, a command sent by the user triggering a keyboard device connected to the fiber optic KVM operating terminal, or a command sent by the user triggering a mouse device connected to the fiber optic KVM operating terminal, etc.

[0061] Optionally, updating the first switching code when the timed event is triggered can be done by updating the first switching code based on the number of times the timed event is triggered. For example, assuming the first switching code is 0010,0011, updating the first switching code when the timed event is triggered will result in an updated code of 0010,0100.

[0062] S420: Receive the second switching code fed back by the fiber optic KVM host, and determine the first encoding time corresponding to the first switching code and the second encoding time corresponding to the second switching code.

[0063] The first encoding time can be the time corresponding to the first switching code, such as the time when the first switching code is sent or the time when the first switching code is generated. This embodiment of the invention does not impose any limitations on this. The second encoding time can be the time corresponding to the second switching code, such as the time when the second switching code is sent or the time when the second switching code is generated. This embodiment of the invention does not impose any limitations on this.

[0064] In this embodiment of the invention, after the fiber optic KVM operator sends the first switching code to the fiber optic KVM host, it can further receive the second switching code fed back by the fiber optic KVM host to determine the first encoding time corresponding to the first switching code and the second encoding time corresponding to the second switching code.

[0065] Understandably, if the second switching code is not received from the fiber optic KVM host, it indicates that the communication between the fiber optic KVM operator and the fiber optic KVM host is abnormal, or the fiber optic KVM host is malfunctioning, or the signal source switching has failed. In this case, the fiber optic KVM operator can directly refuse to send remote control commands to the fiber optic KVM host, or it can refuse to receive remote control commands from external devices such as keyboards, mice, and monitors connected to the fiber optic KVM operator.

[0066] S430. Determine the encoding time interval based on the first encoding time and the second encoding time.

[0067] The encoding time interval can be the time interval between the first encoding time and the second encoding time. It is understandable that the encoding time interval can be obtained by subtracting the first encoding time from the second encoding time.

[0068] In this embodiment of the invention, after determining the first encoding time corresponding to the first switching code and the second encoding time corresponding to the second switching code, the fiber optic KVM operator can further determine the encoding time interval based on the first encoding time and the second encoding time. It is understood that, to ensure the accuracy of the encoding time interval, when determining the encoding time interval based on the first encoding time and the second encoding time, if the first encoding time is the time when the first switching code is sent, then the second encoding time must be the time when the second switching code is sent.

[0069] S440. If it is determined that the encoding time interval meets the preset time interval threshold, the first switching encoding and the second switching encoding are subjected to encoding consistency verification.

[0070] The preset time interval threshold can be a threshold of a pre-set encoding time interval.

[0071] In this embodiment of the invention, after determining the encoding time interval based on the first encoding time and the second encoding time, the fiber optic KVM operator can further determine whether the encoding time interval meets a preset time interval threshold, and perform encoding consistency verification on the first switching encoding and the second switching encoding when the encoding time interval meets the preset time interval threshold.

[0072] Understandably, if the encoding time interval does not meet the preset time interval threshold, it indicates that the communication between the fiber optic KVM operator and the fiber optic KVM host is abnormal, or that the fiber optic KVM host is in an abnormal working state. In this case, encoding consistency verification is not required. The fiber optic KVM operator can directly refuse to send remote control commands to the fiber optic KVM host, or the fiber optic KVM operator can refuse to receive remote control commands from external devices such as keyboards, mice, and monitors connected to the fiber optic KVM operator.

[0073] S450. If the consistency verification result is determined to be consistent, a signal source prompt message is generated.

[0074] Among these, "verification consistency" can refer to the consistency of the encoding verification results. "Signal source indication information" can be information indicating the signal source, which can be used to identify the computer device that can be remotely controlled. For example, the signal source indication information can be LED light status information. Assuming the computer devices include computer device A and computer device B, and the LED corresponding to computer device A is lit, it indicates that computer device A can be remotely controlled.

[0075] In this embodiment of the invention, after performing coding consistency verification on the first switching code and the second switching code, the fiber optic KVM operator can further determine the consistency verification result, so as to generate a signal source prompt message when the consistency verification result is consistent.

[0076] Understandably, if the consistency check result is inconsistent, it indicates that the communication between the fiber optic KVM operator and the fiber optic KVM host is abnormal, or that the fiber optic KVM host is not functioning properly. In this case, the fiber optic KVM operator can directly refuse to send remote control commands to the fiber optic KVM host, or it can refuse to receive remote control commands from external devices such as keyboards, mice, and monitors connected to the fiber optic KVM operator.

[0077] S460. Determine the target signal source based on the signal source prompt information, and receive the target remote control command corresponding to the target signal source sent by the control terminal, so as to send the target remote control command to the fiber optic KVM host.

[0078] The target signal source can be a signal source that is remotely controlled. The target remote control command can be an instruction to remotely control the target signal source. The control terminal can be an external device such as a keyboard, mouse, or monitor connected to the fiber optic KVM operator terminal.

[0079] In this embodiment of the invention, after generating signal source prompt information, the fiber optic KVM operator can further determine the target signal source based on the signal source prompt information, so as to receive the target remote control command corresponding to the target signal source sent by the control terminal, and then send the target remote control command to the fiber optic KVM host.

[0080] The technical solution of this embodiment obtains a first switching code through the fiber optic KVM operator terminal, sends the first switching code to the fiber optic KVM host terminal, and receives a second switching code fed back from the fiber optic KVM host terminal. It determines the first encoding time corresponding to the first switching code and the second encoding time corresponding to the second switching code, determines the encoding time interval based on the first and second encoding times, and performs encoding consistency verification on the first and second switching codes when the encoding time interval meets a preset time interval threshold. When the consistency verification result is consistent, a signal source prompt message is generated. The target signal source is determined based on the signal source prompt message, and the target remote control command corresponding to the target signal source sent by the control terminal is received. The target remote control command is then sent to the fiber optic KVM host terminal. This solves the problem in the prior art where the inability to accurately determine the signal source switching leads to the sending of control commands to the wrong computer device when the signal source switching fails. It enables accurate signal source switching, thereby improving the accuracy of remote control of computer devices and ultimately enhancing the security of the fiber optic KVM system.

[0081] Example 3

[0082] Figure 5 This is a flowchart of a signal source switching method provided in Embodiment 3 of the present invention. This embodiment is applicable to situations requiring accurate signal source switching. The method can be executed by a signal source switching device, which can be implemented through software and / or hardware, and is generally directly integrated into the electronic device executing this method. This electronic device can be a fiber optic KVM host. Specifically, as shown... Figure 5 As shown, the signal source switching method applied to the fiber optic KVM host can specifically include the following steps:

[0083] S510: Receive the first switching code sent by the fiber optic KVM operator terminal, and determine the signal source information based on the first switching code.

[0084] The signal source information can be any information about the signal source, such as information about the signal source that can be remotely controlled, or information about the signal source to be switched. This embodiment of the invention does not impose any restrictions on this.

[0085] In this embodiment of the invention, the fiber optic KVM host receives a first switching code sent by the fiber optic KVM operator to determine the signal source information based on the first switching code.

[0086] S520. Determine the second switching code based on the signal source information, and send the second switching code to the fiber optic KVM operation terminal.

[0087] In this embodiment of the invention, after determining the signal source information based on the first switching code, the fiber optic KVM host can further determine the second switching code based on the signal source information, and then send the second switching code to the fiber optic KVM operator.

[0088] Optionally, determining the second switching code based on the signal source information may include: determining the current signal source and the signal source to be switched based on the signal source information; if the current signal source and the signal source to be switched are inconsistent, switching the current signal source to the signal source to be switched; if the current signal source and the signal source to be switched are consistent, determining the second switching code.

[0089] The current signal source can be any signal source that can be remotely controlled at present. The signal source to be switched can be any signal source waiting to be switched.

[0090] Specifically, after determining the signal source information based on the first switching code, the fiber optic KVM host can further determine the current signal source and the signal source to be switched based on the signal source information, to determine whether the current signal source and the signal source to be switched are consistent. If the current signal source and the signal source to be switched are inconsistent, the current signal source is switched to the signal source to be switched. If the current signal source and the signal source to be switched are consistent, the second switching code is determined.

[0091] Understandably, after switching the current signal source to the signal source to be switched, it is possible to check again whether the current signal source and the signal source to be switched are consistent, and determine the second switching code if they are consistent. At this point, if the current signal source and the signal source to be switched are inconsistent, it indicates that the signal source switching has failed, and the fiber optic KVM host cannot send remote control commands to the correct computer device. In this case, the fiber optic KVM host does not need to send the second switching code back to the fiber optic KVM operator.

[0092] The technical solution of this embodiment receives a first switching code sent by the fiber optic KVM operator terminal at the fiber optic KVM host terminal, determines the signal source information based on the first switching code, determines a second switching code based on the signal source information, and then sends the second switching code to the fiber optic KVM operator terminal. This solves the problem in the prior art where the inability to accurately determine the switching of the signal source leads to the sending of control commands to the wrong computer device when the signal source switching fails. It can accurately perform signal source switching, thereby improving the accuracy of remote control of computer devices and thus improving the security of the fiber optic KVM system.

[0093] Example 4

[0094] This invention illustrates an application scenario in the field of rail transit industrial control. In rail transit industrial control applications with safety requirements, operators often need to remotely control two redundant computers (A and B) in a computer room via fiber optic KVM switches. Operators can switch between controlling computer A and computer B on the host computer using keyboard keys or special keys on the control terminal. Traditional fiber optic KVM devices often only receive one interface confirmation instruction after sending a switching command, or do not confirm a successful switch at all. When communication between the host and control terminals is poor, or when the remote host malfunctions, the operator may send multiple commands to the host, causing errors in the fiber optic KVM system. Furthermore, traditional fiber optic KVM devices do not perform real-time judgment of the signal source and operating status of the computer equipment. When switching computer signal sources, if the signal source switch is not successful, or if the computer equipment is operating abnormally, the operator may easily issue commands to the wrong computer. Therefore, accurate signal source switching is necessary.

[0095] Specifically, Figure 6 This is a schematic diagram of a fiber optic KVM system provided in Embodiment 4 of the present invention, as shown below. Figure 6 As shown, the host unit consists of a video decoding module, an audio analog-to-digital encoding module, a USB keyboard and mouse encoding module, an FPGA (Field-Programmable Gate Array) signal processing module, and an optical module. The video decoding module, audio analog-to-digital encoding module, and USB keyboard and mouse encoding module are respectively connected to the video signal output, analog audio output, and USB interface of two computers. The operation terminal consists of a video digital-to-analog encoding module, an audio digital-to-analog encoding module, a USB keyboard and mouse encoding module, an FPGA signal processing module, an optical module, an LED (light-emitting diode) status display module, and a switching button module.

[0096] Specifically, Figure 7 This is an example flowchart of a signal source switching method provided in Embodiment 4 of the present invention, as follows: Figure 7As shown, the operator receives a signal from double-clicking the Ctrl key or the toggle key to generate a signal source switching command, switching the computer to be operated to A or B. The FPGA signal processing module periodically sends A or B type dynamic incremental codes (i.e., the first switching code), which are converted to optical signals by the optical module and then communicate with the host via optical fiber. After receiving the corresponding A or B type dynamic code, the host switches the signal sources of the video decoding module, audio analog-to-digital encoding module, and USB keyboard and mouse module to the corresponding computer A or B. After confirming that the signal source switching is complete, the code (i.e., the second switching code) is sent back to the operator via optical fiber. The operator compares the received code with the sent code. If the received code matches the sent code, the corresponding LED in the LED status display module is lit to indicate that the link communication is normal. At this time, the operator's keyboard and mouse module is allowed to send signals to the host.

[0097] For example, the operator sends two types of control commands, A and B, to the host. When the operator needs to control computer A, the operator periodically sends a type A dynamic control command (i.e., type A dynamic incremental code) to the host. Upon receiving the type A dynamic control command, the host switches the signal source to A and then transmits the dynamic control command back to the operator. After the operator verifies that the commands match, it allows keyboard and mouse commands to be sent to the host. Specifically, when the host malfunctions or the communication link fails, the operator cannot send keyboard and mouse commands to the host that might cause operational errors, thus ensuring system security.

[0098] The above technical solution sends dynamic incremental codes to the host based on the signal source selection status of the operator terminal. The host terminal switches the signal source according to the dynamic incremental codes. After the switch is successful, the host sends the dynamic incremental codes back. The operator terminal receives the dynamic incremental codes and compares them. Only after the comparison is correct is it allowed to send keyboard and mouse control commands to the host. In other words, the signal source is determined by sending dynamic incremental codes, which enhances the security of the fiber optic KVM system and reduces the risk of issuing commands to the wrong computer due to incorrect signal source switching.

[0099] Example 5

[0100] Figure 8 This is a schematic diagram of a signal source switching device provided in Embodiment 5 of the present invention, as shown below. Figure 8 As shown, the signal source switching device configured at the fiber optic KVM operator includes: a first switching encoding transmission module 810, an encoding consistency verification module 820, and a remote control command transmission module 830, wherein:

[0101] The first switching code sending module 810 is used to obtain the first switching code and send the first switching code to the fiber optic KVM host.

[0102] The encoding consistency verification module 820 is used to receive the second switching code fed back by the fiber optic KVM host, and to perform encoding consistency verification based on the first switching code and the second switching code;

[0103] The remote control command sending module 830 is used to send remote control commands for the signal source to the fiber optic KVM host based on the consistency verification result.

[0104] The technical solution of this embodiment obtains a first switching code through the fiber optic KVM operator terminal, sends the first switching code to the fiber optic KVM host terminal, and receives a second switching code fed back from the fiber optic KVM host terminal. It then performs a code consistency check based on the first and second switching codes, and sends a remote control command for the signal source to the fiber optic KVM host terminal based on the consistency check result. This solves the problem in existing technologies where the inability to accurately determine the signal source switching leads to the sending of control commands to the wrong computer device when the signal source switching fails. It enables accurate signal source switching, thereby improving the accuracy of remote control of computer devices and ultimately enhancing the security of the fiber optic KVM system.

[0105] Optionally, the first switching code sending module 810 can be specifically used to: generate a first switching code according to the signal source switching command when a signal source switching command is received; or, update the first switching code when a timer event is triggered, and determine the first switching code according to the update result.

[0106] Optionally, the encoding consistency verification module 820 can be specifically used to: determine the first encoding time corresponding to the first switching encoding and the second encoding time corresponding to the second switching encoding; determine the encoding time interval based on the first encoding time and the second encoding time; and perform encoding consistency verification on the first switching encoding and the second switching encoding when the encoding time interval meets the preset time interval threshold.

[0107] Optionally, the remote control command sending module 830 can be specifically used to: generate signal source prompt information when the consistency verification result is confirmed to be consistent; determine the target signal source based on the signal source prompt information, and receive the target remote control command corresponding to the target signal source sent by the control terminal, so as to send the target remote control command to the fiber optic KVM host.

[0108] The signal source switching device provided in the embodiments of the present invention can execute the signal source switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0109] Example 6

[0110] Figure 9This is a schematic diagram of a signal source switching device provided in Embodiment Six of the present invention, as shown below. Figure 9 As shown, the signal source switching device configured on the fiber optic KVM host includes: a first switching code receiving module 910 and a second switching code feedback module 920, wherein:

[0111] The first switching code receiving module 910 is used to receive the first switching code sent by the fiber optic KVM operator terminal and determine the signal source information based on the first switching code.

[0112] The second switching code feedback module 920 is used to determine the second switching code based on the signal source information and send the second switching code to the fiber optic KVM operation terminal.

[0113] The technical solution of this embodiment receives a first switching code sent by the fiber optic KVM operator terminal at the fiber optic KVM host terminal, determines the signal source information based on the first switching code, determines a second switching code based on the signal source information, and then sends the second switching code to the fiber optic KVM operator terminal. This solves the problem in the prior art where the inability to accurately determine the switching of the signal source leads to the sending of control commands to the wrong computer device when the signal source switching fails. It can accurately perform signal source switching, thereby improving the accuracy of remote control of computer devices and thus improving the security of the fiber optic KVM system.

[0114] Optionally, the second switching code feedback module 920 can be specifically used to: determine the current signal source and the signal source to be switched based on the signal source information; if the current signal source and the signal source to be switched are inconsistent, switch the current signal source to the signal source to be switched; if the current signal source and the signal source to be switched are consistent, determine the second switching code.

[0115] The signal source switching device provided in the embodiments of the present invention can execute the signal source switching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0116] Example 7

[0117] Figure 10A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0118] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0119] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0120] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as signal source switching methods.

[0121] In some embodiments, the signal source switching method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the signal source switching method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the signal source switching method by any other suitable means (e.g., by means of firmware).

[0122] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0123] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0124] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0126] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0127] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0128] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0129] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A signal source switching method, characterized in that, Applications to fiber optic KVM operator terminals include: Obtain the first switching code and send the first switching code to the fiber optic KVM host; The system receives the second switching code fed back by the fiber optic KVM host after confirming that the signal source switching is completed, and performs a code consistency check based on the first switching code and the second switching code. Based on the consistency verification result, a remote control command for the signal source is sent to the fiber optic KVM host. The step of sending a remote control command for the signal source to the fiber optic KVM host based on the consistency verification result includes: If the consistency verification result is found to be consistent, a signal source prompt message is generated; the target signal source is determined based on the signal source prompt message, and the target remote control command corresponding to the target signal source is received from the control terminal, so as to send the target remote control command to the fiber optic KVM host.

2. The method according to claim 1, characterized in that, The step of obtaining the first switching code includes: Upon receiving a signal source switching instruction, the first switching code is generated according to the signal source switching instruction; or When a timed event is triggered, the first switching code is updated, and the first switching code is determined based on the update result.

3. The method according to claim 1, characterized in that, The step of performing encoding consistency verification based on the first switching code and the second switching code includes: Determine the first encoding time corresponding to the first switching code, and the second encoding time corresponding to the second switching code; The encoding time interval is determined based on the first encoding time and the second encoding time; If the encoding time interval is determined to meet the preset time interval threshold, the first switching encoding and the second switching encoding are subjected to encoding consistency verification.

4. A signal source switching method, characterized in that, Applications on fiber optic KVM host devices include: Receive the first switching code sent by the fiber optic KVM operator and determine the signal source information based on the first switching code; The second switching code is determined based on the signal source information. After confirming that the signal source switching is completed, the second switching code is sent to the fiber optic KVM operation terminal. The step of determining the second switching code based on the signal source information includes: The current signal source and the signal source to be switched are determined based on the signal source information; If it is determined that the current signal source and the signal source to be switched are inconsistent, the current signal source is switched to the signal source to be switched. If it is determined that the current signal source is consistent with the signal source to be switched, a second switching code is determined.

5. A signal source switching device, characterized in that, Configured on the fiber optic KVM operator terminal, including: The first switching code sending module is used to obtain the first switching code and send the first switching code to the fiber optic KVM host. The coding consistency verification module is used to receive the second switching code fed back by the fiber optic KVM host after confirming that the signal source switching is completed, and to perform coding consistency verification based on the first switching code and the second switching code; The remote control command sending module is used to send remote control commands for the signal source to the fiber optic KVM host based on the consistency verification result. The remote control command sending module is used to generate signal source prompt information when the consistency verification result is determined to be consistent; determine the target signal source according to the signal source prompt information; and receive the target remote control command corresponding to the target signal source sent by the control terminal, so as to send the target remote control command to the fiber optic KVM host.

6. A signal source switching device, characterized in that, Configured on the fiber optic KVM host, including: The first switching code receiving module is used to receive the first switching code sent by the fiber optic KVM operator and determine the signal source information based on the first switching code. The second switching code feedback module is used to determine the second switching code based on the signal source information, and after confirming that the signal source switching is completed, send the second switching code to the fiber optic KVM operation terminal. The second switching code feedback module is specifically used to determine the current signal source and the signal source to be switched based on the signal source information; if the current signal source and the signal source to be switched are inconsistent, the current signal source is switched to the signal source to be switched; if the current signal source and the signal source to be switched are consistent, the second switching code is determined.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the signal source switching method of any one of claims 1-3, or to perform the signal source switching method of claim 4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the signal source switching method of any one of claims 1-3, or the signal source switching method of claim 4.

Citation Information

Patent Citations

  • Expansion method and device for multichannel video switchers

    CN104580934A

  • KVM virtualization technology-based display card ROM extraction collection system and method

    CN107562518A