CN114911653A - Interface detection method, device, electronic equipment, system and medium - Google Patents

Interface detection method, device, electronic equipment, system and medium Download PDF

Info

Publication number
CN114911653A
CN114911653A CN202110178451.4A CN202110178451A CN114911653A CN 114911653 A CN114911653 A CN 114911653A CN 202110178451 A CN202110178451 A CN 202110178451A CN 114911653 A CN114911653 A CN 114911653A
Authority
CN
China
Prior art keywords
signal
equipment
tested
interface
output interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110178451.4A
Other languages
Chinese (zh)
Inventor
黄康
姚秋爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202110178451.4A priority Critical patent/CN114911653A/en
Publication of CN114911653A publication Critical patent/CN114911653A/en
Pending legal-status Critical Current

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/2247Verification or detection of system hardware configuration
    • 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
    • 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
    • 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/26Functional testing
    • G06F11/267Reconfiguring circuits for testing, e.g. LSSD, partitioning

Abstract

The embodiment of the application discloses an interface detection method, an interface detection device, electronic equipment, an interface detection system and a medium. The method comprises the following steps: performing linkage configuration on an input interface of the equipment to be tested and an output interface of the equipment to be tested; inputting a detection signal to an input interface of the equipment to be detected through an output interface of the signal transceiving module; acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiver module; and determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal. According to the scheme, the automatic detection of the interface can be realized, and the efficiency and the accuracy of the interface detection are improved.

Description

Interface detection method, device, electronic equipment, system and medium
Technical Field
The embodiment of the application relates to the technical field of automatic detection, in particular to an interface detection method, an interface detection device, electronic equipment, an interface detection system and a medium.
Background
The alarm circuit comprises an alarm input interface and an alarm output interface, and is an indispensable external interface function for alarm linkage of the security equipment. The complete alarm circuit relates to the design of a hardware peripheral circuit, the design of a software driving module and the like, and the unreasonable design of any one of the alarm circuits can cause abnormal alarm and failure of emergency alarm, thereby causing immeasurable loss.
At present, while ensuring that no abnormality occurs in the development and design stage of the alarm circuit, it is necessary to detect the probabilistic abnormal condition of the alarm circuit, and detect the operating states of the input interface and the output interface with more alarm circuits so as to test whether probabilistic occasional abnormal phenomena occur.
However, the current detection scheme for the alarm circuit interface generally needs manual configuration and detection, has low efficiency and accuracy, and is difficult to realize the rapid detection of a large data volume of a plurality of interfaces of a plurality of alarm circuits.
Disclosure of Invention
The embodiment of the application provides an interface detection method, an interface detection device, electronic equipment, an interface detection system and a medium, so that an input interface and an output interface of equipment to be detected can be detected quickly and accurately.
In an embodiment, an embodiment of the present application provides an interface detection method, where an input interface of a device under test is in one-to-one butt joint with an output interface of a signal transceiver module, and the output interface of the device under test is in one-to-one butt joint with the input interface of the signal transceiver module, the method including:
performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
inputting a detection signal to an input interface of the equipment to be detected through an output interface of a signal transceiving module;
acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiver module;
and determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
In another embodiment, an embodiment of the present application further provides an interface detection apparatus, where input interfaces of devices to be tested are in one-to-one butt joint with output interfaces of signal transceiver modules, and the output interfaces of the devices to be tested are in one-to-one butt joint with the input interfaces of the signal transceiver modules, the apparatus including:
the configuration module is used for performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
the signal input module is used for inputting a detection signal to the input interface of the equipment to be detected through the output interface of the signal transceiving module;
the signal acquisition module is used for acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiving module;
and the detection result determining module is used for determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
In another embodiment, an embodiment of the present application further provides an electronic device, including: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the interface detection method according to any one of the embodiments of the present application.
In an embodiment, an embodiment of the present application further provides an interface detection system, where the system includes:
the output interfaces of the signal transceiving modules are used for being in one-to-one butt joint with the input interfaces of the equipment to be tested, and the input interfaces of the signal transceiving modules are used for being in one-to-one butt joint with the output interfaces of the equipment to be tested;
the electronic device is used for being in communication connection with the device to be tested and the signal transceiving module respectively, and the electronic device can achieve the interface detection method in any one of the embodiments of the application.
In one embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the interface detection method according to any one of the embodiments of the present application.
In the embodiment of the application, the input interface of the equipment to be tested and the output interface of the equipment to be tested are in linkage configuration; inputting a detection signal to an input interface of the equipment to be detected through an output interface of a signal transceiving module; acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiver module; according to the comparison result of linkage signal and theoretical signal, it is right to confirm the input interface of the equipment to be tested with the testing result of the output interface of the equipment to be tested, realized the automated inspection to input interface and output interface of the equipment to be tested, solved that mode detection efficiency and rate of accuracy that manual detection is low, the loaded down with trivial details problem of process to and be difficult to satisfy the problem that the big data volume of a plurality of interfaces of a plurality of equipment to be tested tests the real-time requirement, thereby improved efficiency and rate of accuracy to the big data volume detection of a plurality of interfaces of a plurality of equipment to be tested, can accurately verify the recurrence of little probability problem through the automated inspection of big data volume, and reduced the operating capacity requirement to technical staff, lightened the work load of technical staff manual operation.
Drawings
FIG. 1 is a block diagram of a system environment provided by an embodiment of the present application;
fig. 2 is a flowchart of an interface detection method according to an embodiment of the present application;
FIG. 3 is a block diagram of a connection through a signal detection module according to an embodiment of the present application;
fig. 4 is a circuit diagram of a signal detection module according to an embodiment of the present application;
fig. 5 is a flowchart of an interface detection method according to another embodiment of the present application;
fig. 6 is a flowchart of an interface detection method according to another embodiment of the present application;
fig. 7 is a flowchart illustrating an implementation of an interface detection method according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an interface detection apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an interface detection system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of an interface detection method according to an embodiment of the present application. The interface detection method provided by the embodiment of the application can be applied to the condition of detecting the input interface and the output interface of the equipment to be detected. Typically, the embodiment of the application is suitable for the condition of automatically detecting the abnormality of the input interface and the output interface of the alarm circuit. The method may be specifically performed by an interface detection apparatus, which may be implemented by software and/or hardware, and which may be integrated in an electronic device capable of implementing the interface detection method.
In the embodiment of the present application, the system environment in which the method is implemented may be: the input interface of the equipment to be tested is in one-to-one butt joint with the output interface of the signal transceiving module, and the output interface of the equipment to be tested is in one-to-one butt joint with the input interface of the signal transceiving module. As shown in fig. 1, the device to be tested has an input interface and an output interface, the input interface of the device to be tested is in one-to-one butt joint with the output interface of the signal transceiver module to receive the signal output by the signal transceiver module, the output interface of the device to be tested is in one-to-one butt joint with the input interface of the signal transceiver module to input the signal to the input interface of the signal transceiver module, and the specific form of the one-to-one butt joint is not limited, for example, the device to be tested may be directly connected in a wired or wireless manner, or may be connected through other modules. The signal transceiver module is in communication connection with the electronic device, and the electronic device can control the signal transceiver module to transmit and receive signals.
Referring to fig. 2, the method of the embodiment of the present application specifically includes:
and S110, carrying out linkage configuration on an input interface of the equipment to be tested and an output interface of the equipment to be tested.
The device to be tested may be a device having an input interface and an output interface, such as an alarm device. The linkage configuration may be configured such that, if a signal of the input interface of the device under test changes, a signal of the output interface of the device under test also changes, for example, if the signal of the input interface of the device under test changes from a low level to a high level, the signal of the output interface of the device under test also changes from a low level to a high level. Or, if the signal of the input interface of the device under test changes from low level to high level, the signal of the output interface of the device under test changes from high level to low level. It should be noted that, when the signal of the input interface of the device under test changes, the change relationship of the output interface of the device under test may be set according to an actual situation, and is not limited. In addition, the number of the input interfaces of the device to be detected and the number of the output interfaces of the device to be detected in linkage configuration are not specifically limited, and can be set according to actual conditions, for example, according to the number of the interfaces to be detected during interface detection.
In the embodiment of the application, the linkage configuration may be performed by sending a configuration instruction to the device to be tested by the electronic device to control the device to be tested to perform configuration, or may be performed automatically through a configuration interface on the electronic device.
In this embodiment of the present application, it is right the input interface of the device under test with the output interface of the device under test carries out linkage configuration, including:
entering a management interface of the equipment to be tested through a management address of the equipment to be tested on a WEB page; and sending a configuration request to the WEB page through a request automatic sending module so as to perform linkage configuration on the input interface of the equipment to be tested and the output interface of the equipment to be tested through the management interface of the equipment to be tested.
The request automatic sending module may be a software module capable of automatically sending a request to a WEB page, and may perform operations such as login verification, agent setting, and the like, for example, a python3 request module. For example, a management address of the device to be tested may be input on a WEB page of the electronic device, and the management address enters a management interface of the device to be tested. The configuration request is automatically sent to the WEB page through the request automatic sending module, and linkage configuration is carried out on the input interface of the equipment to be tested and the output interface of the equipment to be tested on the WEB page, so that a linkage configuration result is visually displayed on the WEB page, and linkage configuration of the input interface and the output interface of the equipment to be tested is controlled.
And S120, inputting a detection signal to an input interface of the equipment to be detected through an output interface of the signal transceiving module.
For example, the electronic device control signal transceiver module outputs the detection signal through the output interface, and since the input interface of the device under test is in one-to-one butt joint with the output interface of the signal transceiver module, the input interface of the device under test can acquire the detection signal output by the output interface of the signal transceiver module.
Specifically, the number of output interfaces of the signal transceiver module that outputs the detection signal and through which output interfaces of the signal transceiver module the detection signal is output may be determined according to actual situations, for example, according to the input interface of the device under test and the output interfaces and the number of the device under test that are detected in a targeted manner, which output interfaces of the signal transceiver module the detection signal is output through.
The electronic equipment inputs the detection signal to the input interface of the equipment to be detected through the signal transceiving module, so that the automatic execution of the detection signal input to the equipment to be detected is realized, the problem of low manual control efficiency is solved, and the efficiency of large data detection of a plurality of equipment or a plurality of interfaces is improved. And the signal transceiver module inputs the detection signal to the equipment to be detected, which output interfaces of the signal transceiver module input the detection signal to the equipment to be detected can be controlled in a targeted manner, so that the specified interface of the equipment to be detected is detected in a targeted manner, and the efficiency and the accuracy of interface detection are improved.
And S130, acquiring the linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
For example, after the detection signal is input to the input interface of the device under test through the signal transceiver module, since the input interface of the device under test receives the detection signal, a signal of the output interface of the device under test configured in linkage with the input interface of the device under test that receives the detection signal changes correspondingly to generate a linkage signal, and thus, the linkage signal output by the output interface of the device under test can be acquired through the input interface of the signal transceiver module.
Specifically, the output interface of the device to be tested that is linked with the input interface of the device to be tested that receives the detection signal may be at least one, and then the obtained linked signal of the output interface of the at least one device to be tested is also at least one, and detection is performed for each linked signal, so that the output interface of the device to be tested that has the abnormality can be specifically determined, or the input interface of the device to be tested that has the abnormality can be specifically determined.
S140, determining detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
The theoretical signal can be determined according to a linkage relationship of linkage configuration between the input interface of the device to be tested and the output interface of the device to be tested, and a signal conversion relationship when the output interface of the device to be tested is in butt joint with the input interface of the signal transceiver module. Illustratively, if the output interface of the device to be tested is directly connected with the input interface of the signal transceiver module, when the signal transceiver module inputs a detection signal to the input interface of the device to be tested, the detection signal is converted through a linkage relationship configured by linkage between the input interface of the device to be tested and the output interface of the device to be tested, a theoretical signal theoretically acquired through the input interface of the signal transceiver module is determined, then the linkage signal actually acquired through the input interface of the signal transceiver module is compared with the theoretical signal, and the detection results of the input interface of the device to be tested and the output interface of the device to be tested are determined according to the comparison result. If the output interface of the equipment to be detected is connected with the input interface of the signal transceiving module through other modules, when a detection signal is input to the input interface of the equipment to be detected through the signal transceiving module, the detection signal is converted through a linkage relation configured by linkage between the input interface of the equipment to be detected and the output interface of the equipment to be detected, and is converted through signals of other modules, a theoretical signal which is theoretically obtained through the input interface of the signal transceiving module at the moment is determined, then the linkage signal and the theoretical signal which are actually obtained through the input interface of the signal transceiving module are compared, and the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected are determined according to the comparison result. The interlock signal is not limited to a specific value, and may be a level change signal or the like.
In the embodiment of the application, the input interface of the equipment to be tested is in one-to-one butt joint with the output interface of the signal transceiving module, the output interface of the equipment to be tested is in one-to-one butt joint with the input interface of the signal transceiving module, and the input interface of the equipment to be tested and the output interface of the equipment to be tested are in linkage configuration; inputting a detection signal to an input interface of the equipment to be detected through an output interface of the signal transceiving module; acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiver module; according to the comparison result of linkage signal and theoretical signal, it is right to confirm the input interface of the equipment to be tested with the testing result of the output interface of the equipment to be tested, the automated inspection to the input interface and the output interface of the equipment to be tested is realized, the problems of low detection efficiency and accuracy of manual inspection and complex process are solved, and the problem of meeting the real-time requirement of the large data volume test of a plurality of interfaces of a plurality of equipment to be tested is difficult to meet, thereby improving the efficiency and accuracy of the large data volume detection of a plurality of interfaces of the equipment to be tested, the recurrence of the small probability problem can be accurately verified through the automated inspection of the large data volume, the requirement on the operation capability of technical personnel is reduced, and the workload of manual operation of the technical personnel is reduced.
In this embodiment of the present application, the output interface of the device under test is in one-to-one butt joint with the input interface of the signal transceiver module through the signal detection module, so as to pass through the signal detection module to adjust the initial signal of the input interface of the signal transceiver module. Determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal, wherein the detection results comprise: if the linkage signal is consistent with the theoretical signal in comparison, determining that the input interface of the equipment to be tested and the output interface of the equipment to be tested are detected normally; if the linkage signal is inconsistent with the theoretical signal in comparison, determining that the detection of the input interface of the equipment to be detected and/or the output interface of the equipment to be detected is abnormal; and the theoretical signal is determined according to the linkage relation of linkage configuration and the signal conversion relation of the signal detection module.
For example, as shown in fig. 3, the output interfaces of the device under test are in one-to-one butt joint with the input interfaces of the signal transceiver module through the signal detection module. When the output interface of the device to be tested is in one-to-one butt joint with the input interface of the signal transceiver module, the input interface of the signal transceiver module may be in a signal suspension state, and is not connected with a high level or a low level, and at this time, if a half-high level, for example, a level of 1 volt, is received, the input interface of the signal transceiver module is difficult to judge as the high level or the low level. Therefore, IN the embodiment of the present application, the output interface of the device under test is IN one-to-one butt joint with the INPUT interface of the signal transceiver module through the signal detection module, and the circuit diagram of the signal detection module may be as shown IN fig. 4, where ALARM _ INPUT _1 is connected to the output interface 1 of the device under test, and ALARM _ IN _1 is connected to the INPUT interface 1 of the signal transceiver device. The initial level of the signal transceiver module is pulled up or pulled down by the VDD terminal which is connected with the voltage of 3.3V, so that the level of the subsequent received signal is identified.
Illustratively, when a detection signal is input to the input interface of the device to be detected through the signal transceiver module, the detection signal passes through a linkage relationship configured by linkage between the input interface of the device to be detected and the output interface of the device to be detected, and signal conversion of the signal detection module, determines a theoretical signal theoretically acquired through the input interface of the signal transceiver module at the time, compares the linkage signal actually acquired by the input interface of the signal transceiver module with the theoretical signal, and determines a detection result of the input interface of the device to be detected and the output interface of the device to be detected according to a comparison result. If the linkage signal is consistent with the theoretical signal, determining that the input interface of the equipment to be tested and the output interface of the equipment to be tested are detected normally; and if the linkage signal is not consistent with the theoretical signal in comparison, determining that the detection of the input interface of the equipment to be detected and/or the output interface of the equipment to be detected is abnormal. According to the scheme, the input interface and the output interface of the equipment to be tested are automatically and intelligently checked through comparison of the linkage signal and the theoretical signal, so that the abnormal interface is efficiently determined in a targeted manner without manual detection.
Fig. 5 is a flowchart of an interface detection method according to another embodiment of the present application. In order to further optimize the embodiments, details which are not described in detail in the embodiments of the present application are described in the embodiments. Referring to fig. 5, an interface detection method provided in an embodiment of the present application may include:
and S210, traversing the output interface of the equipment to be tested.
For example, traversing the output interfaces of the device under test may be to perform S220-S260 once from a first output interface to a last output interface of the device under test, perform S220-S260 on the first output interface first instead of performing S220-S260 on each output interface simultaneously, perform S220-S260 on the second output interface after the execution is finished, perform S220-S260 on the third output interface after the execution is finished, and so on until the last output interface finishes performing S220-S260.
S220, performing linkage configuration on the output interface of the currently traversed equipment to be tested and at least one input interface of the equipment to be tested so as to execute a step of inputting a detection signal to the input interface of the equipment to be tested through the output interface of the signal receiving and transmitting module.
Illustratively, the output interface of the currently traversed device under test is configured in a linkage manner with at least one input interface of the device under test. The number of the at least one input interface configured in a linkage manner may be set according to an actual situation, for example, the output interface of the currently traversed device to be tested may be configured in a linkage manner with all the input interfaces of the device to be tested, so as to detect the output interface of the currently traversed device to be tested and all the input interfaces of the device to be tested. The output interface of the currently traversed equipment to be tested can also be configured in a linkage manner with part of the input interfaces of the equipment to be tested, so that the output interface of the currently traversed equipment to be tested and the part of the input interfaces configured in a linkage manner can be detected.
S230, traversing at least one output interface of the signal transceiver module, which is in butt joint with at least one input interface of the device to be tested.
Illustratively, traversing the at least one output interface of the signal transceiver module, which is interfaced with the at least one input interface of the device under test, may be to execute S240-S260 for a first output interface of the at least one output interface of the signal transceiver module, and after the execution is finished, execute S240-S260 for a second output interface of the at least one output interface of the signal transceiver module. After the execution is finished, the steps S240 to S260 are executed for the third output interface in the at least one output interface of the signal transceiver module, and so on until the execution of the last output interface in the at least one output interface of the signal transceiver module is finished, and the steps S240 to S260 are finished.
S240, inputting a detection signal to an input interface of the equipment to be tested, which is in butt joint with the target output interface, through the currently traversed target output interface of the signal transceiving module so as to execute a step of acquiring a linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
Wherein the detection signal is different from the signal of the output interface of the signal transceiver module except the target output interface.
For example, an output interface of the currently traversed signal transceiver module is used as a target output interface, and a detection signal is input to an input interface of the device under test, which is docked with the target output interface, through the target output interface. And the output interface of the equipment to be detected is linked with the input interface of the equipment to be detected which receives the detection signal, and the linked signal is generated according to the detection signal. And acquiring the linkage signal, and determining whether the input interface of the equipment to be tested and the output interface of the equipment to be tested are abnormal.
And S250, acquiring the linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
S260, determining detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
For example, to describe the above scheme in detail, a high level is input to the input interface of the to-be-tested device that is in butt joint through the target output interface of the currently traversed signal transceiver module, and a low level is input to the input interface of the to-be-tested device that is in butt joint through the output interfaces of the signal transceiver modules except the target output interface. And acquiring a linkage signal generated by an output interface linked with an input interface of the equipment to be tested. If the linkage signal is consistent with the theoretical signal, the input interface and the output interface of the equipment to be tested are normal, and if the linkage signal is inconsistent, the input interface and/or the output interface of the equipment to be tested are abnormal. And traversing the output interface of the next signal transceiver module, and executing the step of inputting a high level to the input interface of the butted equipment to be tested, wherein in the traversing process, if the linkage signal is consistent with the theoretical signal, the input interface and the output interface of the equipment to be tested are normal. If the linkage signal is inconsistent with the theoretical signal in the last traversal process, and the linkage signal is consistent with the theoretical signal in the traversal process, the input interface of the device to be tested traversed last time is abnormal. If the linkage signal is inconsistent with the theoretical signal in the last traversal process and the linkage signal is inconsistent with the theoretical signal in the traversal process, it indicates that the input interface of the device to be tested traversed last time and the input interface of the device to be tested traversed this time are abnormal or the output interface of the device to be tested is abnormal. Specifically, it is determined whether the input interface of the device to be tested traversed last time and the input interface of the device to be tested traversed this time are both abnormal or the output interface of the device to be tested is abnormal, and the determination may be performed through a process of traversing the next output interface of the device to be tested. And if the linkage signal is consistent with the theoretical signal in the process of traversing the output interface of the first signal transceiver module when traversing the next output interface of the equipment to be tested, the condition that the last output interface of the equipment to be tested is abnormal is indicated. If the linkage signal is not consistent with the theoretical signal all the time when traversing to a part of output interfaces of the signal transceiver module, the input interface of the equipment to be tested, which is in butt joint with the part of output interfaces of the signal transceiver module, is abnormal. By analogy, the one-to-one checking of the input interface of the equipment to be tested and the output interface of the equipment to be tested can be realized.
In the embodiment of the present application, S230-S260 may be repeatedly executed multiple times, so as to determine the probabilistic abnormal condition of the interface through multiple detections. The specific execution times can be set according to actual conditions.
According to the scheme in the embodiment of the application, the detection signal can be input into the equipment to be tested in a targeted manner through the traversal process, and the input interface and the output interface of the equipment to be tested are automatically checked according to the comparison between the linkage signal and the theoretical signal, so that whether the input interface and the output interface of the equipment to be tested are abnormal or not can be determined efficiently and accurately.
Fig. 6 is a flowchart of an interface detection method according to another embodiment of the present application. For further optimization of the embodiments, details which are not described in detail in the embodiments of the present application are described in the embodiments. Referring to fig. 6, an interface detection method provided in an embodiment of the present application may include:
and S310, traversing the input interface of the equipment to be tested.
For example, traversing the input interfaces of the device under test may be that S320-S350 are performed once from a first input interface to a last input interface of the device under test, and when S320-S350 are performed for each input interface, S320-S350 is performed for the first input interface first, and after the execution is finished, S320-S350 is performed for a second input interface, and after the execution is finished, S320-S360 is performed for a third input interface, and so on until the execution of the last input interface is finished, S320-S350 is completed.
S320, performing linkage configuration on the input interface of the currently traversed equipment to be tested and at least one output interface of the equipment to be tested so as to execute the step of inputting a detection signal to the input interface of the equipment to be tested through the output interface of the signal transceiving module.
Illustratively, the input interface of the currently traversed equipment to be tested is configured in a linkage manner with at least one output interface of the equipment to be tested. The number of the at least one output interface configured in a linkage manner may be set according to an actual situation, for example, the input interface of the currently traversed device to be tested may be configured in a linkage manner with all output interfaces of the device to be tested, so as to detect the input interface of the currently traversed device to be tested and all output interfaces of the device to be tested. The input interface of the currently traversed equipment to be tested and part of the output interfaces of the equipment to be tested can be configured in a linkage manner, so that the input interface of the currently traversed equipment to be tested and part of the output interfaces configured in a linkage manner can be detected.
S330, inputting a detection signal to the input interface of the currently traversed equipment to be tested through the output interface of the signal receiving and transmitting module in butt joint with the input interface of the currently traversed equipment to be tested so as to execute the step of acquiring the linkage signal output by the output interface of the equipment to be tested through the input interface of the signal receiving and transmitting module.
For example, the detection signal is input to the currently traversed input interface of the device under test through the output interface of the signal transceiver module to which the currently traversed input interface of the device under test is docked. And the output interface of the equipment to be detected is linked with the input interface of the equipment to be detected which receives the detection signal, and the linked signal is generated according to the detection signal. And acquiring the linkage signal, and determining whether the input interface of the equipment to be tested and the output interface of the equipment to be tested are abnormal.
S340, acquiring the linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
And S350, determining detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
For example, to describe the above scheme in detail, a high-level signal is input to the currently traversed input interface of the device to be tested through the output interface of the signal transceiver module to which the currently traversed input interface of the device to be tested is connected. And acquiring a linkage signal generated by an output interface linked with the input interface of the currently traversed equipment to be tested. If the linkage signal is consistent with the theoretical signal, the input interface and the output interface of the equipment to be tested are normal, and if the linkage signal is inconsistent with the theoretical signal, the input interface and/or the output interface of the equipment to be tested are abnormal. And if the input interface of the equipment to be tested is in linkage setting with one output interface, determining the abnormal input interface and/or output interface of the equipment to be tested by comparing the linkage signal and the theoretical signal when the input interface is in linkage setting with other input interfaces. And if the input interface of the equipment to be tested is in linkage arrangement with at least two output interfaces, and the linkage signal acquired through part of the output interfaces of the equipment to be tested is inconsistent with the theoretical signal, determining that part of the output interfaces of the equipment to be tested is abnormal. And if the linkage signals acquired through all output interfaces of the equipment to be tested are inconsistent with the theoretical signals, determining that the input interfaces or all output interfaces of the equipment to be tested are abnormal. If the linkage signals acquired through all output interfaces of the equipment to be tested are inconsistent with the theoretical signals, determining that the input interface or all output interfaces of the equipment to be tested are abnormal, if the equipment to be tested traverses to other input interfaces of the equipment to be tested, inputting high-level signals to other input interfaces through a signal transceiver module, and if the linkage signals acquired through the output interfaces configured in linkage with other input interfaces are consistent with the theoretical signals, indicating that the input interface of the equipment to be tested in the last traversal process is abnormal, and if the linkage signals acquired through all output interfaces of the equipment to be tested are inconsistent with the theoretical signals, indicating that all output interfaces of the equipment to be tested are abnormal.
In the embodiment of the present application, S330-S350 may be repeatedly executed multiple times, so as to determine the probabilistic abnormal condition of the interface through multiple detections. The specific execution times can be set according to actual conditions.
According to the scheme in the embodiment of the application, the detection signal can be input into the equipment to be detected in a targeted manner automatically through the traversal process, and the input interface and the output interface of the equipment to be detected are checked automatically according to the comparison between the linkage signal and the theoretical signal, so that whether the input interface and the output interface of the equipment to be detected are abnormal or not can be determined efficiently and accurately.
The embodiment of the present application specifically describes a specific implementation flow of an interface detection method by combining an actual interface detection system structure diagram, where the system structure diagram is shown in fig. 3. Fig. 7 is a flowchart illustrating a specific implementation of an interface detection method according to yet another embodiment of the present application, as shown in fig. 7, where the device under test may be an alarm circuit. The method specifically comprises the following steps:
s1: determining an input interface N and an output interface M of the equipment to be tested, and setting initial M to be 1 and N to be 1.
S2: and judging whether M is larger than M, if so, ending, otherwise, executing S3.
S3: and calling a WEB page, and configuring N input interfaces of the equipment to be tested to be linked to an output interface m.
S4: and inputting a high-level signal to an input interface n of the equipment to be tested through an output interface of the main chip.
S5: and acquiring a linkage signal of an output interface m of the equipment to be detected through an output interface of the main chip, and determining an interface detection result.
S6: and judging whether N is larger than N, if so, executing S8, and if not, executing S7.
S7: n is n +1, and S4 is executed.
S8: n is restored to the initial value 1, m is executed as m +1, and S2 is executed again.
The above process is explained specifically as follows:
s10: and performing network request on the equipment WEB page through a python3 request module, configuring equipment WEB page information, and linking 1-N paths of the input interface of the equipment to be tested to the 1 st path of the output interface of the equipment to be tested.
S20: and keeping the GPIO _ 1-GPIO _ N at low level, configuring the GPIO _ N as high level by configuring a register of the main chip GPIO _1, wherein the input interface 1 of the device to be tested obtains high level input and is linked to the output interface 1 of the device to be tested, and the output interface 1 of the device to be tested outputs corresponding high and low level logic change. Since the output interface 1 of the device to be tested is connected to IN _1, the logic level is transmitted to GPIO _1 through the signal detection module 1. And comparing the actual level of the GPIO _1 with the theoretical level, wherein if the actual level of the GPIO _1 is the same as the theoretical level, the test result is OK, which indicates that the interface of the device to be tested is normal, otherwise, the test result is NG, which indicates that the interface of the device to be tested is abnormal.
S30: the method comprises the steps of restoring a register of the GPIO _1 to a default low level state, configuring the GPIO _2 to be a high level, enabling an input interface 2 of the device to be tested to obtain high level input at the moment, linking the high level input to an output interface 1 of the device to be tested, enabling the output interface 1 of the device to be tested to output corresponding high and low level logic changes, and accordingly transmitting the logic level to the GPIO _1 through a signal detection module 1. And comparing the actual level of the GPIO _1 with the theoretical level, wherein if the actual level and the theoretical level are the same, the test result is OK, which indicates that the interface of the device to be tested is normal, otherwise, the test result is NG, which indicates that the interface of the device to be tested is abnormal.
S40: and sequentially restoring the GPIO _2 to the default, setting the GPIO _3 to be high level, executing the test steps according to S20 and S30 until the GPIO _ N is set to be high level, and ending the execution of the test steps.
S50: and performing network request on the equipment WEB page through a python3 request module, configuring equipment WEB page information, linking 1-N paths of input interfaces of equipment to be tested to the 2 nd path of output interfaces of the equipment to be tested, and executing the steps again according to S20-S40 until the verification of the Mth output interface of the equipment to be tested is finished. At this time, M times of verification of the input interface of each device to be tested and N times of verification of the output interface of the device to be tested are respectively completed.
S60: and setting S20-S40 to take X times in total according to the life cycle of the product and the probability of alarm triggering of the alarm circuit. After the whole test verification is finished, the input interface of each device to be tested is verified for X M times, and the output interface of the device to be tested is verified for X N times. Whether the alarm circuit design has defects or not and on which interface the defect design is specific are obtained through the reasonability of the logic of each triggering result of the input interface and the output interface of the equipment to be tested, and convenience is provided for subsequent problem positioning.
It should be noted that the above specific implementation manner is only a specific example of the technical solution in the above embodiment, and is not a limitation on the detection flow traversal manner, and in practice, specific settings of traversal detection, such as a traversal linkage process and a process of traversing an input detection signal, may be set according to an actual situation.
Fig. 8 is a schematic structural diagram of an interface detection apparatus according to an embodiment of the present application. The device can be suitable for the condition of detecting the input interface and the output interface of the equipment to be detected. Typically, the embodiment of the application is suitable for the condition of automatically detecting the abnormality of the input interface and the output interface of the alarm circuit. The apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an electronic device. Referring to fig. 8, the apparatus specifically includes:
the configuration module 410 is configured to perform linkage configuration on an input interface of a device to be tested and an output interface of the device to be tested;
the signal input module 420 is configured to input a detection signal to an input interface of the device to be detected through an output interface of the signal transceiving module;
the signal acquisition module 430 is configured to acquire, through the input interface of the signal transceiver module, a linkage signal output by the output interface of the device to be tested;
and a detection result determining module 440, configured to determine a detection result for the input interface of the device to be detected and the output interface of the device to be detected according to a comparison result between the linkage signal and the theoretical signal.
In an embodiment of the present application, the configuration module 410 includes:
the interface entering unit is used for entering a management interface of the equipment to be tested on a WEB page through the management address of the equipment to be tested;
and the request sending unit is used for sending a configuration request to the WEB page through the request automatic sending module so as to perform linkage configuration on the input interface of the equipment to be tested and the output interface of the equipment to be tested through the management interface of the equipment to be tested.
In an embodiment of the present application, the configuration module 410 includes:
the first output interface traversing unit is used for traversing the output interface of the equipment to be tested;
and the first linkage configuration unit is used for carrying out linkage configuration on the output interface of the currently traversed equipment to be tested and at least one input interface of the equipment to be tested so as to execute the step of inputting the detection signal to the input interface of the equipment to be tested through the output interface of the signal transceiving module.
In this embodiment, the signal input module 420 includes:
the second output interface traversing unit is used for traversing at least one output interface of the signal transceiving module which is in butt joint with at least one input interface of the equipment to be tested;
the first detection signal input unit is used for inputting a detection signal to an input interface of the equipment to be detected, which is in butt joint with the target output interface, through a target output interface of the currently traversed signal transceiving module so as to execute a step of acquiring a linkage signal output by the output interface of the equipment to be detected through the input interface of the signal transceiving module;
wherein the detection signal is different from the signal of the output interface of the signal transceiver module except the target output interface.
In an embodiment of the present application, the configuration module 410 includes:
the input interface traversing unit is used for traversing the input interface of the equipment to be tested;
and the second linkage configuration unit is used for carrying out linkage configuration on the input interface of the currently traversed equipment to be tested and at least one output interface of the equipment to be tested so as to execute the step of inputting the detection signal to the input interface of the equipment to be tested through the output interface of the signal transceiving module.
In this embodiment, the signal input module 420 includes:
and the second detection signal input unit is used for inputting a detection signal to the input interface of the currently traversed equipment to be tested through the output interface of the signal transceiving module which is in butt joint with the input interface of the currently traversed equipment to be tested so as to execute the step of acquiring the linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
In this embodiment of the present application, the output interface of the device under test is in one-to-one butt joint with the input interface of the signal transceiver module through the signal detection module, so as to pass through the signal detection module to adjust the initial signal of the input interface of the signal transceiver module.
In this embodiment of the application, the detection result determining module 440 includes:
the first comparison unit is used for determining that the input interface of the equipment to be tested and the output interface of the equipment to be tested are detected normally if the linkage signal is consistent with the theoretical signal in comparison;
the second comparison unit is used for determining that the input interface of the equipment to be tested and/or the output interface of the equipment to be tested detect abnormity if the linkage signal is inconsistent with the theoretical signal;
and the theoretical signal is determined according to the linkage relation of linkage configuration and the signal conversion relation of the signal detection module.
The interface detection device provided by the embodiment of the application can execute the interface detection method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. FIG. 9 illustrates a block diagram of an exemplary electronic device 512 suitable for use in implementing embodiments of the present application. The electronic device 512 shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
As shown in fig. 9, the electronic device 512 may include: one or more processors 516; the memory 528 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 516, the one or more processors 516 implement the interface detection method provided in the embodiment of the present application, including:
performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
inputting a detection signal to an input interface of the equipment to be detected through an output interface of a signal transceiving module;
acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiving module;
and determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
Components of the electronic device 512 may include, but are not limited to: one or more processors or processors 516, a memory 528, and a bus 518 that couples the various device components, including the memory 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, transaction ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The electronic device 512 typically includes a variety of computer device-readable storage media. These storage media may be any available storage media that can be accessed by electronic device 512 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The memory 528 may include computer device readable storage media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The electronic device 512 may further include other removable/non-removable, volatile/nonvolatile computer device storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 9 and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 518 through one or more data storage media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528, such program modules 542 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 524, etc.), with one or more devices that enable a user to interact with the electronic device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the electronic device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 520. As shown in FIG. 9, the network adapter 520 communicates with the other modules of the electronic device 512 via the bus 518. It should be appreciated that although not shown in FIG. 9, other hardware and/or software modules may be used in conjunction with the electronic device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, among others.
The processor 516 executes various functional applications and data processing by running at least one of other programs of the programs stored in the memory 528, for example, to implement an interface detection method provided by the embodiment of the present application.
Fig. 10 is a schematic structural diagram of an interface detection system according to an embodiment of the present application. Details which are not elaborated upon in the examples of the present application are described in the above examples. The interface detection system provided by the embodiment of the application comprises:
the signal transceiver module 610, the output interfaces of which are used for being in one-to-one butt joint with the input interfaces of the equipment to be tested, and the input interfaces of which are used for being in one-to-one butt joint with the output interfaces of the equipment to be tested;
the electronic device 620 is configured to be in communication connection with the device under test and the signal transceiver module, respectively, and the electronic device may implement the interface detection method according to any one of the embodiments of the present application.
The device under test may be a device having an input interface and an output interface, such as an alarm device. The signal transceiver module may include a main chip having an output interface and an input interface, and the signal transceiver module may be controlled by the electronic device to output and receive signals.
The interface detection system provided by the embodiment of the application can execute the interface detection method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
One embodiment of the present application provides a storage medium containing computer-executable instructions that when executed by a computer processor perform a method of interface detection, comprising:
performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
inputting a detection signal to an input interface of the equipment to be detected through an output interface of a signal transceiving module;
acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiving module;
and determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
The computer storage media of embodiments of the present application may take any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of many obvious modifications, rearrangements and substitutions without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (12)

1. An interface detection method, the method comprising:
performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
inputting a detection signal to an input interface of the equipment to be detected through an output interface of a signal transceiving module;
acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiver module;
and determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
2. The method of claim 1, wherein the performing linkage configuration on the input interface of the device to be tested and the output interface of the device to be tested comprises:
entering a management interface of the equipment to be tested through a management address of the equipment to be tested on a WEB page;
and sending a configuration request to the WEB page through a request automatic sending module so as to perform linkage configuration on the input interface of the equipment to be tested and the output interface of the equipment to be tested through the management interface of the equipment to be tested.
3. The method according to claim 1 or 2, wherein the linkage configuration of the input interface of the device to be tested and the output interface of the device to be tested comprises:
traversing an output interface of the equipment to be tested;
and performing linkage configuration on the output interface of the currently traversed equipment to be tested and at least one input interface of the equipment to be tested so as to execute the step of inputting a detection signal to the input interface of the equipment to be tested through the output interface of the signal transceiving module.
4. The method of claim 3, wherein inputting the detection signal to the input interface of the device under test through the output interface of the signal transceiver module comprises:
traversing at least one output interface of the signal transceiver module which is in butt joint with at least one input interface of the equipment to be tested;
inputting a detection signal to an input interface of the equipment to be tested, which is in butt joint with the target output interface, through a target output interface of the currently traversed signal transceiving module so as to execute a step of acquiring a linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module;
wherein the detection signal is different from the signal of the output interface of the signal transceiver module except the target output interface.
5. The method according to claim 1 or 2, wherein the linkage configuration of the input interface of the device to be tested and the output interface of the device to be tested comprises:
traversing the input interface of the equipment to be tested;
and performing linkage configuration on the input interface of the currently traversed equipment to be tested and at least one output interface of the equipment to be tested so as to execute the step of inputting a detection signal to the input interface of the equipment to be tested through the output interface of the signal transceiving module.
6. The method of claim 5, wherein inputting the detection signal to the input interface of the device under test through the output interface of the signal transceiver module comprises:
and inputting a detection signal to the input interface of the currently traversed equipment to be tested through the output interface of the signal transceiving module which is in butt joint with the input interface of the currently traversed equipment to be tested so as to execute a step of acquiring a linkage signal output by the output interface of the equipment to be tested through the input interface of the signal transceiving module.
7. The method according to claim 1, wherein the output interface of the device under test is in one-to-one butt joint with the input interface of the signal transceiver module through a signal detection module, so as to adjust the initial signal of the input interface of the signal transceiver module through the signal detection module, and the input interface of the device under test is in one-to-one butt joint with the output interface of the signal transceiver module.
8. The method of claim 7, wherein determining the detection results of the input interface of the device under test and the output interface of the device under test according to the comparison result of the linkage signal and the theoretical signal comprises:
if the linkage signal is consistent with the theoretical signal in comparison, determining that the input interface of the equipment to be tested and the output interface of the equipment to be tested are detected normally;
if the linkage signal is not consistent with the theoretical signal in comparison, determining that the input interface of the equipment to be tested and/or the output interface of the equipment to be tested are detected abnormally;
and the theoretical signal is determined according to the linkage relation of linkage configuration and the signal conversion relation of the signal detection module.
9. An interface detection apparatus, the apparatus comprising:
the configuration module is used for performing linkage configuration on an input interface of equipment to be tested and an output interface of the equipment to be tested;
the signal input module is used for inputting a detection signal to the input interface of the equipment to be detected through the output interface of the signal transceiving module;
the signal acquisition module is used for acquiring a linkage signal output by an output interface of the equipment to be tested through an input interface of the signal transceiving module;
and the detection result determining module is used for determining the detection results of the input interface of the equipment to be detected and the output interface of the equipment to be detected according to the comparison result of the linkage signal and the theoretical signal.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the interface detection method of any one of claims 1-8.
11. An interface detection system, the system comprising:
the device comprises a signal transceiving module, a signal processing module and a signal processing module, wherein the output interfaces of the signal transceiving module are used for being in one-to-one butt joint with the input interfaces of equipment to be tested, and the input interfaces of the signal transceiving module are used for being in one-to-one butt joint with the output interfaces of the equipment to be tested;
electronic equipment, for being in communication connection with the device under test and the signal transceiving module, respectively, where the electronic equipment may implement the interface detection method according to any one of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the interface detection method according to any one of claims 1 to 8.
CN202110178451.4A 2021-02-09 2021-02-09 Interface detection method, device, electronic equipment, system and medium Pending CN114911653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110178451.4A CN114911653A (en) 2021-02-09 2021-02-09 Interface detection method, device, electronic equipment, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110178451.4A CN114911653A (en) 2021-02-09 2021-02-09 Interface detection method, device, electronic equipment, system and medium

Publications (1)

Publication Number Publication Date
CN114911653A true CN114911653A (en) 2022-08-16

Family

ID=82760755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110178451.4A Pending CN114911653A (en) 2021-02-09 2021-02-09 Interface detection method, device, electronic equipment, system and medium

Country Status (1)

Country Link
CN (1) CN114911653A (en)

Similar Documents

Publication Publication Date Title
CN112650685B (en) Automatic test method, device, electronic equipment and computer storage medium
TW201719411A (en) Software test system, method and non-transitory computer readable medium of the same
US20090292911A1 (en) Boot test system and method thereof
CN107783844A (en) A kind of computer program operation exception detection method, device and medium
CN107820608A (en) For the method and apparatus for the Debugging message for producing, capture, storing and loading the test script to fail
CN113572658A (en) Vehicle control signal testing method and device, electronic equipment and storage medium
CN114325316A (en) Board card testing method and device, electronic equipment and storage medium
US8533544B2 (en) System for tree sequence testing of a device and method for tree sequence testing of a device in a test framework architecture
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN114911653A (en) Interface detection method, device, electronic equipment, system and medium
CN111752833A (en) Software quality system approval method, device, server and storage medium
US20180372799A1 (en) Testing mechanism for a proximity fail probability of defects across integrated chips
CN115033441A (en) PCIe equipment fault detection method, device, equipment and storage medium
US6502051B1 (en) Method and apparatus for optimizing testing sequences for electronic equipment
JPH05101697A (en) Fault diagnostic circuit for lsi
CN112148536A (en) Method and device for detecting deep learning chip, electronic equipment and computer storage medium
CN116820946B (en) Method and device for automatically testing compatibility of target software
CN116306409B (en) Chip verification method, device, equipment and storage medium
CN110020565B (en) Probe information reading fault prompting method, device, server and storage medium
CN114526925A (en) Vehicle offline detection method and device, electronic equipment and storage medium
US20200183803A1 (en) System For Completely Testing Communication Links Inside Processor According To Processor Information And Method Thereof
US10261925B2 (en) Enhanced techniques for detecting programming errors in device drivers
CN116820946A (en) Method and device for automatically testing compatibility of target software
CN116627824A (en) Software testing method and device, electronic equipment and storage medium
CN117992262A (en) Fault processing method, sample analyzer and computer readable storage medium thereof

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