Cable detection device
By designing a cable detection device including circuit board, connector group and control circuit, the complex problem of customized cable sequence in the server is solved, and fast and efficient cable sequence detection is achieved, suitable for different types of cables .
Patent Information
- Application Number
- CN202411599155.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-11
AI Technical Summary
The custom cable sequence in the server is complex and lacks flexible and fast detection and diagnosis methods, which makes it difficult to quickly solve the problem of customized cable sequence, affecting production and network stability.
Design a cable detection device, including a circuit board, a connector group and a control circuit, by connecting the cable to be tested between the first connector and the second connector of the connector group, the control circuit is used to calculate the preset wires. The sequence control pin is turned on and quickly check whether the cable sequence is correct.
It realizes fast and efficient detection of the cable sequence of the cable to be tested, and is suitable for cable detection of different cable sequences, with wide flexibility and applicability.
Smart Images

Figure CN119414102A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of server technology, and in particular to a cable detection device. Background Art
[0002] With the rapid development of network and communication technologies, the Internet industry has entered every aspect of people's daily lives. Computing power determines the speed of digital economic development and the level of social intelligence. The infrastructure servers of the Internet industry have also ushered in rapid development.
[0003] The internal components of the server need to transmit signals through cables. There are various types of functional boards in the server. Currently, various customized cables are often used in the server to connect the mainboard and the functional board to achieve signal transmission between the mainboard and the functional board. There are many customized cables inside the server and the line sequence of various customized cables is complicated. At present, there is a lack of flexible and fast detection and diagnosis methods for the line sequence of customized cables. Once the line sequence of customized cables has problems, it is easy to cause serious problems in production and existing networks. Summary of the invention
[0004] In a first aspect, an embodiment of the present application provides a cable detection device, including a circuit board, a connector group and a control circuit. The connector group includes a first connector and a second connector. The first connector includes at least two first pins, the second connector includes at least two second pins, the number of pins of the first connector is the same as the number of pins of the second connector, and the first end of each first pin and the first end of each second pin are connected to the control circuit through the circuit board. In the case where a cable is connected between the first connector and the second connector, the second ends of at least two first pins are connected to the second ends of at least two second pins in a one-to-one correspondence through the wire core in the cable to be tested. The control circuit is used to control the first end of each first pin in the connector group and the first end of the corresponding second pin to be turned on according to the preset line sequence of the cable to be tested, so as to detect whether the line sequence of the cable to be tested is correct. Among them, the preset line sequence is the correct line sequence of the cable to be tested.
[0005] The cable detection device provided by the present solution can quickly detect whether the line sequence of the cable to be tested is correct by connecting the cable to be tested to the first connector and the second connector of the connector group. The detection is fast and efficient. In addition, the cable detection device can also conduct the corresponding first pin and second pin according to the line sequence corresponding to the cable to be tested, so that the cables to be tested with different line sequences can be tested. The detection scheme is flexible and has wide applicability.
[0006] It should be noted that when the line sequence of the cable to be tested is correct, each first pin, the corresponding second pin and the corresponding wire core in the cable to be tested respectively form a conductive loop. When the line sequence of the cable to be tested is incorrect, the second end of the first pin cannot be connected to the second end of the corresponding second pin through the corresponding wire core in the cable to be tested, resulting in the first pin, the corresponding second pin and the cable to be tested being unable to form a conductive loop. Therefore, the control circuit can be used to control the first end of each first pin in the connector group and the second end of the corresponding second pin to be conductive according to the preset line sequence of the cable to be tested, and whether each first pin, the corresponding second pin and the corresponding wire core in the cable to be tested can form a conductive loop to confirm whether the line sequence of each wire core in the cable to be tested is correct.
[0007] In a second aspect, an embodiment of the present application provides a cable detection device, including a circuit board, a connector group, a switch circuit and a control circuit. The connector group includes a first connector and a second connector. The first connector includes at least two first pins, the second connector includes at least two second pins, the number of pins of the first connector is the same as the number of pins of the second connector, the first end of each first pin and the first end of each second pin are connected to the switch circuit through the circuit board, and the switch circuit is connected to the control circuit. In the case where a cable is connected between the first connector and the second connector, the second ends of at least two first pins are connected to the second ends of at least two second pins in a one-to-one correspondence through the wire core in the cable to be tested. The control circuit is used to control the switch circuit to conduct the first end of each first pin in the connector group and the first end of the corresponding second pin according to the preset line sequence of the cable to be tested, so as to detect whether the line sequence of the cable to be tested is correct. Among them, the preset line sequence is the correct line sequence of the cable to be tested.
[0008] The cable detection device provided by the present solution can quickly detect whether the line sequence of the cable to be tested is correct by connecting the cable to be tested to the first connector and the second connector of the connector group. The detection is fast and efficient. In addition, the cable detection device can also conduct the corresponding first pin and second pin according to the line sequence corresponding to the cable to be tested, so that the cables to be tested with different line sequences can be tested. The detection scheme is flexible and has wide applicability.
[0009] It should be noted that when the line sequence of the cable to be tested is correct, each first pin, the corresponding second pin and the corresponding wire core in the cable to be tested respectively form a conductive loop. When the line sequence of the cable to be tested is incorrect, the second end of the first pin cannot be connected to the second end of the corresponding second pin through the corresponding wire core in the cable to be tested, resulting in the first pin, the corresponding second pin and the cable to be tested being unable to form a conductive loop. Therefore, the control circuit can be used to control the switch circuit to conduct the first end of each first pin and the second end of the corresponding second pin according to the preset line sequence of the cable to be tested, and whether each first pin, the corresponding second pin and the corresponding wire core in the cable to be tested can form a conductive loop to confirm whether the line sequence of each wire core in the cable to be tested is correct.
[0010] In a possible implementation, there are multiple connector groups, and the multiple connector groups include a first connector group and a second connector group. The first connector group includes a first connector and a second connector. The second connector group includes a first connector and at least two second connectors, and the number of all first pins of the first connector is the same as the number of all second pins of the at least two second connectors. By setting different connector groups, the cable detection device can detect different types of cables, thereby improving the scope of application of the cable detection device.
[0011] In a possible implementation, the cable detection device further includes an input component, which is connected to a control circuit. The input component is used to obtain identification information of the cable to be tested according to an input operation. The control circuit is also used to determine a target connector group and a corresponding preset line sequence according to the identification information. The target connector group is a connector group corresponding to the cable to be tested. Thus, the control circuit can determine the target connector group and the preset line sequence corresponding to the cable to be tested through the identification information input by the input component.
[0012] In a possible implementation, the cable detection device further includes a display component. The display component is connected to the control circuit, and the control circuit is used to display connection prompt information through the display component, and the connection prompt information is used to prompt the user to connect the cable to be tested to the target connector group. Therefore, the user can connect the cable to be tested to the target connector group according to the connection prompt information displayed by the display component, so as to prevent the user from connecting the cable to be tested incorrectly, resulting in an incorrect line sequence detection result.
[0013] In a possible implementation, after the connection prompt information is displayed, the display component is further used to display access prompt information. The access prompt information is used to confirm with the user whether to connect the cable to be tested to the target connector group.
[0014] In a possible implementation, the cable detection device further includes a plurality of indicator lights, which are arranged on a circuit board, each indicator light is connected between the first end of the corresponding first pin and the control circuit through the circuit board, or each indicator light is connected between the first end of the corresponding second pin and the control circuit through the circuit board, or each indicator light is connected between the first end of the corresponding first pin and the switch circuit through the circuit board, or each indicator light is connected between the first end of the corresponding second pin and the switch circuit through the circuit board; when the plurality of indicator lights are on, the line sequence of the cable to be tested is correct. Thus, the user can intuitively determine whether the line sequence of the cable to be tested is correct according to the lighting of the indicator lights.
[0015] In one possible implementation, the control circuit is also used to: obtain identification information of the cable to be tested; determine a preset line sequence and a target connector group corresponding to the cable to be tested according to the identification information; and control the switching circuit to conduct the second end of each first pin in the target connector group and the second end of the corresponding second pin according to the preset line sequence.
[0016] In a possible implementation, the control circuit includes a plurality of first terminals connected to the first end of the first pin and a plurality of second terminals connected to the first end of the second pin. The control circuit includes a switch unit connected between the first terminal and the second terminal. The control circuit is used to: control the switch unit to conduct the first end of each first pin and the first end of the corresponding second pin in the target connector group according to a preset line sequence. The target connector group is a connector group corresponding to the cable to be tested.
[0017] In a possible implementation, the control circuit is further configured to: send a detection signal to the first pin via the first terminal; and determine a conduction result by detecting whether the corresponding second terminal receives an input signal corresponding to the detection signal.
[0018] In one possible implementation, the control circuit includes a complex programmable logic device.
[0019] In a third aspect, an embodiment of the present application provides a cable detection method, which is performed by the cable detection device as described above. The cable detection method includes: when the first connector and the second connector are connected to the cable to be tested, obtaining a preset line sequence of the cable to be tested; controlling the first end of each first pin in the connector group and the first end of the corresponding second pin to be turned on according to the preset line sequence, or controlling the switch circuit to turn on the first end of each first pin and the first end of the corresponding second pin according to the preset line sequence, so as to detect whether the line sequence of the cable to be tested is correct; wherein the preset line sequence is the correct line sequence of the cable to be tested.
[0020] In a possible implementation, obtaining a preset line sequence of a cable to be tested includes: obtaining identification information of the cable to be tested; determining a preset line sequence and a target connector group according to the identification information; wherein the target connector group is a connector group corresponding to the connection of the cable to be tested.
[0021] The technical effect obtained by the third aspect mentioned above is similar to the technical effect obtained by the corresponding technical means in the first and second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a first schematic diagram of a cable detection device provided in an embodiment of the present application.
[0023] Figure 2 A second schematic diagram of the cable detection device provided in an embodiment of the present application.
[0024] Figure 3 A third schematic diagram of the cable detection device provided in an embodiment of the present application.
[0025] Figure 4 A fourth schematic diagram of a cable detection device provided in an embodiment of the present application.
[0026] Figure 5 A schematic diagram of the connection relationship between the first connector group and the CPLD provided in an embodiment of the present application.
[0027] Figure 6 This is a fifth schematic diagram of the cable detection device provided in an embodiment of the present application.
[0028] Figure 7 This is a sixth schematic diagram of the cable detection device provided in an embodiment of the present application.
[0029] Figure 8 This is a seventh schematic diagram of the cable detection device provided in an embodiment of the present application.
[0030] Fig. 9 A schematic diagram of the flow of a cable detection method provided in an embodiment of the present application.
[0031] Fig.10 for Fig. 9 Detailed flowchart of step S100 in FIG. DETAILED DESCRIPTION
[0032] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0033] It should be noted that in the embodiments of the present application, "at least two" refers to two or more than two, and "plurality" refers to two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0034] like Figure 1 As shown, an embodiment of the present application provides a cable detection device 100 , including a circuit board 110 , a connector group 120 and a control circuit 120 .
[0035] The connector group 120 includes a first connector 121 and a second connector 122, the first connector 121 includes at least two first pins, the second connector 122 includes at least two second pins, and the number of pins of the first connector is the same as the number of pins of the second connector. The first end of each first pin and the first end of each second pin are connected to the control circuit 130 through the circuit board 110. The first end of each first pin and the first end of each second pin are connected to the control circuit 130 through the circuit board 110 means that the first end of each first pin and the first end of each second pin are electrically connected to the control circuit 130 through the printed circuit on the circuit board 110.
[0036] It should be noted that, in the embodiments of the present application, "at least two" means two or more.
[0037] When a cable is connected between the first connector 121 and the second connector 122 in the connector group 120 and the line sequence of the cable is correct, the second end of each first pin of the first connector 121 can be connected to the second end of the second pin corresponding to the first pin in the second connector 122 through the wire core in the cable.
[0038] It can be understood that the cable 200 to be tested includes a first interface and a second interface (not shown in the figure), the first interface is plugged into the first connector 121, and the second interface is plugged into the second connector 122. The cable 200 to be tested includes at least two wire cores (not shown in the figure), and the first interface and the second interface of the cable 200 to be tested are respectively plugged into the first connector 121 and the second connector 122 of the corresponding connector group 120, and when the line sequence of the cable 200 to be tested is correct, the second end of the second pin of the first connector 121 is connected to the second end of the corresponding second pin of the second connector 122 through the corresponding wire core.
[0039] When the cable 200 to be tested is connected between the first connector 121 and the second connector 122 in the connector group 120, the second ends of at least two first pins are connected to the second ends of at least two second pins in a one-to-one correspondence through the wire core in the cable 200 to be tested, and the control circuit 130 is used to control the first end of each first pin in the connector group to be connected to the first end of the corresponding second pin according to the preset wire sequence of the cable 200 to be tested, so as to detect whether the wire sequence of the cable 200 to be tested is correct. The preset wire sequence is the correct wire sequence of the cable 200 to be tested.
[0040] It should be noted that, in the embodiment of the present application, controlling the first end of each first pin in the connector group and the first end of the corresponding second pin to be conductive means: controlling the first end of each first pin of the first connector 121 in the connector group 120 connected to the cable 200 to be tested and the first end of the second pin corresponding to the second connector 122 to be conductive.
[0041] The cable detection device provided by the present solution can quickly detect whether the line sequence of the cable to be tested is correct by connecting the cable to be tested to the first connector and the second connector of the connector group. The detection is fast and efficient. In addition, the cable detection device can also conduct the corresponding first pin and second pin according to the line sequence corresponding to the cable to be tested, so that the cables to be tested with different line sequences can be tested. The detection scheme is flexible and has wide applicability.
[0042] It can be understood that the control circuit 130 may pre-store the correct line sequence of the cable 200 to be tested corresponding to the connector group 120. When the cable 200 to be tested is connected to the connector group 120, the control circuit 130 controls the first end of each first pin and the first end of the corresponding second pin to be connected according to the preset line sequence corresponding to the cable 200 to be tested stored internally. When the line sequence of the cable 200 to be tested is correct, each first pin of the first connector 121 of the connector group 120, the second pin corresponding to the second connector 122, and the corresponding wire core in the cable 200 to be tested respectively form a conductive loop. When the line sequence of the cable 200 to be tested is incorrect, there is a first pin in the first connector 121 that cannot be connected to the corresponding second pin through the corresponding wire core in the cable 200 to be tested, resulting in the first pin, the corresponding second pin and the cable 200 to be tested cannot form a conductive loop. Therefore, it can be confirmed whether the line sequence of each wire core in the cable 200 to be tested is correct based on whether the first pin, the corresponding second pin and the cable 200 to be tested can form a conductive loop.
[0043] In the embodiment of the present application, the control circuit 130 may include a plurality of first terminals connected to the first end of the first pin and a plurality of second terminals connected to the first end of the second pin, and the control circuit 130 includes a switch unit, and the switch unit is connected between the first terminal and the second terminal. The control circuit 130 controls the switch unit to conduct the first end of each first pin and the first end of the corresponding second pin in the target connector group according to the preset line sequence of the cable 200 to be tested. That is, the control circuit 130 controls the switch unit to conduct the first terminal connected to the first pin of the target connector group and the corresponding second terminal according to the preset line sequence, so as to realize the line sequence detection of the cable 200 to be tested.
[0044] The control circuit 130 may include any one of a complex programmable logic device (CPLD), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC) and a microcontroller unit (MCU). For example, the control circuit 130 in the embodiment of the present application may include a CPLD, and the switch unit may be a gating circuit integrated inside the CPLD. In other words, the control circuit in the present embodiment is a CPLD chip, and a plurality of first terminals and second terminals are external pins of the CPLD chip. By using the CPLD chip as the control circuit, the switch unit that realizes the conduction of the first pin and the corresponding second pin is integrated into the CPLD, so there is no need to design a complex control circuit and a switch circuit to realize the corresponding function, and the structure of the entire cable detection device is simpler and the cost is lower.
[0045] In other embodiments, Figure 2 As shown, the cable detection device 100 may further include a switch circuit 140. The first end of each first pin and the first end of each second pin are connected to the switch circuit 140 through the circuit board 110, and the switch circuit 140 is connected to the control circuit 130. In the case where the cable 200 to be tested is connected between the first connector 121 and the second connector 122 in the connector group 120, the control circuit 130 is used to control the switch circuit 140 to conduct the first end of each first pin and the first end of the corresponding second pin according to the preset line sequence of the cable 200 to detect whether the line sequence of the cable 200 to be tested is correct.
[0046] The switch circuit 140 may be connected between the first end of each first pin and the first end of the corresponding second pin through a printed circuit on the circuit board 110 .
[0047] like Figure 3 As shown, in order to adapt to different types of cables, in the cable detection device 100, the number of connector groups 120 is multiple, and the multiple connector groups 120 correspond to different cable types. For example, the cable types corresponding to the connector group 120 may include one-to-one cable, one-to-two cable, one-to-three cable, etc. Among them, a one-to-one cable refers to a cable with two interfaces, and the two interfaces are respectively arranged at both ends of the cable, one of which is used as the input interface of the cable, and the other interface is used as the output interface of the cable. A one-to-two cable refers to a cable with three interfaces, one end of the cable is provided with an interface, and the other end of the cable is provided with two interfaces, wherein one end of the cable is provided with an interface as the input end of the cable, and one end of the cable is provided with two interfaces as the output end of the cable, or vice versa. A one-to-three cable refers to a cable with four interfaces, one end of the cable is provided with an interface, and the other end is provided with three interfaces, wherein one end of the cable is provided with an interface as the input end of the cable, and one end of the cable is provided with three interfaces as the output end of the cable, or vice versa. Of course, the type of cable is not limited to this, for example, it can also be a two-to-four cable, a three-to-six cable, etc.
[0048] Exemplarily, the cable 200 to be tested includes a first interface, two second interfaces, and a wire body connected between the first interface and the two second interfaces. The connector group 120 corresponding to the cable 200 to be tested includes a first connector 121 and two second connectors 122. The first interface of the cable 200 to be tested is connected to the first connector 121 of the corresponding connector group 120, and the two second interfaces of the cable 200 to be tested are respectively connected to the two second connectors 122 of the corresponding connector group 120.
[0049] Of course, the classification of cable types in the embodiments of the present application is not limited to the classification based on the number of interfaces of the cable, but can also be classified according to the function of the cable and the applicable connector type. For example, the connector applicable to the cable is a Mini Cool Edge Io (MCIO) connector. At this time, the connector in the connector group 120 needs to be set as an MCIO connector to be able to access the corresponding cable. For example, when the cable is a one-to-two cable, and its three interfaces are suitable for MCIO connectors, the connector group 120 applicable to the one-to-two cable on the cable detection device 100 includes three MCIO connectors for connecting the three interfaces of the one-to-two cable. This is only used for illustration and is not a limitation on the cable types applicable to the cable detection device 100 of the embodiments of the present application.
[0050] like Figure 3As shown, the plurality of connector groups 120 include a first connector group and a second connector group. The first connector group includes a first connector 121 and a second connector 122, and the type of the cable 200 to be tested corresponding to the first connector group is a one-to-one cable. The second connector group includes a first connector 121 and at least two second connectors 122, and the type of the cable 200 to be tested corresponding to the second connector group is a one-to-many cable. Among them, the number of all first pins of a first connector 121 in the second connector group is the same as the number of all second pins of the second connector 122. For example, when the second connector group includes a first connector 121 and two second connectors 122, the sum of the number of first pins of the first connector 121 and the number of second pins of the two second connectors 122 is the same.
[0051] In some embodiments, Figure 3 As shown, the cable detection device 100 may further include an input component 150, which is connected to the control circuit 130. The input component 150 is used to obtain the identification information of the cable 200 to be tested according to the user's input operation, and send the identification information to the control circuit 130, so that the control circuit 130 can determine the target connector group and the corresponding preset line sequence according to the identification information. Among them, the target connector group is the connector group 120 corresponding to the cable 200 to be tested.
[0052] The input component 150 can be configured as a key component 151 (such as a keyboard, a dial key, etc.), and the user can input the identification information of the cable to be tested 200 through the keys on the key component 151. For another example, the input component 150 can also be configured as a code scanning device, and the cable to be tested 200 can be provided with a QR code, a barcode, etc. containing its identification information, and the code scanning device can scan the QR code or barcode on the cable to be tested 200 to obtain the identification information and then send it to the control circuit 130. The embodiment of the present application does not limit the specific device and implementation method of the input component 150.
[0053] In the embodiment of the present application, the cable detection device 100 can set a corresponding connector group 100 for each type of cable. Therefore, the control circuit 130 can directly determine the target connector group according to the identification information of the cable 200 to be tested, and then control the line conduction between the second end of the first pin of the first connector 121 and the second end of the second pin of the second connector 122 in the target connector group according to the preset line sequence of the cable to be tested.
[0054] Of course, in some embodiments, when the cable detection device 100 is provided with at least two corresponding connector groups 100 for various types of cables, the control circuit 130 can determine the target connector group in combination with the identification information and the current usage of each connector group 100. Alternatively, the control circuit 130 can directly determine each connector group 100 corresponding to the cable 200 to be tested as the target connector group, and control the first end of the first pin of each target connector group to be connected to the first end of the corresponding second pin. In this way, no matter which target connector group the cable 200 to be tested is connected to, the line sequence of the cable 200 to be tested can be detected.
[0055] The control circuit 130 determines the number of the target connector groups to be one or more according to the identification information of the cable 200 to be tested.
[0056] In some other embodiments, the control circuit 130 can also detect the cable presence signal of each connector group 120 to identify the connector group 120 connected to the cable 200 to be tested, and then determine the target connector group, and determine the identification information of the cable 200 to be tested according to the correspondence between the target connector group and the cable type, and determine the preset line sequence according to the identification information of the cable 200 to be tested.
[0057] In some embodiments, Figure 3 As shown, the cable detection device 100 may further include a display component 160 , which is connected to the control circuit 130 . The control circuit 130 is used to display connection prompt information through the display component 160 , and the connection prompt information is used to prompt the user to connect the cable 200 to be tested to the target connector group.
[0058] The control circuit 130 may display the connection prompt information through the display component 160, and the connection prompt instruction includes the information of the target connector group. The control circuit 130 may determine the target connector group according to the above method and display the connection prompt information through the display component 160. Thus, the user can connect the cable 200 to the target connector set according to the connection prompt information displayed by the display component 160, which can prevent the user from connecting the cable 200 to an incompatible connector set 120, resulting in inaccurate line sequence detection results.
[0059] The display component 160 can also be used to display prompt information for prompting the user to perform other operations, such as prompting the user to input identification information of the cable 200 to be tested, prompting the user to confirm whether the input of identification information is completed, prompting the user to confirm whether the cable 200 to be tested is connected to the target connector group, etc. In the embodiment of the present application, the display component 160 can be, for example, a display screen (such as Figure 3 , Figure 5 as shown).
[0060] It is understood that the input component 150 can be independently configured or integrated into the display component 160. For example, the display component 160 can be configured to touch the display screen 162 (e.g. Figure 5 As shown), in this case, the input component 150 is integrated into the display component 160, and the control circuit 130 receives identification information according to the user's touch operation on the touch display screen 162. Alternatively, the input component 150 and the display component 160 may not be provided in the cable detection device 100, and the user may directly plug the cable 200 to be tested into the corresponding target connector group, and the control circuit 130 may perform cable in-place detection on each connector group 120, and when the connector group 120 with the cable to be tested plugged in is detected, the connector group 120 with the cable to be tested plugged in is used as the target connector group, and then the control circuit 130 may determine the preset line sequence of the cable 200 to be tested according to the corresponding relationship between the target connector group and the cable 200 to be tested.
[0061] After the control circuit 130 controls the switch unit or the switch circuit 140 to be turned on, the control circuit 130 may also send a detection signal to the first pin through the first terminal, and determine the line sequence detection result by detecting whether the corresponding second terminal receives an input signal corresponding to the detection signal. At this time, the control circuit 130 may be connected to the display component 160, and send the line sequence detection result to the display component 160, and the display component 160 displays the line sequence detection result of the cable 200 to be tested. The control circuit 130 may also save the line sequence detection result of the cable 200 to be tested for the user to call and view at any time.
[0062] In some embodiments, Figure 4 and Figures 6 to 8 As shown, the cable detection device 100 further includes a plurality of indicator lights, which are arranged on the circuit board 110 .
[0063] In which, when the first end of each first pin and the first end of each second pin are connected to the control circuit 130 through the circuit board 110, each indicator light is connected between the first end of the corresponding first pin and the control circuit 130 through the circuit board 110, or each indicator light is connected between the first end of the corresponding second pin and the control circuit 130 through the circuit board 110.
[0064] When the cable 200 to be tested is connected between the first connector 121 and the second connector 122 of the target connector group, the control circuit 130 controls the switch unit to conduct the first end of the first pin and the first end of the corresponding second pin in the target connector group. If each indicator light in the target connector group is on, it means that the first pin, the corresponding second pin and each wire core in the cable 200 to be tested respectively form a conductive loop, so the line sequence of the cable 200 to be tested is correct. If there is an indicator light that is not on in the target connector group, it means that the line sequence of the cable 200 to be tested is incorrect. Therefore, the user can intuitively determine whether the line sequence of the cable 200 to be tested is correct by the on and off of the indicator light.
[0065] When the first end of each first pin and the first end of each second pin are connected to the switch circuit 140 through the circuit board 110, each indicator light is connected between the first end of the corresponding first pin and the switch circuit 140 through the circuit board 110, or each indicator light is connected between the first end of the corresponding second pin and the switch circuit 140 through the circuit board 110. Based on this, when the cable 200 to be tested is connected between the first connector 121 and the second connector 122 of the target connector group, when the control circuit 130 controls the switch circuit 140 to conduct the first end of the first pin and the first end of the corresponding second pin in the target connector group, if each indicator light in the target connector group is on, it means that the first pin, the corresponding second pin and each wire core in the cable 200 to be tested respectively form a conductive loop, so the line sequence of the cable 200 to be tested is correct. If there is an indicator light that is not on in the target connector group, it means that the line sequence of the cable 200 to be tested is incorrect. Therefore, the user can intuitively determine whether the line sequence of the cable 200 to be tested is correct by the on and off of the indicator light.
[0066] In the embodiment of the present application, the indicator light may be an LED lamp, a light emitting diode, or other lamp that can emit light.
[0067] The following is combined with Figures 4 to 8 A specific embodiment of the cable detection device 100 of the present application is described in detail.
[0068] Embodiment 1: In the first embodiment, the cable detection device 100 includes a circuit board 110, a control circuit 130, an input component, a display component 160, a plurality of connector groups 120, and a plurality of indicator lights (L1-L3, L4-L7).
[0069] like Figure 4 As shown, the input component can be a key component 151, the display component 160 can be a display screen 161, and the control circuit 130 includes a complex programmable logic device CPLD. Figure 5As shown, the control circuit 130 includes a switch unit 131, and the switch unit 131 is a gating circuit integrated in the CPLD.
[0070] The cable detection device 100 includes a first connector group 120M and a second connector group 120N. The type of the cable 200M to be tested corresponding to the first connector group 120M is a one-to-one cable, and the type of the cable 200N to be tested corresponding to the second connector group 120N is a one-to-two cable. The first connector 121M in the first connector group 120M includes three first pins (A1, A2, A3), the second connector 122M in the first connector group 120M includes three second pins (B1, B2, B3), and the cable 200M to be tested corresponding to the first connector group 120M includes three wire cores. The first connector 121N in the second connector group 120N includes four first pins (A4, A5, A6, A7), the two second connectors (122N, 122N') respectively include two second pins (B4, B5, B6, B7), and the cable 200N to be tested corresponding to the second connector group 120N includes four wire cores. The CPLD includes a plurality of first terminals (H1-H7) connected to the first end of the first pin and a plurality of second terminals (P1-P7) connected to the first end of the second pin, and a switch unit 131 (for example, Figure 4 As shown in FIG. 1 ). It can be understood that the first terminal (H1-H7) and the second terminal (P1-P7) are general purpose input / output (GPIO) pins of the CPLD. Indicator lights (L1-L7) are connected between the second terminal (P1-P7) and the second pin (B1-B7) of the CPLD.
[0071] When the cable 200M to be tested and the cable 200N to be tested are connected, if the second ends of the three first pins (A1, A2, A3) of the first connector 121M and the second ends of the three second pins (B1, B2, B3) of the second connector 122M are respectively connected in sequence through the three cores in the cable 200M to be tested, the second ends of the four first pins (A4, A5, A6, A7) of the first connector 121N are also connected in sequence through the four cores of the cable 200N to the second ends of the four second pins (B4, B5, B6, B7) of the two second connectors (122N, 122N`), that is, the first pin A1 corresponds to the second pin B1, the first pin A2 corresponds to the second pin B2, the first pin A3 corresponds to the second pin B3, and so on. The CPLD can control the switch unit 131 inside it to connect the first terminals (H1-H7) and the second terminals (P1-P7) in sequence according to the correct line sequence of the tested cable 200M and the tested cable 200N.
[0072] by Figure 5 Taking the partial switch unit 131 inside the CPLD shown as an example, when the three first pins (A1, A2, A3) of the first connector 121M and the three second pins (B1, B2, B3) of the second connector 122M are connected in sequence through the three wire cores in the cable 200M to be tested, the selection switch SW1 selects the first terminal H1 and the second terminal P1, the selection switch SW2 selects the first terminal H2 and the second terminal P2, and the selection switch SW3 selects the first terminal H3 and the second terminal P3. Thus, when the cable 200M to be tested is connected to the first connector 121M and the second connector 122M and the line sequence of the cable 200M to be tested is correct, the three first pins (A1, A2, A3), the three second pins (B1, B2, B3), the three selection switches (SW1, SW2, SW3) and the three wire cores in the cable 200M to be tested can form three conductive loops, and the three indicator lights (L1, L2, L2) can light up. When the line sequence of the cable 200M to be tested is incorrect, there is a circuit that cannot be conducted among the three first pins (A1, A2, A3), the three second pins (B1, B2, B3), the three selection switches (SW1, SW2, SW3) and the three cores of the cable 200M to be tested, and one of the three indicator lights (L1, L2, L2) is not lit.
[0073] Of course, the correct line sequence of the cable 200M to be tested is not limited to this. For example, the first pin A1 can be connected to the second pin B2 through the corresponding wire core in the cable 200M to be tested, the first pin A2 can be connected to the second pin B1 through the corresponding wire core in the cable 200M to be tested, and the first pin A3 can be connected to the second pin B3 through the corresponding wire core in the cable 200M to be tested. At this time, the selection switch SW1 in the CPLD connects the first terminal H1 with the second terminal P2, the selection switch SW2 connects the first terminal H2 with the second terminal P1, and the selection switch SW3 connects the first terminal H3 with the second terminal B3. When the line sequence of the cable 200M to be tested is correct, the three indicator lights are on. When the line sequence is incorrect, there is a situation where the indicator light cannot light up. Therefore, it can be determined whether the line sequence of the cable 200M to be tested is correct according to the on and off of the indicator light. The principle of the second connector group 120N is the same as that of the first connector group 120M, which will not be repeated here.
[0074] It should be noted that the selection switches (SW1, SW2, SW3) inside the CPLD are for better explanation. Those skilled in the art can clearly understand that the CPLD forms a selection circuit between various terminals through various gate circuits, switch tubes, etc. integrated inside it.
[0075] It can be understood that in this embodiment, after the cable 200M to be tested is connected to the first connector group 120M or the cable 200N to be tested is connected to the second connector group 120N, the CPLD can output a driving signal to its first terminal (H1-H3 or H4-H7), and the driving signal returns to the second terminal (P1-P3 or P4-P7) of the CPLD via the first pin (A1-A3 or A4-A7), each wire core of the cable to be tested (200M or 200N), the second pin (B1-B3 or B4-B7), and the indicator light (L1-L3 or L4-L7). The driving signal can be used to drive the indicator light (L1-L3 or L4-L7) to light up. Of course, the driving signal can also be output by the second terminal (P1-P7) of the CPLD.
[0076] Specifically, the display screen 161 can display input prompt information for prompting the user to "enter the identification information of the cable to be tested". The user enters the identification information (such as the cable code) of the cable to be tested 200 on the key component 151, and performs the input completion operation after the input is completed. The key component 151 sends the identification information to the CPLD. In response to the user's input completion operation, the CPLD confirms that the received identification information is complete, and then determines the target connector group according to the identification information, and generates a connection prompt instruction according to the target connector group, and sends the connection prompt instruction to the display screen 161. The display screen 161 displays the connection prompt information according to the received connection prompt instruction, and the connection prompt information is used to prompt the user to connect the cable to be tested 200 to the target connector group. Among them, the CPLD stores the corresponding relationship between the identification information of the cable and the connector group 120, so that the target connector group of the cable to be tested 200 can be determined according to the received identification information.
[0077] The CPLD also determines the preset line sequence corresponding to the cable to be tested (200M or 200N) according to the identification information, and constructs the selection relationship between the first terminal and the second terminal of the target connector group according to the preset line sequence. For example, when the identification information indicates that the cable to be tested 200 is 200M, the target connector group is the first connector group 120M. When the identification information indicates that the cable to be tested 200 is 200N, the target connector group is the second connector group 120N. Among them, the CPLD internally stores the corresponding relationship between the identification information of various types of cables and the cable line sequence, so that the preset line sequence corresponding to the cable to be tested 200 can be determined according to the identification information.
[0078] The display screen 161 may also display an access prompt message for confirming to the user whether to connect the cable to be tested to the target connector group. After connecting the cable to be tested 200 to the target connector group, the user performs a connection completion operation on the button assembly 151 .
[0079] In response to the connection completion operation, the CPLD can control the switch circuit 140 inside it to construct a gating relationship between the first terminal and the second terminal of the target connector group according to the preset line sequence, and the CPLD then outputs a driving signal to the terminal connected to the target connector group, and the user can directly determine whether the line sequence of the cable 200 to be tested is correct according to the on and off status of the corresponding indicator light. In this way, the line sequence of the cable can be flexibly and quickly detected and determined.
[0080] In this embodiment, the CPLD can also send a detection signal to the first pin through the first terminal connected to the target connector group, detect the input signal received by the corresponding second terminal from the corresponding second pin, and determine the conduction result between the first pin, the corresponding second pin and the corresponding wire core of the cable 200 to be tested according to the received input signal, and then determine the wire sequence detection result of the cable 200 to be tested. When each second terminal connected to the target connector group by the CPLD can receive the input signal corresponding to the detection signal, it is determined that each first pin, the corresponding second pin, the switch circuit 140 and each wire core of the cable 200 to be tested can form a conductive loop, so that the wire sequence of the cable 200 to be tested can be determined to be correct. When there is a second terminal connected to the target connector group that cannot receive the input signal corresponding to the detection signal, it can be determined that the wire sequence of the cable 200 to be tested is incorrect. After the CPLD determines the conduction results of each first pin of the target connector group, the corresponding second pin, the switch circuit 140, and each wire core of the cable 200 to be tested, the conduction results can be sent to the display screen 161, and the display screen 161 displays the line sequence detection result of the cable 200 to be tested according to the conduction results. Of course, the CPLD can also save the line sequence detection result of the cable 200 to be tested every time a cable is tested, so that the user can call and view it at any time. At this time, the cable detection device 100 does not need to set an indicator light to indicate the line sequence detection result of the cable 200 to be tested.
[0081] It can be understood that the input signal corresponding to the detection signal may refer to an input signal that is the same as or close to the detection signal. For example, if the detection signal is a high-level signal, the input signal corresponding to the detection signal received by the corresponding second terminal from the corresponding second pin is also a high-level signal. Specifically, when the target connector group is the first connector group 120M, the CPLD can send a high-level signal to the three first pins (A1, A2, A3) of the first connector group 120M through its three first terminals (H1, H2, H3) in a preset order, and detect the input signals of the three second pins (B1, B2, B3) of the first connector group 120M in a preset order. When the input signals of the three second pins (B1, B2, B3) detected in sequence are also high-level signals, it is determined that the line sequence of the cable 200M to be tested is correct. When there is an input signal that is not a high-level signal in the three second pins (B1, B2, B3), it is determined that the line sequence of the cable 200M to be tested is wrong.
[0082] The number of connector groups 120 on the cable detection device 100 of the embodiment of the present application is not limited to two, and can also be set to three, four, five, seven, etc. The type of the cable 200 to be tested corresponding to the connector group of the embodiment of the present application is not limited to the above-mentioned one-to-one cable and one-to-two cable, and can also include one-to-three cables, two-to-four cables, etc.
[0083] Embodiment 2: In the second embodiment, the cable detection device 100 includes a control circuit 130 , a display component 160 , a plurality of connector groups 120 , and a plurality of indicator lights ( L1 - L3 or L4 - L7 ). The display component 160 is connected to the control circuit 130 .
[0084] like Figure 6 As shown, the control circuit 130 includes a complex programmable logic device CPLD, and the display component 160 is configured as a touch display screen 162 .
[0085] As in the first embodiment, the switch unit 131 is a gating circuit integrated in the CPLD. In the second embodiment, the cable detection device 100 includes a first connector group 120M and a second connector group 120N as an example for description. In the second embodiment, the connection relationship between the first connector group 120M, the second connector group 120N and the CPLD, and the gating method of the gating switch in the CPLD are the same as those in the first embodiment, and are not further described here.
[0086] In the second embodiment, the cable detection device 100 detects the cable 200 to be detected as follows: The touch screen 162 displays input prompt information for prompting the user to "enter the identification information of the cable to be tested" and an input area for the user to input. The user enters the identification information (such as the cable code) of the cable to be tested 200 in the input area, touches the display screen 162 and sends the identification information to the CPLD. When the user does not continue to input information in the input area after a preset time interval or the number of digits of the input information reaches the preset number of digits, the touch screen 162 can display a confirmation prompt information for confirming to the user whether the input operation is completed, or the touch screen 162 can display a confirmation prompt information in an area outside the input area. After the user completes the input operation of inputting the identification information in the input area, an operation representing "input operation completed" can be performed in the input area, and the touch screen 162 determines that the received identification information is complete according to the operation. If the identification information input by the user is not completed, the user continues to input. It can be understood that the preset time can be set as needed, for example, it can be set to 2S, 3S, etc. The identification information of the cable can be set with a digit limit, and the preset digit is the digit limit value of the identification information, for example, the preset digit is set to 5 digits, 6 digits, etc.
[0087] The CPLD can determine the target connector group corresponding to the cable under test 200 based on the received identification information, and generate a connection prompt instruction based on the target connector group, and then send the connection prompt instruction to the touch display screen 162. The touch display screen 162 can display connection prompt information for prompting the user to "connect the cable under test to the target connector group" according to the connection prompt instruction.
[0088] The CPLD also determines the preset line sequence of the cable to be tested 200 according to the identification information, so as to construct the gating relationship between the corresponding first terminal and the second terminal according to the preset line sequence. For example, when the identification information indicates that the cable to be tested is 200M, the target connector group is the first connector group 120M. When the identification information indicates that the cable to be tested is 200N, the target connector group is the second connector group 120N. Among them, the CPLD internally stores the corresponding relationship between the identification information of various cables and the cable line sequence and the connector group 120, so that the preset line sequence and the target connector group of the cable to be tested 200 can be determined according to the identification information.
[0089] Then, the touch display screen 162 may display a connection prompt message for confirming to the user whether to connect the cable under test 200 to the target connector group. After connecting the cable under test 200 to the target connector group, the user performs a connection completion operation on the touch display screen 162 .
[0090] Similar to the first embodiment, the CPLD can respond to the connection completion operation, control the switch circuit 140 inside it to construct the gating relationship between the first terminal and the second terminal of the target connector group according to the preset line sequence, and the CPLD then outputs a drive signal to its first terminal (H1-H3 or H4-H7), and the drive signal returns to the second terminal (P1-P3 or P4-P7) of the CPLD via the first pin (A1-A3 or A4-A7), each wire core of the cable to be tested (200M or 200N), the second pin (B1-B3 or B4-B7), and the indicator light (L1-L3 or L4-L7). The drive signal can be used to drive the indicator light (L1-L3 or L4-L7) to light up. Of course, the drive signal can also be output by the second terminal (P1-P7) of the CPLD. Thus, the user can determine whether the line sequence of the cable to be tested (200M or 200N) is correct according to the on and off of the corresponding indicator light.
[0091] The CPLD may also send a detection signal to the corresponding first pin through the first terminal connected to the target connector group, and detect whether the corresponding second terminal receives an input signal corresponding to the detection signal from the corresponding second pin, determine the conduction result of each first pin, the corresponding second pin, the switch unit 131 and each core of the cable to be tested 200, and then determine the line sequence detection result of the cable to be tested 200. The CPLD may display the conduction result through the touch display screen 162 for the user to view. The CPLD may also save the line sequence detection result.
[0092] In this embodiment, by setting up a touch display screen 162, operation prompts can be given to the user when the user is testing the cable, and the test results of the cable 200 to be tested can also be displayed. There is no need to set up an input component 140 separately, which can reduce the number of components of the cable detection device 100 and reduce the complexity and cost of the cable detection device 100.
[0093] Of course, in this embodiment, the line sequence detection result of the tested cable 200 can be displayed by the touch display screen 162, so the indicator light to indicate the line sequence detection result may not be set.
[0094] Embodiment three: In the third embodiment, the cable detection device 100 includes a control circuit 130 , an input component 150 , a plurality of connector groups, and a plurality of indicator lights ( L1 - L3 or L4 - L7 ), and the input component 150 is connected to the control circuit 130 .
[0095] like Figure 7 As shown, the input component 150 is configured as a key component 151, and the control circuit 130 includes a complex programmable logic device CPLD.
[0096] Similar to the first embodiment, in the third embodiment, the cable detection device 100 includes a first connector group 120M and a second connector group 120N as an example for description, but the present embodiment does not provide a display component 160 to indicate user operation. In the present embodiment, the connection relationship between the first connector group 120M, the second connector group 120N and the CPLD, and the gating method of the gating switch inside the CPLD are the same as those in the first embodiment, and will not be further described here.
[0097] In the third embodiment, the cable detection device 100 detects the cable 200 as follows: The user inputs the identification information (such as cable code) of the cable 200 to be tested on the key assembly 151, and sends the identification information to the CPLD. The CPLD determines the preset line sequence and target connector group of the cable 200 to be tested according to the identification information, and constructs the gating relationship between the corresponding first terminal and the second terminal according to the preset line sequence. For example, when the identification information indicates that the cable 200 to be tested is 200M, the target connector group is the first connector group 120M. When the identification information indicates that the cable 200 to be tested is 200N, the target connector group is the second connector group 120N. Among them, the CPLD internally stores the corresponding relationship between the identification information of various cables and the cable line sequence and connector group, so that the preset line sequence and target connector group of the cable 200 to be tested can be determined according to the identification information.
[0098] The user connects the cable 200 to be tested to the target connector group. The CPLD outputs a drive signal to the terminal connected to the target connector group, and the user can determine whether the line sequence of the cable 200 to be tested is correct according to the on and off conditions of the corresponding indicator lights (L1-L7).
[0099] In this embodiment, the user connects the cable 200 to be tested to the target connector set according to the type of the cable 200 to be tested.
[0100] Embodiment 4: The cable detection device 100 includes a control circuit 130, a switch circuit 140, an input component 150, a plurality of connector groups 120, and a plurality of indicator lights (L1-L3 or L4-L7). The switch circuit 140 connects the first end of each first pin and the second end of each second pin. The input component 150 is connected to the control circuit 130, and the control end of the switch circuit 140 is connected to the control circuit 130. The control circuit 130 is used to control the switch circuit 140 to conduct the first end of each first pin and the first end of the corresponding second pin according to a preset line sequence. The switch circuit 140 of this embodiment is set independently of the control circuit 130.
[0101] like Figure 8 As shown, the input component 150 is configured as a key component 151 , the control circuit 130 includes a complex programmable logic device CPLD, and the switch circuit 140 includes control switches (Q1 - Q7 ).
[0102] Similar to the first embodiment, this embodiment is described by taking the example that the cable detection device 100 includes a first connector set 120M and a second connector set 120N. If the three first pins (A1, A2, A3) of the first connector 121M and the three second pins (B1, B2, B3) of the second connector 122M are connected in sequence through the three cores in the cable 200M to be tested, and the four first pins (A4, A5, A6, A7) of the first connector 121N are also connected in sequence with the four second pins (B4, B5, B6, B7) of the two second connectors (122N, 122N`) through the four cores of the cable 200N to be tested, then the first ends of the three first pins (A1, A2, A3) of the first connector 121M are connected to the first ends of the three second pins (B1, B2, B3) of the second connector 122M through the control switch (Q1, Q2, Q3) and the indicator light (L1, L2, L3) in sequence. The first ends of the four first pins (A4, A5, A6, A7) of the first connector 121N are connected to the first ends of the four second pins (B4, B5, B6, B7) of the two second connectors (122N, 122N`) in sequence through the control switches (Q4, Q5, Q6, Q7) and the indicator lights (L4, L5, L6, L7).
[0103] In the fourth embodiment, the cable detection device 100 detects the cable 200 to be detected as follows: When the user inputs the identification information of the cable 200M to be tested through the key assembly 151, the CPLD determines the preset line sequence of the cable 200M to be tested and the target connector group is the first connector group 120M according to the identification information, and the CPLD controls the control switch (Q1, Q2, Q3) corresponding to the first connector group 120M to be turned on. The user connects the cable 200M to be tested between the first connector 121M and the second connector 122M in the first connector group 120M. When the indicator lights (L1, L2, L3) are all on, it is determined that each first pin (A1, A2, A3) of the first connector 121M, the corresponding second pin (B1, B2, B3) of the second connector 122M, the control switch (Q1, Q2, Q3) and the corresponding wire core in the cable 200M to be tested can form a conductive loop, and it is determined that the line sequence of the cable 200M to be tested is correct. When an indicator light (L1, L2 or L3) is not on, it is determined that a conductive loop cannot be formed between the first pin (A1, A2 or A3), the corresponding second pin (B1, B2 or B3), the control switch (Q1, Q2 or Q3) and the corresponding wire core in the cable 200M to be tested, and it is determined that the line sequence of the cable 200M to be tested is incorrect.
[0104] When the user inputs the identification information of the cable 200N to be tested through the key assembly 151, the CPLD determines the preset line sequence of the cable 200N to be tested and the target connector group is the second connector group 120N according to the identification information, and the CPLD turns on the control switch (Q4, Q5, Q6, Q7) corresponding to the first connector group 120N. The user connects the cable 200N to be tested between the first connector 121N and the two second connectors (122N, 122N') in the second connector group 120N. When the indicator lights (L4, L5, L6, L7) are all on, it is determined that each first pin (A4, A5, A6, A7) of the first connector 121N, the corresponding second pins (B4, B5, B6, B7) of the two second connectors (122N, 122N'), the control switch (Q4, Q5, Q6, Q7) and the corresponding wire cores in the cable 200N to be tested can form a conductive loop, and it is determined that the line sequence of the cable 200N to be tested is correct. When an indicator light (L4, L5, L6 or L7) is not on, it is determined that a conductive loop cannot be formed between the first pin (A4, A5, A6 or A7), the corresponding second pin (B4, B5, B6 or B7), the control switch (Q4, Q5, Q6 or Q7) and the corresponding wire core in the cable 200N to be tested, and it is determined that the line sequence of the cable 200N to be tested is incorrect.
[0105] In the fourth embodiment, the control switches (Q1-Q7) may include but are not limited to controllable switches such as triodes, field effect transistors (Metal-Oxide-Semiconductor Field-Effect Transistors, MOS), insulated gate bipolar transistors (Insulated Gate Bipolar Transistors, IGBTs), optocouplers, and relays.
[0106] Of course, in the fourth embodiment, similar to the first embodiment, the switch circuit 140 independently set up by the CPLD can also be set as a selection switch simultaneously connected between the second end of each first pin and the second end of each second pin, and the CPLD controls the selection switch to connect the first pin and the corresponding second pin according to the preset line sequence corresponding to the cable 200 to be tested.
[0107] It is understood that in the fourth embodiment, the cable detection device 100 can also be provided with a display component 160 to instruct the user to perform corresponding operations. The control circuit 130 is not limited to being provided as a CPLD, but can also be provided as any device capable of outputting control signals, such as an FPGA, an ASIC, and an MCU.
[0108] See also Fig. 9 The present application also provides a cable detection method, which is performed by the cable detection device 100. The cable detection method includes: S100: Obtain a preset line sequence of a cable to be tested.
[0109] The preset line sequence of the cable 200 to be tested is obtained through the control circuit 130 .
[0110] Furthermore, if Fig.10 As shown, step S100 may include: S110: Obtain identification information of the cable to be tested.
[0111] S120: Determine a preset line sequence and a target connector group according to the identification information.
[0112] The control circuit 130 stores the corresponding relationship between the tested cable 200 and the connector set 120 , so the target connector set can be identified according to the identification information of the tested cable 200 .
[0113] It can be understood that the control circuit 130 can receive the identification information of the cable to be tested 200 obtained by the input component 150 according to the input operation of the user, and then determine the preset line sequence of the cable to be tested 200 according to the obtained identification information. When the cable to be tested is connected between the first connector and the second connector, the control circuit 130 can also perform cable presence detection on each connector group 200, determine the identification information of the target connector group and the cable to be tested 200 according to the connector group 200 to which the cable to be tested 200 is detected, and then determine the preset line sequence according to the identification information.
[0114] It can be understood that before step S100, the display component 160 in the cable detection device 100 can first display an input prompt message prompting the user to "enter the identification information of the cable to be tested", and the user performs an input operation on the input component 150 according to the input prompt message, and the input component 150 sends the identification information input by the user to the control circuit 130, and performs an input completion operation after the input is completed. In response to the input completion operation, the control circuit 130 confirms that the received identification information is complete, and then determines the preset line sequence and the target connector group corresponding to the cable to be tested 200 according to the identification information.
[0115] When the cable to be tested has not been connected to the target connector group, the control circuit can also display the information of the previously determined target connector group through the display component 16 to prompt the user to connect the cable to be tested 200 to the target connector group. The display component 160 can also display access prompt information to confirm with the user whether to connect the cable to be tested 200 to the target connector group. If the user has connected the cable to be tested 200 to the target connector group, a connection completion operation can be performed on the input component 150 so that the control circuit 130 can confirm that the cable to be tested 200 has been connected to the target connector group.
[0116] S200, controlling the first end of each first pin in the target connector to be conductive with the first end of the corresponding second pin according to a preset line sequence, or controlling the switch circuit to be conductive with the first end of each first pin and the first end of the corresponding second pin according to a preset line sequence.
[0117] The preset line sequence is the correct line sequence of the cable 200 to be tested.
[0118] When the first end of each first pin and the first end of each second pin are connected to the control circuit 130 through the circuit board 110, the control circuit 130 can control the first end of each first pin of the target connector group and the first end of the corresponding second pin to be connected in response to the connection completion operation performed by the user on the input component 150. After the connection, the on and off of the multiple indicator lights can display the conduction result of the loop formed by the first pin, the corresponding second pin and the wire core in the cable to be tested 200, that is, the wire sequence detection result of the cable to be tested 200. The user can determine whether the wire sequence of the cable to be tested 200 is correct according to the on and off of the multiple indicator lights.
[0119] The control circuit 130 is integrated with a switch unit 131, and the control circuit 130 may include a plurality of first terminals connected to the first end of the first pin and a plurality of second terminals connected to the first end of the second pin, and the switch unit 131 is connected between the first terminal and the second terminal. Correspondingly, the control circuit 130 may control the switch unit 131 to conduct the first terminal connected to the target connector group and the corresponding second terminal according to a preset line sequence, so that the first end of the first pin of the first connector 121 in the target connector group and the first end of the corresponding second pin of the second connector 122 are conducted.
[0120] The switch unit 131 can be a selection circuit integrated inside the control circuit 130. The control circuit 130 controls the switch unit 131 to select the first terminal and the corresponding second terminal according to a preset line sequence so that the first end of the first pin of the first connector 121 in the target connector group and the first end of the corresponding second pin of the second connector 122 are conductive.
[0121] It is understandable that in the embodiment of the present application, the control circuit 130 can also control each connector group to be turned on. Since only the connector group connected to the cable 200 to be tested can form a path, it is still possible to determine whether the line sequence of the cable 200 to be tested is correct based on the on and off of multiple indicator lights.
[0122] When the first end of each first pin and the first end of each second pin are connected to the switch circuit 140 through the circuit board 110, and the switch circuit 140 is connected to the control circuit 140, the switch circuit 140 is arranged between the first end of the first pin of the first connector 121 and the first end of the corresponding second pin. Correspondingly, the control circuit 130 can control the switch circuit 140 to conduct the first end of each first pin of the target connector group and the first end of the corresponding second pin in response to the connection completion operation performed by the user on the input component 150. After the conduction, the on and off of the multiple indicator lights can display the conduction result of the loop formed by the first pin, the corresponding second pin and the wire core in the cable 200 to be tested, that is, the wire sequence detection result of the cable 200 to be tested. The user can determine whether the wire sequence of the cable 200 to be tested is correct according to the on and off of the multiple indicator lights.
[0123] It can be understood that the cable detection method of the embodiment of the present application can be executed by the control circuit 130 in the above-mentioned cable detection device 100.
[0124] The cable detection method provided in this embodiment has similar implementation principles and beneficial effects as those of the above-mentioned cable detection device 100, and will not be described in detail herein.
[0125] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on the cable detection device 100 or stored in any available medium. When the computer program product is run on the cable detection device 100, the cable detection device 100 performs the above-mentioned cable detection method.
[0126] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that the cable detection device 100 can store or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the cable detection device 100 to execute the above-mentioned cable detection method.
[0127] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cable detection device, characterized in that: It comprises a circuit board, a connector group and a control circuit, wherein the connector group and the control circuit are both arranged on the circuit board; The connector group includes a first connector and a second connector, the first connector includes at least two first pins, the second connector includes at least two second pins, the number of pins of the first connector is the same as the number of pins of the second connector, and the first end of each of the first pins and the first end of each of the second pins are connected to the control circuit through the circuit board; In the case where the first connector and the second connector are connected to a cable to be tested, the second ends of the at least two first pins are connected one-to-one with the second ends of the at least two second pins through the wire core in the cable to be tested, and the control circuit is used to control the first end of each first pin in the connector group and the first end of the corresponding second pin to be connected according to a preset wire sequence of the cable to be tested, so as to detect whether the wire sequence of the cable to be tested is correct; wherein the preset wire sequence is the correct wire sequence of the cable to be tested.
2. A cable detection device, characterized in that: It includes a circuit board, a connector group, a switch circuit and a control circuit, wherein the connector group, the switch circuit and the control circuit are all arranged on the circuit board; The connector set includes a first connector and a second connector, the first connector includes at least two first pins, the second connector includes at least two second pins, the number of pins of the first connector is the same as the number of pins of the second connector, and the first end of each of the first pins and the first end of each of the second pins are connected to the switch circuit through the circuit board; The switch circuit is connected to the control circuit; In the case where the first connector and the second connector are connected to a cable to be tested, the second ends of the at least two first pins are connected one-to-one with the second ends of the at least two second pins through the wire core in the cable to be tested, and the control circuit is used to control the switch circuit to conduct the first end of each first pin in the connector group with the first end of the corresponding second pin according to a preset wire sequence of the cable to be tested, so as to detect whether the wire sequence of the cable to be tested is correct; wherein the preset wire sequence is the correct wire sequence of the cable to be tested.
3. The cable detection device according to claim 1 or 2, characterized in that: The number of the connector groups is multiple, and the multiple connector groups include a first connector group and a second connector group; The first connector set includes one first connector and one second connector; The second connector group includes one first connector and at least two second connectors, and the number of all first pins of the one first connector is the same as the number of all second pins of the at least two second connectors.
4. The cable detection device according to claim 3, characterized in that: It also includes an input component, the input component is connected to the control circuit, and the input component is used to obtain the identification information of the cable to be tested according to an input operation; The control circuit is further configured to determine a target connector group and the corresponding preset line sequence according to the identification information, wherein the target connector group is a connector group correspondingly connected to the cable to be tested.
5. The cable detection device according to claim 4, characterized in that: It also includes a display component, which is connected to the control circuit, and the control circuit is used to display connection prompt information through the display component; the connection prompt information is used to prompt the user to connect the cable to be tested to the target connector group, wherein the connection prompt instruction includes information of the target connector group.
6. The cable detection device according to claim 5, characterized in that: The display component is further used to display access prompt information after displaying the connection prompt information; the access prompt information is used to confirm with the user whether to connect the cable to be tested to the target connector group.
7. The cable detection device according to claim 5, characterized in that: It also includes multiple indicator lights, which are arranged on the circuit board, each of the indicator lights is connected between the first end of the corresponding first pin and the control circuit through the circuit board, or each of the indicator lights is connected between the first end of the corresponding second pin and the control circuit through the circuit board, or each of the indicator lights is connected between the first end of the corresponding first pin and the switch circuit through the circuit board, or each of the indicator lights is connected between the first end of the corresponding second pin and the switch circuit through the circuit board; when the multiple indicator lights are all on, the line sequence of the cable to be tested is correct.
8. The cable detection device according to claim 2, characterized in that: The step of controlling the switch circuit to conduct the first end of each first pin with the first end of the corresponding second pin according to the preset line sequence of the cable to be tested includes: Obtaining identification information of the cable to be tested; Determine the preset line sequence and the target connector group corresponding to the cable to be tested according to the identification information; The switch circuit is controlled to conduct the first end of each first pin in the target connector group with the first end of the corresponding second pin according to the preset line sequence.
9. The cable detection device according to any one of claims 1, 3 to 7, characterized in that: The control circuit includes a plurality of first terminals connected to the first end of the first pin and a plurality of second terminals connected to the first end of the second pin, and the control circuit includes a switch unit connected between the first terminal and the second terminal; the control circuit is used for: The switch unit is controlled to conduct the first end of each first pin in the target connector group with the first end of the corresponding second pin according to the preset line sequence; wherein the target connector group is a connector group corresponding to the cable to be tested.
10. The cable detection device according to claim 1 or 2, characterized in that: The control circuit includes a complex programmable logic device.