Parallel transmission line detection method, device and system

By receiving detection commands from the controller, the device under test is controlled to enter the detection mode and port status detection is performed. This solves the problem of complex detection process in half-duplex parallel communication systems and achieves efficient device detection.

CN121887674APending Publication Date: 2026-04-17SHENZHEN SUNMOON MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN SUNMOON MICROELECTRONICS
Filing Date
2024-10-08
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In half-duplex parallel communication systems, the existing parallel bus device port detection process is complex and inefficient, resulting in high factory testing costs and low production efficiency.

Method used

By receiving detection commands from the controller, multiple devices under test are controlled to enter the device detection mode and are detected sequentially. The detection enable switch is used to detect the port status in different modes to identify abnormal devices.

Benefits of technology

It simplifies the testing process, improves testing efficiency, reduces factory testing costs, and increases production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887674A_ABST
    Figure CN121887674A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of transmission equipment detection, and provides a parallel transmission line detection method, device and system, and the method comprises the steps: receiving a detection instruction sent by a controller in a target state; controlling the plurality of to-be-detected devices to enter a device detection mode according to a detection mode entering instruction in the detection instruction; when the to-be-detected devices enter the device detection mode, according to a starting detection instruction in the detection instruction, sequentially carrying out device detection on the plurality of to-be-detected devices to obtain a plurality of detection results corresponding to the plurality of to-be-detected devices; and determining an abnormal device in the plurality of to-be-detected devices according to the plurality of detection results. According to the method, the problems of complex detection process and low efficiency when the parallel bus equipment port of the half-duplex parallel communication system is detected in the prior art can be solved, so that the detection cost of a factory is reduced, and the production efficiency of the factory is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of transmission equipment testing technology, and in particular relates to a testing method, device and system for parallel transmission lines. Background Technology

[0002] Communication structures between devices and controllers are generally classified into parallel transmission communication and series transmission communication. Half-duplex parallel communication typically involves multiple devices connected to a single controller bus, allowing communication between the controller and devices to switch directions. In a half-duplex parallel communication system, the communication ports of each device must maintain a normal connection; otherwise, the communication function of the entire system will be affected. For example, a short circuit or poor soldering on a communication pin of one device will affect the communication of the entire system.

[0003] However, during the factory welding process, it is difficult to avoid situations such as poor soldering / short circuits on the pins. At this time, a large number of people are needed to manually inspect the equipment pins, especially when the pins of the equipment are relatively dense, the inspection process becomes more complicated. Summary of the Invention

[0004] This application provides a method, apparatus, and system for detecting parallel transmission lines, which can solve the problems of complex detection process and low efficiency in the prior art when detecting the parallel bus device ports of a half-duplex parallel communication system.

[0005] In a first aspect, embodiments of this application provide a method for detecting parallel transmission lines, the method comprising:

[0006] Receive a detection command sent by the controller in the target state, wherein the target state is used to indicate that the first control port and the second control port of the controller are disconnected from the parallel bus, or the first control port and the second control port of the controller are in a high-impedance input state;

[0007] According to the entry detection mode instruction in the detection instruction, multiple devices to be tested are controlled to enter the device detection mode. The multiple devices to be tested are connected to the controller in parallel on the parallel bus, and the multiple devices to be tested are connected in series and then connected to the third control port of the controller.

[0008] When the device under test enters the device detection mode, according to the start detection instruction in the detection instruction, the device under test is sequentially detected to obtain multiple detection results corresponding to the multiple devices under test.

[0009] Based on the multiple test results, abnormal devices are identified among the multiple devices to be tested.

[0010] In one possible implementation of the first aspect, controlling a plurality of devices to be tested to enter a device detection mode according to the entry detection mode instruction in the detection instruction includes:

[0011] According to the command to enter the detection mode, control the first device to be detected to enter the device detection mode;

[0012] After the first device under test enters the device detection mode, the first device under test forwards the detection mode instruction to the next device under test through a first communication connection, so that the next device under test enters the device detection mode according to the detection mode instruction; wherein, the first communication connection is a transmission line used to transmit the detection instruction between every two devices under test.

[0013] In one possible implementation of the first aspect, when the device under test enters the device detection mode, according to the start detection instruction in the detection instruction, device detection is performed sequentially on multiple devices under test to obtain multiple detection results corresponding to the multiple devices under test, including:

[0014] After the first device to be tested enters the device testing mode, the device to be tested is tested according to the start testing command, and the test result corresponding to the first device to be tested is obtained.

[0015] After the first device under test completes the device test, the first device under test forwards the start test command to the next device under test through the first communication connection, so that the next device under test performs device test according to the start test command and obtains the test result corresponding to the next device under test.

[0016] In one possible implementation of the first aspect, before the first device under test forwards the start detection command to the next device under test via the first communication connection, the method includes:

[0017] The device identifier in the start detection command is changed to the device number of the next device to be detected; wherein the device to be detected has a unique device number.

[0018] In one possible implementation of the first aspect, when the device under test enters the device detection mode, according to the start detection command, device detection is performed sequentially on multiple devices under test to obtain multiple detection results corresponding to the multiple devices under test, including:

[0019] Based on the device detection mode, determine the detection enable switch corresponding to the device detection mode;

[0020] According to the start detection command, the detection enable switch corresponding to the device detection mode is turned on to perform device detection on the device to be tested and obtain the detection result corresponding to the device to be tested;

[0021] The device detection modes include short-circuiting the first receiving port of the device under test to ground, short-circuiting the first receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to ground, or short-circuiting the first receiving port and the second receiving port of the device under test to each other.

[0022] In one possible implementation of the first aspect, the step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, so as to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes:

[0023] When the device detection mode is that the first receiving port of the device under test is short-circuited to ground, the detection enable switch is determined to be the first detection enable switch; wherein, the first detection enable switch is used to enable current flow from the positive terminal of the power supply to the first receiving port of the device under test; and, the input resistance of the second receiving port of the device under test is disconnected from ground;

[0024] According to the start detection command, the first detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to ground.

[0025] When the voltage of the first receiving port is greater than the reference input voltage of the first comparator and the output result of the first comparator is the first value, it is determined that the first receiving port of the device under test is normal.

[0026] If the voltage of the first receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is a second value, then it is determined that the first receiving port of the device under test is abnormal.

[0027] In one possible implementation of the first aspect, the step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, so as to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes:

[0028] When the device detection mode is that the second receiving port of the device under test is short-circuited to ground, the detection enable switch is determined to be the second detection enable switch; wherein, the second detection enable switch is used to enable current flow from the positive terminal of the power supply to the second receiving port of the device under test; and the input resistance of the first receiving port of the device under test is disconnected from ground;

[0029] According to the start detection command, the second detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to ground;

[0030] If the voltage at the second receiving port is greater than the reference input voltage of the first comparator and the output of the first comparator is the first value, then it is determined that the second receiving port of the device under test is functioning normally.

[0031] If the voltage of the second receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

[0032] In one possible implementation of the first aspect, the step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, so as to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes:

[0033] When the device detection mode is such that the first receiving port of the device under test is short-circuited to the positive terminal of the power supply, the detection enable switch is determined to be the third detection enable switch; wherein, the third detection enable switch is used to enable the current sinking from the first receiving port of the device under test to ground; and the input resistance of the second receiving port of the device under test is disconnected from ground;

[0034] According to the start detection command, the third detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to the positive power supply.

[0035] If the voltage of the first receiving port is less than the reference input voltage of the second comparator and the output of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal.

[0036] If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the first receiving port of the device under test is abnormal.

[0037] In one possible implementation of the first aspect, the step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, so as to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes:

[0038] When the device detection mode is such that the second receiving port of the device under test is short-circuited to the positive terminal of the power supply, the detection enable switch is determined to be the fourth detection enable switch; wherein, the fourth detection enable switch is used to enable the current sinking from the second receiving port of the device under test to ground; and the input resistance of the first receiving port of the device under test is disconnected from ground;

[0039] According to the start detection command, the fourth detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to the positive power supply.

[0040] If the voltage of the second receiving port is less than the reference input voltage of the second comparator and the output result of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal.

[0041] If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

[0042] In one possible implementation of the first aspect, the step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, so as to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes:

[0043] When the device detection mode is that the first receiving port / second receiving port of the device under test is shorted, the detection enable switch is determined to be the first detection enable switch; wherein, the first detection enable switch is used to enable current to be drawn from the positive terminal of the power supply to the first receiving port of the device under test; and, the input resistance of the first receiving port of the device under test is disconnected from ground and the input resistance of the second receiving port of the device under test is disconnected from ground.

[0044] According to the start detection command, the first detection enable switch is turned on to detect whether there is a short circuit between the first receiving port and the second receiving port of the device under test, and the detection result corresponding to the device under test is obtained.

[0045] When the difference between the voltage of the first receiving port and the voltage of the second receiving port is greater than the threshold voltage of the third comparator and the output of the third comparator is the first value, it is determined that the device under test is normal.

[0046] If the absolute value of the difference between the voltage of the first receiving port and the voltage of the second receiving port is less than or equal to the threshold voltage of the third comparator, or if the voltage of the first receiving port is equal to the voltage of the second receiving port, and the output of the third comparator is a second value, then the device under test is determined to be abnormal.

[0047] In one possible implementation of the first aspect, determining the abnormal device among the plurality of devices to be detected based on the plurality of detection results includes:

[0048] If at least one of the multiple detection results corresponding to the device under test is abnormal, then the device under test is determined to be the abnormal device;

[0049] If all the test results corresponding to the device under test are normal, then the device under test is determined to be a normal device.

[0050] In one possible implementation of the first aspect, after determining the abnormal device among the plurality of devices to be tested based on the plurality of detection results, the method includes:

[0051] Sending abnormal feedback information to the controller enables the controller to locate the abnormal device based on the device number of the abnormal device and send an abnormal location display command to the abnormal device;

[0052] The anomaly feedback information includes the device number of the malfunctioning device.

[0053] In one possible implementation of the first aspect, after sending exception feedback information to the controller, the method includes:

[0054] Receive the abnormal location display instruction sent by the controller;

[0055] According to the abnormal location display instruction, the abnormal indicator light of the abnormal device is turned on.

[0056] Secondly, embodiments of this application provide a detection device for parallel transmission lines, the device comprising:

[0057] The instruction receiving module is used to receive a detection instruction sent by the controller in the target state, wherein the target state is used to indicate that the controller's first control port and second control port are disconnected from the parallel bus, or that the controller's first control port and second control port are in a high-impedance input state.

[0058] The mode entry module is used to control multiple devices to be tested to enter the device detection mode according to the entry detection mode instruction in the detection instruction. The multiple devices to be tested are connected to the controller in parallel on the parallel bus, and the multiple devices to be tested are connected in series and then connected to the third control port of the controller.

[0059] The detection start module is used to perform device detection on multiple devices in sequence according to the start detection instruction in the detection instruction when the device to be tested enters the device detection mode, and obtain multiple detection results corresponding to the multiple devices to be tested.

[0060] The result determination module is used to determine the abnormal device among the multiple devices to be tested based on the multiple detection results.

[0061] Thirdly, embodiments of this application provide a detection system for parallel transmission lines, the system comprising: a controller, multiple devices to be tested, a parallel bus, and multiple detection resistors; wherein,

[0062] Multiple devices under test connected in series with the detection resistor are connected to the controller via parallel connection on the parallel bus. The multiple devices under test are connected in series and then connected to the third control port of the controller.

[0063] The controller is used to send a detection command to the device under test in a target state; wherein the target state is used to indicate that the first control port and the second control port of the controller are disconnected from the parallel bus, or that the first control port and the second control port of the controller are in a high-impedance input state.

[0064] The device under test is configured to receive the detection command sent by the controller in the target state; control multiple devices under test to enter the device detection mode according to the entry detection mode command in the detection command; when entering the device detection mode, perform device detection sequentially according to the start detection command in the detection command to obtain multiple detection results; and determine abnormal devices based on the multiple detection results.

[0065] Fourthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the detection method for parallel transmission lines described in any of the preceding claims.

[0066] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the detection method for parallel transmission lines described in any of the preceding claims.

[0067] Sixthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the parallel transmission line detection method described in any of the above claims.

[0068] The beneficial effects of the embodiments in this application compared with the prior art are:

[0069] This application provides a method for detecting parallel transmission lines. The method involves receiving a detection command from a controller in a target state, where the target state indicates that the controller's first and second control ports are disconnected from the parallel bus, or that the controller's first and second control ports are in a high-impedance input state. Based on an "enter detection mode" command in the detection command, multiple devices under test are controlled to enter a device detection mode. These devices are connected to the controller in parallel on the parallel bus, or connected in series with each other and then connected to the controller's third control port. Then, when a device under test enters the device detection mode, a "start detection" command in the detection command is used to sequentially detect the multiple devices, resulting in multiple detection results for each device. Finally, based on the multiple detection results, an abnormal device among the multiple devices under test is identified. By performing device testing on multiple devices according to the entry testing mode command and start testing command in the testing instruction, and identifying abnormal devices, the problem of complex testing process and low efficiency in the existing technology for testing the parallel bus device ports of half-duplex parallel communication systems can be solved, thereby reducing the factory's testing costs and improving the factory's production efficiency. Attached Figure Description

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

[0071] Figure 1 This is a schematic flowchart of a detection method for a parallel transmission line provided in an embodiment of this application;

[0072] Figure 2 This is a schematic diagram of a parallel transmission line provided in one embodiment of this application;

[0073] Figure 3 This is a schematic diagram of a parallel transmission line with respect to a ground short-circuit detection mode of the first receiving port of the device under test, provided in an embodiment of this application;

[0074] Figure 4 This is a schematic diagram of a parallel transmission line in a short-circuit detection mode of the first receiving port of the device under test to the positive terminal of the power supply, according to an embodiment of this application.

[0075] Figure 5 This is a schematic diagram of a parallel transmission line with respect to a short-circuit detection mode between the first receiving port and the second receiving port of the device under test, provided in an embodiment of this application;

[0076] Figure 6 This is a schematic diagram of the structure of a detection device for a parallel transmission line according to an embodiment of this application;

[0077] Figure 7 This is a schematic diagram of the structure of a detection system for a parallel transmission line provided in one embodiment of this application;

[0078] Figure 8 This is a flowchart illustrating a detection method for a parallel transmission line according to another embodiment of this application;

[0079] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0080] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0081] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0082] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0083] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0084] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0085] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0086] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for detecting parallel transmission lines according to an embodiment of this application. The method includes:

[0087] S11. Receive a detection command sent by the controller in the target state, wherein the target state is used to indicate that the controller's first control port and second control port are disconnected from the parallel bus, or the controller's first control port and second control port are in a high-impedance input state.

[0088] S12. According to the entry detection mode instruction in the detection instruction, control multiple devices to be tested to enter the device detection mode. Among them, multiple devices to be tested are connected to the controller in parallel on the parallel bus, and multiple devices to be tested are connected in series and then connected to the third control port of the controller.

[0089] S13. When the device under test enters the device testing mode, according to the start testing instruction in the testing instruction, the device under test is tested sequentially to obtain multiple test results corresponding to the multiple devices under test.

[0090] S14. Based on multiple test results, identify the abnormal device among the multiple devices to be tested.

[0091] It should be noted that in this embodiment, in the half-duplex parallel communication system, a communication method other than the parallel line is added between the devices connected to the parallel bus of the controller. This added communication method receives detection information data, thereby causing the connected devices to enter or exit detection mode. In each detection mode, it is determined whether the device ports on the parallel bus have issues such as cold solder joints or short circuits. The connected devices can be receivers, but this embodiment does not specifically limit this.

[0092] In step S11, the controller is one of the core components of the half-duplex parallel communication system. It is used to receive input signals from various sensors or user inputs and to output control signals to drive receivers or other devices on the parallel bus. Generally, the controller has at least two control ports: a first control port and a second control port, which are connected or disconnected from the parallel bus. Under normal operating conditions, the first and second control ports enable rapid data transmission and collaborative operation between the controller and multiple devices. In this example, the controller also has a third control port, which is used to send detection commands and other information when performing device detection. A detection command is a command output by the controller in the target state to perform device detection operations on the device to be detected. This detection command typically includes specific requirements for device detection, execution procedures, and other information, such as an entry detection mode command or a start detection command.

[0093] The target state is a specific operating or connection state of the controller. In this embodiment, the target state refers to the controller's first and second control ports being disconnected from the parallel bus, or it can be that the controller's first and second control ports are in a high-impedance input state. Here, high-impedance input state refers to a circuit state where the impedance of the control ports is very high, and they absorb or supply almost no current. That is, in the high-impedance input state, the first and second control ports have little influence on the external circuit and can be considered as disconnected from the external circuit. It should be noted that sending the detection command after the controller is in the target state can eliminate the influence on the detection judgment.

[0094] A parallel bus is a data transmission bus that allows multiple devices to communicate in parallel. In half-duplex parallel communication systems, parallel buses are commonly used to connect multiple controllers and multiple devices (such as actuators and receivers) to achieve fast data transmission and coordinated operation of the devices. It should be noted that when testing devices on a parallel bus, the controller's control port needs to be disconnected from the parallel bus to eliminate any impact on the testing and judgment.

[0095] In step S12, the "Enter Detection Mode" command is a type of command within the detection commands, specifically used to switch the device under test from normal operating mode to device detection mode. Device detection mode is the detection working state the device is in after receiving the "Enter Detection Mode" command. In device detection mode, the device under test will temporarily stop or adjust its normal workflow to perform various detection or fault diagnosis operations.

[0096] The device under test refers to a device that needs to be tested to verify whether its performance or function meets the requirements. In device testing mode, the device under test will perform a series of testing operations according to the testing instructions to check whether its performance or function meets the requirements.

[0097] It should be noted that in the normal operating state of the half-duplex parallel communication system, multiple devices under test are connected in parallel on a parallel bus, and then connected to the controller via the parallel bus to achieve data transmission and communication between the controller and the multiple devices under test. However, when the controller is in the target state, the first and second control ports of the controller are disconnected from the parallel bus, or the first and second control ports of the controller are in a high-impedance input state. In this case, to achieve the detection of the devices under test, multiple devices under test need to be connected in series before being connected to the third control port of the controller. Specifically, a transmission line for receiving detection information is added between the devices under test, and detection commands are transmitted through this added transmission line; that is, the devices under test are connected in series through this transmission line. Then, a communication method is added between the third control port of the controller and the first device under test for receiving and transmitting detection commands. This communication method can be a wired connection or a wireless connection.

[0098] In step S13, the start detection command is a type of detection command used to initiate device detection for the device under test. It should be noted that a parallel bus typically carries multiple devices, meaning there will be multiple devices under test requiring detection. Since these devices are connected in series, the detection must be performed sequentially. First, a start detection command is sent to the first-level device, initiating detection. After the first-level device completes its detection, a start detection command is sent to the second-level device, initiating detection, and so on. The detection result is the conclusion or result derived from data analysis after the device under test has completed its detection.

[0099] In step S14, the abnormal devices among the multiple devices to be tested can be identified based on the above detection results. Abnormal devices are those whose performance or function is found to be non-compliant with requirements or standards during the device testing process. Detecting these abnormal devices ensures the normal communication function of the entire half-duplex parallel communication system.

[0100] It is understood that the parallel transmission line detection method provided in this application embodiment receives a detection command sent by a controller in a target state, wherein the target state indicates that the controller's first control port and second control port are disconnected from the parallel bus, or that the controller's first control port and second control port are in a high-impedance input state; according to the entry detection mode command in the detection command, multiple devices under test are controlled to enter the device detection mode, wherein the multiple devices under test are connected to the controller in parallel on the parallel bus, and the multiple devices under test are connected in series and then connected to the controller's third control port; then, when the devices under test enter the device detection mode, according to the start detection command in the detection command, the multiple devices under test are sequentially detected to obtain multiple detection results corresponding to the multiple devices under test; finally, based on the multiple detection results, abnormal devices among the multiple devices under test are identified. By performing device testing on multiple devices according to the entry testing mode command and start testing command in the testing instruction, and identifying abnormal devices, the problem of complex testing process and low efficiency in the existing technology for testing the parallel bus device ports of half-duplex parallel communication systems can be solved, thereby reducing the factory's testing costs and improving the factory's production efficiency.

[0101] In one possible implementation, multiple devices to be tested are controlled to enter a device detection mode according to the entry detection mode instruction in the detection command, including:

[0102] According to the command to enter the detection mode, control the first device to be tested to enter the device detection mode;

[0103] After the first device under test enters the device detection mode, the first device under test forwards the detection mode instruction to the next device under test through the first communication connection, so that the next device under test enters the device detection mode according to the detection mode instruction; wherein, the first communication connection is a transmission line used to transmit detection instructions between every two devices under test.

[0104] It should be noted that upon receiving the entry detection mode command, a signal is sent to the first device under test to instruct it to enter device detection mode. Once the first device under test successfully enters device detection mode, it automatically forwards the entry detection mode command to the next device under test via the first communication connection, enabling the next device under test to enter device detection mode according to the command. This forwarding process of the entry detection mode command will continue sequentially until all devices under test have received the entry detection mode command and entered device detection mode.

[0105] The first communication connection is a transmission line used to transmit testing commands between every two devices under test. This first communication connection ensures reliable transmission of testing commands and avoids the need for manual intervention in the testing of each device.

[0106] It should be noted that the controller uses a single-wire serial protocol to send an "Enter Detection Mode" command to the input of the first device under test. This command includes verification information such as a header checksum, command code, and tail checksum. Upon receiving this command, the first device under test synchronously forwards it to the second device under test, and so on, until all devices under test enter the device detection mode. This verification information in the "Enter Detection Mode" command prevents devices under test from mistakenly entering the device detection mode and affecting normal operation.

[0107] In one possible implementation, when the device under test enters the device detection mode, according to the start detection command in the detection instruction, multiple devices under test are sequentially detected to obtain multiple detection results corresponding to the multiple devices under test, including:

[0108] After the first device to be tested enters the device testing mode, the device to be tested is tested according to the start testing command, and the test result corresponding to the first device to be tested is obtained.

[0109] After the first device under test completes the device test, the first device under test forwards the start test command to the next device under test through the first communication connection, so that the next device under test can perform device test according to the start test command and obtain the test result corresponding to the next device under test.

[0110] It should be noted that after the first device under test enters the device testing mode, it is controlled to perform device testing according to the start testing command. After the testing is completed, the corresponding testing result for the first device under test is obtained. The testing result may include the status and performance indicators of the device under test. After the first device under test completes its device testing, it automatically forwards the start testing command to the next device under test through the first communication connection, enabling the next device under test to perform device testing according to the start testing command and obtain the corresponding testing result. This forwarding process of the start testing command will continue sequentially until all devices under test have received the start testing command and completed their device testing.

[0111] It should be noted that after the equipment testing is completed, all test results can be summarized, and further analysis can be conducted based on the summarized test results to generate corresponding analysis reports or decisions, so that the testing personnel can take appropriate solutions.

[0112] In one possible implementation, before the first device under test forwards the start-up detection command to the next device under test via the first communication connection, the detection method of the parallel transmission line includes:

[0113] Change the device identifier in the start detection command to the device number of the next device to be tested; the device to be tested has a unique device number.

[0114] It should be noted that the device identification code is a code or number used in the start-up detection command to uniquely identify and recognize a specific device. Device identification codes may have different formats; in this embodiment, the device identification code includes the device number of the device to be tested, enabling accurate identification of the device. The device number is a unique identifier for the device to be tested, used to distinguish and locate different devices.

[0115] Specifically, in this embodiment, the start detection command includes a header checksum, a command code, a device identifier code, and a tail checksum. At the start of device detection, the controller typically sends a start detection command signal to the first device under test. The device identifier code in this start detection command is initially an initial device identifier code used to identify the target device of the command; that is, the initial device identifier code contains the device number of the first device under test. After receiving the start detection command, the first device under test identifies the device identifier code in the start detection command and changes the initial device identifier code in the start detection command to the device number of the next device under test. This ensures that when the start detection command is forwarded, it can be accurately sent to the next device under test. In this way, it can be ensured that each device under test in the parallel transmission line can be effectively detected, thereby improving the reliability and stability of the entire system.

[0116] In one possible implementation, when the device under test enters the device detection mode, according to the start detection command, multiple devices under test are sequentially detected to obtain multiple detection results corresponding to the multiple devices under test, including:

[0117] Based on the equipment detection mode, determine the detection enable switch corresponding to the equipment detection mode;

[0118] According to the start detection command, turn on the detection enable switch corresponding to the device detection mode to perform device detection and obtain the detection result of the device under test;

[0119] The device testing modes include short circuit to ground of the first receiving port of the device under test, short circuit to the positive terminal of the power supply of the first receiving port of the device under test, short circuit to the positive terminal of the power supply of the second receiving port of the device under test, short circuit to ground of the second receiving port of the device under test, or short circuit between the first receiving port and the second receiving port of the device under test.

[0120] It should be noted that the detection enable switch is a switch used to enable a specific device detection mode. During device detection, the corresponding device detection mode can be turned on or off by opening or closing the corresponding detection enable switch. In this embodiment, the device detection mode includes multiple detection modes, namely, short-circuiting the first receiving port of the device under test to ground, short-circuiting the first receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to ground, or shorting the first receiving port / second receiving port of the device under test to each other. Accordingly, each device detection mode corresponds to a detection enable switch. Specifically, when the device detection mode is a short circuit to ground at the first receiving port of the device under test, the detection enable switch is the first detection enable switch; when the device detection mode is a short circuit to ground at the second receiving port of the device under test, the detection enable switch is the second detection enable switch; when the device detection mode is a short circuit to the positive power supply at the first receiving port of the device under test, the detection enable switch is the third detection enable switch; when the device detection mode is a short circuit to the positive power supply at the second receiving port of the device under test, the detection enable switch is the fourth detection enable switch; and when the device detection mode is a short circuit between the first receiving port and the second receiving port of the device under test, the detection enable switch is the first detection enable switch. The system comprises four detection enable switches: a first detection enable switch to activate current flow from the positive power supply to the first receiving port of the device under test (DUT), used to detect whether the first receiving port of the DUT is short-circuited to ground or whether there is a short circuit between the first and second receiving ports; a second detection enable switch to activate current flow from the positive power supply to the second receiving port of the DUT, used to detect whether the second receiving port of the DUT is short-circuited to ground; a third detection enable switch to activate current sinking from the first receiving port of the DUT to ground, used to detect whether the first receiving port of the DUT is short-circuited to the positive power supply; and a fourth detection enable switch to activate current sinking from the second receiving port of the DUT to ground, used to detect whether the second receiving port of the DUT is short-circuited to the positive power supply. By performing device testing under different device testing modes and obtaining the corresponding test results, the system determines whether the DUT is an abnormal device.

[0121] Specifically, such as Figure 2 As shown, Figure 2 This is a schematic diagram of a parallel transmission line provided in one embodiment of this application. For example... Figure 2In this example, using one controller and n devices under test, the controller has a pull-up resistor Ru from terminal A to the positive power supply VDD and a pull-down resistor Rd from terminal B to ground, as well as a terminating resistor RT between the AB parallel buses. Assume there are n nodes on the AB parallel bus, corresponding to device under test #1, device under test #2, ..., device under test #n. The AB parallel bus has terminating resistors RT at both ends, and each node has the same input resistance RIN. Only the master node has a pull-up resistor Ru and a pull-down resistor Rd, and their values ​​are equal. During idle time, to ensure the receiver does not recognize bit errors (i.e., to guarantee VA-VB ≥ 0.2V), the range of the pull-up resistor Ru is: Where VA is the voltage at terminal A of the AB parallel bus, and VB is the voltage at terminal B of the AB parallel bus.

[0122] Following the example above, such as Figure 3 As shown, Figure 3 This is a schematic diagram of a parallel transmission line's short-circuit detection mode with respect to the ground of the first receiving port of the device under test, according to an embodiment of this application. Figure 3 As shown, taking one controller and n devices under test as an example, the controller has a pull-up resistor Ru from terminal A to the positive power supply VDD and a pull-down resistor Rd from terminal B to ground, as well as a terminating resistor RT between the AB bus and the Controller. Devices under test #1, #2, #3, ... are connected in parallel on the AB bus. The first and second receiving ports of each device under test are connected in series with a resistor RF to the AB bus. Here, A1 represents the first receiving port of device under test #1, B1 represents the second receiving port of device under test #1, A2 represents the first receiving port of device under test #2, B2 represents the second receiving port of device under test #2, A3 represents the first receiving port of device under test #3, and B3 represents the second receiving port of device under test #3; RINA is the input resistance of the first receiving port of each device under test, RINB is the input resistance of the second receiving port of each device under test, and I represents a current source.

[0123] Specifically, at this time, a short circuit to ground is detected at the first receiving port of the device under test #1. The first detection enable switch A_EN_gnd_dete is turned on, and current is drawn from the positive power supply VDD to the first receiving port (i.e., A1) to enable detection. The detection enable of the second receiving port (i.e., B1) is 0, meaning that the input resistor RINB of the second receiving port is disconnected from ground. That is, it detects whether the first receiving port of the device under test #1 is short-circuited to ground. Each device under test has a resistor RF connected in series with its first and second receiving ports to the AB bus. Under normal circumstances, the voltage of the first receiving port is approximately: VA1 = n*I0*(RT+Rd)+I0*RF. When VA1>VL, the output of the first comparator Comp1L is the first value, which in this embodiment can be 0, indicating that the first receiving port is detected normally. When VA1≤VL, the output of the first comparator Comp1L is the second value, which in this embodiment can be 1, indicating that the first receiving port is short-circuited to ground, meaning that the first receiving port is detected abnormally. Where I0 represents the current value corresponding to the current source; VA1 represents the voltage of the first receiving port of the device under test #1; VB1 represents the voltage of the second receiving port of the device under test #1; VL is the reference input voltage of the first comparator Comp1L; and VLO is the output result of the first comparator Comp1L. It should be noted that, in this embodiment, the specific values ​​of the first value and the second value are not limited.

[0124] It should be noted that when testing the first receiving port of device #1 under test for a short circuit to ground, the test results of device #1 will not be affected regardless of whether other devices under test are short-circuited. The same method is used to sequentially test devices #2, ..., n#.

[0125] Specifically, to detect a short circuit to ground at the second receiving port of device #1 under test, the second detection enable switch B_EN_gnd_dete is turned on, drawing current from the positive power supply VDD to the second receiving port (i.e., B1), thus enabling the detection of the first receiving port (i.e., A1). This means the input resistor RINA of the first receiving port is disconnected from ground. In other words, the system detects whether the second receiving port of device #1 under test is short-circuited to ground. When VB1 > VL, the first comparator Comp1L outputs the first value, indicating that the second receiving port is detected normally. When VB1 ≤ VL, the first comparator Comp1L outputs the second value, indicating that the second receiving port is short-circuited to ground, signifying an abnormality in the detection of the second receiving port.

[0126] Following the example above, such as Figure 4 As shown, Figure 4It is a schematic diagram of the short - circuit detection mode of the positive power supply for the first receiving port of a parallel transmission line with respect to a device to be detected according to an embodiment of the present application. Figure 4 In the figure, VH is the reference input voltage of the second comparator Comp1H, and VHO is the output result of the second comparator Comp1H. Specifically, at this time, to detect the short - circuit of the first receiving port of the device to be detected #1 to the positive power supply, the third detection enable switch A_EN_vdd_dete is turned on, the ground - sinking current from the first receiving port (i.e., A1) is turned on, and the detection enable of the second receiving port (i.e., B1) is 0, that is, the input resistance RINB of the second receiving port is disconnected from the ground. That is, to detect whether the first receiving port of the device to be detected #1 is short - circuited to the positive power supply. Under normal circumstances, the voltage of the first receiving port is approximately VA1 = VA - VRF, where VA represents the voltage at the A end and VRF represents the voltage of the resistor RF. When VA1 < VH, the output result of the second comparator Comp1H is the first value, indicating that the first receiving port is detected normally; when VA1 ≥ VH, the output result of the second comparator Comp1H is the second value, then the first receiving port is short - circuited to the positive power supply, indicating that the first receiving port is detected abnormally.

[0127] Specifically, to detect the short - circuit of the second receiving port of the device to be detected #1 to the positive power supply, the fourth detection enable switch B_EN_vdd_dete is turned on, the ground - sinking current from the second receiving port (i.e., B1) is turned on, and the detection enable of the first receiving port (i.e., A1) is 0, that is, the input resistance RINA of the first receiving port is disconnected from the ground. That is, to detect whether the second receiving port of the device to be detected #1 is short - circuited to the positive power supply. When VB1 < VH, the output result of the second comparator Comp1H is the first value, indicating that the second receiving port is detected normally; when VB1 ≥ VH, the output result of the second comparator Comp1H is the second value, then the second receiving port is short - circuited to the positive power supply, indicating that the second receiving port is detected abnormally.

[0128] Continuing with the above example, as Figure 5 shown, Figure 5 It is a schematic diagram of the short - circuit detection mode between the first receiving port and the second receiving port of a parallel transmission line with respect to a device to be detected according to an embodiment of the present application. Figure 5In this context, VABO represents the output of the third comparator Comp1AB. Specifically, at this time, a short circuit is detected between the first and second receiving ports of the device under test #1. The first detection enable switch A_EN_gnd_dete is turned on, and current is drawn from the positive power supply VDD to the first receiving port (i.e., A1), opening the circuit. The input resistor RINA of the first receiving port is disconnected from ground, while the A1 ports of the other receivers are drained. The detection enable of the second receiving port (i.e., B1) is 0, meaning the input resistor RINB of the second receiving port is disconnected from ground. When VA1 - VB1 > VTH, the output of the third comparator Comp1AB is the first value, indicating that no short circuit has occurred between the first and second receiving ports, and the device under test is functioning normally. When VA1 = VB1 or |VA1 - VB1| ≤ VTH, the output of the third comparator Comp1AB is the second value, indicating that a short circuit has occurred between the first and second receiving ports, and the device under test is malfunctioning. Here, VTH is the threshold voltage of the third comparator Comp1AB.

[0129] It should be noted that all of the above device detection modes require device detection of the device under test. If the device under test detects an abnormality in a certain receiving port, it indicates that the device under test is abnormal. Only when the first receiving port and the second receiving port of the device under test are detected normally in all device detection modes can it be said that the device under test is detected normally.

[0130] In one possible implementation, based on multiple detection results, abnormal devices among multiple devices to be detected are identified, including:

[0131] If at least one of the multiple test results for the device under test is abnormal, then the device under test is determined to be an abnormal device.

[0132] If multiple test results for the device under test are all normal, then the device under test is determined to be a normal device.

[0133] It should be noted that the display of the test results can be used to determine whether the device under test is abnormal. In each device test mode, the device under test will receive a corresponding test result. When the test result is abnormal, it indicates that the device under test is malfunctioning in that test mode; when the test result is normal, it indicates that the device under test is functioning normally in that test mode. After completing all device test modes, if at least one of the multiple test results for the device under test is abnormal, it indicates that the device under test is malfunctioning, and thus the device can be identified as abnormal. If all the test results for the device under test are normal, it indicates that the device under test is functioning normally, and thus the device can be identified as normal.

[0134] In one possible implementation, after identifying the faulty device among multiple devices to be tested based on multiple detection results, the detection method for the parallel transmission line includes:

[0135] Send an anomaly feedback message to the controller so that the controller can locate the location of the abnormal device based on the device number of the abnormal device and send an anomaly location display command to the abnormal device;

[0136] The anomaly feedback information includes the device number of the malfunctioning device.

[0137] It should be noted that anomaly feedback information refers to the information about the abnormal device's data or status sent to the controller after an abnormal device is detected during the equipment testing process. In this embodiment, the anomaly feedback information includes the device number of the abnormal device. The device number is a unique identifier for each device under test, and the corresponding device under test can be accurately identified based on the device number, enabling the location of the abnormal device. The anomaly location display command is an instruction sent by the controller to the abnormal device to display its abnormal status. Based on this anomaly location display command, the abnormal device displays its abnormal status, allowing the testing personnel to quickly identify and locate the abnormal device, thereby taking appropriate handling measures.

[0138] In one possible implementation, after sending an anomaly feedback message to the controller, the detection method for the parallel transmission line includes:

[0139] Receive abnormal location display instructions sent by the controller;

[0140] According to the abnormal location display command, the abnormal indicator light of the abnormal device will be lit.

[0141] It should be noted that the abnormal location display command is a command used to locate the position of an abnormal device and illuminate its indicator light.

[0142] Specifically, after the device under test completes its testing, it sends the abnormal feedback information of the faulty device to the controller. Upon receiving the abnormal feedback information, the controller sends a normal position display command to the faulty device with that device number, based on the device number in the abnormal feedback information. This causes the faulty device to illuminate its abnormal indicator light, thereby locating the faulty device. This allows testing personnel to quickly identify and locate the faulty device and take appropriate measures.

[0143] It should be noted that in this embodiment, lighting up the fault indicator light of the faulty device can be a common flashing red light or a light that is off.

[0144] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0145] Corresponding to the parallel transmission line detection method in the above embodiment, Figure 6 The diagram shows a schematic of a detection device for a parallel transmission line according to an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0146] Reference Figure 6 The detection device 6 for parallel transmission lines in this embodiment includes:

[0147] The instruction receiving module 61 is used to receive the detection instruction sent by the controller in the target state, wherein the target state is used to indicate that the controller's first control port and second control port are disconnected from the parallel bus, or the controller's first control port and second control port are in a high-impedance input state.

[0148] The mode entry module 62 is used to control multiple devices to be tested to enter the device detection mode according to the entry detection mode instruction in the detection instruction. The multiple devices to be tested are connected to the controller in parallel on the parallel bus, and the multiple devices to be tested are connected in series and then connected to the third control port of the controller.

[0149] The detection start module 63 is used to perform device detection on multiple devices in sequence according to the start detection command in the detection command when the device under test enters the device detection mode, and obtain multiple detection results corresponding to the multiple devices under test.

[0150] The result determination module 64 is used to determine the abnormal device among multiple devices to be tested based on multiple test results.

[0151] It is understood that this application embodiment provides a detection device for a parallel transmission line. The device receives a detection command from a controller in a target state via a command receiving module 61. The target state indicates that the controller's first and second control ports are disconnected from the parallel bus, or that the controller's first and second control ports are in a high-impedance input state. A mode entry module 62 controls multiple devices to enter a device detection mode according to the entry detection mode command in the detection command. These multiple devices are connected to the controller in parallel on the parallel bus, and are also connected in series with each other before being connected to the controller's third control port. Then, when a device enters the device detection mode, a detection start module 63 performs device detection sequentially on the multiple devices according to the start detection command in the detection command, obtaining multiple detection results for each device. Finally, a result determination module 64 determines the abnormal device among the multiple devices based on the multiple detection results. The detection device 6 of this parallel transmission line performs equipment detection on multiple devices to be tested according to the entry detection mode command and start detection command in the detection instruction, and identifies abnormal devices. This can solve the problems of complex detection process and low efficiency in the existing technology when detecting the parallel bus device ports of half-duplex parallel communication systems, thereby reducing the factory's detection cost and improving the factory's production efficiency.

[0152] Furthermore, the mode entry module 62 includes:

[0153] The mode enters the first sub-unit, which is used to control the first device to be tested to enter the device detection mode according to the entry detection mode command;

[0154] The detection mode entry instruction forwarding subunit is used to forward the detection mode instruction to the next device under test through a first communication connection after the first device under test enters the device detection mode, so that the next device under test can enter the device detection mode according to the detection mode instruction; wherein, the first communication connection is a transmission line used to transmit detection instructions between every two devices under test.

[0155] Furthermore, the detection startup module 63 includes:

[0156] The detection starts the first subunit, which is used to perform device detection on the first device under test according to the start detection command after the first device under test enters the device detection mode, and obtain the detection result corresponding to the first device under test;

[0157] The detection instruction forwarding subunit is used to forward the detection start instruction to the next device under test through the first communication connection after the first device under test completes the device test, so that the next device under test can perform device test according to the detection start instruction and obtain the corresponding test result of the next device under test.

[0158] Furthermore, the detection device 6 for the parallel transmission line includes:

[0159] The detection identifier code change module is used to change the device identifier code in the start detection command to the device number of the next device to be detected; wherein, the device to be detected has a unique device number.

[0160] Furthermore, the detection startup module 63 also includes:

[0161] The detection enable switch determination unit is used to determine the detection enable switch corresponding to the device detection mode based on the device detection mode.

[0162] The detection start unit is used to activate the detection enable switch corresponding to the device detection mode according to the detection start command, so as to perform device detection on the device to be tested and obtain the detection result corresponding to the device to be tested.

[0163] The device testing modes include short circuit to ground of the first receiving port of the device under test, short circuit to the positive terminal of the power supply of the first receiving port of the device under test, short circuit to the positive terminal of the power supply of the second receiving port of the device under test, short circuit to ground of the second receiving port of the device under test, or short circuit between the first receiving port and the second receiving port of the device under test.

[0164] Furthermore, the detection start unit includes: a first detection subunit, used to determine the detection enable switch as the first detection enable switch when the device detection mode is a short circuit to ground at the first receiving port of the device under test; wherein the first detection enable switch is used to enable current flow from the positive terminal of the power supply to the first receiving port of the device under test; and the input resistance of the second receiving port of the device under test is disconnected from ground;

[0165] According to the start detection command, the first detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to ground;

[0166] If the voltage at the first receiving port is greater than the reference input voltage of the first comparator and the output of the first comparator is the first value, then it is determined that the first receiving port of the device under test is functioning normally.

[0167] If the voltage of the first receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is the second value, then it is determined that the first receiving port of the device under test is abnormal.

[0168] Furthermore, the detection start unit includes: a second detection subunit, used to determine the detection enable switch as a second detection enable switch when the device detection mode is a short circuit to ground at the second receiving port of the device under test; wherein the second detection enable switch is used to enable current flow from the positive terminal of the power supply to the second receiving port of the device under test; and the input resistance of the first receiving port of the device under test is disconnected from ground;

[0169] According to the start detection command, the second detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to ground;

[0170] When the voltage at the second receiving port is greater than the reference input voltage of the first comparator and the output of the first comparator is the first value, it is determined that the second receiving port of the device under test is functioning normally.

[0171] If the voltage of the second receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

[0172] Furthermore, the detection start unit includes: a third detection subunit, used to determine the detection enable switch as a third detection enable switch when the device detection mode is a short circuit between the first receiving port of the device under test and the positive terminal of the power supply; wherein the third detection enable switch is used to enable the current sinking from the first receiving port of the device under test to ground; and the input resistance of the second receiving port of the device under test is disconnected from ground;

[0173] According to the start detection command, the third detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to the positive power supply.

[0174] If the voltage of the first receiving port is less than the reference input voltage of the second comparator and the output of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal.

[0175] If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the first receiving port of the device under test is abnormal.

[0176] Furthermore, the detection start unit includes: a fourth detection subunit, used to determine the detection enable switch as the fourth detection enable switch when the device detection mode is a short circuit between the second receiving port of the device under test and the positive terminal of the power supply; wherein, the fourth detection enable switch is used to enable the current sinking from the second receiving port of the device under test to ground;

[0177] According to the start detection command, the fourth detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to the positive terminal of the power supply; and the input resistor of the first receiving port of the device under test is disconnected from ground.

[0178] If the voltage of the second receiving port is less than the reference input voltage of the second comparator and the output result of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal.

[0179] If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

[0180] Furthermore, the detection start unit includes: a fifth detection subunit, used to determine the detection enable switch as the first detection enable switch when the device detection mode is a short circuit between the first receiving port and the second receiving port of the device under test; wherein the first detection enable switch is used to enable current flow from the positive terminal of the power supply to the first receiving port of the device under test; and the input resistance of the first receiving port of the device under test is disconnected from ground and the input resistance of the second receiving port of the device under test is disconnected from ground;

[0181] According to the start detection command, the first detection enable switch is turned on to detect whether there is a short circuit between the first receiving port and the second receiving port of the device under test.

[0182] If the difference between the voltage of the first receiving port and the voltage of the second receiving port is greater than the threshold voltage of the third comparator and the output of the third comparator is the first value, then the device under test is determined to be normal.

[0183] If the absolute value of the difference between the voltage of the first receiving port and the voltage of the second receiving port is less than or equal to the threshold voltage of the third comparator, or if the voltage of the first receiving port is equal to the voltage of the second receiving port and the output of the third comparator is the second value, then it is determined that the device under test is abnormal.

[0184] Furthermore, the result determination module 64 includes:

[0185] An abnormal device determination unit is used to determine that the device under test is an abnormal device if at least one of the multiple test results corresponding to the device under test is abnormal.

[0186] The normal equipment determination unit is used to determine that the equipment under test is a normal equipment if multiple test results corresponding to the equipment under test are all normal.

[0187] Furthermore, the detection device 6 for the parallel transmission line includes:

[0188] The anomaly feedback sending module is used to send anomaly feedback information to the controller, so that the controller can locate the location of the abnormal device according to the device number of the abnormal device, and send an anomaly location display command to the abnormal device;

[0189] The anomaly feedback information includes the device number of the malfunctioning device.

[0190] Furthermore, the detection device 6 for the parallel transmission line includes:

[0191] An abnormal location instruction receiving module is used to receive abnormal location display instructions sent by the controller;

[0192] The abnormal location display module is used to illuminate the abnormal indicator light of the abnormal device according to the abnormal location display command.

[0193] Furthermore, the detection device 6 for the parallel transmission line also includes:

[0194] The instruction decoding module is used to decode the detection instructions sent by the controller so that the device under test can receive the detection instructions.

[0195] It should be noted that the information interaction and execution process between the modules in the detection device 6 of the parallel transmission line mentioned above are based on the same concept as the method embodiment of this application. For details on their specific functions and the resulting technical effects, please refer to the method embodiment section, which will not be repeated here.

[0196] This application provides a detection system for parallel transmission lines, such as... Figure 7 As shown, Figure 7 This is a schematic diagram of a detection system for a parallel transmission line according to an embodiment of this application. (Refer to...) Figure 7 The parallel transmission line detection system 7 of this embodiment includes: a controller 71, multiple devices to be tested 72#i (where i represents the serial number of the device to be tested 72#i; i = 1, 2, ..., n, n is a natural number; n represents the number of devices to be tested 72#i), a parallel bus 73, and multiple detection resistors RF; wherein,

[0197] Multiple devices under test 72#i connected in series with a detection resistor R are connected to the controller 71 in parallel via a parallel bus 73. The multiple devices under test 72#i are connected in series and then connected to the third control port CMD of the controller 71.

[0198] The controller 71 is used to send a detection command to the device under test 72#i in the target state; wherein, the target state is used to indicate that the first control port A and the second control port B of the controller 71 are disconnected from the parallel bus 73, or the first control port A and the second control port B of the controller 71 are in a high-impedance input state.

[0199] The device under test 72#i is used to receive the detection command sent by the controller 71 in the target state; according to the enter detection mode command in the detection command, it controls multiple devices under test 72#i to enter the device detection mode; when entering the device detection mode, it performs device detection sequentially according to the start detection command in the detection command to obtain multiple detection results; based on the multiple detection results, it identifies abnormal devices.

[0200] It should be noted that, as Figure 7 As shown, the detection system 7 of the parallel transmission line includes: a controller 71, multiple devices to be tested 72#i, a parallel bus 73, and multiple detection resistors RF.

[0201] The controller 71 includes a first control port A, a second control port B, and a third control port CMD. The first control port A and the second control port B of the controller 71 are connected to a parallel bus 73, and the third control port CMD is connected to the first device under test 72#1. In the target state, a detection command is sent to the device under test 72#1. The target state refers to the controller 71 releasing the parallel bus and canceling its influence on the detection results; that is, when the first control port A and the second control port B of the controller 71 are disconnected from the parallel bus 73, or when the first control port A and the second control port B of the controller 71 are in a high-impedance input state.

[0202] The detection system 7 for parallel transmission lines includes multiple devices 72#i to be tested, such as... Figure 7 The devices under test are 72#1, 72#2, and 72#3. Device 72#i receives the detection command sent by the controller 71 in the target state; according to the "enter detection mode" command in the detection command, it controls multiple devices 72#i to enter the device detection mode; when entering the device detection mode, it sequentially performs device detection according to the "start detection" command in the detection command, obtaining multiple detection results; based on the multiple detection results, it identifies abnormal devices.

[0203] Specifically, such as Figure 7 As shown, the device under test 72#i includes a first receiving port Ai, a second receiving port Bi, a first signal receiving port ADRii, and a second signal output port ADRoi; where i represents the serial number of the device under test 72#i; i = 1, 2, ..., n, where n is a natural number; and n represents the number of devices under test 72#i. The first receiving port Ai and the second receiving port Bi of the device under test 72#i are connected in series with a detection resistor RF and then connected to the parallel bus 73 to achieve connection with the first control port A and the second control port B of the controller 71.

[0204] A first communication connection is established between the third control port CMD of controller 71 and the first signal receiving port ADRI1 of device under test 72#1; a second communication connection is established between the second signal output port ADRO1 of device under test 72#1 and the first signal receiving port ADRI2 of device under test 72#2; subsequently, a second communication connection is established between the second signal output port ADROi of device under test 72#i and the first signal receiving port 72ADRIi+1 of device under test 72#i+1; wherein, the first communication connection is used to transmit the detection command sent by controller 71; the second communication connection is used to receive and forward the detection command sent by controller 71. It should be noted that the first communication connection can be a wireless communication connection or a wired communication connection.

[0205] Furthermore, such as Figure 8 As shown, Figure 8 This is a flowchart illustrating a detection method for parallel transmission lines according to another embodiment of this application. Figure 8 The method for detecting parallel transmission lines provided in this embodiment includes the following steps:

[0206] Step S21: The controller releases the parallel bus. That is, the controller chooses to disconnect the parallel bus from the controller, or cancels the control of the AB ports of the parallel bus, and sets the AB ports to a high-impedance input state or a floating state;

[0207] Step S22: The controller sends a detection command to the device under test. Specifically, the controller sends an "Enter Detection Mode" command to the first device under test; and upon receiving the command, the first device under test simultaneously forwards the command content to the second device under test, and so on for subsequent devices under test, until all devices under test enter the device detection mode. The controller then sends a "Start Detection" command to the first device under test again, and upon receiving the command, the first device under test forwards it to the second device under test, causing the second device to start detection, and so on for subsequent devices under test.

[0208] Step S23: The devices to be tested are tested sequentially.

[0209] Step S24: Identify the abnormal device based on the detection results, locate the abnormal device, and flash a red light to indicate it. That is, based on the detection results, the controller identifies the abnormal device among the devices to be tested, sends an automatic light-up command to the abnormal device, and upon receiving this command, the abnormal device will flash its own light to indicate it, thereby locating the abnormal device.

[0210] Understandably, the detection system 7 of the parallel transmission line sends a detection command to the device under test 72#i in the target state through the controller 71. The device under test 72#i performs device detection according to the entry detection mode command and start detection command in the detection command, and identifies abnormal devices. This can solve the problems of complex detection process and low efficiency in the existing technology when detecting the parallel bus device port of the half-duplex parallel communication system, thereby reducing the detection cost of the factory and improving the production efficiency of the factory.

[0211] This application also provides an electronic device, such as... Figure 9 As shown, Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. (Refer to...) Figure 9 The electronic device 9 of this embodiment includes: a memory 91, a processor 92, and a computer program stored in the memory 91 and executable on the processor 92. When the processor 92 executes the computer program, it implements the steps of any of the above-mentioned parallel transmission line detection method embodiments.

[0212] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the various method embodiments above.

[0213] This application also provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.

[0214] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0215] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0216] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0217] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0218] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0219] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for detecting parallel transmission lines, characterized in that, include: Receive a detection command sent by the controller in the target state, wherein the target state is used to indicate that the first control port and the second control port of the controller are disconnected from the parallel bus, or the first control port and the second control port of the controller are in a high-impedance input state; According to the entry detection mode instruction in the detection instruction, multiple devices to be tested are controlled to enter the device detection mode. The multiple devices to be tested are connected to the controller in parallel on the parallel bus, and the multiple devices to be tested are connected in series and then connected to the third control port of the controller. When the device under test enters the device detection mode, according to the start detection instruction in the detection instruction, the device under test is sequentially detected to obtain multiple detection results corresponding to the multiple devices under test. Based on the multiple test results, abnormal devices are identified among the multiple devices to be tested.

2. The detection method for parallel transmission lines as described in claim 1, characterized in that, The step of controlling multiple devices to be tested to enter the device detection mode according to the entry detection mode instruction in the detection instruction includes: According to the command to enter the detection mode, control the first device to be detected to enter the device detection mode; After the first device under test enters the device detection mode, the first device under test forwards the detection mode instruction to the next device under test through a first communication connection, so that the next device under test enters the device detection mode according to the detection mode instruction; wherein, the first communication connection is a transmission line used to transmit the detection instruction between every two devices under test.

3. The detection method for parallel transmission lines as described in claim 2, characterized in that, When the device under test enters the device detection mode, according to the start detection command in the detection instruction, device detection is performed sequentially on multiple devices under test to obtain multiple detection results corresponding to the multiple devices under test, including: After the first device to be tested enters the device testing mode, the device to be tested is tested according to the start testing command, and the test result corresponding to the first device to be tested is obtained. After the first device under test completes the device test, the first device under test forwards the start test command to the next device under test through the first communication connection, so that the next device under test performs device test according to the start test command and obtains the test result corresponding to the next device under test.

4. The detection method for parallel transmission lines as described in claim 3, characterized in that, Before the first device under test forwards the start detection command to the next device under test via the first communication connection, the method includes: The device identifier in the start detection command is changed to the device number of the next device to be detected; wherein the device to be detected has a unique device number.

5. The detection method for parallel transmission lines as described in claim 1, characterized in that, When the device under test enters the device detection mode, according to the start detection command, multiple devices under test are sequentially tested to obtain multiple detection results corresponding to the multiple devices under test, including: Based on the device detection mode, determine the detection enable switch corresponding to the device detection mode; According to the start detection command, the detection enable switch corresponding to the device detection mode is turned on to perform device detection on the device to be tested and obtain the detection result corresponding to the device to be tested; The device detection modes include short-circuiting the first receiving port of the device under test to ground, short-circuiting the first receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to the positive terminal of the power supply, short-circuiting the second receiving port of the device under test to ground, or short-circuiting the first receiving port and the second receiving port of the device under test to each other.

6. The detection method for parallel transmission lines as described in claim 5, characterized in that, The step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes: When the device detection mode is that the first receiving port of the device under test is short-circuited to ground, the detection enable switch is determined to be the first detection enable switch; wherein, the first detection enable switch is used to enable current flow from the positive terminal of the power supply to the first receiving port of the device under test; and, the input resistance of the second receiving port of the device under test is disconnected from ground; According to the start detection command, the first detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to ground. When the voltage of the first receiving port is greater than the reference input voltage of the first comparator and the output result of the first comparator is the first value, it is determined that the first receiving port of the device under test is normal. If the voltage of the first receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is the second value, then it is determined that the first receiving port of the device under test is abnormal.

7. The detection method for parallel transmission lines as described in claim 5, characterized in that, The step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes: When the device detection mode is that the second receiving port of the device under test is short-circuited to ground, the detection enable switch is determined to be the second detection enable switch; wherein, the second detection enable switch is used to enable current flow from the positive terminal of the power supply to the second receiving port of the device under test; and the input resistance of the first receiving port of the device under test is disconnected from ground; According to the start detection command, the second detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to ground; When the voltage of the second receiving port is greater than the reference input voltage of the first comparator and the output result of the first comparator is the first value, it is determined that the second receiving port of the device under test is normal. If the voltage of the second receiving port is less than or equal to the reference input voltage of the first comparator and the output of the first comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

8. The detection method for parallel transmission lines as described in claim 5, characterized in that, The step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes: When the device detection mode is such that the first receiving port of the device under test is short-circuited to the positive terminal of the power supply, the detection enable switch is determined to be the third detection enable switch; wherein, the third detection enable switch is used to enable the current sinking from the first receiving port of the device under test to ground; and the input resistance of the second receiving port of the device under test is disconnected from ground; According to the start detection command, the third detection enable switch is turned on to detect whether the first receiving port of the device under test is short-circuited to the positive power supply. If the voltage of the first receiving port is less than the reference input voltage of the second comparator and the output result of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal. If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the first receiving port of the device under test is abnormal.

9. The detection method for parallel transmission lines as described in claim 5, characterized in that, The step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes: When the device detection mode is such that the second receiving port of the device under test is short-circuited to the positive terminal of the power supply, the detection enable switch is determined to be the fourth detection enable switch; wherein, the fourth detection enable switch is used to enable the current sinking from the second receiving port of the device under test to ground; and the input resistance of the first receiving port of the device under test is disconnected from ground; According to the start detection command, the fourth detection enable switch is turned on to detect whether the second receiving port of the device under test is short-circuited to the positive power supply. If the voltage of the second receiving port is less than the reference input voltage of the second comparator and the output result of the second comparator is the first value, then it is determined that the first receiving port of the device under test is normal. If the voltage of the second receiving port is greater than or equal to the reference input voltage of the second comparator and the output of the second comparator is the second value, then it is determined that the second receiving port of the device under test is abnormal.

10. The detection method for parallel transmission lines as described in claim 5, characterized in that, The step of activating the detection enable switch corresponding to the device detection mode according to the start detection command, to perform device detection on the device under test and obtain the detection result corresponding to the device under test, includes: When the device detection mode is that the first receiving port / second receiving port of the device under test is shorted, the detection enable switch is determined to be the first detection enable switch; wherein, the first detection enable switch is used to enable current flow from the positive terminal of the power supply to the first receiving port of the device under test; and, the input resistance of the first receiving port of the device under test is disconnected from ground and the input resistance of the second receiving port of the device under test is disconnected from ground. According to the start detection command, the first detection enable switch is turned on to detect whether there is a short circuit between the first receiving port and the second receiving port of the device under test; When the difference between the voltage of the first receiving port and the voltage of the second receiving port is greater than the threshold voltage of the third comparator and the output of the third comparator is the first value, it is determined that the device under test is normal. If the absolute value of the difference between the voltage of the first receiving port and the voltage of the second receiving port is less than or equal to the threshold voltage of the third comparator, or if the voltage of the first receiving port is equal to the voltage of the second receiving port and the output result of the third comparator is the second value, then it is determined that the device under test is abnormal.

11. The detection method for parallel transmission lines as described in claim 1, characterized in that, The step of determining the abnormal device among the multiple devices to be tested based on the multiple detection results includes: If at least one of the multiple detection results corresponding to the device under test is abnormal, then the device under test is determined to be the abnormal device; If all the test results corresponding to the device under test are normal, then the device under test is determined to be a normal device.

12. The detection method for parallel transmission lines as described in claim 1, characterized in that, After determining the abnormal device among the plurality of devices to be tested based on the plurality of detection results, the method includes: Sending abnormal feedback information to the controller enables the controller to locate the abnormal device based on the device number of the abnormal device and send an abnormal location display command to the abnormal device; The anomaly feedback information includes the device number of the malfunctioning device.

13. The detection method for parallel transmission lines as described in claim 12, characterized in that, After sending an exception feedback message to the controller, the method includes: Receive the abnormal location display instruction sent by the controller; According to the abnormal location display instruction, the abnormal indicator light of the abnormal device is turned on.

14. A detection device for a parallel transmission line, characterized in that, include: The instruction receiving module is used to receive a detection instruction sent by the controller in the target state, wherein the target state is used to indicate that the controller's first control port and second control port are disconnected from the parallel bus, or that the controller's first control port and second control port are in a high-impedance input state. The mode entry module is used to control multiple devices to be tested to enter the device detection mode according to the entry detection mode instruction in the detection instruction. The multiple devices to be tested are connected to the controller in parallel on the parallel bus, and the multiple devices to be tested are connected in series and then connected to the third control port of the controller. The detection start module is used to perform device detection on multiple devices in sequence according to the start detection instruction in the detection instruction when the device to be tested enters the device detection mode, and obtain multiple detection results corresponding to the multiple devices to be tested. The result determination module is used to determine the abnormal device among the multiple devices to be tested based on the multiple detection results.

15. A detection system for parallel transmission lines, characterized in that, The system includes: a controller, multiple devices to be tested, a parallel bus, and multiple sensing resistors; wherein... Multiple devices under test connected in series with the detection resistor are connected to the controller via parallel connection on the parallel bus. The multiple devices under test are connected in series and then connected to the third control port of the controller. The controller is used to send a detection command to the device under test in a target state; wherein the target state is used to indicate that the first control port and the second control port of the controller are disconnected from the parallel bus, or that the first control port and the second control port of the controller are in a high-impedance input state. The device under test is configured to receive the detection command sent by the controller in the target state; control multiple devices under test to enter the device detection mode according to the entry detection mode command in the detection command; when entering the device detection mode, perform device detection sequentially according to the start detection command in the detection command to obtain multiple detection results; and determine abnormal devices based on the multiple detection results.