CN115328712B - Detection method of KVM switch and related equipment - Google Patents

Detection method of KVM switch and related equipment Download PDF

Info

Publication number
CN115328712B
CN115328712B CN202210938600.7A CN202210938600A CN115328712B CN 115328712 B CN115328712 B CN 115328712B CN 202210938600 A CN202210938600 A CN 202210938600A CN 115328712 B CN115328712 B CN 115328712B
Authority
CN
China
Prior art keywords
interface
detection
numbered
determining
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210938600.7A
Other languages
Chinese (zh)
Other versions
CN115328712A (en
Inventor
周杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xfanic Technology Co Ltd
Original Assignee
Shenzhen Xfanic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xfanic Technology Co Ltd filed Critical Shenzhen Xfanic Technology Co Ltd
Priority to CN202210938600.7A priority Critical patent/CN115328712B/en
Publication of CN115328712A publication Critical patent/CN115328712A/en
Application granted granted Critical
Publication of CN115328712B publication Critical patent/CN115328712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a detection method of a KVM switch and related equipment, wherein the method comprises the steps of obtaining interface information of a connection interface connected with a detection host; numbering the connection interfaces according to the interface information to obtain numbered interfaces; for each numbered interface, sending a detection instruction to a detection host corresponding to the numbered interface according to the sequence of the numbered interfaces; when feedback information sent by the detection host for the detection instruction is detected, a feedback interface corresponding to the feedback information is displayed; and determining a detection result corresponding to the serial number interface according to the feedback interface. The invention realizes the automatic detection of the KVM switch with a plurality of interfaces and improves the detection efficiency.

Description

Detection method of KVM switch and related equipment
Technical Field
The invention relates to the technical field of device detection, in particular to a detection method and related equipment of a KVM (keyboard video mouse) switcher.
Background
A KVM switch, also known as a KVM switch (Keyboard, video and Mouse SWITCH), is a computer management device that enables multiple computers to be controlled by a single set of Keyboard, mouse, and display. The KVM plug and play does not need to additionally install a driver. Since the KVM is capable of connecting to multiple computer hosts, but there is only one set of mouse, keyboard and display, there are multiple interfaces to connect to the hosts of the computer.
After the KVM switch is produced, all interfaces of the KVM are required to be detected, and quality inspection is required to be carried out to judge whether the KVM switch can work normally or not. Most interfaces can be determined whether the interfaces are normal or not only by detecting signals such as voltage, but the KVM is used for completing data transmission between a mouse, a keyboard and a display and a computer, so that whether the display is normally displayed or not needs to be manually judged, and whether instructions of external devices such as the mouse, the keyboard and the like can be normally transmitted to a host computer of the computer or not. The inspector needs to perform a plurality of operations on the interface of each KVM switch, thus consuming a lot of time, and the inspection efficiency of the KVM switch is very low.
Disclosure of Invention
The invention aims to solve the technical problems of low detection efficiency of a KVM switch and provides a detection method and related equipment of the KVM switch aiming at the defects of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method of detecting a KVM switch, the method comprising:
acquiring interface information of a connection interface connected with a detection host;
numbering the connection interfaces according to the interface information to obtain numbered interfaces;
for each numbered interface, sending a detection instruction to a detection host corresponding to the numbered interface according to the sequence of the numbered interfaces;
when feedback information sent by the detection host for the detection instruction is detected, a feedback interface corresponding to the feedback information is displayed;
and determining a detection result corresponding to the serial number interface according to the feedback interface.
The detection method of the KVM switch comprises the steps that the detection instruction comprises an external operation instruction; the step of determining the detection result corresponding to the serial number interface according to the feedback interface comprises the following steps:
screenshot is carried out on the feedback interface to obtain an operation image;
determining processing information according to the operation image and a preset initial image;
when the processing information is matched with the external operation instruction, determining that the numbered interface is a normal interface;
and when the processing information is not matched with the external operation instruction, determining that the numbered interface is a fault interface.
The detection method of the KVM switch, wherein the external operation instruction comprises a mouse moving instruction, a mouse clicking instruction and/or a keyboard clicking instruction.
The detection method of the KVM switch comprises the steps that the detection instruction comprises an image display instruction for controlling the detection host to display a detection image, wherein the detection image is a solid-color image; the step of determining the detection result corresponding to the serial number interface according to the feedback interface comprises the following steps:
screenshot is carried out on the feedback interface to obtain a test image;
comparing each pixel point of the test image, and calculating the noise coefficient of the test image;
when the noise coefficient is smaller than a preset noise threshold value, determining that the numbered interface is a normal interface;
and when the noise coefficient is greater than or equal to the noise threshold value, determining the numbered interface as a fault interface.
The detection method of the KVM switch comprises the steps that the detection instruction comprises a video playing instruction, and the feedback information comprises feedback video; according to the feedback interface, determining the detection result corresponding to the serial number interface comprises:
monitoring the feedback interface to obtain playing parameters corresponding to the feedback video;
when the playing parameters are the same as preset screen parameters, determining that the numbered interface is a normal interface;
and when the playing parameters are different from the screen parameters, determining that the numbered interface is a fault interface.
The detection method of the KVM switch, wherein the playing parameters comprise video resolution and video refresh rate; the screen parameters include screen resolution and screen refresh rate.
The method for detecting the KVM switch, wherein the method further comprises the following steps:
transmitting a switching instruction to the serial number interface;
when a display request corresponding to the switching instruction is detected, judging whether a request host corresponding to the display request is a detection host corresponding to an M+1st numbered interface according to the sequence of the numbered interfaces, wherein M is the number of the numbered interfaces;
if not, determining the numbered interface and the M+1st numbered interface as fault interfaces.
A detection device for a KVM switch, comprising:
the acquisition module is used for acquiring interface information of a connection interface connected with the detection host;
the numbering module is used for numbering the connection interfaces according to the interface information to obtain numbered interfaces;
the sending module is used for sending detection instructions to the detection host corresponding to each numbered interface according to the sequence of the numbered interfaces;
the display module is used for displaying a feedback interface corresponding to the feedback information when detecting the feedback information sent by the detection host aiming at the detection instruction;
and the determining module is used for determining a detection result corresponding to the serial number interface according to the feedback interface.
A computer readable storage medium storing one or more programs executable by one or more processors to implement steps in a method of detecting a KVM switch as described in any of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the method for detecting a KVM switch as described in any one of the above.
The beneficial effects are that: the invention provides a detection method and related equipment of a KVM (K-virtual machine) switch, wherein the KVM switch is firstly connected with a plurality of detection hosts, and each interface is numbered, so that information transmission between the detection hosts and the KVM switch can be detected in sequence according to the numbers. In the detection process, a detection instruction is sent to a detection host corresponding to the serial number interface, the detection host executes the detection instruction and transmits the detection instruction to a screen of the KVM switch, so that the screen displays an execution result of the host. If the serial number interface is normal, the detection host can execute the detection instruction correctly and feed back the correct execution result, and the feedback interface corresponds to the detection instruction; if the number interface is abnormal, the detection host computer may execute error, and the feedback interface displayed on the screen does not correspond to the detection instruction. Therefore, according to the feedback interface, the detection result corresponding to the serial number interface can be determined, so that the detection of each interface of the KVM switch is automatically completed, and the detection efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a detection method of a KVM switch according to the present invention.
FIG. 2 is a flowchart of a detection method of a KVM switch according to the present invention.
FIG. 3 is a flowchart of determining a detection result according to an external operation command in the detection method of the KVM switch of the present invention.
FIG. 4 is a schematic diagram of a detection apparatus of a KVM switch according to the present invention.
Fig. 5 is a schematic structural diagram of a terminal device provided by the present invention.
Detailed Description
The invention provides a detection method of a KVM switch, which is used for making the purposes, technical schemes and effects of the invention clearer and more definite, and the invention is further described in detail below by referring to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As shown in fig. 1 and 2, the present embodiment provides a method for detecting a KVM switch, which includes the following steps:
s10, acquiring interface information of a connection interface connected with the detection host.
Specifically, the KVM switch includes a display, a mouse, a keyboard, and a plurality of connection interfaces for connecting with the detection host. In this embodiment, the detecting host is a host that has been determined to be functioning properly. Before the user uses, each connection interface of the KVM switch is connected with the corresponding detection host. As shown in fig. 1, the number of connection interfaces is 2, and the number of detection hosts is also 2. The detection host may include a server, a database, a computer host, etc.
After detecting that the presence detection host is connected with the connection interface, the detection software acquires interface information of the connection interface, wherein the interface information can comprise the number of the connection interfaces, the names of the connection interfaces and the like.
And S20, numbering the connection interfaces according to the interface information to obtain numbered interfaces.
Specifically, according to the interface information, the detection software can determine the number of connection interfaces to be detected, and number the connection interfaces to obtain numbered interfaces. The number of the connection interfaces can be in various manners, for example, the total number is determined according to the number of the connection interfaces, and then the number, interface 1, interface 2 and the like are randomly allocated; for example, the number corresponding to the connection interface is determined according to the interface name of the connection interface, one connection interface is named as A, the other connection interface is named as B, the number corresponding to A is named as interface 1, and the number corresponding to B is named as interface 2.
S30, for each serial number interface, sending a detection instruction to a detection host corresponding to the serial number interface according to the sequence of the serial number interface.
Specifically, since the KVM switch has only one screen, for each numbered interface, the detection order of the detection hosts is determined in the order of the numbered interfaces, and detection instructions are sequentially sent to the detection hosts corresponding to the numbered interfaces. In this embodiment, the detection instruction may include an external operation instruction, an image display instruction, and a video play instruction.
The external operation instruction is an instruction for simulating the operation of the external device by a user, such as a mouse click instruction for performing left click and right click on a mouse, a mouse moving instruction for moving the mouse from one position to another according to a certain line, and a keyboard click instruction for pressing a single key or a plurality of keys of a keyboard. The external operation instruction is mainly used for judging whether the serial number interface can correctly transmit the external detection instruction to the detection host and accurately return the feedback of the host to the KVM switch.
The image display instruction refers to that a plurality of detection images for detection are stored in the detection host in advance, and whether the detection host loses pixel information or not, namely whether noise exists or not can be determined by displaying the detection images in the image transmission process. In this embodiment, the detected image is a solid-color image, and when pixel information is lost, noise points with pixel values different from other pixel points may exist in the solid-color image displayed on the screen.
And S40, when feedback information sent by the detection host for the detection instruction is detected, displaying a feedback interface corresponding to the feedback information.
Specifically, after the detection host receives the detection instruction, the detection host executes a corresponding operation, and sends the operation result as feedback information to the KVM switch. And after the detection software detects the feedback information, rendering the feedback information and displaying a corresponding feedback interface.
S50, determining a detection result corresponding to the serial number interface according to the feedback interface.
Specifically, the feedback interface is a result of directly reflecting the detection instruction executed by the detection host, so that the content reflected by the feedback interface cannot correspond to the detection instruction sent before, which means that when the detection instruction is transmitted or the detection host sends feedback information, the number interface cannot react correctly, so that the detection result corresponding to the number interface is determined to be a fault interface; if the content of the feedback interface reaction corresponds to the detection instruction, the detection result corresponding to the numbered interface is a normal interface.
For the three different detection instructions described above, different determination methods may be employed. It should be noted that the above detection instruction may be used alternatively or in combination.
As shown in fig. 3, for the detection instruction being an external operation instruction, the following steps are performed:
and A10, capturing a preset display interface and the feedback interface to obtain an operation image.
Specifically, a screenshot is firstly carried out on the feedback interface, and an operation image for displaying the feedback interface is obtained. The detection instruction can comprise a plurality of specific steps, such as left mouse click and right mouse click, the detection host responds and sends feedback information every time the detection host executes one step, the feedback interfaces are changed in sequence according to the response sequence, and each feedback interface after execution can perform screenshot to obtain an operation interface.
A20, determining processing information according to the operation image and a preset initial image.
Specifically, the initial image is an image obtained by screenshot and saving the interface of the screen before the feedback interface is displayed. From the initial image and the operation image, a step between the initial image and the operation image, and a step between the operation image and the operation image may be determined, thereby detecting a step accepted or executed by the host,
taking only one operation image as an example, the number of steps included in the detection instruction is 1, and the detection instruction is to move the mouse to the left by 100 pixels. And comparing the difference information between the initial image and the operation image, taking the difference information in the initial image, namely the position of the mouse in the initial image, as a starting point, taking the difference information in the operation image, namely the position of the mouse in the operation image, as an end point, determining the value of the moving distance between the end point and the starting point, and taking the value as processing information.
When the operation images are multiple, the number of steps included in the detection instruction is greater than 1, for example, 2, and the detection instruction is to move the mouse to the right by 200 pixels first and then click to the left. For operations that are not visible after a general execution, such as left click of a mouse, a mouse aperture, left click animation, and right click animation may be set in the detection host in advance, or one reaction animation may be set for each input key. The method specifically comprises the following steps:
determining difference information according to an Nth operation image and an (n+1) th operation image, wherein N is a natural number, and when N=0, the zeroth operation image is the initial image;
according to a preset reflection animation, determining the (n+1) th processing sub-information corresponding to the difference information;
and sequencing the processing sub-information according to the sequence of the operation images to obtain the processing information.
Specifically, for the first step, comparing the initial image with the first operation image, determining difference information, determining first processing sub-information according to the difference information, for example, reflecting different animation images for display, comparing the initial image with the first operation image, namely, the difference between the initial image and the first operation image, namely, the animation image, comparing the animation image with each preset execution step, for example, inputting a certain key or mouse operation, corresponding reaction animation, calculating the similarity between the animation image and each frame image reflecting the animation, taking the reaction animation of the frame image with the highest similarity as the corresponding target animation of the animation image, and determining the execution step corresponding to the difference information, namely, the first processing sub-information according to the input operation corresponding to the target animation. Similarly, for the second step, the first operational image and the second operational image may be compared to determine second processing sub-information. And sequencing the obtained processing sub-information according to the sequence of the operation images to obtain the processing information.
A30a, when the processing information is the same as the external operation instruction, determining that the numbered interface is a normal interface;
and A30b, when the processing information is different from the external operation instruction, determining the serial number interface as a fault interface.
Specifically, the processing information and the external operation instruction are compared, and the processing information and the external operation instruction are the same, so that the communication between the KVM switch and the detection host is normal, and the serial number interface is a normal interface; the two are different, which means that the communication between the KVM switch and the detection host is abnormal, and the serial number interface is a fault interface.
For the detection instruction being an image display instruction, the following steps may be performed to determine a detection result:
and B10, screenshot is carried out on the feedback interface, and a test image is obtained.
Specifically, when the number of the detected images is 1, screenshot is performed on the feedback interface, and then the test image can be obtained.
When the number of detected images is greater than 1, the image display instruction further includes a time interval for the detected image to be displayed, for example, 0 th second is detected image 1 and 1 st second is detected image 2. And screenshot is carried out on the feedback interface according to the interval time, so that a plurality of test images can be obtained.
And B20, comparing each pixel point of the test image according to a preset standard value, and calculating the noise coefficient of the test image.
Specifically, when the number of the test images is one, the pixel value of the test image is taken as a standard value, then each pixel point in the test image is compared with the standard value, and for each pixel point, the difference between the pixel point and the pixel value is calculated to obtain a corresponding noise value, wherein the noise value can adopt the difference value between the pixel point and the standard value, the ratio between the difference value and the standard value, and the like. And then, synthesizing the noise values, and calculating a noise coefficient, wherein the noise coefficient can adopt indexes such as variance, standard deviation and the like for adjective differences among the pixel points.
And when the number of the test images is greater than one, calculating an index corresponding to each test image according to the mode, and taking the index as a noise coefficient corresponding to the test image.
B30, when the noise coefficient is smaller than a preset noise threshold value, determining that the numbered interface is a normal interface; and when the noise coefficient is greater than or equal to the noise threshold value, determining the numbered interface as a fault interface.
Specifically, a noise threshold is preset, and the noise threshold is used for measuring whether the noise coefficient meets the requirement. For example, the set noise threshold is 0.001, if the number of the test images is one, if the noise coefficient is smaller than 0.001, the data transmission is determined to be stable, and the numbered interface is a normal interface; if the noise coefficient is greater than or equal to the noise threshold, the data transmission is unstable, and the numbered interface is determined to be a fault interface.
Aiming at the detection instruction being a video playing instruction, the detection result can be determined according to whether the playing process is normal or not, and the method specifically comprises the following steps:
and C10, monitoring the feedback interface to obtain playing parameters corresponding to the feedback video.
Specifically, when the detecting host plays the detected video, the playing quality of the detected video is determined by the quality of the video itself, the performances of the detecting host and the screen, and the transmission quality, and in this embodiment, both the detecting host and the screen are normal, so the playing quality when the video is played is determined by the transmission quality between the detecting host and the screen. The screen parameters of the interface, such as screen resolution, screen refresh rate, play frame rate, are detected in advance, and the detection host and the detection video stored in the detection host can meet the requirements of the screen parameters. When the detection video is played, the detection host sends the information after processing rendering to the KVM switch as feedback information. The KVM switch monitors the feedback interface to obtain the playing parameters of the video actually played on the screen.
C20, when the playing parameters are the same as preset screen parameters, determining that the numbered interface is a normal interface; and when the playing parameters are different from the screen parameters, determining that the numbered interface is a fault interface.
Specifically, the playing parameter is compared with the screen parameter, when the playing parameter is the same as the screen parameter, the numbered interface is a normal interface, and when the playing parameter is different from the screen parameter, the numbered interface is a fault interface.
In addition, after finishing the detection of one serial number interface, the next serial number interface needs to be continuously detected, so as to realize the automation of the detection, and detect whether the switching is normal or not at the same time, the embodiment further includes:
d10, sending a switching instruction to the serial number interface.
Specifically, before or after sending a detection instruction to the number interface, for example, after a preliminary detection result is provided to the number interface, a switch instruction may be sent to the number interface. The switching instruction is used for switching the detected numbered interface to the next numbered interface.
And D20, when the display request corresponding to the switching instruction is detected, judging whether the request host corresponding to the display request is a detection host corresponding to an M+1th numbered interface according to the sequence of the numbered interfaces, wherein M is the number of the serial numbers of the numbered interfaces.
Specifically, taking the first serial interface as an example, after the serial interface receives the switching instruction, the transmission of the data of the corresponding detection host is stopped, meanwhile, the second serial interface is awakened, the data of the second detection host is transmitted, and at the moment, a display request is sent to the KVM to display the corresponding image on the screen. After receiving the display request, the KVM switch can analyze the display request to determine the source of the display request source and make the detection host become the request host. And then judging whether the number interface corresponding to the request host is a second detection host or not.
It should be noted that M is the number of the numbered interfaces, which is not a number, and the number of the numbered interfaces is used to indicate the sequence of the numbered interfaces in the sequence, and the numbered interfaces may be in the form of english subtitles, symbols, and the like.
And D30, if not, determining the numbered interface and the M+1st numbered interface as fault interfaces.
Specifically, if yes, the state of the first numbered interface and the second numbered interface is normal in the switching process; if not, there may be an abnormality for the first number or the second number interface, requiring further draining.
In addition, if the serial number interface is the last serial number interface, the detection results corresponding to all the serial number interfaces are summarized and displayed so that a user can timely process the faults of the KVM switch interface.
Further, the modes of externally connecting an operation instruction, detecting an image and detecting a video, detecting a serial number interface and the like can be combined in pairs or integrated completely, so that a new detection scheme is obtained, for example, after all integration, the mode of determining the interface type of the serial number interface is as follows:
for each numbered interface, sending an external operation instruction to a detection host corresponding to the numbered interface according to the sequence of the numbered interfaces;
when first feedback information sent by the detection host for the external operation instruction is detected, a feedback interface corresponding to the first feedback information is displayed;
screenshot is carried out on the feedback interface to obtain an operation image;
determining processing information according to the operation image and a preset initial image;
when the processing information is not matched with the external operation instruction, determining that the numbered interface is a fault interface;
when the processing information is matched with the external operation instruction, sending an image display instruction to a detection host corresponding to the serial number interface;
when second feedback information sent by the detection host for the image display instruction is detected, a feedback interface corresponding to the second feedback information is displayed;
screenshot is carried out on the feedback interface to obtain a test image;
comparing each pixel point of the test image to determine the noise coefficient of the test image;
when the noise coefficient is greater than zero, determining the numbered interface as a fault interface;
when the noise coefficient is equal to zero, sending an image display instruction to a detection host corresponding to the serial number interface;
when detecting the third feedback information sent by the detection host aiming at the image display instruction, displaying a feedback interface corresponding to the third feedback information;
monitoring the feedback interface to obtain playing parameters corresponding to the feedback video;
when the playing parameters are different from the screen parameters, determining that the numbered interface is a fault interface;
when the playing parameters are the same as preset screen parameters, a switching instruction is sent to the serial number interface;
when a display request corresponding to the switching instruction is detected, judging whether a request host corresponding to the display request is a detection host corresponding to an M+1st numbered interface according to the sequence of the numbered interfaces, wherein M is the number of the numbered interfaces;
if not, determining the numbered interface and the M+1st numbered interface as fault interfaces.
The method is only one scheme which can be realized after all integration, and various combination modes such as image detection and video detection sequence exchange can be realized, and the rapid and efficient detection of the KVM switch can be realized only through simple sequencing and combination.
As shown in fig. 4, based on the above-mentioned detection method of the KVM switch, the present invention further provides a detection apparatus 100 of the KVM switch, which includes:
an obtaining module 110, configured to obtain interface information of a connection interface connected to the detection host;
the numbering module 120 is configured to number the connection interface according to the interface information, so as to obtain a numbered interface;
a sending module 130, configured to send, for each of the number interfaces, a detection instruction to a detection host corresponding to the number interface according to the sequence of the number interface;
the display module 140 is configured to display a feedback interface corresponding to feedback information sent by the detection host for the detection instruction when the feedback information is detected;
and the determining module 150 is configured to determine, according to the feedback interface, a detection result corresponding to the numbered interface.
The detection instruction comprises an external operation instruction; the determining module 150 is specifically configured to:
screenshot is carried out on the feedback interface to obtain an operation image;
determining processing information according to the operation image and a preset initial image;
when the processing information is matched with the external operation instruction, determining that the numbered interface is a normal interface;
and when the processing information is not matched with the external operation instruction, determining that the numbered interface is a fault interface.
The external operation instruction comprises a mouse moving instruction, a mouse clicking instruction and/or a keyboard clicking instruction.
The detection instruction comprises an image display instruction for controlling the detection host to display a detection image, wherein the detection image is a solid-color image; the determining module 150 is further configured to:
screenshot is carried out on the feedback interface to obtain a test image;
comparing each pixel point of the test image, and calculating the noise coefficient of the test image;
when the noise coefficient is smaller than a preset noise threshold value, determining that the numbered interface is a normal interface;
and when the noise coefficient is greater than or equal to the noise threshold value, determining the numbered interface as a fault interface.
The detection instruction comprises a video playing instruction, and the feedback information comprises feedback video; the determining module 150 is further configured to:
monitoring the feedback interface to obtain playing parameters corresponding to the feedback video;
when the playing parameters are the same as preset screen parameters, determining that the numbered interface is a normal interface;
and when the playing parameters are different from the screen parameters, determining that the numbered interface is a fault interface.
Wherein, the playing parameters comprise video resolution and video refresh rate; the screen parameters include screen resolution and screen refresh rate.
Wherein the apparatus 100 is further configured to:
transmitting a switching instruction to the serial number interface;
when a display request corresponding to the switching instruction is detected, judging whether a request host corresponding to the display request is a detection host corresponding to an M+1st numbered interface according to the sequence of the numbered interfaces, wherein M is the number of the numbered interfaces;
if not, determining the numbered interface and the M+1st numbered interface as fault interfaces.
Based on the detection method of the KVM switch, the invention also provides a terminal device, as shown in FIG. 5, comprising at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (communication interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic commands in the memory 22 to perform the methods of the embodiments described above.
In addition, the logic commands in the memory 22 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program commands or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, commands or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, or a transitory computer readable storage medium may be used.
In addition, the specific processes of loading and executing the plurality of command processors in the terminal device and the computer readable storage medium are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for detecting a KVM switch, the method comprising:
acquiring interface information of a connection interface connected with a detection host;
numbering the connection interfaces according to the interface information to obtain numbered interfaces;
for each numbered interface, sending a detection instruction to a detection host corresponding to the numbered interface according to the sequence of the numbered interfaces;
when feedback information sent by the detection host for the detection instruction is detected, a feedback interface corresponding to the feedback information is displayed;
determining a detection result corresponding to the serial number interface according to the feedback interface, wherein when the detection instruction is an image display instruction for controlling the detection host to display a detection image and the detection image is a solid-color image, determining the detection result corresponding to the serial number interface according to the feedback interface includes:
screenshot is carried out on the feedback interface to obtain a test image;
calculating the noise coefficient of the test image according to a preset standard value and each pixel point of the test image;
when the noise coefficient is smaller than a preset noise threshold value, determining that the numbered interface is a normal interface;
when the noise coefficient is greater than or equal to the noise threshold value, determining that the numbered interface is a fault interface;
when the detection instruction is an external operation instruction, each input key is provided with a reaction animation, and the determining the detection result corresponding to the serial number interface according to the feedback interface further comprises:
screenshot is carried out on the feedback interface to obtain an operation image;
determining processing information according to the operation image and a preset initial image, wherein the determining processing information according to the operation image and the preset initial image comprises:
determining difference information according to an Nth operation image and an (n+1) th operation image, wherein N is a natural number, and when N=0, the zeroth operation image is the initial image;
according to a preset reflection animation, determining the (n+1) th processing sub-information corresponding to the difference information;
sequencing the processing sub-information according to the sequence of the operation images to obtain processing information;
when the processing information is matched with the external operation instruction, determining that the numbered interface is a normal interface;
and when the processing information is not matched with the external operation instruction, determining that the numbered interface is a fault interface.
2. The method according to claim 1, wherein the external operation command includes a mouse move command, a mouse click command and/or a keyboard click command.
3. The method of claim 1, wherein the detection command includes a video play command and the feedback information includes a feedback video; according to the feedback interface, determining the detection result corresponding to the serial number interface comprises:
monitoring the feedback interface to obtain playing parameters corresponding to the feedback video;
when the playing parameters are the same as preset screen parameters, determining that the numbered interface is a normal interface;
and when the playing parameters are different from the screen parameters, determining that the numbered interface is a fault interface.
4. The method for detecting a KVM switch according to claim 3, wherein the playback parameters comprise video resolution and video refresh rate; the screen parameters include screen resolution and screen refresh rate.
5. The method for detecting a KVM switch as recited in claim 3, further comprising:
transmitting a switching instruction to the serial number interface;
when a display request corresponding to the switching instruction is detected, judging whether a request host corresponding to the display request is a detection host corresponding to an M+1st numbered interface according to the sequence of the numbered interfaces, wherein M is the number of the numbered interfaces;
if not, determining the numbered interface and the M+1st numbered interface as fault interfaces.
6. The utility model provides a detection device of KVM switch, characterized in that, detection device of KVM switch includes:
the acquisition module is used for acquiring interface information of a connection interface connected with the detection host;
the numbering module is used for numbering the connection interfaces according to the interface information to obtain numbered interfaces;
the sending module is used for sending detection instructions to the detection host corresponding to each numbered interface according to the sequence of the numbered interfaces;
the display module is used for displaying a feedback interface corresponding to the feedback information when detecting the feedback information sent by the detection host aiming at the detection instruction;
the determining module is configured to determine a detection result corresponding to the serial number interface according to the feedback interface, where when the detection instruction is an image display instruction for controlling the detection host to display a detection image and the detection image is a solid-color image, the determining module is configured to:
screenshot is carried out on the feedback interface to obtain a test image;
calculating the noise coefficient of the test image according to a preset standard value and each pixel point of the test image;
when the noise coefficient is smaller than a preset noise threshold value, determining that the numbered interface is a normal interface;
when the noise coefficient is greater than or equal to the noise threshold value, determining that the numbered interface is a fault interface;
the detection instruction is an external operation instruction, and each input key is provided with a reaction animation; the determining module is specifically configured to:
screenshot is carried out on the feedback interface to obtain an operation image;
determining processing information according to the operation image and a preset initial image, wherein the determining processing information according to the operation image and the preset initial image comprises:
determining difference information according to an Nth operation image and an (n+1) th operation image, wherein N is a natural number, and when N=0, the zeroth operation image is the initial image;
according to a preset reflection animation, determining the (n+1) th processing sub-information corresponding to the difference information;
sequencing the processing sub-information according to the sequence of the operation images to obtain processing information;
when the processing information is matched with the external operation instruction, determining that the numbered interface is a normal interface;
and when the processing information is not matched with the external operation instruction, determining that the numbered interface is a fault interface.
7. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method for detecting a KVM switch of any of claims 1-5.
8. A terminal device, comprising:
a processor, a memory, and a communication bus;
the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, performs the steps of the method for detecting a KVM switch as claimed in any one of claims 1 to 5.
CN202210938600.7A 2022-08-05 2022-08-05 Detection method of KVM switch and related equipment Active CN115328712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210938600.7A CN115328712B (en) 2022-08-05 2022-08-05 Detection method of KVM switch and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210938600.7A CN115328712B (en) 2022-08-05 2022-08-05 Detection method of KVM switch and related equipment

Publications (2)

Publication Number Publication Date
CN115328712A CN115328712A (en) 2022-11-11
CN115328712B true CN115328712B (en) 2023-06-06

Family

ID=83921706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210938600.7A Active CN115328712B (en) 2022-08-05 2022-08-05 Detection method of KVM switch and related equipment

Country Status (1)

Country Link
CN (1) CN115328712B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118425840A (en) * 2024-05-11 2024-08-02 深圳清芬挺秀信息科技有限公司 Test method and system for external display interface of notebook computer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667067A (en) * 2008-09-05 2010-03-10 宏正自动科技股份有限公司 KVM switch system and interface adapter for detecting interface of computer
CN106445823A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 KVM resolution testing method
JP2020191068A (en) * 2019-05-17 2020-11-26 広東叡江云計算股▲分▼有限公司Guangdong Eflycloud Computing Co., Ltd Virtual network card management method based on KVM

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7774518B2 (en) * 2007-09-19 2010-08-10 Aten International Co., Ltd. Method for switching of KVM switch ports and related device
CN102479474A (en) * 2010-11-26 2012-05-30 英业达股份有限公司 Detection system and method of display connection port
CN105867864A (en) * 2016-04-08 2016-08-17 杭州昆海信息技术有限公司 Method and device for displaying of K virtual machines (KVMs)
EP3232326B1 (en) * 2016-04-14 2019-06-05 High Sec Labs Ltd. Keyboard video mouse (kvm) device and method for detecting host failure using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667067A (en) * 2008-09-05 2010-03-10 宏正自动科技股份有限公司 KVM switch system and interface adapter for detecting interface of computer
CN106445823A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 KVM resolution testing method
JP2020191068A (en) * 2019-05-17 2020-11-26 広東叡江云計算股▲分▼有限公司Guangdong Eflycloud Computing Co., Ltd Virtual network card management method based on KVM

Also Published As

Publication number Publication date
CN115328712A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
US10127032B2 (en) System and method for unified firmware management
CN102279787B (en) Method and device for testing average fault-free time
CN115328712B (en) Detection method of KVM switch and related equipment
US20120254662A1 (en) Automated test system and automated test method
US7882395B2 (en) Debug device for embedded systems and method thereof
CN116627861B (en) Data processing method and system based on expander, electronic equipment and storage medium
US20080301496A1 (en) Data processor, data processing program, and data processing system
CN103970628A (en) Automatic detection system and automatic detection method thereof
JP2006085708A (en) Control device and control method for console
JP2022003515A (en) Computing system with discriminative classifier for determining similarity of monitored gas delivery process
US11862278B2 (en) Memory test systems and memory test methods
CN112905373B (en) Startup abnormity detection method, device and system of OPS equipment and interactive flat plate
CN111901589B (en) Automatic test system for television mainboard
US10514996B2 (en) Simulation reproducing apparatus and computer-readable recording medium
US6279104B1 (en) Debugging system for parallel processed program and debugging method thereof
JP2008176353A (en) Information processor and log acquisition method, and program
CN115292113B (en) Method and device for fault detection of internal memory of server and electronic equipment
CN113900875B (en) Startup test method and device, computer equipment and storage medium
CN116360886A (en) Startup display method, device, equipment and storage medium of electronic equipment
CN201285545Y (en) Starting-up monitoring apparatus for host board
CN114372003A (en) Test environment monitoring method and device and electronic equipment
TWI643060B (en) Automatic image monitoring method
CN115061590B (en) KVM (keyboard video mouse) seat system control method based on video identification and KVM seat system
JPWO2012114490A1 (en) Information processing apparatus, information acquisition method, and information acquisition program
CN118819982A (en) Performance test integrated software design method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant