CN115086650A - Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium - Google Patents

Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium Download PDF

Info

Publication number
CN115086650A
CN115086650A CN202210989779.9A CN202210989779A CN115086650A CN 115086650 A CN115086650 A CN 115086650A CN 202210989779 A CN202210989779 A CN 202210989779A CN 115086650 A CN115086650 A CN 115086650A
Authority
CN
China
Prior art keywords
equipment
kvm
link
abnormal
actual
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.)
Granted
Application number
CN202210989779.9A
Other languages
Chinese (zh)
Other versions
CN115086650B (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.)
Chipsee Guangzhou Technology Co ltd
Original Assignee
Chipsee Guangzhou 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 Chipsee Guangzhou Technology Co ltd filed Critical Chipsee Guangzhou Technology Co ltd
Priority to CN202210989779.9A priority Critical patent/CN115086650B/en
Publication of CN115086650A publication Critical patent/CN115086650A/en
Application granted granted Critical
Publication of CN115086650B publication Critical patent/CN115086650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • 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/2221Detection 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 input/output devices or peripheral units
    • 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/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching

Abstract

The invention provides a self-testing method and a self-testing device of a KVM (keyboard video mouse) seat system and a computer readable storage medium, wherein the method comprises the following steps: based on a preset first check rule, checking whether video code stream transmission among all devices in the KVM seat system is abnormal or not to obtain a first check result; based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not to obtain a second check result; and summarizing and outputting the first check result and the second check result. On one hand, the embodiment of the invention solves the product testing problems of multiple video matrix ports, multiple communication connection links, multiple modes of connection links, multiple use scenes and the like in the KVM seating system, releases testing personnel from a large amount of repeated test execution work and improves the testing efficiency; on the other hand, the maintainability of each device of the KVM seat system, which meets the technical problem of related products when being used in the field of users, is improved.

Description

Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of KVM test, in particular to a self-test method and device of a KVM seat system and a computer readable storage medium.
Background
A Keyboard-Video-Mouse (KVM) controls a plurality of devices through a set of Keyboard, display, and Mouse, and plays an important role in remote scheduling and monitoring. Most of the existing general automation solutions are based on specific protocols, the test environment also has requirements on related equipment such as a server and the like, and professional personnel are generally required to complete the work of automatic design, coding, execution and the like; however, the automation test based on the hardware device generally develops a set of special automation test devices for specific hardware devices, and the workload of the development is very large, so that the automation test is not basically adopted in the field of KVM agent management systems.
In the field of KVM seat management systems, because the human-computer interfaces of the equipment mainly comprise a mouse/keyboard and video, the human-computer interaction interface basically uses manual testing; in addition, the non-human-computer interaction functions in the KVM system, such as network communication, link exchange and communication link quality, are basically tested manually. Because of using the manual test, the human input is great; meanwhile, in the long-time high-strength test working process, testers are easy to fatigue, so that misjudgment is performed on a human-computer interaction interface, test errors, test omission and the like are caused, and the test efficiency and accuracy are low; moreover, the actual use environment of the KVM system is many, the manual test is difficult to complete the traversal test of the use scene of the device, scene omission easily occurs, in the iterative development process of the product, a large amount of repeated work can also occur in the manual test, the test progress is slow, and the product quality cannot be quickly reflected.
Disclosure of Invention
Embodiments of the present invention provide a self-testing method and apparatus for a KVM agent system, and a computer-readable storage medium, so as to solve the problem of low testing efficiency caused by manually testing the KVM agent management system.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a self-test method for a KVM agent system, including:
based on a preset first check rule, checking whether video code stream transmission among all devices in the KVM seat system is abnormal or not to obtain a first check result;
based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM agent system is consistent with the expected link connection relation or not to obtain a second check result;
and summarizing and outputting the first check result and the second check result.
In one embodiment, the verifying whether transmission of a video code stream between devices in the KVM agent system is abnormal based on a preset first verification rule to obtain a first verification result includes:
checking whether the video code stream transmitted by each device in the KVM seat system is accurate and continuous;
if the video code stream transmitted by each device in the KVM seat system is accurate and continuous, the first verification result indicates that the video code stream is normally transmitted;
and if the video code stream transmitted by each device in the KVM seat system is inaccurate and/or discontinuous, the first verification result is that the video code stream is abnormally transmitted.
In one embodiment, the KVM agent system includes a first device and a switch device, where the first device includes a management device and/or an access device; the checking whether the actual link connection relation of each device in the KVM agent system is consistent with the expected link connection relation based on a preset second checking rule to obtain a second checking result, includes:
acquiring actual connection information of the first device; the actual connection information comprises equipment information of the first equipment and an actual link connection relation;
acquiring expected connection information of the switching equipment; the expected connection information comprises device information of the first device and an expected link connection relationship;
if the actual link connection relation of the first device is consistent with the expected link connection relation of the first device, the second check result indicates that the first device is normally connected;
and if the actual link connection relation of the first equipment is inconsistent with the expected link connection relation of the first equipment, determining that the first equipment is abnormal in connection according to a second check result.
In one embodiment, the acquiring of the expected connection information of the switching device includes:
confirming whether the test instruction sent by the monitoring terminal to the switching equipment is a link change instruction;
if the test instruction is confirmed to be a link change instruction, further confirming whether the switching equipment configures a link corresponding to the link change instruction;
and if the switching equipment is confirmed not to be configured with the link corresponding to the link change instruction, configuring the corresponding link and updating the expected connection information of the switching equipment based on the link change instruction, and then broadcasting the updated expected connection information to the first equipment by the switching equipment.
In a certain embodiment, the method further comprises:
if the test instruction is not confirmed to be the link change instruction, further confirming whether the test instruction is abnormal data;
if the test instruction is confirmed to be abnormal data, the abnormal data is written into a log, and the log is reported to the monitoring terminal by the exchange equipment;
if the test instruction is confirmed not to be abnormal data, further confirming whether the test instruction contains an abnormal log request;
if the test instruction contains an abnormal log request, summarizing the historical log and reporting the historical log to the monitoring terminal by the exchange equipment.
In a certain embodiment, the acquiring the actual connection information of the first device includes:
acquiring an ID number of the first equipment timing broadcast;
and generating actual connection information of the first equipment based on the ID number broadcasted by the first equipment at regular time.
In one embodiment, before the obtaining the actual connection information of the first device, the checking whether transmission of the video code stream between the devices in the KVM agent system is abnormal based on a preset first check rule, and obtaining the first check result further includes:
when the first equipment receives a link change instruction or exceeds preset reporting time, confirming whether an interface of the first equipment is abnormal or not;
if the interface of the first equipment is confirmed to be abnormal, reporting abnormal data to the exchange equipment;
if the interface of the first equipment is confirmed to be normal, further confirming whether the actual link connection relation of the first equipment is abnormal;
and if the actual link connection relation of the first equipment is confirmed to be abnormal, reporting abnormal data to the switching equipment.
In a certain embodiment, the method further comprises:
if the actual link connection relation of the first equipment is confirmed to be normal, further confirming whether the actual connection information of the first equipment is updated according to the link change instruction;
and if so, storing the updated actual connection information of the first equipment.
In a second aspect, an embodiment of the present invention provides a self-test apparatus for a KVM agent system, including:
the first checking module is used for checking whether video code stream transmission among all devices in the KVM seat system is abnormal or not based on a preset first checking rule to obtain a first checking result;
the second checking module is used for checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not based on a preset second checking rule to obtain a second checking result;
and the output module is used for summarizing and outputting the first check result and the second check result.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where the storage medium includes a stored program, where the program, when running, controls a device on which the storage medium is located to perform the steps of the self-test method for the KVM seat system as described above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
by implementing the embodiment of the invention, the KVM seat system has a test function, and particularly, whether video code stream transmission among all devices in the KVM seat system is abnormal is checked based on a preset first check rule to obtain a first check result; based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not to obtain a second check result; and summarizing and outputting the first check result and the second check result. Therefore, the embodiment of the invention solves the product testing problems of multiple video matrix ports, multiple communication connection links, multiple modes of connection links, multiple use scenes and the like in the KVM seating system on one hand, releases testing personnel from a large amount of repeated test execution work and improves the testing efficiency; on the other hand, the maintainability of each device of the KVM seating system meeting the technical problems of related products when the device is used on the spot by a user is improved, and the on-spot problem positioning efficiency of the products is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic diagram of one connection of a KVM seating system according to one embodiment of the present invention;
FIG. 2 is a flow chart illustrating a self-test method of a KVM seating system according to an embodiment of the present invention;
FIG. 3 is a partial flow chart of a self-test method for a KVM agent system according to an embodiment of the present invention;
FIG. 4 is a partial flow chart illustrating a self-test method for a KVM seating system according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of anomaly detection and anomaly reporting of the first device in the embodiment of the present invention;
fig. 6 is a schematic flow chart of the switching device anomaly detection and anomaly reporting in the embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a self-test device of a KVM seating system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating one connection method of a KVM agent system according to an embodiment of the present invention. The KVM seat system mainly includes an access device, a switch device, and a management and control device, any two devices are interconnected by using an optical fiber/network cable, the optical fiber/network cable is used for transmitting a video code stream and an in-band signaling, all the devices realize video code stream transmission based on hardware and software, the commonly used hardware is an FPGA (Field Programmable Gate Array), and the commonly used software is an embedded software. The FPGA is used for realizing the exchange of video coding and decoding and video code streams and providing an in-band signaling channel for embedded software; the embedded software handles mainly in-band signaling.
It should be noted that the KVM seat system in fig. 1 is only an example, and the present invention is not limited to the KVM seat system in fig. 1, and may be a KVM seat system with other connection modes, which is not specifically limited herein.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a self-testing method of a KVM agent system according to an embodiment of the present invention, the method includes the following steps:
s10, based on the preset first check rule, checking whether the video code stream transmission among the devices in the KVM seat system is abnormal or not, and obtaining a first check result.
In order to detect whether transmission of a video code stream in each device of the KVM seat system is normal, in this embodiment, based on a preset first check rule, whether transmission of the video code stream between each device of the KVM seat system is abnormal is automatically checked, and a first check result is obtained. The first check result comprises that video code streams transmitted by all devices in the KVM seat system are consistent, video code streams transmitted by part of devices are inconsistent or video code streams transmitted by all devices are inconsistent. If the first verification result is that the video code streams transmitted by all the devices in the KVM seat system are consistent, the video code streams are normally transmitted in all the devices in the KVM seat system; if the first check result indicates that the video code streams transmitted by only part or all of the devices in the KVM seat system are inconsistent, it indicates that the transmission of the video code streams in each device of the KVM seat system is abnormal. Thus, in the embodiment, by checking the video stream of the KVM agent system, data check statistics and continuity statistics can be performed on the video stream.
Referring to fig. 3, in one embodiment, step S10 includes the following sub-steps:
s11, checking whether the video code stream transmitted by each device in the KVM seating system is accurate and continuous;
s12, if the video code stream transmitted by each device in the KVM seat system is accurate and continuous, the first verification result is that the video code stream is normally transmitted;
and S13, if the video code stream transmitted by each device in the KVM seating system is inaccurate and/or discontinuous, the first verification result is that the video code stream is transmitted abnormally.
In this embodiment, at the source of the video stream (i.e., the access device), the source data of each frame of the video stream is added with the check data and the frame number. The switching equipment detects the verification data of the received video code stream while exchanging data based on the ports, namely the accuracy and the continuity of the verification of the monitoring video code stream. The control equipment is responsible for decoding and displaying videos, and simultaneously monitors the check data and the frame continuity of the received code stream. Therefore, data check statistics and continuity statistics can be carried out on the video code stream in both the switching equipment and the control equipment.
Specifically, in step S11, the verifying whether the video code stream transmitted by each device in the KVM seat system is accurate and continuous includes: and checking whether the video code streams transmitted by the devices are complete and whether the frame serial numbers of the video code streams are continuous through the checking data of the video code streams transmitted by the switching device and the management and control device in the KVM seat system and the checking data of the access device.
If the video code stream transmitted by each device is verified to be complete and the frame sequence numbers of the video code streams are continuous through the verification data of the video code streams transmitted by the switching device and the management and control device in the KVM seat system and the verification data of the access device, the first verification result indicates that the video code streams are normally transmitted.
If the video code stream transmitted by each device is checked to be incomplete and/or the frame sequence number of the video code stream is not continuous through the check data of the video code stream transmitted by the switching device and the management and control device in the KVM seat system and the check data of the access device, the first check result is that the video code stream is abnormally transmitted.
And S20, based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM agent system is consistent with the expected link connection relation, and obtaining a second check result.
In order to test whether the hardware connection and the link connection of each device in the KVM agent system are normal, in this embodiment, based on a preset second check rule, whether the actual link connection relationship and the expected link connection relationship of each device in the KVM agent system are consistent is automatically checked, and a second check result is obtained. In this way, the present embodiment can find out the link configuration packet loss or the link configuration error problem through the mutual inspection of the expected link and the real connection link.
Referring to fig. 4, in a specific embodiment, the KVM agent system includes a first device and a switch device, the first device includes a management device and/or an access device, and step S20 includes the following sub-steps:
s21, acquiring actual connection information of the first equipment; the actual connection information comprises equipment information of the first equipment and an actual link connection relation;
s22, obtaining the expected connection information of the exchange equipment; the expected connection information comprises device information of the first device and an expected link connection relationship;
s23, if the actual link connection relation of the first device is consistent with the expected link connection relation of the first device, the second check result is that the first device is normally connected;
s24, if the actual link connection relationship of the first device is inconsistent with the expected link connection relationship of the first device, determining that the connection of the first device is abnormal as a second check result.
In this embodiment, the actual connection information and the expected connection information of the first device may be obtained by in-band signaling. The actual connection information includes device information of the first device and an actual link connection relationship, the device information represents identification information and attribute information of the first device, and the actual link connection relationship reflects interconnection information of the first device and other devices.
In one embodiment, step S21 includes the following sub-steps:
acquiring an ID number of the first equipment timing broadcast;
and generating actual connection information of the first equipment based on the ID number broadcasted by the first equipment at regular time.
In terms of in-band signaling, the first device broadcasts the ID number of the corresponding device at regular time, so that the first device can detect the real device interconnected therewith. For example, the management and control device 1 and the management and control device 2 are interconnected, the management and control device 1 and the management and control device 3 are not interconnected, and the management and control device 1, the management and control device 2, and the management and control device 3 broadcast the corresponding ID numbers at regular time, so that the management and control device 1 can detect that the real device interconnected with the management and control device 1 is the management and control device 2 by broadcasting information mutually. At the same time, the switching device broadcasts the expected link connection relationship to all the first devices in the KVM agent system each time a link switch is made or a new connection is established.
Since the first device can directly acquire its actual connection information and acquire the expected connection information of the first device from the switching device, the verification process of step S20 can be performed in the first device, i.e., the first device verifies whether its actual link connection relationship is consistent with the expected link connection relationship.
In another embodiment, the switching device may also obtain the actual connection information of the first device from the first device, and therefore, the verification process of step S20 may also be performed in the switching device, which is not specifically limited herein.
Referring to fig. 5, in an embodiment, before the step S21 obtains the actual connection information of the first device, the step S10 checks whether the transmission of the video stream between the devices in the KVM agent system is abnormal based on a preset first check rule, and obtaining a first check result further includes the following steps:
s51, when the first device receives a link change instruction or exceeds a preset reporting time, determining whether an interface of the first device is abnormal;
s52, if the interface of the first device is confirmed to be abnormal, reporting abnormal data to the switching device;
s53, if the interface of the first device is confirmed to be normal, further confirming whether the actual link connection relation of the first device is abnormal;
and S54, if the actual link connection relation of the first equipment is confirmed to be abnormal, reporting abnormal data to the switching equipment.
In this embodiment, the transmission abnormality of the video code stream includes an accuracy check abnormality, a continuity check abnormality, or an optical fiber communication Physical link abnormality of the video code stream, and therefore, the FPGA of the first device can also count the optical port/network port communication abnormality through a bottom layer abnormality provided by an optical port/network port PHY (Physical layer), so as to identify the optical fiber/network cable abnormality or the optical module abnormality. Therefore, when the first device receives the link change instruction or exceeds the preset reporting time, whether the interface of the first device is abnormal or not is confirmed, if the interface is abnormal, the data with the abnormal interface is reported to the switching device, and then the FPGA stops timing counting; and if the link connection relation is normal, further confirming whether the actual link connection relation of the first equipment is abnormal. Therefore, the problem of the abnormality of the first equipment interface is conveniently positioned.
In order to realize the test function, a tester manually or a monitoring terminal automatically issues a link change instruction so as to change the actual connection information of the first device. When the first device receives the link change instruction and confirms that the interface of the first device is normal, whether the link connection relation of the first device is abnormal needs to be confirmed again, if the link connection relation is normal, the current connection relation is kept, and if the link connection relation is abnormal, abnormal data are reported to the exchange device.
In addition, by means of overtime triggering, when the time for the first device to report the abnormal data last time exceeds the preset reporting time, whether the actual link connection relationship of the first device is abnormal can be confirmed again.
Specifically, as shown in fig. 5, the FPGA of the first device has a function of timing counting, and when the time for the first device to report the abnormal data last time exceeds the preset reporting time, the FPGA triggers a process of reconfirming whether the actual link connection relationship of the first device is abnormal, if the actual link connection relationship is normal, the first device maintains the current connection relationship, and then the FPGA continues to count at regular time; and if the data is abnormal, the first equipment reports abnormal data to the exchange equipment, and then the FPGA stops timing counting. Through the function of timing counting, the abnormal data can be prevented from being reported too much, so that the normal operation of the whole KVM seat system is interfered under the condition that the fault of the individual first equipment occurs, and in addition, the load of the first equipment is lightened in order to reduce the frequency of detecting the abnormal data by the first equipment.
With continued reference to fig. 5, in one embodiment, the method further comprises the steps of:
s55, if the actual link connection relation of the first equipment is confirmed to be normal, further confirming whether the actual connection information of the first equipment is updated according to the link change instruction;
and S56, if yes, storing the updated actual connection information of the first device.
In this embodiment, when it is determined that the actual link connection relationship of the first device is normal, it is further determined whether the actual connection information of the first device is updated according to the link change instruction, and if so, the actual connection information is saved and the FPGA continues to count at regular time; if not, the actual connection information is not stored, and the FPGA continues to count at regular time. And when the timing of the FPGA exceeds the preset time, triggering the first device to execute the step S51 so as to confirm whether the interface of the first device is abnormal. In this way, the first device can save the normal actual connection information of the first device through the above steps.
The above embodiment describes in detail the processing flow of the exception detection and the exception reporting of the first device, and the following embodiment describes in detail the processing flow of the exception detection and the exception reporting of the switching device.
Referring to fig. 6, in a specific embodiment, the switching device is configured to connect to a monitoring terminal, and the step S22 of obtaining expected connection information of the switching device includes the following steps:
s61, confirming whether the test instruction sent by the monitoring terminal to the switching equipment is a link change instruction;
s62, if the test instruction is confirmed to be a link change instruction, further confirming whether the switching equipment configures a link corresponding to the link change instruction;
s63, if it is determined that the switch device does not configure the link corresponding to the link change instruction, configuring the corresponding link and updating the expected connection information of the switch device based on the link change instruction, and then broadcasting the updated expected connection information to the first device by the switch device.
In this embodiment, the monitoring terminal is connected to the switching device through a TCP/IP protocol, other than the KVM agent system, and is configured to configure and manage the client software of the entire KVM agent system. The monitoring terminal can send a test instruction to the switching device, where the test instruction includes a link change instruction or other instructions, and the link change instruction includes a new link/switch link instruction. It will be appreciated that the link change instructions define the links that need to be newly established/switched and the corresponding device information. Illustratively, taking a link change instruction as a link switching instruction as an example, for example, a link between the management and control device 1 and the management and control device 2 is switched to a link between the management and control device 1 and the management and control device 3; taking the link change instruction as a new link instruction as an example, for example, adding the management and control device 4, if the management and control device 1 and the management and control device 4 need to be interconnected, the link of the management and control device 1 and the management and control device 4 needs to be configured.
When the switching device receives the link change instruction, the switching device needs to further confirm whether the switching device configures a link corresponding to the link change instruction, if not, based on the link change instruction, a backplane switching link register is configured to configure a corresponding link and update expected connection information of the switching device, then the switching device broadcasts the updated expected connection information to all first devices, and the first devices can also refresh the expected connection information on their on-screen displays (OSD) so that the first devices can automatically judge the consistency of real connection and expected connection based on actual connection information and expected connection information.
With continued reference to fig. 6, in one embodiment, the method further includes the steps of:
s64, if the test instruction is not confirmed to be the link change instruction, further confirming whether the test instruction is abnormal data;
s65, if the test instruction is confirmed to be abnormal data, writing the abnormal data into a log and reporting the log to the monitoring terminal by the exchange equipment;
s66, if the test instruction is not confirmed to be abnormal data, further confirming whether the test instruction contains an abnormal log request;
and S67, if the test instruction contains an abnormal log request, summarizing the historical log and reporting the historical log to the monitoring terminal by the switching equipment.
In the embodiment of the invention, to realize the function of automatically reporting abnormal test data, when the test instruction received by the switching equipment is not a link change instruction, whether the test instruction is abnormal data needs to be further confirmed, if the test instruction is confirmed to be abnormal data, the abnormal data is counted and written into a LOG, and then the LOG is reported to the monitoring terminal by the switching equipment; if the test instruction does not contain the abnormal LOG request, as shown in fig. 6, it is further determined whether the test instruction contains the abnormal LOG request, if the test instruction contains the abnormal LOG request, the LOG data is organized and counted, and then the LOG data is reported to the monitoring terminal by the switching device, and if the test instruction does not contain the abnormal LOG request, the switching device does not need to report the LOG data to the monitoring terminal.
When the first device detects a link connection error or various abnormalities counted by the FPGA, the first device reports data to the switching device, the data reported by the first device and the data monitored by the switching device are summarized and counted on the switching device, and a tester can visually see whether the whole KVM seat system has the abnormality or not on the switching device. Therefore, by implementing the embodiment of the invention, the tester of the KVM seat system performs manual or automatic link configuration after completing interconnection of related equipment, and then can judge and check the first check result and the second check result through log software provided by the system, so as to judge whether the communication network of the system has problems or not, rather than observing through a large amount of eyes for a long time, the testing efficiency is high, and the research and development cost of a test product is reduced.
In addition, still improved the maintainability of KVM seat system at the user scene, promoted the on-the-spot problem location efficiency of product: after a field tester passes certain training, LOG LOG data can be roughly analyzed, and partial non-equipment quality BUG can be distinguished; meanwhile, field support testers can easily acquire relatively comprehensive LOG LOG data for analysis of background research and development personnel.
And S30, summarizing and outputting the first check result and the second check result.
After the first check result and the second check result are obtained, the switching equipment collects and outputs the first check result and the second check result, so that a tester can visually see whether the whole KVM seat system has abnormality or not on the switching equipment.
In other embodiments, the switching device may output the first verification result and the second verification result to the monitoring terminal, so that the tester can visually see whether there is an abnormality in the entire KVM seat system on the monitoring terminal.
In summary, by implementing the embodiment of the present invention, the KVM seat system has a test function, and specifically, based on a preset first check rule, it is checked whether video code stream transmission between devices in the KVM seat system is abnormal, so as to obtain a first check result; based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not to obtain a second check result; and summarizing and outputting the first check result and the second check result. Therefore, the embodiment of the invention solves the product testing problems of multiple video matrix ports, multiple communication connection links, multiple modes of connection links, multiple use scenes and the like in the KVM seating system on one hand, releases testing personnel from a large amount of repeated test execution work and improves the testing efficiency; on the other hand, the maintainability of each device of the KVM seating system meeting the technical problems of related products when the device is used on the spot by a user is improved, and the on-spot problem positioning efficiency of the products is improved. In addition, problem location of the KVM seating system can be layered, and software designers organize and package scattered debugging information of bottom layer hardware/FPGA, namely, problem location ideas of the bottom layer hardware are arranged into software codes. When a product problem occurs, upper software personnel quickly analyze the probable cause of the problem and classify the problem, quickly identify the non-product quality problem and avoid the dilemma that all product developers must arrive at the site to solve once the product problem occurs.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a self-test device of a KVM seat system according to an embodiment of the present invention, where the self-test device includes:
the first checking module 101 is configured to check whether video code stream transmission between the devices in the KVM seat system is abnormal based on a preset first checking rule, and obtain a first checking result;
a second checking module 102, configured to check whether an actual link connection relationship of each device in the KVM agent system is consistent with an expected link connection relationship based on a preset second checking rule, and obtain a second checking result;
and the output module 103 is configured to summarize and output the first verification result and the second verification result.
In one embodiment, the first verification module 101 is specifically configured to:
verifying whether the verification data of the video code streams transmitted by the devices in the KVM seat system are consistent and whether the frame serial numbers are continuous; the source data of the video code stream is provided with check data and a frame number;
if the verification data of the video code stream transmitted by each device in the KVM seat system are consistent and the frame sequence numbers are continuous, the first verification result indicates that the video code stream is normally transmitted;
and if the verification data of the video code stream transmitted by each device in the KVM seating system are inconsistent and/or the frame sequence number is discontinuous, the first verification result is that the video code stream is abnormally transmitted.
In one embodiment, the self-test device further comprises:
a first obtaining module, configured to obtain actual connection information of the first device; the actual connection information comprises equipment information of the first equipment and an actual link connection relation;
a second obtaining module, configured to obtain expected connection information of the switching device; the expected connection information comprises device information of the first device and an expected link connection relationship;
the second check module 102 is specifically configured to:
if the actual link connection relation of the first equipment is consistent with the expected link connection relation of the first equipment, the second check result is that the first equipment is normally connected;
and if the actual link connection relation of the first equipment is inconsistent with the expected link connection relation of the first equipment, determining that the first equipment is abnormal in connection according to a second check result.
In one embodiment, the switching device is configured to connect to a monitoring terminal, and the self-test apparatus further includes a first confirmation module, where the first confirmation module is configured to:
confirming whether the test instruction sent by the monitoring terminal to the switching equipment is a link change instruction;
if the test instruction is confirmed to be a link change instruction, further confirming whether the switching equipment configures a link corresponding to the link change instruction;
and if the switching equipment is confirmed not to be configured with the link corresponding to the link change instruction, configuring the corresponding link and updating the expected connection information of the switching equipment based on the link change instruction.
In one embodiment, the self-test device further includes a reporting module, where the reporting module is configured to:
when the first confirmation module confirms that the test instruction is not a link change instruction and confirms that the test instruction is abnormal data, writing the abnormal data into a log and reporting the log to the monitoring terminal by the switching equipment;
and the first confirmation module is used for confirming that the test instruction is not abnormal data and confirming that the test instruction comprises an abnormal log request, and then the historical logs are gathered and reported to the monitoring terminal by the switching equipment.
In one embodiment, the first obtaining module is specifically configured to:
acquiring an ID number of the first equipment timing broadcast;
and generating actual connection information of the first equipment based on the ID number broadcasted by the first equipment at regular time.
In one embodiment, the self-test device further comprises a second validation module for:
when the first equipment receives a link change instruction or exceeds preset reporting time, confirming whether an interface of the first equipment is abnormal or not;
if the interface of the first equipment is confirmed to be abnormal, reporting abnormal data to the exchange equipment;
if the interface of the first equipment is confirmed to be normal, further confirming whether the actual link connection relation of the first equipment is abnormal;
and if the actual link connection relation of the first equipment is confirmed to be abnormal, reporting abnormal data to the switching equipment.
In one embodiment, the self-test device further comprises a save module, the save module is configured to:
and when the second confirmation module confirms that the actual link connection relation of the first equipment is normal and confirms that the actual connection information of the first equipment is updated according to the link change instruction, storing the updated actual connection information of the first equipment.
For specific limitations of the self-test device of the KVM agent system, reference may be made to the above limitations of the self-test method of the KVM agent system, which are not described herein again. The modules in the self-test apparatus of the KVM agent system described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Referring to fig. 8, an embodiment of the present invention further provides a terminal device, including:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of self-testing a KVM agent system as described in any of the embodiments above.
In the embodiment of the present invention, the terminal device may be the monitoring terminal described above.
The processor is used for controlling the overall operation of the terminal equipment so as to complete all or part of the steps of the self-test method of the KVM seat system. The memory is used to store various types of data to support operation at the terminal device, and these data may include, for example, instructions for any application or method operating on the terminal device, as well as application-related data. The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
In an exemplary embodiment, the terminal Device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, and is configured to perform a self-test method of the KVM seat system according to any one of the embodiments described above, and achieve technical effects consistent with the above method.
In another exemplary embodiment, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium includes a stored program, where the program, when executed, controls a device on which the storage medium is located to perform the steps of the self-test method for a KVM agent system according to any of the above embodiments. For example, the computer readable storage medium may be the above mentioned memory comprising a computer program, which is executable by a processor of a terminal device to perform a self-test method of a KVM agent system as described in any of the above mentioned embodiments, and to achieve the technical effects in accordance with the above mentioned method.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and is not intended to limit the scope of the present application, which is defined by the appended claims and their equivalents, and all changes that can be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A self-test method of a KVM agent system, comprising:
based on a preset first check rule, checking whether video code stream transmission among all devices in the KVM seat system is abnormal or not to obtain a first check result;
based on a preset second check rule, checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not to obtain a second check result;
and summarizing and outputting the first check result and the second check result.
2. The self-testing method of the KVM agent system according to claim 1, wherein said checking whether the video stream transmission between the devices in the KVM agent system is abnormal based on the preset first check rule, and obtaining the first check result comprises:
checking whether the video code stream transmitted by each device in the KVM seat system is accurate and continuous;
if the video code stream transmitted by each device in the KVM seat system is accurate and continuous, the first verification result indicates that the video code stream is normally transmitted;
and if the video code stream transmitted by each device in the KVM seat system is inaccurate and/or discontinuous, the first verification result is that the video code stream is abnormally transmitted.
3. The self-test method of a KVM agent system according to claim 1, wherein said KVM agent system comprises a first device and a switching device, said first device comprising a management device and/or an access device; the checking whether the actual link connection relation of each device in the KVM agent system is consistent with the expected link connection relation based on a preset second checking rule to obtain a second checking result, includes:
acquiring actual connection information of the first device; the actual connection information comprises equipment information of the first equipment and an actual link connection relation;
acquiring expected connection information of the switching equipment; the expected connection information comprises device information of the first device and an expected link connection relationship;
if the actual link connection relation of the first device is consistent with the expected link connection relation of the first device, the second check result indicates that the first device is normally connected;
and if the actual link connection relation of the first equipment is inconsistent with the expected link connection relation of the first equipment, determining that the first equipment is abnormal in connection according to a second check result.
4. The self-testing method of a KVM agent system according to claim 3, wherein said switch device is configured to connect to a monitoring terminal, and said obtaining the expected connection information of said switch device comprises:
confirming whether the test instruction sent by the monitoring terminal to the switching equipment is a link change instruction;
if the test instruction is confirmed to be a link change instruction, further confirming whether the switching equipment configures a link corresponding to the link change instruction;
if the switching equipment is confirmed not to be configured with the link corresponding to the link changing instruction, the corresponding link is configured and the expected connection information of the switching equipment is updated based on the link changing instruction, and then the updated expected connection information is broadcasted to the first equipment.
5. The self-test method of a KVM agent system according to claim 4, further comprising:
if the test instruction is not confirmed to be the link change instruction, further confirming whether the test instruction is abnormal data;
if the test instruction is confirmed to be abnormal data, the abnormal data is written into a log, and the log is reported to the monitoring terminal by the exchange equipment;
if the test instruction is confirmed not to be abnormal data, further confirming whether the test instruction contains an abnormal log request;
if the test instruction contains an abnormal log request, summarizing the historical log and reporting the historical log to the monitoring terminal by the exchange equipment.
6. The self-test method of a KVM agent system according to claim 3, wherein said obtaining actual connection information of said first device comprises:
acquiring an ID number of the first equipment timing broadcast;
and generating actual connection information of the first equipment based on the ID number broadcasted by the first equipment at regular time.
7. The self-testing method of the KVM agent system according to claim 6, wherein before said obtaining the actual connection information of the first device, said checking whether the video stream transmission between the devices in the KVM agent system is abnormal based on a preset first check rule, and obtaining the first check result further comprises:
when the first equipment receives a link change instruction or exceeds a preset reporting time, confirming whether an interface of the first equipment is abnormal or not;
if the interface of the first equipment is confirmed to be abnormal, reporting abnormal data to the exchange equipment;
if the interface of the first equipment is confirmed to be normal, further confirming whether the actual link connection relation of the first equipment is abnormal;
and if the actual link connection relation of the first equipment is confirmed to be abnormal, reporting abnormal data to the switching equipment.
8. The self-test method of a KVM agent system according to claim 7, further comprising:
if the actual link connection relation of the first equipment is confirmed to be normal, further confirming whether the actual connection information of the first equipment is updated according to the link change instruction;
and if so, storing the updated actual connection information of the first equipment.
9. A self-test apparatus for a KVM seating system, comprising:
the first checking module is used for checking whether video code stream transmission among all devices in the KVM seat system is abnormal or not based on a preset first checking rule to obtain a first checking result;
the second checking module is used for checking whether the actual link connection relation of each device in the KVM seat system is consistent with the expected link connection relation or not based on a preset second checking rule to obtain a second checking result;
and the output module is used for summarizing and outputting the first check result and the second check result.
10. A computer readable storage medium, characterized in that the storage medium comprises a stored program, wherein the program, when executed, controls a device on which the storage medium is located to perform the steps of a self-test method of a KVM agent system according to any of claims 1 to 8.
CN202210989779.9A 2022-08-18 2022-08-18 Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium Active CN115086650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210989779.9A CN115086650B (en) 2022-08-18 2022-08-18 Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210989779.9A CN115086650B (en) 2022-08-18 2022-08-18 Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115086650A true CN115086650A (en) 2022-09-20
CN115086650B CN115086650B (en) 2022-11-22

Family

ID=83244582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210989779.9A Active CN115086650B (en) 2022-08-18 2022-08-18 Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115086650B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409745A (en) * 2007-10-11 2009-04-15 中兴通讯股份有限公司 Method for testing seat automatically
CN109587349A (en) * 2018-11-14 2019-04-05 平安科技(深圳)有限公司 Multimedia is attended a banquet line testing process and device, electronic equipment, storage medium
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure
CN112153437A (en) * 2020-09-08 2020-12-29 深圳市创维群欣安防科技股份有限公司 Seat equipment control method, terminal and storage medium
CN113835946A (en) * 2021-10-26 2021-12-24 北京淳中科技股份有限公司 Pressure testing method for data exchange

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409745A (en) * 2007-10-11 2009-04-15 中兴通讯股份有限公司 Method for testing seat automatically
CN109587349A (en) * 2018-11-14 2019-04-05 平安科技(深圳)有限公司 Multimedia is attended a banquet line testing process and device, electronic equipment, storage medium
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure
CN112153437A (en) * 2020-09-08 2020-12-29 深圳市创维群欣安防科技股份有限公司 Seat equipment control method, terminal and storage medium
CN113835946A (en) * 2021-10-26 2021-12-24 北京淳中科技股份有限公司 Pressure testing method for data exchange

Also Published As

Publication number Publication date
CN115086650B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN109388530B (en) Blade server-oriented automatic test platform and test method
CN107294808B (en) Interface test method, device and system
US7975184B2 (en) Diagnostic access system
US5375126A (en) Integrated logical and physical fault diagnosis in data transmission systems
US5812826A (en) Method and apparatus for emulating a network of state monitoring devices
US20220321440A1 (en) Interface Service Function Monitoring Method and System Based on Data Acquisition
CN109408338B (en) Method, device, equipment and system for grabbing trace of NVME (network video management entity) hard disk
US7451206B2 (en) Send of software tracer messages via IP from several sources to be stored by a remote server
EP3497574A1 (en) System and method for continuous testing and delivery of software
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN109633351B (en) Intelligent IT operation and maintenance fault positioning method, device, equipment and readable storage medium
CN111881014A (en) System test method, device, storage medium and electronic equipment
CN109101398A (en) AOI wire body monitoring method and system
CN111966587A (en) Data acquisition method, device and equipment
CN115086650B (en) Self-testing method and device of KVM (keyboard video mouse) seat system and computer readable storage medium
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
CN116225802A (en) Fault testing method and device and computing equipment
CN109669841A (en) A kind of monitoring method, device, server, client terminal and monitoring system
CN114372003A (en) Test environment monitoring method and device and electronic equipment
Min et al. Verification of failover effects from distributed control system communication networks in digitalized nuclear power plants
CN116382968B (en) Fault detection method and device for external equipment
CN114090382B (en) Health inspection method and device for super-converged cluster
CN108737220B (en) Test system of routing equipment
CN116419103A (en) Positioning method and device for SAN network abnormality, monitoring server and storage medium
CN116521496A (en) Method, system, computer device and storage medium for verifying server performance

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