Multi-channel multi-type signal self-checking method and device, storage medium and product

By converting the signal type and determining the access channel, combined with the switch switching unit and the resistance conversion unit, the self-test method of the signal type and the number of channels in the existing technology is solved, and the applicability and accuracy of the self-test of multiple types of signals are realized, which is suitable for the self-test requirements of multiple signal types and the number of channels.

CN120729751APending Publication Date: 2025-09-30SHANGHAI KELIANG INFORMATION ENG
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510733856.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-03
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

In the prior art, the self-test method is only applicable to situations where the input and output signals have the same type and the same number of channels, and cannot adapt to self-test of signals of different types and numbers, resulting in limited applicability of the self-test.

Method used

By receiving the target signal, the signal type is converted into the target signal type, and the target access channel is determined by the preset target range. The switch switching unit and the resistance conversion unit are combined to perform signal conditioning and switching self-test, and adapt to various types and quantities of signal self-test.

Benefits of technology

It realizes the adaptability of multiple types of signals, ensures the accuracy and flexibility of signal transmission, is suitable for self-test requirements of different signal types and channel numbers, and improves the applicability and reliability of self-test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120729751A_ABST
    Figure CN120729751A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of simulation testing, and discloses a multi-channel multi-type signal self-checking method and device, a storage medium and a product. According to the method and the device, the type conversion of the signals is realized under the condition that the signal types do not accord with the signal target types, so that the multi-type signals are converted into unified signals for input and output processing, and the adaptation capability of the multi-type signals is improved; furthermore, the target access channel for signal transmission is determined through the target signal and the preset target range, so that signal transmission is not easy to distort, and the same multi-channel module can be compatible with the input signal in a wider range, thereby improving the multi-range adaptation capability of the signal; different types of output signals are subjected to conditioning adaptation, input and output signals of different numbers of channels are accessed to a target access channel and then are subjected to self-inspection after switching adaptation, and the method can be applied to equipment self-inspection occasions with different signal type requirements and large channel number requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation test technology, and in particular to a multi-channel multi-type signal self-test method, device, storage medium and product. Background Art

[0002] During simulation testing, self-testing the test equipment itself is an essential component of equipment use. As a crucial step in system testing, self-testing the test equipment at the outset of testing ensures that any issues are identified and resolved promptly, ensuring proper operation. As a crucial component of the simulation test system, the self-test system determines the controller's ability to operate properly and successfully complete simulation testing, playing a crucial role in the simulation testing process.

[0003] In the related art, a one-to-one self-test method of input to output is used to implement self-test. The input and output signals of the device are mostly voltage signals and the number and type of channels are the same. The input and output are connected one-to-one through external cables, and the device outputs signals to the input channels to collect device data information. However, the one-to-one connection self-test method cannot perform self-tests on all signals at the same time when there are other types of signals such as current signals, resistance signals, etc.; and due to the fixed connection method of the external cables, when the number of channels of the input and output signals is different, self-tests on all signals cannot be achieved. Therefore, the self-test technology method in the related art is only applicable to situations where the system requires the same input and output signal types and the same number of input and output channels, and cannot meet the needs of situations where different types of signals are required and the number of input and output channels is different.

[0004] Therefore, a multi-channel and multi-type signal self-test method, equipment, storage medium and product are needed to adapt to various types of input and output signals while being able to collect multiple input and output signals in a one-to-many or many-to-one manner, flexibly adapt to occasions with different types of signals and different numbers of input and output channels, and improve the applicability of the self-test method. Summary of the Invention

[0005] The purpose of the embodiments of the present invention is to provide a multi-channel multi-type signal self-test method, device, storage medium and product, so that it can adapt to multiple types of input and output signals while realizing signal acquisition through multiple input and output channels.

[0006] To solve the above technical problems, an embodiment of the present invention provides a multi-channel multi-type signal self-test method, device, storage medium and product, including: receiving a target signal, and converting the target signal into a signal of the signal target type if the signal type of the target signal does not conform to the signal target type; determining the target access channel of the target signal based on the target signal and a preset target range; obtaining a self-test indication issued by a host computer, and performing switching self-test on the input channel and output channel of the target access channel; after completing the switching self-test, realizing signal transmission of the target signal through the target access channel.

[0007] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above-mentioned multi-channel multi-type signal self-test method.

[0008] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned multi-channel multi-type signal self-test method when executed by a processor.

[0009] An embodiment of the present invention further provides a computer program product, comprising computer instructions, which implement the above-mentioned multi-channel multi-type signal self-test method when executed by a processor.

[0010] In an embodiment of the present invention, since the type conversion of the signal is implemented when the signal type does not conform to the target type of the signal, multiple types of signals are converted into a unified signal for input and output processing, thereby improving the adaptability of multiple types of signals; further, the target access channel for signal transmission is determined by the target signal and the preset target range, so that the signal transmission is not easily distorted, and the same multi-channel module can be compatible with a wider range of input signals, thereby improving the multi-range adaptability of the signal; by adapting different types of output signals through conditioning, the input and output signals of different numbers of channels are connected to the target access channel and then self-tested after switching adaptation, thereby realizing self-test of all signals of the test equipment, which can be applied to self-test scenarios of equipment with different signal type requirements and a large number of channel requirements.

[0011] In addition, the target signal is a voltage signal; determining the target access channel of the target signal based on the target signal and the preset target range includes: when the signal value of the target signal is greater than the preset target range, performing voltage division processing on the target signal, and connecting the voltage signal after voltage division to the target access channel; when the signal value of the target signal is less than the preset target range, directly connecting the target signal to the target access channel.

[0012] In addition, when the target signal is not the voltage signal, before determining the target access channel of the target signal, the method further includes: when the target signal is a current signal, converting the current signal into a voltage signal through a resistor board; when the target signal is a resistance signal, dividing the resistance signal and converting it into a voltage signal by connecting the resistance signal to a 5V power supply and then connecting it in series to the resistance board.

[0013] In addition, the self-test indication issued by the upper computer is obtained, and the input channel and output channel of the target access channel are switched for self-test, including: obtaining the number of channels of the target signal, and comparing the number of channels of the target signal with the number of channels of the target access channel; according to the comparison result, after obtaining the self-test indication, controlling the switching switch of the target access channel to switch the channel connection pin, and performing a switching self-test.

[0014] In addition, the target signal is an input signal, and the sub-channel in the target access channel is an output channel; the target access channel includes: a first switch connected to the input channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is also connected to the first end or the second end; the second switch is also connected to the third end or the fourth end; the third switch is also connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; when the number of channels of the output signal is greater than the number of channels of the input channel, the switching switch that controls the target access channel switches the channel connection pins and performs a switching self-test, including: obtaining a self-test instruction for the target access channel from the host computer, connecting the first switch to the first end; at the same time, connecting the second switch to the third end; transmitting the target signal to the first sub-channel, collecting and comparing the signals in the input channel and the first sub-channel, and obtaining a self-test result.

[0015] In addition, the target signal is an output signal, and the sub-channel in the target access channel is an input channel; the target access channel includes: a first switch connected to the output channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is also connected to the first end or the second end; the second switch is also connected to the third end or the fourth end; the third switch is also connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; when the number of channels of the input channel is greater than the number of channels of the output channel, the switching switch that controls the target access channel switches the channel connection pins and performs a switching self-test, including: obtaining a self-test instruction for the target access channel from the host computer, connecting the first switch to the first end; and at the same time, connecting the second switch to the third end; transmitting the target signal to the output channel, collecting and comparing the signals in the output channel and the first sub-channel, and obtaining a self-test result.

[0016] In addition, after completing the switching self-test, the method further includes: indicating the self-test result of the target access channel through a self-test indicator light. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0018] Figure 1 This is a structural diagram of a simulation test system provided in one embodiment of the present application;

[0019] Figure 2 This is a flowchart of a multi-channel multi-type signal self-test method provided by an embodiment of the present application;

[0020] Figure 3 is a structural diagram of another simulation test system provided by an embodiment of the present application;

[0021] Figure 4 This is a schematic diagram of a resistor network circuit of a simulation test system provided by an embodiment of the present application;

[0022] Figure 5 This is a channel connection diagram provided by an embodiment of the present application;

[0023] Figure 6 This is another channel connection diagram provided by an embodiment of the present application;

[0024] Figure 7It is a structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0025] Because the one-to-one connection self-test method cannot simultaneously perform self-tests on all signals when other types of signals, such as current signals and resistance signals, are present, and because the fixed connection method of the external cables prevents self-testing of all signals when the number of input and output signal channels is different, self-testing of all signals is also impossible. Therefore, a multi-channel, multi-type signal self-test method, device, storage medium, and product are needed to adapt to multiple types of input and output signals while simultaneously acquiring multiple input and output signals in a one-to-many or many-to-one manner. This allows for flexible adaptation to various signal types and situations with different numbers of input and output channels, thereby improving the applicability of the self-test method.

[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with each other and referenced to each other under the premise that there is no contradiction.

[0027] An embodiment of the present invention relates to a multi-channel multi-type signal self-test method, which can be applied to simulation test equipment. A multi-channel, multi-type signal self-test method includes: receiving a target signal, and converting the target signal into a signal of the target type if the signal type of the target signal does not conform to the target signal type; determining a target access channel for the target signal based on the target signal and a preset target range; obtaining a self-test instruction issued by a host computer, and performing a switch self-test on the input channel and output channel of the target access channel; after completing the switch self-test, transmitting the target signal through the target access channel. By performing signal type conversion when the signal type does not conform to the target signal type, multiple types of signals are converted into a unified signal for input and output processing, thereby improving the adaptability of multiple types of signals; further, determining the target access channel for signal transmission based on the target signal and the preset target range makes signal transmission less prone to distortion and enables the same multi-channel module to be compatible with a wider range of input signals, thereby improving the multi-range adaptability of signals; and by conditioning and adapting different types of output signals, connecting input and output signals of different numbers of channels to the target access channel, switching and adapting them, and then performing self-testing, thereby achieving self-test of all signals of the test equipment. The method is applicable to self-testing of equipment with different signal type requirements and a large number of channel requirements. The following describes in detail the implementation details of the multi-channel multi-type signal self-test method according to an embodiment of the present invention. The following content is only provided for ease of understanding and is not essential for implementing the present solution.

[0028] Specifically, if Figure 1As shown, the simulation test equipment mainly includes a switch switching unit, a voltage conversion unit, a resistance conversion unit, and a current conversion unit. Among them, the switch switching unit is an electromagnetic relay. Furthermore, the electromagnetic relay used in the switch switching unit is a single-pole double-throw electromagnetic relay. By using a single-pole double-throw electromagnetic relay as the switch switching unit, the use cost of the switch switching unit can be reduced and the high reliability of the switching self-test can be guaranteed. The switch switching unit is connected to the input channel and the output channel. The host computer controls the switch switching unit through the control software to connect the input channel and the output channel that need to be self-tested. The voltage conversion unit is connected to the voltage output and input channels and the switch switching unit. When the output voltage range is greater than the input voltage range, the output voltage signal is divided into a preset target range (the preset target range can be the input voltage range) by a precision resistor, the output voltage signal is converted into a small voltage, and transmitted to the input channel for collection through the switch switching unit. In some cases, when the output voltage range is less than the input voltage range, it can be directly connected to the input channel for collection through the switch switching unit. The resistance conversion unit is connected to the output channel, input channel, and switch unit. When outputting a resistance signal, it connects the resistance signal to a 5V power supply and then connects it in series to the resistor board. The resistance conversion unit converts the resistance output into a voltage signal, which is then connected to the input channel via the switch unit for acquisition. The current conversion unit is connected to the current output channel, input channel, and switch unit. When the target signal is a current signal, it connects the current signal in series to the precision resistor on the resistor board, converts the current signal into a voltage signal via the resistor, and transmits it to the input channel via the switch unit for acquisition.

[0029] like Figure 2 As shown, in step 201, the simulation test device or the simulation test system receives a target signal, and converts the target signal into a signal of the signal target type when the signal type of the target signal does not conform to the signal target type.

[0030] In step 202, a target access channel for the target signal is determined based on the target signal and a preset target range. It should be noted that the preset target range is either an input signal range or an output signal range. If the target signal is an output signal, the preset target range is the input signal range; otherwise, the preset target range is the output signal range.

[0031] Specifically, if Figure 3As shown, in some embodiments, the target signal is a voltage signal; the target access channel of the target signal is determined based on the target signal and the preset target range, including: when the signal value of the target signal is greater than the preset target range, the target signal is subjected to voltage division processing, and the voltage signal after voltage division is connected to the target access channel; when the signal value of the target signal is less than the preset target range, the target signal is directly connected to the target access channel. When the output signal type is a voltage signal, and the voltage signal range is less than the input voltage signal, the output voltage signal is sent to the input channel for collection through the switching unit to achieve self-test of the input voltage signal channel and the output voltage signal channel; when the output signal type is a voltage signal, and the voltage signal range is greater than the input voltage signal, the voltage is divided into the input voltage range by the resistor board, and then the output voltage signal after voltage division is sent to the input voltage channel for collection through the switching unit to achieve self-test of the input voltage signal channel and the output voltage signal channel.

[0032] Specifically, if Figure 4 As shown, the resistor network circuit for realizing signal voltage division in this application. In some embodiments, when the output signal is a voltage signal and the range is greater than the input signal range, the output signal is connected to the resistor network circuit on the resistor card, and the number of resistors in the resistor network connected in series for voltage division is adjusted according to the range of the output voltage so that the voltage after voltage division is within the range of the input signal, and then the switch switching unit is connected to the input channel for collection. When the output signal is a current signal, the output signal is connected to the resistor network circuit on the resistor card, and the number of resistors in series in the resistor network is adjusted according to the range of the output current so that the voltage across the resistor network on the resistor card is within the range of the input signal, and then the switch switching unit is connected to the input channel for collection. When the output signal is a resistance signal, after connecting the 5V power supply to the output resistance signal, it is connected in series to the resistor network circuit on the resistor card, and the number of resistors in series in the resistor network is adjusted according to the range of the output resistance so that the voltage across the output resistance is within the range of the input signal, and then the switch switching unit is connected to the input channel for collection. Due to the flexible configuration of the corresponding number of switch cards and resistor cards in the simulation test system, the simulation test system is small in size and low in cost. Unlike conventional technologies in which the external wiring of the self-test system for simulation testing is relatively fixed, the switch board and resistor board in this application are replaceable and can be added or removed without interfering with each other, which facilitates later maintenance and updates. In addition, the board is small in size, low in cost, and highly expandable, and can be widely used in equipment self-test scenarios with different signal type requirements and a large number of channel requirements.

[0033] Specifically, in some embodiments, when the target signal is not the voltage signal, before determining the target access channel of the target signal, the method further includes: when the target signal is a current signal, converting the current signal into a voltage signal through a resistor board; when the target signal is a resistance signal, dividing the resistance signal and converting it into a voltage signal by connecting the resistance signal to a 5V power supply and then connecting it in series to the resistance board.

[0034] like Figure 3 As shown in the figure, when the target signal is a current signal, the current signal is converted into a voltage signal within the input voltage range through the resistor board, and then the converted voltage signal is sent to the input voltage channel for collection through the switch, realizing self-test of the input voltage signal channel and the output current signal channel.

[0035] like Figure 3 As shown, when the target signal is a resistance signal, the resistance signal is converted into a voltage signal by connecting the resistance signal to a 5V power supply and then connecting it in series to the resistance board for voltage division. The converted voltage signal is then sent to the input voltage signal channel for collection through the switch, thereby realizing self-test of the input voltage signal channel and the output resistance signal channel.

[0036] like Figure 2 As shown, in step 203, a self-test instruction sent by the host computer is obtained, and a switching self-test is performed on the input channel and the output channel of the target access channel.

[0037] Specifically, in some embodiments, the self-test instruction sent by the host computer is obtained, and the input channel and output channel of the target access channel are switched for self-test, including: obtaining the number of channels of the target signal, and comparing the number of channels of the target signal with the number of channels of the target access channel; according to the comparison result, after obtaining the self-test instruction, controlling the switching switch of the target access channel to switch the channel connection pin, and performing a switching self-test. The present application adapts different types of output signals through conditioning, and adapts input and output signals of different numbers of channels through switch switching, thereby realizing self-test of all signals of the test equipment. Specifically, the switch switching unit is an electromagnetic relay, and further, the electromagnetic relay used by the switch switching unit is a single-pole double-throw electromagnetic relay. The switch switching unit is connected to the input channel and the output channel, and the host computer controls the switch switching of the switch switching unit through the control software, thereby connecting the input channel and output channel that need to be self-tested. When the number of input signal channels is less than the number of output signal channels, switch switching is used to enable one input signal channel to collect multiple output signals. Similarly, when the number of input signal channels is greater than the number of output signal channels, switch switching is used to enable multiple input signal channels to collect one output signal.

[0038] Specifically, in some embodiments, the target signal is an input signal, and the sub-channel in the target access channel is an output channel; the target access channel includes: a first switch connected to the input channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is also connected to the first end or the second end; the second switch is also connected to the third end or the fourth end; the third switch is also connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; when the number of channels of the output signal is greater than the number of channels of the input channel, the switch controlling the target access channel switches the channel connection pins and performs a switching self-test, including: obtaining a self-test instruction for the target access channel from the host computer, connecting the first switch to the first end; and at the same time, connecting the second switch to the third end; transmitting the target signal to the first sub-channel, collecting and comparing the signals in the input channel and the first sub-channel, and obtaining a self-test result.

[0039] Furthermore, after completing the self-test of the first subchannel, the self-test instruction issued by the host computer is continuously obtained to perform a self-test on the second subchannel. Similarly, when performing a self-test on the second subchannel, the first switch is connected to the first terminal; at the same time, the second switch is connected to the fourth terminal; the target signal is transmitted to the second subchannel, and the signals in the input channel and the second subchannel are collected and compared to obtain a self-test result. When performing a self-test on the third subchannel, the first switch is connected to the second terminal; at the same time, the third switch is connected to the fifth terminal; the target signal is transmitted to the third subchannel, and the signals in the input channel and the third subchannel are collected and compared to obtain a self-test result. When performing a self-test on the fourth subchannel, the first switch is connected to the second terminal; at the same time, the third switch is connected to the sixth terminal; the target signal is transmitted to the fourth subchannel, and the signals in the input channel and the fourth subchannel are collected and compared to obtain a self-test result.

[0040] In some specific embodiments, such as Figure 5 As shown in the figure, when the number of output channels is greater than the number of input channels, after the host computer software clicks the self-test button of output channel 1, the control switch switching unit switches pin 2 of relay K1 to pin 3 of K1, and pin 2 of relay K1-1 to pin 3 of K1-1. The output signal of output channel 1 is collected by input channel 1, realizing self-test of output channel 1 and input channel 1.

[0041] After the host computer software clicks the self-test button of output channel 2, the control switch switching unit switches pin 2 of relay K1 to pin 3 of K1, and pin 2 of relay K1-1 to pin 1 of K1-1. The output signal of output channel 2 is collected by input channel 1, realizing self-test of output channel 2 and input channel 1.

[0042] After the host computer software clicks the self-test button of output channel 3, the control switch switching unit switches pin 2 of relay K1 to pin 1 of K1, and pin 2 of relay K1-1 to pin 3 of K1-1. The output signal of output channel 3 is collected by input channel 1, realizing self-test of output channel 3 and input channel 1.

[0043] After the host computer software clicks the self-test button of output channel 4, the control switch unit switches pin 2 of relay K1 to pin 1 of K1, and pin 2 of relay K1-1 to pin 1 of K1-1. The output signal of output channel 4 is collected by input channel 1, realizing self-test of output channel 4 and input channel 1.

[0044] Specifically, in some embodiments, the target signal is an output signal, and the sub-channel in the target access channel is an input channel; the target access channel includes: a first switch connected to the output channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is also connected to the first end or the second end; the second switch is also connected to the third end or the fourth end; the third switch is also connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; when the number of channels of the input channel is greater than the number of channels of the output channel, the switch controlling the target access channel switches the channel connection pins and performs a switching self-test, including: obtaining a self-test instruction for the target access channel from the host computer, connecting the first switch to the first end; and at the same time, connecting the second switch to the third end; transmitting the target signal to the output channel, collecting and comparing signals in the output channel and the first sub-channel, and obtaining a self-test result.

[0045] Furthermore, after completing the self-test of the first subchannel, the self-test instruction issued by the host computer is continuously obtained to perform a self-test on the second subchannel. Similarly, when performing a self-test on the second subchannel, the first switch is connected to the first terminal; at the same time, the second switch is connected to the fourth terminal; the target signal is transmitted to the second subchannel, and the signals in the output channel and the second subchannel are collected and compared to obtain a self-test result. When performing a self-test on the third subchannel, the first switch is connected to the second terminal; at the same time, the third switch is connected to the fifth terminal; the target signal is transmitted to the third subchannel, and the signals in the output channel and the third subchannel are collected and compared to obtain a self-test result. When performing a self-test on the fourth subchannel, the first switch is connected to the second terminal; at the same time, the third switch is connected to the sixth terminal; the target signal is transmitted to the fourth subchannel, and the signals in the output channel and the fourth subchannel are collected and compared to obtain a self-test result.

[0046] In some specific embodiments, such as Figure 6 As shown in the figure, when the number of input channels is greater than the number of output channels, after the host computer software clicks the self-test button of input channel 1, the control switch switching unit switches pin 2 of relay Kp to pin 3 of Kp, and pin 2 of relay Kp-1 to pin 3 of Kp-1. Then the output signal of system output channel 1 is collected by input channel 1, realizing self-test of output channel 1 and input channel 1.

[0047] After the host computer software clicks the self-test button of input channel 2, the control switch switching unit switches pin 2 of relay Kp to pin 3 of Kp, and pin 2 of relay Kp-1 to pin 1 of Kp-1. The output signal of system output channel 1 is collected by input channel 2, realizing self-test of output channel 1 and input channel 2.

[0048] After the host computer software clicks the self-test button of input channel 3, the control switch switching unit switches pin 2 of relay Kp to pin 1 of Kp, and pin 2 of relay Kp-2 to pin 3 of Kp-2. The output signal of system output channel 1 is collected by input channel 3, realizing self-test of output channel 1 and input channel 3.

[0049] After the host computer software clicks the self-test button of input channel 4, the control switch switching unit switches pin 2 of relay Kp to pin 1 of Kp, and pin 2 of relay Kp-2 switches to pin 1 of Kp-2. The output signal of system output channel 1 is collected by input channel 4, realizing self-test of output channel 1 and input channel 4.

[0050] In step 204, after the handover self-test is completed, the target signal is transmitted through the target access channel.

[0051] Specifically, in some embodiments, after the switching self-test is completed, the method further includes: indicating the self-test result of the target access channel via a self-test indicator light to ensure the safety of system operation. In some embodiments, when both the input and output channels have completed self-test, the self-test indicator light turns on.

[0052] Furthermore, in some embodiments, in order to ensure that the system does not malfunction, a self-test interlock function is added to the upper computer software. When the number of output channels is greater than the number of input channels, each input channel cannot collect output signals of two or more channels at the same time. Therefore, self-test can only be performed between the input channel and the corresponding same number of output channels at a time; when the number of output channels is less than the number of input channels, each output channel cannot collect output signals of two or more channels at the same time. Self-test can only be performed between the output channel and the corresponding same number of input channels at a time to ensure the safety of the system operation.

[0053] In an embodiment of the present invention, by implementing signal type conversion when the signal type does not conform to the signal target type, multiple types of signals are converted into a unified signal for input and output processing, thereby improving the adaptability of multiple types of signals; further, the target access channel for signal transmission is determined by the target signal and the preset target range, so that the signal transmission is not easily distorted, and the same multi-channel module can be compatible with a wider range of input signals, thereby improving the multi-range adaptability of the signal; by adapting different types of output signals through conditioning, the input and output signals of different numbers of channels are connected to the target access channel and then self-tested after switching adaptation, thereby realizing self-test of all signals of the test equipment, which can be applied to self-test scenarios of equipment with different signal type requirements and a large number of channel requirements.

[0054] The steps of the above method are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0055] In addition, the examples mentioned in the above embodiments can be freely combined, and any combination can be understood as an embodiment. The "embodiment" or "example" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it mean that it is an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0056] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.

[0057] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.

[0058] Another embodiment of the present invention relates to an electronic device, such as Figure 7 As shown, it includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the multi-channel multi-type signal self-test method as described above.

[0059] The memory and processor are connected using a bus, which can include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors and memories. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits it to the processor.

[0060] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0061] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the multi-channel multi-type signal self-test method described above.

[0062] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0063] Another embodiment of the present invention relates to a computer program product, comprising computer instructions, which implement the above-mentioned multi-channel multi-type signal self-test method when executed by a processor.

[0064] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A multi-channel multi-type signal self-test method, characterized in that: include: receiving a target signal, and converting the target signal into a signal of the signal target type if the signal type of the target signal does not conform to the signal target type; Determining a target access channel for the target signal based on the target signal and a preset target range; Obtain the self-test instruction issued by the host computer, and perform switching self-test on the input channel and output channel of the target access channel; After the switching self-test is completed, signal transmission of the target signal is achieved through the target access channel.

2. The multi-channel multi-type signal self-test method according to claim 1, characterized in that: The target signal is a voltage signal; The determining, according to the target signal and a preset target range, a target access channel for the target signal includes: When the signal value of the target signal is greater than the preset target range, the target signal is subjected to voltage division processing, and the voltage signal after voltage division is connected to the target access channel; When the signal value of the target signal is smaller than the preset target range, the target signal is directly connected to the target access channel.

3. The multi-channel multi-type signal self-test method according to claim 2, characterized in that: When the target signal is not the voltage signal, before determining the target access channel of the target signal, the method further includes: In the case where the target signal is a current signal, converting the current signal into a voltage signal through a resistor card; In the case where the target signal is a resistance signal, the resistance signal is connected to a 5V power supply and then connected in series to the resistance board card to divide the resistance signal and convert it into a voltage signal.

4. The multi-channel multi-type signal self-test method according to claim 1, characterized in that: The step of obtaining a self-test instruction issued by a host computer and performing a switching self-test on an input channel and an output channel of the target access channel includes: Obtaining the number of channels of the target signal, and comparing the number of channels of the target signal with the number of channels of the target access channel; According to the comparison result, after obtaining the self-test indication, the switch of the target access channel is controlled to switch the channel connection pin, and a switching self-test is performed.

5. The multi-channel multi-type signal self-test method according to claim 4, characterized in that: The target signal is an input signal, and the sub-channel in the target access channel is an output channel; The target access channel includes: a first switch connected to the input channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is further connected to the first end or the second end; the second switch is further connected to the third end or the fourth end; the third switch is further connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; In a case where the number of output channels is greater than the number of input channels, the switch controlling the target access channel switches the channel connection pins and performs a switching self-test, including: Obtaining a self-test instruction from the host computer for the target access channel, connecting the first switch to the first end; and at the same time, connecting the second switch to the third end; The target signal is transmitted to the first sub-channel, and the signals in the input channel and the first sub-channel are collected and compared to obtain a self-test result.

6. The multi-channel multi-type signal self-test method according to claim 5, characterized in that: The target signal is an output signal, and the sub-channel in the target access channel is an input channel; The target access channel includes: a first switch connected to the output channel, a second switch connected to the first end, and a third switch connected to the second end; the first switch is further connected to the first end or the second end; the second switch is further connected to the third end or the fourth end; the third switch is further connected to the fifth end or the sixth end; the third end is connected to the first sub-channel; the fourth end is connected to the second sub-channel; the fifth end is connected to the third sub-channel; and the sixth end is connected to the fourth sub-channel; In a case where the number of input channels is greater than the number of output channels, the switch controlling the target access channel switches the channel connection pins and performs a switching self-test, including: Obtaining a self-test instruction from the host computer for the target access channel, connecting the first switch to the first end; and at the same time, connecting the second switch to the third end; The target signal is transmitted to the output channel, and the signals in the output channel and the first sub-channel are collected and compared to obtain a self-test result.

7. The multi-channel multi-type signal self-test method according to any one of claims 1 to 6, characterized in that: After completing the switching self-test, the method further includes: indicating the self-test result of the target access channel through a self-test indicator light.

8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the multi-channel multi-type signal self-test method according to any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the multi-channel multi-type signal self-test method according to any one of claims 1 to 7 is implemented.

10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implements the multi-channel multi-type signal self-test method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method for remote on-line detection of charge converter of loose part monitoring system

    CN107860995A

  • Channel self-checking device and method, storage medium, train and traction control system of train

    CN109866784A

  • PCB substrate with voltage and current self-checking function and test system

    CN117074904A

  • Remote measurement and control terminal and safety control system

    CN117991615A

  • Track circuit receiver and track circuit detection method and device

    CN119611476A