A wiring test method and device for a foreign body intrusion limiting relay combination unit
By generating a cable connection matrix and a test result matrix, comparing the two to judge cable connection abnormalities, the problem of low wiring testing efficiency in the prior art is solved, and efficient and accurate cable connection status detection is achieved.
Patent Information
- Application Number
- CN202210540367.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-05-17
AI Technical Summary
The wiring testing method of existing foreign object invasion relay combination units is inefficient and it is difficult to efficiently and accurately detect complex cable connection status.
By generating the base node information table and wiring table, a cable connection matrix and a test result matrix are formed, and the two are compared to determine the cable connection abnormality. This method uses matrix comparison to achieve automated and rapid detection of cable connection status.
It realizes efficient and accurate detection of the cable connection status of the foreign object invasion relay combination unit, and improves the efficiency and reliability of wiring testing.
Smart Images

Figure CN115047378B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of railway disaster prevention monitoring systems, and in particular to a wiring test method and equipment for a foreign object intrusion limiting relay combination unit. Background Art
[0002] The railway disaster prevention system is responsible for monitoring disasters such as foreign object intrusion, wind, and rain. For disaster information caused by foreign object intrusion, the railway disaster prevention system exchanges information with the train control system through the foreign object intrusion relay combination unit to achieve operational control of the train control system. The foreign object intrusion relay combination unit is usually placed in a cabinet. On one side of the cabinet are arranged several railway signal relay bases, on which railway signal relays are set. On the other side of the cabinet are cables for connecting various modules. Among them, wiring refers to connecting the cables to the welding terminals on the base according to the design drawings. In order to detect the safety and reliability of the wiring of the foreign object intrusion relay combination unit, it is necessary to use certain means to test whether the connection between the cable and the base meets the requirements of the design drawings.
[0003] A general relay base has multiple nodes (usually 28 nodes), so the number of nodes of the foreign object intrusion limit relay combination unit is very large, and the final wiring detection process is very complicated. The test method in the prior art is that the tester uses a multimeter to determine whether the cable is connected correctly according to the wiring table, or uses a wireless signal to control the conduction between the two nodes connected by a single cable. Both of the above methods have the problem of low efficiency when testing complex wiring. Summary of the invention
[0004] The technical problem to be solved by the present application is the low efficiency of the existing wiring test scheme of the foreign object intrusion limiting relay combination unit. To this end, the present application proposes a wiring test method and equipment for the foreign object intrusion limiting relay combination unit.
[0005] In response to the above technical problems, this application provides the following technical solutions:
[0006] The embodiment of the present application provides a wiring test method for a foreign body intrusion limiting relay combination unit, comprising:
[0007] By generating the base node information table and wiring table of the foreign object intrusion limiting relay combination unit, a cable connection matrix is formed to obtain the ideal connection state value between the cable connection nodes;
[0008] By sending a test level signal to the node and collecting a feedback level signal, a test result matrix between the cable connection nodes is obtained, which includes the actual value of the connection state between the cable connection nodes;
[0009] Compare the cable connection matrix with the test result matrix to determine abnormal cable connections.
[0010] In the above scheme, the cable connection matrix can be automatically generated according to the base node status and wiring table of the foreign object intrusion limit relay combination unit. The ideal connection status values of all nodes when the cables are connected correctly are recorded in the cable connection matrix. Then, the actual connection status values of each node are collected through actual testing and the test result matrix is obtained. Finally, the ideal value and actual value at the same position in the two matrices are compared. If the two are different, it can be determined that the cable connection corresponding to the node has an abnormal state. The above process can efficiently and accurately complete the reliability detection of all cable connections of the foreign object intrusion limit relay combination unit.
[0011] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0012] The step of generating a base node information table of a foreign object intrusion limiting relay combination unit comprises: generating a node information table according to the base node of the foreign object intrusion limiting relay combination unit, the node information table comprising N rows of node association data, each row of node association data recording a node number, a node name and a corresponding node index number assigned to each node;
[0013] The steps of generating a wiring table for a foreign object intrusion limiting relay combination unit include: the wiring table includes i rows of cable connection information, each row of cable connection information records the cable connection information between different nodes, including the cable number assigned to each cable, the cable name and the corresponding cable index number, the starting node index number, the ending node index number and an identifier indicating the connection direction.
[0014] In the above scheme, by setting node index numbers for nodes and cable index numbers for cables, nodes and cables can be easily retrieved, which can improve the efficiency of automatically identifying nodes and cables. By storing the index numbers of the start node and the end node that have a connection relationship with the cable and the identifier indicating the cable connection direction in association with the cable index number, the efficiency of automatically identifying the cable and the node that has a connection relationship with the cable can be improved. By specifying the cable connection direction and setting an identifier for the connection direction, the connection of the cable with a unidirectional conduction switch can be distinguished.
[0015] In some embodiments, the wiring test method of the foreign object intrusion limit relay combination unit includes the steps of sending a test level signal to a node and collecting a feedback level signal to obtain a test result matrix between cable connection nodes:
[0016] A connection index table is generated according to the wiring table and the node information table. The connection index table includes N rows of index association information. Each row of index association information records the node index number and the cable index number of the cable connected to it; wherein:
[0017] Each node is connected to zero, one, or multiple cables, and each node index number corresponds to zero, one, or multiple cable index numbers.
[0018] In the above solution, by generating a connection index table to associate the node index number with the cable index number, it is possible to avoid losing node or cable information when generating a matrix.
[0019] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0020] The steps of forming a cable connection matrix by generating a base node information table and a wiring table of a foreign object intrusion limiting relay combination unit include: generating an N×N cable connection matrix according to the wiring table and the node information table, where N is the total number of nodes, and A in the cable connection matrix mn represents the ideal value of the connection state between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected;
[0021] The steps of obtaining a test result matrix between the cable connection nodes by sending a test level signal to the node and collecting a feedback level signal include: sequentially controlling each node to obtain a high level signal; when any node obtains a high level signal, sequentially receiving the electrical signal fed back by each node, and associating the node number corresponding to the high level signal, the node number of the feedback information and the electrical signal to obtain an N×N test result matrix; B in the test result matrix mn Indicates the actual value of the connection state between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected;
[0022] Among them, in the cable connection matrix, A is determined by the following method mn Values:
[0023]
[0024] In the test result matrix, B is determined as follows mn Values:
[0025]
[0026] In the above scheme, "1" and "0" are used as identifiers of whether two nodes are connected, which is convenient and simple, and can achieve higher efficiency when comparing the test result matrix with the cable connection matrix.
[0027] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0028] The step of comparing the cable connection matrix with the test result matrix to determine the abnormality of the cable connection includes: comparing the cable connection matrix with the test result matrix, and if there is a node test result where the ideal connection state value is different from the actual connection state value, determining that the cable connection corresponding to the node is abnormal, wherein: if the ideal connection state value is a first parameter and the actual connection state value is a second parameter, it is determined to be an abnormal open circuit, and if the ideal connection state value is a second parameter and the actual connection state value is a first parameter, it is determined to be an abnormal short circuit;
[0029] Determine the cable number of the abnormally connected cable. mn With B mn If they are different, it means that the cable connection between the mth node and the nth node is abnormal.
[0030] In the above scheme, by simply comparing the data at the same row and column positions in the two matrices, the abnormally connected cable can be quickly and accurately located, thereby improving the wiring test efficiency and reliability of the foreign object intrusion limit relay combination unit.
[0031] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0032] In the cable connection matrix and the test result matrix, the matrix row node is used as the starting node, the matrix column node is used as the ending node, the first identifier indicates that the cable between the row node and the column node is bidirectionally connected, and the second identifier indicates that the cable between the row node and the column node is unidirectionally connected.
[0033] In the above solution, the cable connection direction can be distinguished through a simple identifier, thereby improving the efficiency of identifying the cable connection direction.
[0034] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0035] The steps of generating a base node information table and a wiring table of a foreign object intrusion limiting relay combination unit to form a cable connection matrix and obtaining an ideal value of a connection state between cable connection nodes include:
[0036] The row scanning operation is sequentially performed on the connection index table, including: when performing a scan on the rth row, a high level signal is set to be sent to the node corresponding to the node index number of the rth row, the cable index number corresponding to the node index number of the rth row is determined according to the connection index table, and the corresponding starting node index number, ending node index number and identifier are searched in the wiring table according to the corresponding cable index number; using the above process, the row where the corresponding starting node and / or ending node index number is located is continued to be scanned; the above scanning process is repeated until all the cable index numbers corresponding to the node index numbers of the scanned row have been scanned; the connection state ideal values of all scanned nodes are set to high levels, and the connection state ideal values of the nodes that have not been scanned are set to low levels, and the scanning result of the rth row is obtained;
[0037] Arrange the scan results of each row in the connection index table in order to obtain a cable connection matrix.
[0038] In the above scheme, by scanning each row of the connection index table, the cable connection matrix can be generated quickly and accurately. In this scheme, the scanning process is designed based on the recursive principle, which is simple and easy to implement, thereby ensuring the correctness and efficiency of the scanning.
[0039] Wiring test method of foreign body intrusion limit relay combination unit in some embodiments:
[0040] Using the above process, the step of continuing to scan the row where the corresponding start node and / or end node index number is located also includes:
[0041] When the identifier associated with the corresponding cable index number is the first identifier, only the row where the corresponding termination node index number is located is scanned;
[0042] When the identifier associated with the corresponding cable index number is the second identifier, scan the row where the corresponding start node and end node index numbers are located;
[0043] When performing a scan operation on each row of the connection index table, a scan index number is set for each scanned node and each connection line.
[0044] In the above scheme, it is possible to determine whether both nodes connected to the cable need to be scanned based on the identifier, so that the required information in the connection index table can be scanned quickly and accurately in sequence. At the same time, by setting the scan index number, it is possible to record whether each node and each cable in each row of the scan execution process is scanned, so as to quickly confirm whether the nodes and cables in the connection index table have been scanned.
[0045] In some embodiments of the present application, a storage medium is further provided, in which program information is stored. After a computer reads the program information, the wiring test method for the foreign object intrusion limiting relay combination unit provided by any of the above schemes is executed.
[0046] In some embodiments of the present application, a wiring test device for a foreign object intrusion limiting relay combination unit is also provided. The device includes at least one processor and at least one memory. Program information is stored in at least one memory. After reading the program information, at least one processor executes the wiring test method for the foreign object intrusion limiting relay combination unit provided by any of the above schemes.
[0047] The technical solution of this application has the following technical effects compared with the prior art:
[0048] The wiring test method and equipment of the foreign object intrusion limiting relay combination unit provided in the present application have the advantages of being automatic, efficient and accurate when performing wiring test on the foreign object intrusion limiting relay combination unit with multiple nodes. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The preferred embodiments of the present application will be described in detail below with reference to the accompanying drawings, which will help to understand the purpose and advantages of the present application, wherein:
[0050] Figure 1 This is a flow chart of a wiring test method of a foreign body intrusion limit relay combination unit in one embodiment of the present application;
[0051] Figure 2 A schematic diagram of the wiring connection relationship of a foreign body intrusion limiting relay assembly unit in one embodiment of the present application;
[0052] Figure 3 This is a schematic diagram of test signal transmission of a foreign body intrusion limit relay combination unit in one embodiment of the present application;
[0053] Figure 4 This is a schematic diagram of cable connection of a node in one embodiment of the present application;
[0054] Figure 5 It is a structural schematic diagram of a wiring test system of a foreign object intrusion limiting relay combination unit in one embodiment of the present application. DETAILED DESCRIPTION
[0055] The technical solution of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0056] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0057] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0058] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0059] The present application provides a wiring test method for a foreign body intrusion limit relay assembly unit, which can be applied to a computer system, such as Figure 1 As shown, it includes:
[0060] S101: By generating the base node information table and wiring table of the foreign object intrusion limit relay combination unit, a cable connection matrix is formed to obtain the ideal value of the connection state between the cable connection nodes. Among them, the node information table and the wiring table can be obtained according to the node conditions and cable connection conditions of the actual base of the foreign object intrusion limit relay combination unit. The ideal value of the connection state between the cable connection nodes is: under the assumption that the cable connection is normal, when one of the nodes is sent a high-level test signal, the node with which it is connected should be at a high level, and the node with which it is not connected should be at a low level.
[0061] S102: By sending a test level signal to the node and collecting a feedback level signal, a test result matrix between the cable-connected nodes is obtained, including an actual value of the connection state between the cable-connected nodes. The actual value of the connection state between the cable-connected nodes is: when one of the nodes is sent a high-level test signal, the feedback level value of each node is actually collected.
[0062] S103: Compare the cable connection matrix with the test result matrix to determine abnormal cable connection conditions.
[0063] In the above scheme, the cable connection matrix can be automatically generated according to the base node status and wiring table of the foreign object intrusion limit relay combination unit. The ideal connection status values of all nodes when the cables are connected correctly are recorded in the cable connection matrix. Then, the actual connection status values of each node are collected through actual testing and the test result matrix is obtained. Finally, the ideal value and actual value at the same position in the two matrices are compared. If the two are different, it can be determined that the cable connection corresponding to the node has an abnormal state. The above process can efficiently and accurately complete the reliability detection of all cable connections of the foreign object intrusion limit relay combination unit.
[0064] In some schemes, the step of generating a base node information table of a foreign object intrusion limiting relay combination unit includes: generating a node information table according to the base nodes of the foreign object intrusion limiting relay combination unit, the node information table including N rows of node association data, each row of node association data recording a node number, a node name and a corresponding node index number assigned to each node;
[0065] The step of generating a wiring table of a foreign object intrusion limiting relay combination unit includes: obtaining a wiring table of the foreign object intrusion limiting relay combination unit, the wiring table including i rows of cable connection information, each row of cable connection information recording cable connection information between different nodes, including a cable number assigned to each cable, a cable name and its corresponding cable index number, a starting node index number, an ending node index number and an identifier indicating a connection direction.
[0066] refer to Figure 2 As shown in the wiring connection relationship diagram, the foreign object intrusion limit relay combination unit has 24 base nodes, and the names of the nodes are represented by N1, N2 to N24. All nodes can be divided into 3 subsystems, among which nodes N1 to N8 constitute the first subsystem, nodes N9 to N16 constitute the second subsystem, and nodes N17 to N24 constitute the third subsystem. Each subsystem is equipped with a detection unit, and each detection unit includes a wireless transceiver module, a level trigger module and an acquisition module. Therefore, each detection unit corresponds to multiple nodes. In actual applications, the total number of nodes, the number of nodes contained in the subsystem, and the number of subsystems should be consistent with the actual structure of the foreign object intrusion limit relay combination unit. Figure 2 As shown, it includes 17 cables, and the names of the cables are represented by L1, L2 to L17. The number of cables and the actual connection relationship are consistent with the actual wiring of the foreign body intrusion limit relay combination unit.
[0067] An example of a node information table is shown in Table 1, and an example of a wiring table is shown in Table 2:
[0068] Table 1 Node information table
[0069] Node index number Node Name 0 N1 1 N2 2 N3 …… …… 23 N24
[0070] Table 2 Wiring table
[0071] Cable Index Number Cable Name Starting point index End point index Identifier 0 L1 0 9 0 1 L2 1 2 0 2 L3 2 11 0 14 L15 13 21 1 …… …… …… …… …… 16 L17 22 23 0
[0072] As shown in Table 1 and Table 2, this solution can easily retrieve nodes and cables by setting node index numbers for nodes and cable index numbers for cables, which can improve the efficiency of automatically identifying nodes and cables. By storing the index numbers of the start node and the end node that have a connection relationship with the cable and the identifier indicating the cable connection direction in association with the cable index number, the efficiency of automatically identifying the cable and the node that has a connection relationship with the cable can be improved. By specifying the cable connection direction and setting an identifier for the connection direction, the connection of the cable with a unidirectional conduction switch can be distinguished.
[0073] Further, in step S102, by sending a test level signal to the node and collecting a feedback level signal, the step of obtaining a test result matrix between the cable connection nodes includes: generating a connection index table according to the wiring table and the node information table, the connection index table including N rows of index association information, each row of index association information recording the node index number and the cable index number of the cable connected to it; wherein: each node is connected to zero, one or more cables, and each node index number corresponds to zero, one or more cable index numbers. An example of the connection index table is shown in Table 3.
[0074] Table 3 Connection index table
[0075] Node index number Cable Index Number 0 0 1 1 2 1,2 …… …… 13 3,12,13,14,15 …… …… 23 16
[0076] As shown in Table 3, when the node index number is "2", the corresponding cable index number includes two "1, 2", and when the node index number is "13", the corresponding cable index number includes five "3, 12, 13, 14, 15". When implementing this solution, the corresponding relationship between the two can be obtained according to the actual wiring relationship. By generating the connection index table shown in Table 3 to associate the node index number with the cable index number, it is possible to avoid losing node or cable information when generating the matrix.
[0077] After obtaining the above Tables 1 to 3, a cable connection matrix can be generated according to the wiring table and the node information table. The specific process includes: generating an N×N cable connection matrix according to the wiring table and the node information table, where N is the total number of nodes, and A in the cable connection matrix mn It represents the ideal value of the connection state between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected. Figure 2As shown, the node N2 and the node N3 are connected via the cable L2, while the node N2 and the node N6 are not connected, so when the node N2 is at a high level, the ideal state value of the node N6 is at a low level. If the node N2 is at a high level, and the cable L2 is normally connected to both the node N2 and the node N3, the ideal value of the connection state of the node N3 should also be at a high level, and so on, when any node is at a high level, the ideal value of the connection state of other nodes can be determined.
[0078] Among them, in the cable connection matrix, A is determined by the following method mn Values:
[0079]
[0080] After completing the wiring detection process, the test result matrix can be obtained. The specific process includes: controlling each node to obtain a high-level signal in sequence; when any node obtains a high-level signal, receiving the electrical signals fed back by each node in sequence, and associating the node number corresponding to the high-level signal, the node number of the feedback information and the electrical signal to obtain an N×N test result matrix; B in the test result matrix mn Indicates the actual value of the connection status between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected. Figure 3 The test signal transmission process diagram shown in the figure, before the test, a detection unit is configured for each node, and after the configuration is completed, the node and the detection unit have an associated relationship. As before, each detection unit includes a wireless transceiver module, a level trigger module and an acquisition module. The host computer sends the test signal to the wireless transceiver module associated with the node Nm, and the wireless transceiver module associated with the node Nm sends a control signal to the level trigger module associated with the node Nm after receiving the test signal. The level trigger module associated with the node Nm sends a high level signal to the node Nm. If the cable between the node Nm and the node Nn is normally connected, the node Nn should also be at a high level. At this time, the level acquisition module associated with the node Nn can collect the high level of the node Nn, and the wireless transceiver module associated with the node Nn sends the collected high level to the wireless communication module. The wireless communication module sends the acquisition result of the node Nn being at a high level to the host computer. Therefore, the host computer detects that the node Nn is at a high level, and it can be determined that the cable connection between the node Nm and the node Nn is normal. Since the test result matrix is an N×N matrix, that is, the above test is performed on the cable connection between any two nodes, it is possible to detect whether all cables are normally connected, thereby obtaining a test result matrix.
[0081] In the test result matrix, B is determined as follows mn Values:
[0082]
[0083] In the above scheme, "1" and "0" are used as identifiers of whether two nodes are connected, which is convenient and simple, and can achieve higher efficiency when comparing the test result matrix with the cable connection matrix.
[0084] In some schemes, after obtaining the cable connection matrix and the test result matrix, the cable connection matrix and the test result matrix are compared. If there is a node test result in which the ideal value of the connection status is different from the actual value of the connection status, the cable connection corresponding to the node is determined to be abnormal. When comparing the two matrices, if the ideal value and the actual value at the same position are the same, it means that all cables are connected normally. If the ideal value and the actual value at the same position are different, it can be determined that the cable connection between the two nodes corresponding to the different values is abnormal, wherein: if the ideal value of the connection status is the first parameter and the actual value of the connection status is the second parameter, it is determined to be an abnormal open circuit; if the ideal value of the connection status is the second parameter and the actual value of the connection status is the first parameter, it is determined to be an abnormal short circuit. In this step, each row of the cable connection matrix and the test result matrix is compared in turn, and the mth row of the cable connection matrix and the test result matrix is set to be compared, and all the values of the mth row of the two matrices are compared in turn. The nth value of the mth row of the cable connection matrix is A. mn , the nth value in the mth row of the test result matrix is B mn , if A mn With B mn If the values are the same, then it is determined that there is no abnormality. mn With B mn There are two cases where the values are different. One case is A mn The value of the first parameter is, for example, "1", B mn The value of the second parameter is, for example, "0". According to the wiring table, it is determined that the cable with the mth node as the starting node and the nth node as the ending node has an "open circuit" fault. In another case, A mn The value of the second parameter is, for example, "0", B mn The value of is the first parameter, for example, "1", and according to the wiring table, it is determined that a "short circuit" fault occurs in the cable with the mth node as the starting node and the nth node as the ending node.
[0085] In the above scheme, the cable connection matrix can be automatically generated according to the base node status and wiring table of the foreign object intrusion limit relay combination unit. The ideal connection status values of all nodes when the cables are connected correctly are recorded in the cable connection matrix. Then, the actual connection status values of each node are collected through actual testing and the test result matrix is obtained. Finally, the ideal value and actual value at the same position in the two matrices are compared. If the two are different, it can be determined that the cable connection corresponding to the node has an abnormal state. The above process can efficiently and accurately complete the reliability detection of all cable connections of the foreign object intrusion limit relay combination unit.
[0086] As shown in the above and Table 2, the wiring table also records the cable number assigned to each cable; when determining the abnormal cable connection, it also includes: determining the cable number of the abnormally connected cable, wherein: if A mn With B mn If they are different, it means that the cable connection between the mth node and the nth node is abnormal, and the determination process is the same as before. In the above manner, a cable number is set for each cable, and the cable number is unique. When the cable connection is abnormal, the abnormal position can be quickly located by the cable number.
[0087] In some specific examples, as shown in Table 4, a comparison method is provided for the ideal value when the connection is correct and the actual value when the connection is actually made:
[0088] Table 4 Comparison examples
[0089]
[0090] Through simple comparison, it can be determined that the cable connection between node N3 and node N4, node N5, node N6, node N7, node N8, and node N9 is abnormal. Specifically, two cables with node N3 as the starting node and node N4 as the ending node and node N3 as the starting node and node N5 as the ending node have "open circuit faults"; four cables with node N3 as the starting node and node N6 as the ending node and node N3 as the starting node and node N7 as the ending node, node N3 as the starting node and node N8 as the ending node, node N3 as the starting node and node N9 as the ending node have "short circuit faults". In the above scheme, "1" and "0" are used as the identification of whether the two nodes are conductive, which is convenient and simple, and can have higher efficiency when comparing the test result matrix with the cable connection matrix.
[0091] In some embodiments, as shown in Table 4, in the cable connection matrix and the test result matrix, the matrix row node is used as the starting node, the matrix column node is used as the ending node, the first identifier (such as "0") represents the bidirectional connection between the row node and the column node, and the second identifier (such as "1") represents the unidirectional connection between the row node and the column node. Figure 4 The arrow shown in the figure indicates that the connection direction is unidirectional. For example, when a unidirectional conduction switch such as a diode is provided in the cable, the conduction direction of the cable will be limited by the diode.
[0092] In some embodiments, the process of obtaining the cable connection matrix may include:
[0093] S201: sequentially perform row scanning operations on the connection index table, including: when performing a scan on the rth row, set a high-level signal to be sent to the node corresponding to the node index number of the rth row, determine the cable index number corresponding to the node index number of the rth row according to the connection index table, and search the corresponding starting node index number, ending node index number and identifier in the wiring table according to the corresponding cable index number; using the above process, continue to scan the corresponding starting node and the row where the starting node index number is located; repeat the above scanning process until all cable index numbers corresponding to the node index numbers of the scanned row have been scanned; set the ideal connection status values of all scanned nodes to high levels, and the ideal connection status values of the nodes that have not been scanned to low levels to obtain the scanning result of the rth row.
[0094] S202: Arrange the scan results of each row in the connection index table in order to obtain a cable connection matrix, which is an N×N matrix.
[0095] In the above scheme, by generating a connection index table and scanning each row of the connection index table, the cable connection matrix can be generated quickly and accurately. In this scheme, the scanning process is designed based on the recursive principle, which is simple and easy to implement, thereby ensuring the accuracy and efficiency of the scanning.
[0096] Further preferably, using the above process, the step of continuing to scan the row where the corresponding starting node and / or ending node index number is located also includes: when the identifier associated with the corresponding cable index number is the first identifier, only the row where the corresponding ending node index number is located is scanned; when the identifier associated with the corresponding cable index number is the second identifier, the row where the corresponding starting node and ending node index numbers are located is scanned; when performing a scanning operation on each row of the connection index table, a scanning index number is set for each scanned node and each connecting line. When performing a scanning operation on each row of the connection index table, a scanning index number is set for each scanned node and each connecting line. In the above scheme, it can be determined whether both nodes connected to the cable need to be scanned based on the identifier, so that the required information in the connection index table can be scanned quickly and accurately in sequence. At the same time, by setting the scanning index number, it is possible to record whether each node in the scanning execution process of each row is scanned, so as to quickly confirm whether the nodes and cables in the connection index table have been scanned.
[0097] The above scanning process is a cyclic algorithm. Each cycle can obtain the feedback levels of all other nodes when one node is at a high level, that is, an array composed of "1" and "0" can be obtained. The following takes the scanning of the rth row as an example to illustrate the specific scanning steps as follows:
[0098] (1) Generate a list of scanned node index numbers and a list of scanned cable index numbers in the computer memory, which are recorded as ExistNodeList and ExistLineList respectively. The initial state of these two lists does not contain any data;
[0099] (2) Generate an index identifier CX to record the current node index number;
[0100] (3) Assign the node index number of the rth row to CX and add it to the scanned node index number list ExistNodeList. Determine whether the cable index number list in the rth item of data is empty. If the cable index number list is empty, exit the current scanning process and jump to the next row to continue execution. If the rth row is the last row, end the entire scanning process; otherwise, traverse the cable index numbers in the connection index table, record each cable index number in the list as Xr, and add it to the scanned cable index list ExistLineList.
[0101] (4) According to the index number Xr passed in the previous step, search for the cable data with index Xr in the wiring table. There are two cases based on the cable identifier:
[0102] A) The identifier is "1", and the current cable is unidirectionally connected. There are two situations:
[0103] A1) The starting point index number of the current cable is equal to the current node index CX. It is determined whether the scanned node index number list ExistNodeList contains the ending node index number of the current cable. If not, the ending node index number IndexS of the current cable is added to the scanned node index number list ExistNodeList and step (5) is executed. If not, the scan is exited and the previous layer is returned.
[0104] A2) The end node index of the current cable is equal to the current node index CX, and the scan is skipped and returned to the previous layer.
[0105] like Figure 4 For the cable connection mode shown, for node N14, its node index number is 13, and the corresponding row with node index number 13 in the connection index table is found as shown in Table 5:
[0106] Table 5 Corresponding rows of node index number 13
[0107] Node index number Cable Index Number 13 3,12,13,14,15
[0108] As shown in Table 6, for the item with cable index number 13, the corresponding cable is L13, and the cable is unidirectionally connected. Its end node index number is equal to the node index number CX of the current node, and the start node index number is 20, so step (5) is no longer executed, but jumps to the previous layer. For the item with cable index number 14, the corresponding connection line is L14, and the cable is unidirectionally connected. Its start node index number is equal to the index number CX of the current node, and the end node index number is 21, so step (5) is executed.
[0109] Table 6 Corresponding rows for cable index numbers 13 and 14
[0110] Cable Index Number Cable Name Starting node index End node index One way sign 13 L14 20 13 1 14 L15 13 21 1
[0111] (B) The cable identifier is 0, and the current cable connection is bidirectional. The starting node index number and the ending node index number in the data are traversed and recorded as NodeIndexStart and NodeIndexEnd respectively. Determine whether the scanned node index number list ExistNodeList contains the starting node index number NodeIndexStart. If not, add the starting node index number NodeIndexStart to the scanned line node index number list ExistNodeList and execute step (5); otherwise, determine whether the scanned node index number list ExistNodeList contains the ending node index number NodeIndexEnd. If not, add the ending node index number NodeIndexEnd to the scanned line node index number list ExistNodeList and execute step (5). Otherwise, exit the traversal and return to the previous layer.
[0112] (5) According to the node index number passed in step (4), record it as NodeIndex, and assign NodeIndex to CX. Search for the data with node index number NodeIndex in the connection index table, traverse the cable index numbers in the connection index table to obtain the cable index number list, record it as LineIndexList, and for each cable index number in the cable index number list LineIndexList, record it as LineIndex, first determine whether the scanned cable index list ExistLineList contains LineIndex. If not, add it to the scanned cable index list ExistLineList, and then execute step (4); if it is contained, continue to determine the next item in the cable index number list LineIndexList. If the cable index number list LineIndexList is traversed, return to the previous layer.
[0113] (6) After the scan is completed, each index number in the scanned node index number list ExistNodeList is traversed, recorded as ExistNodeList(i), and the value of the rth row and the ExistNodeList(i)th column in the cable connection matrix is assigned to "1", and the values of the remaining columns of the rth row in the cable connection matrix are assigned to "0".
[0114] Without loss of generality, taking node N14 as an example, the steps for generating the 14th row of data in the cable connection matrix are listed. The connection relationship diagram of this node is as follows: Figure 4 The connection relationship is shown in Table 7:
[0115] Table 7 Connection index relationship of node N14
[0116] Node index number Cable Index Number 13 3,12,13,14,15
[0117] (G1) generating an empty index list ExistNodeList and ExistLineList in the computer memory, wherein ExistNodeList is used to record the index number of the node that has been scanned, and ExistLineList is used to record the index number of the cable that has been scanned;
[0118] (G2) Generate a record of the current node index number in the computer memory, denoted as CX;
[0119] (G3) Assign the index number 13 of node N14 to CX and add it to ExistNodeList. ExistNodeList is now {13}. According to connection index table 3 and table 7, traverse the cable index numbers {3, 12, 13, 14, 15};
[0120] (G4) For the cable index number 3 in Table 7, ExistLineList does not contain this item. 3 is added to ExistLineList. ExistLineList is now {3}. The data with the cable index number 3 is searched in the wiring table. The start node index number and the end node index number are traversed, as shown in Table 8:
[0121] Table 8 Corresponding row for cable index number 3
[0122] Cable Index Number Cable Name Starting node index End node index Identifier 3 L4 3 13 0
[0123] (G5) For the node index number 3 in Table 8, ExistNodeList does not contain this item. It is assigned to CX and added to ExistNodeList. ExistNodeList is now {13, 3}. The data with node index number 3 in the connection index table is searched, and the cable index numbers {3, 4} are traversed, as shown in Table 9.
[0124] Table 9 Corresponding rows of node index number 3
[0125] Serial number Node Name Cable Index Number 3 N4 3,4
[0126] (G6) For cable index number 3 in Table 9, if ExistLineList contains this item, then this item is skipped and cable index number 4 in Table 9 is executed;
[0127] (G7) For the cable index number 4 in Table 9, ExistLineList does not contain this item, so it is added to ExistLineList. ExistLineList is now {3, 4}, and the data with the cable index number 4 in the wiring table is searched. The start node index number and the end node index number are traversed, as shown in Table 10:
[0128] Table 10 Corresponding row for cable index number 4
[0129] Cable Index Number Cable Name Starting node index End node index Identifier 4 L5 3 4 0
[0130] (G8) For node index number 3 in Table 10, ExistNodeList contains this item, skip this item, and execute the terminal node index number 4 in Table 10;
[0131] (G9) For the node index number 4 in Table 10, ExistNodeList does not contain this item. It is assigned to CX and added to ExistNodeList. ExistNodeList is now {13, 3, 4}. Find the data with node index number 4 in the connection index table and traverse the cable index numbers {4, 12}; as shown in Figure 11.
[0132] Table 11 Corresponding rows of node index number 4
[0133] Serial number Cable Index Number 4 4,12
[0134] (G10) For cable index number 4 in Table 11, ExistLineList contains this item, skip this item, and execute cable index number 12 in Table 11;
[0135] (G11) For the cable index number 12 in Table 11, ExistLineList does not contain this item. It is added to ExistLineList. ExistLineList is now {3, 4, 12}. The data with the cable index number 12 in the wiring table is searched, and the start node index number and the end node index number are traversed, as shown in Table 12:
[0136] Table 12 Corresponding row for cable index number 12
[0137] Cable Index Number Cable Name Starting node index End node index Identifier 12 L13 4 13 0
[0138] (G12) For node index number 4 in Table 12, ExistNodeList contains this item, skip this item, and execute node index number 13 in Table 12;
[0139] (G13) For node index number 13 in Table 12, ExistNodeList contains this item, skip this item, return to step (G11), the node index numbers in Table 12 have been traversed, return to step (G9), the cable index numbers in Table 11 have been traversed, return to step (G7), the node index numbers in Table 10 have been traversed, return to step (G5), the cable index numbers in Table 9 have been traversed, return to step (G4), and execute node index number 13 in Table 8;
[0140] (G14) For the node index number 13 in Table 8, ExistNodeList contains this item, skip this item, return to step (G4), the node index numbers in Table 8 have been traversed, return to step (G3), and execute the cable index number 12 in Table 7;
[0141] (G15) For cable index number 12 in Table 7, ExistLineList contains this item, skip this item, and execute cable index number 13 in Table 7;
[0142] (G16) For cable index number 13 in Table 7, the cable is unidirectional, and CX in step (G3) is 13, which is equal to the terminal node index number of the cable, as shown in Table 13. According to the provisions of the aforementioned step A2), skip this item and execute cable index number 14 in Table 7.
[0143] Table 13 Corresponding row for cable index number 13
[0144] Cable Index Number Cable Name Starting node index End node index Identifier 13 L14 20 13 1
[0145] (G17) For the cable index number 14 in Table 7, the cable is unidirectionally connected, and CX in step (G3) is 13, which is equal to the starting node index number of the cable, and ExistLineList does not contain the cable index number 14. According to the provisions of the above step A1), the cable index number 14 is added to the ExistLineList. At this time, ExistLineList is {3, 4, 12, 14}, and the data with the cable index number 14 in the wiring table is searched, and the starting node index number and the ending node index number are traversed, as shown in Table 14:
[0146] Table 14 Corresponding row for cable index number 14
[0147] Cable Index Number Cable Name Starting node index End node index Identifier 14 L15 13 21 1
[0148] (G18) For node index number 13 in Table 14, ExistNodeList contains this item, skip this item, and execute the end node index number 21 in Table 14;
[0149] (G19) For the termination node index number 21 in Table 14, ExistNodeList does not contain this item, assign it to CX and add it to ExistNodeList. ExistNodeList is now {13, 3, 4, 21}, search for the data with node index number 21 in the connection index table, and traverse the cable index number {14}; as shown in Table 15:
[0150] Table 15 Corresponding rows of node index number 21
[0151] Node index number Cable Index Number 21 14
[0152] (G20) For cable index number 14 in Table 15, ExistLineList contains this item, skip this item, return to step (G19), the cable index numbers in Table 15 have been traversed, return to step (G17), the node index numbers in Table 14 have been traversed, return to step (G3), and execute cable index number 15 in Table 7;
[0153] (G21) For the cable index number 15 in Table 7, ExistLineList does not contain this item. It is added to ExistLineList. ExistLineList is now {3, 4, 12, 14, 15}. The data with cable index 15 in the wiring table is searched, and the start node index number and the end node index number are traversed, as shown in Table 16:
[0154] Table 16 Corresponding row for cable index number 14
[0155] Cable Index Number Cable Name Starting node index End node index Identifier 15 L16 13 14 0
[0156] (G22) For node index number 13 in Table 16, ExistNodeList contains this item, skip this item, and execute the end node index number 14 in Table 16;
[0157] (G23) For the node index number 14 in Table 16, ExistNodeList does not contain this item, assign it to CX and add it to ExistNodeList. ExistNodeList is now {13, 3, 4, 21, 14}, find the data with index number 14 in the connection index table, and traverse the cable index number {15}; as shown in Table 17:
[0158] Table 17 Corresponding rows of node index number 14
[0159] Node index number Cable Index Number 14 15
[0160] (G24) For the cable index number 15 in Table 17, ExistLineList contains this item, skip this item, return to step (G23), the cable index numbers in Table 17 have been traversed, return to step (G21), the node index numbers in Table 14 have been traversed, return to step (G3), the cable index numbers in Table 7 have been traversed, the scanning step ends, and the scanned node index number ExistNodeList is obtained as {13, 3, 4, 21, 14};
[0161] (G25) Traverse each item in ExistNodeList, assign the values of columns 13, 3, 4, 21, and 14 in row 13 of the connection cable matrix to "1", and assign the values of the remaining columns to "0" to obtain the following array and complete.
[0162] 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0
[0163] Obviously, the above scheme is only a schematic illustration using node N14 as an example. The above process can be used for other nodes to obtain the array corresponding to their cable connection information. All arrays can be arranged in order of node index numbers to obtain the final cable connection matrix.
[0164] In some embodiments of the present application, a storage medium is further provided, in which program information is stored. After a computer reads the program information, the wiring test method for the foreign object intrusion limiting relay combination unit provided by any of the above schemes is executed.
[0165] In some embodiments of the present application, a wiring test device for a foreign body intrusion limit relay combination unit is also provided, such as Figure 5 As shown, the device includes at least one processor 11 and at least one memory 12, at least one memory 12 stores program information, and at least one processor 11 reads the program information and executes the wiring test method of the foreign object intrusion limit relay combination unit provided by any of the above schemes. The system may also include: an input device 13 and an output device 14. The processor 11, the memory 12, the input device 13 and the output device 14 can be connected in communication. The memory 12, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 11 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 12, that is, realizing the wiring test method of the foreign object intrusion limit relay combination unit provided by any of the above schemes.
[0166] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of this application.
Claims
1. A wiring test method for a foreign body intrusion limit relay combination unit, characterized in that: include: By generating the base node information table and wiring table of the foreign object intrusion limiting relay combination unit, a cable connection matrix is formed to obtain the ideal connection state value between the cable connection nodes; By sending a test level signal to the node and collecting a feedback level signal, a test result matrix between the cable connection nodes is obtained, including actual values of connection states between the cable connection nodes; Comparing the cable connection matrix with the test result matrix to determine abnormal cable connection conditions; The step of generating a base node information table of a foreign object intrusion limiting relay combination unit comprises: generating a node information table according to the base node of the foreign object intrusion limiting relay combination unit, wherein the node information table comprises N rows of node association data, each row of node association data records a node number, a node name and a corresponding node index number assigned to each node; The step of generating a wiring table of a foreign object intrusion limiting relay assembly unit comprises: the wiring table comprises i lines of cable connection information, each line of cable connection information records the cable connection information between different nodes, including the cable number assigned to each cable, the cable name and the corresponding cable index number, the start node index number, the end node index number and an identifier indicating the connection direction; The step of obtaining a test result matrix between the cable connection nodes by sending a test level signal to the node and collecting a feedback level signal comprises: A connection index table is generated according to the wiring table and the node information table, wherein the connection index table includes N rows of index association information, each row of index association information records a node index number and a cable index number of a cable connected thereto; wherein: Each node is connected to zero, one, or multiple cables, and each node index number corresponds to zero, one, or multiple cable index numbers.
2. The wiring test method of the foreign body intrusion limit relay combination unit according to claim 1 is characterized in that: The step of forming a cable connection matrix by generating a base node information table and a wiring table of a foreign object intrusion limiting relay combination unit includes: generating an N×N cable connection matrix according to the wiring table and the node information table, where N is the total number of nodes, and A in the cable connection matrix mn represents the ideal value of the connection state between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected; The steps of obtaining the test result matrix between the cable connection nodes by sending the test level signal to the node and collecting the feedback level signal include: sequentially controlling each node to obtain a high level signal; when any node obtains a high level signal, sequentially receiving the electrical signal fed back by each node, and associating the node number corresponding to the high level signal, the node number of the feedback information and the electrical signal to obtain an N×N test result matrix; B in the test result matrix mn Indicates the actual value of the connection state between the mth node and the nth node. When it is the first parameter, it means that the two nodes are connected, and when it is the second parameter, it means that the two nodes are disconnected; Among them, in the cable connection matrix, A is determined by the following method: mn Values: In the test result matrix, B is determined by mn Values:
3. The wiring test method of the foreign body intrusion limit relay combination unit according to claim 2 is characterized in that: The step of comparing the cable connection matrix with the test result matrix to determine the abnormality of the cable connection comprises: comparing the cable connection matrix with the test result matrix, and if there is a node test result where the ideal connection state value is different from the actual connection state value, determining that the cable connection corresponding to the node is abnormal, wherein: if the ideal connection state value is a first parameter and the actual connection state value is a second parameter, it is determined to be an abnormal open circuit, and if the ideal connection state value is a second parameter and the actual connection state value is a first parameter, it is determined to be an abnormal short circuit; Determine the cable number of the abnormally connected cable. mn With B mn If they are different, it means that the cable connection between the mth node and the nth node is abnormal.
4. The wiring test method of the foreign body intrusion limit relay combination unit according to claim 1, characterized in that: In the cable connection matrix and the test result matrix, the matrix row node is used as the starting node, the matrix column node is used as the ending node, the first identifier is used to indicate that the cable between the row node and the column node is bidirectionally connected, and the second identifier is used to indicate that the cable between the row node and the column node is unidirectionally connected.
5. The wiring test method of the foreign body intrusion limit relay combination unit according to claim 4 is characterized in that: The steps of generating a base node information table and a wiring table of a foreign object intrusion limiting relay combination unit to form a cable connection matrix and obtaining an ideal value of a connection state between cable connection nodes include: The row scanning operation is sequentially performed on the connection index table, including: when scanning the rth row, setting a high level signal to be sent to the node corresponding to the node index number of the rth row, determining the cable index number corresponding to the node index number of the rth row according to the connection index table, and searching the corresponding starting node index number, ending node index number and identifier in the wiring table according to the corresponding cable index number; using the above process, continue to scan the row where the corresponding starting node and / or ending node index number is located; looping the above scanning process until all the cable index numbers corresponding to the node index numbers of the scanned row have been scanned; setting the connection status ideal values of all scanned nodes to a high level, and setting the connection status ideal values of the nodes that have not been scanned to a low level, to obtain the scanning result of the rth row; The scanning results of each row in the connection index table are arranged in sequence to obtain the cable connection matrix.
6. The wiring test method of the foreign body intrusion limit relay combination unit according to claim 5, characterized in that: Using the above process, the step of continuing to scan the row where the corresponding start node and / or end node index number is located also includes: When the identifier associated with the corresponding cable index number is the first identifier, only the row where the corresponding termination node index number is located is scanned; When the identifier associated with the corresponding cable index number is the second identifier, scanning the row where the corresponding start node and end node index numbers are located; When performing a scan operation on each row of the connection index table, a scan index number is set for each scanned node and each connection line.
7. A storage medium, characterized in that: The storage medium stores program information, and the computer reads the program information to execute the wiring test method of the foreign object intrusion limiting relay combination unit described in any one of claims 1 to 6.
8. A wiring test device for a foreign body intrusion limit relay combination unit, characterized in that: The device includes at least one processor and at least one memory, at least one of the memories stores program information, and at least one of the processors reads the program information and executes the wiring test method for the foreign object intrusion limit relay combination unit described in any one of claims 1-6.
Citation Information
Patent Citations
Intelligent multi-core cable detection device and detection method thereof
CN104698326A