Cable Identification Method, Device and Storage Medium
By sending test signals in the cable test and judging the consistency of bit error rate and signal quantity, the problem of difficult to identify cable sequence abnormalities is solved, and the rapid identification of cable sequence and improvement of production quality is achieved.
Patent Information
- Application Number
- CN202311484766.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-08
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2043-11-08
AI Technical Summary
During the online cable testing process, abnormal cable sequences (such as cross welding) are difficult to quickly identify, resulting in poor cable production quality.
By sending the first test signal and determining whether its bit error rate is within the preset range, if so, sending the second test signal and determining whether its number is consistent, to determine the correctness of the cable sequence.
It realizes rapid identification of cable sequence, screens out unqualified cables, and improves the production quality of cables.
Smart Images

Figure CN117917580B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to a cable identification method, device and storage medium. Background Art
[0002] Cables are mainly used to control installation, connect equipment, transmit power, etc. They are common and indispensable in the consumer market. In the cable testing process, multiple test channels are often set up to test multiple cables at the same time.
[0003] However, during the cable testing process, once the cable line sequence is abnormal, such as due to cross welding, the test system cannot quickly and effectively identify it, resulting in poor cable production quality. Summary of the invention
[0004] The present invention provides a cable identification method, device and storage medium, aiming to quickly identify the cable sequence and improve the production quality of the cable.
[0005] To achieve the above object, the present invention provides a cable identification method, which is applied to a cable identification device, wherein the cable identification device includes a cable testing device and a cable switching device for accessing a cable to be tested, and the cable identification method includes the following steps:
[0006] The cable testing device sends a first test signal to the cable switching device and receives a first test signal fed back by the cable switching device;
[0007] Determining whether the bit error rate of the first test signal fed back is within a preset bit error rate range;
[0008] When the bit error rate of the fed-back first test signal is within a preset bit error rate range, obtaining a number of second test signals corresponding to the number of cables to be tested;
[0009] Sending a number of second test signals corresponding to the cable to be tested to the cable switching device and receiving a second test signal fed back by the cable switching device;
[0010] Determining whether the number of the second test signals fed back is consistent with the number of the second test signals sent;
[0011] When the number of the fed-back second test signals is consistent with the number of the sent second test signals, it is determined that the cable to be tested is qualified.
[0012] Optionally, when the bit error rate of the fed-back first test signal is within a preset bit error rate range, the step of acquiring a number of second test signals corresponding to the cable to be tested includes:
[0013] When the bit error rate of the first test signal in the feedback is within a preset bit error rate range, determine the identification information of the cable under test;
[0014] Obtain a corresponding number of second test signals according to the identification information of the cable under test.
[0015] Optionally, the step of obtaining a corresponding number of second test signals according to the identification information of the cable under test includes:
[0016] Determine the test channel where the cable under test is located according to the identification signal of the cable under test;
[0017] Obtain a corresponding number of second test signals corresponding to the test channel where the cable under test is located.
[0018] Optionally, after the step of determining whether the bit error rate of the first test signal in the feedback is within a preset bit error rate range, it further includes:
[0019] When the bit error rate of the first test signal in the feedback exceeds the preset bit error rate range, determine that the cable under test is unqualified.
[0020] Optionally, after the step of determining whether the number of the second test signals in the feedback is consistent with the number of the second test signals sent, it further includes:
[0021] When the number of the second test signals in the feedback is inconsistent with the number of the second test signals sent, determine that the cable under test is unqualified.
[0022] Optionally, after the step of sending a corresponding number of second test signals to the cable transfer device corresponding to the cable under test and receiving the second test signals feedback by the cable transfer device, it further includes:
[0023] Send the first test signal and the second test signal feedback by the cable transfer device to the main control circuit for the main control circuit to generate a test report of the cable under test.
[0024] To achieve the above object, the present invention further provides a cable identification device. The cable identification device includes a cable testing device and a cable transfer device for accessing the cable under test. The cable identification device further includes a memory, a processor, and a cable identification program stored on the memory and executable on the processor. When the cable identification program is executed by the processor, it implements the steps of the cable identification method described in any one of the above.
[0025] Optionally, the cable testing device includes a cable testing circuit and a test interface;
[0026] The cable transfer device includes a cable connector for accessing the cable under test and a test socket;
[0027] When the test interface is inserted into the test socket, the cable connector is connected to the cable test circuit, and the cable under test is connected to the test loop.
[0028] Optionally, the cable identification device further includes a main control circuit, and the cable test device is communicatively connected to the main control circuit;
[0029] The cable test device is further configured to send the first test signal and the second test signal fed back by the cable transfer device to the main control circuit;
[0030] The main control circuit is configured to generate a test report for the cable under test according to the first test signal and the second test signal sent by the cable test device.
[0031] To achieve the above object, the present invention further provides a storage medium, on which a cable identification program is stored, and when the cable identification program is executed by a processor, the steps of the cable identification method described in any one of the above are implemented.
[0032] In the technical solution of the present invention, first, it is judged whether the bit error rate of the first test signal fed back by the cable under test is within a preset bit error rate range. If it is within the preset bit error rate range, then it is further judged whether the number of the second test signals sent to the cable under test is consistent with the number of the second test signals fed back by the cable under test. If they are consistent, it indicates that the cable sequence of the cable under test is correct, there is no cross-welding situation in the cable under test, and the cable under test is a qualified product. With such a setting, the cable sequence can be quickly identified, unqualified cables can be screened out, and the production quality of the cables can be improved. Description of the Drawings
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on the structures shown in these drawings without creative efforts.
[0034] Figure 1 It is a schematic flowchart of an embodiment of the cable identification method of the present invention;
[0035] Figure 2 It is a structural block diagram of a cable identification device to which the cable identification method of the present invention is applied;
[0036] Figure 3 For Figure 2 It is a schematic circuit structure diagram of an embodiment of the cable identification device in
[0037] Explanation of the reference numerals in the drawings:
[0038] 10 Cable test equipment 20 Cable adapter 101 Cable test circuit 102 Test interface 201 Test socket 202 Cable Connectors
[0039] The realization, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings. Specific embodiments
[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0041] Figure 1 It is a schematic flowchart of an embodiment of the cable identification method of the present invention.
[0042] The cable identification method of this embodiment is applied to a cable identification device. Among them, the cable identification device includes a cable testing device for sending a test signal and analyzing and processing the feedback test signal, and a cable transfer device for connecting the cable to be tested to the test circuit. The structure of the cable identification device is as Figure 2 shown. The cable testing device is electrically connected to the cable transfer device, and the cable to be tested is connected to the cable testing device through the cable transfer device. In a specific embodiment, the circuit structure of the cable identification device is as Figure 3 shown. The cable identification device includes a cable testing device 10 and a cable transfer device 20. The cable testing device 10 includes a cable testing circuit 101 and a test interface 102; the cable transfer device 20 includes a cable connector 202 for connecting the cable to be tested and a test socket 201. Among them, the cable testing circuit 101 can be a microprocessor such as a single-chip microcomputer, a DSP or an FPGA, which is not limited here. The cable connector 202 is used to connect the cable to be tested to the cable testing circuit 101, that is, to connect the cable to be tested to the test circuit. The test socket 201 is adapted to the test interface 102. When the test socket 201 is inserted into the test interface 102, the cable to be tested is connected to the cable testing circuit 101, and the cable testing circuit 101 can test the cable to be tested.
[0043] Specifically, referring to Figure 1 , the cable identification method includes:
[0044] Step S10: The cable testing device sends a first test signal to the cable transfer device and receives the first test signal fed back by the cable transfer device;
[0045] The first test signal may be a PRBS (pseudo-random code), which is a pseudo-random sequence containing 0 and 1. The cable test device 10 is connected to a main control circuit, such as a processor such as a single-chip microcomputer, DSP or FPGA, and the cable test device 10 performs a test operation according to the control instruction of the main control circuit. During the test process, the cable test device 10 sends a first test signal, that is, sends a PRBS signal to the cable to be tested connected to the cable switching device 20, and the cable to be tested then feeds back the first test signal to the cable test device 10 via the cable switching device 20. It can be understood that the cable switching device 20 can have multiple test channels built in to allow multiple cables to be tested simultaneously.
[0046] Step S20: determining whether the bit error rate of the first test signal fed back is within a preset bit error rate range;
[0047] The first bit error rate range is used to determine the deviation rate between the first test signal fed back and the first test signal sent. For example, it is assumed that there are 5 cables to be tested, which are placed in five test channels respectively. The cable test device 10 sends a first test signal of 0 to the cable in the first test channel, and the first test signal fed back by the cable in the first test channel is also 0; the cable test device 10 sends a first test signal of 1 to the cable in the second test channel, and the first test signal fed back by the cable in the second test channel is also 1; the cable test device 10 sends a first test signal of 0 to the cable in the third test channel, and the first test signal fed back by the cable in the third test channel is also 0; the cable test device 10 sends a first test signal of 1 to the cable in the fourth test channel, and the first test signal fed back by the cable in the fourth test channel is also 1; the cable test device 10 sends a first test signal of 0 to the cable in the fifth test channel, and the first test signal fed back by the cable to be tested in the fifth test channel is also 0; then it means that the bit error rate of the first test signal sent to the cable to be tested is 0. In this embodiment, when the bit error rate of the first test signal is within the preset bit error rate range, the next test operation is performed. In order to ensure the quality of the cable, the preset bit error rate range can be set to 0, that is, when the bit error rate of the first test signal fed back by the cable adapter 20 received by the cable testing device 10 is 0, the next test operation is performed.
[0048] Step S30: when the bit error rate of the fed-back first test signal is within a preset bit error rate range, obtaining a number of second test signals corresponding to the number of cables to be tested;
[0049] The second test signal can be a PRBS (pseudo-random code). The number of second test signals corresponding to each cable under test can be determined through a pre-set mapping table. For example, a mapping table can be established between the identification information of the cables under test and the second test signals, or a mapping table can be established between the test channels where the cables under test are located and the second test signals. There is no limitation here.
[0050] Optionally, in one embodiment, step S30 includes:
[0051] Step S301: When the bit error rate of the fed-back first test signal is within a preset bit error rate range, determine the identification information of the cable under test;
[0052] Step S302: Obtain the corresponding number of second test signals according to the identification information of the cable under test.
[0053] The identification information of the cable under test is used to distinguish the cables under test in each test channel. A mapping table can be established in advance between the cables under test and the second test signals, and the number of second test signals corresponding thereto can be determined by looking up the table according to the identification information of the cable under test.
[0054] Optionally, in one embodiment, step S302 includes:
[0055] Step S3021: Determine the test channel where the cable under test is located according to the identification signal of the cable under test;
[0056] Step S3022: Obtain the corresponding number of second test signals for the test channel where the cable under test is located.
[0057] In this embodiment, the number of second test signals corresponding thereto can be determined based on the mapping table between the test channel where the cable under test is located and the second test signals. That is, first determine the test channel where the cable under test is located according to the identification signal of the cable under test, and then determine the number of second test signals corresponding to the test channel where the cable under test is located by looking up the table.
[0058] Further, in one embodiment, after step S30, it further includes:
[0059] Step S70: When the bit error rate of the fed-back first test signal exceeds the preset bit error rate range, determine that the cable under test is unqualified.
[0060] When there is a deviation between the first test signal sent to the cable under test and the first test signal fed back by the cable under test, that is, the bit error rate of the fed-back first test signal exceeds the set preset bit error rate range, it indicates that the wire sequence of the cable under test is incorrect, and there may be a case of cross soldering in the cable under test. For example, if the cable testing device 10 sends a pseudo-random code of 0, but the pseudo-random code fed back by the cable in the first test channel is 1, it means that a bit error has occurred. In this case, it can be determined that the wire sequence of the cable under test is incorrect, and the cable under test is a non-conforming product.
[0061] Step S40: Send the second test signals corresponding to the number of the cables under test to the cable transfer device and receive the second test signals fed back by the cable transfer device;
[0062] The cable testing device 10 sequentially sends the corresponding number of second test signals to the cables under test in each test channel and receives the corresponding number of second test signals fed back by the cables under test in each test channel. For example, for the cable under test in the first test channel, the cable testing device 10 sends 1 + m second test signals; for the cable under test in the second test channel, the cable testing device 10 sends 2 + m second test signals; for the cable under test in the third test channel, the cable testing device 10 sends 3 + m second test signals... where m is an integer.
[0063] Step S50: Determine whether the number of the fed-back second test signals is consistent with the number of the sent second test signals;
[0064] The cable testing device 10 compares the number of the second test signals sent to each cable under test with the number of the second test signals fed back by each cable under test, so as to determine whether the wire sequence of the cable under test is correct and whether it is a qualified cable.
[0065] Step S60: When the number of the fed-back second test signals is consistent with the number of the sent second test signals, determine that the cable under test is qualified.
[0066] If the number of the second test signals sent by the cable testing device 10 to the cable under test is consistent with the number of the second test signals fed back by the cable under test, it means that the wire sequence of the cable under test is correct, there is no case of cross soldering in the cable under test, and the cable under test is qualified. For example, for the cable under test in the first test channel, the cable testing device 10 sends 1 + m second test signals, and the number of the second test signals fed back by the cable under test in the first test channel is 1 + m, then the cable under test in the first test channel is qualified; for the cable under test in the second test channel, the cable testing device 10 sends 2 + m second test signals, and the number of the second test signals fed back by the cable under test in the second test channel is 2 + m, then the cable under test in the second test channel is qualified.
[0067] Further, after step S60, it further includes:
[0068] Step S80: When the number of the second test signals fed back is inconsistent with the number of the second test signals sent, determine that the cable under test is unqualified.
[0069] If the number of the second test signals sent by the cable testing device 10 to the cable under test is inconsistent with the number of the second test signals fed back by the cable under test, it indicates that the cable sequence of the cable under test is incorrect, and there may be a case of cross soldering in the cable under test. At this time, it is determined that the cable under test is unqualified. For example, for the cable under test in the first test channel, the cable testing device 10 sends 1 + m second test signals, and the number of the second test signals fed back by the cable under test in the first test channel is 1 + m, then the cable under test in the first test channel is qualified; for the cable under test in the second test channel, the cable testing device 10 sends 2 + m second test signals, and the number of the second test signals fed back by the cable under test in the second test channel is 2 + m, then the cable under test in the second test channel is qualified; for the cable under test in the third test channel, the cable testing device 10 sends 3 + m second test signals, and the number of the second test signals fed back by the cable under test in the third test channel is m, then the cable under test in the third test channel is unqualified.
[0070] In summary, the present invention first determines whether the bit error rate of the first test signal fed back by the cable under test is within the preset bit error rate range. If it is within the preset bit error rate range, it further determines whether the number of the second test signals sent to the cable under test is consistent with the number of the second test signals fed back by the cable under test. If they are consistent, it indicates that the cable sequence of the cable under test is correct, there is no case of cross soldering in the cable under test, and the cable under test is a qualified product. With such a setting, the cable sequence can be quickly identified, unqualified cables can be screened out, and the production quality of the cables can be improved.
[0071] Optionally, in an embodiment, after the step of sending the second test signals corresponding to the cable under test to the cable transfer device and receiving the second test signals fed back by the cable transfer device, it further includes:
[0072] Step S90: Send the first test signal and the second test signal fed back by the cable transfer device to the main control circuit for the main control circuit to generate a test report of the cable under test.
[0073] In one embodiment, after receiving the first test signal and the second test signal fed back by the cable to be tested, the cable testing device 10 analyzes and processes the fed back first test signal and the second test signal and sends them to the main control circuit, so that the main control circuit can generate a test report based on the cable to be tested, for example, a test report involving the signal transmission rate, line sequence, and abnormal state analysis of the cable to be tested. Furthermore, the main control circuit can upload the test report of the cable to be tested to the host computer to realize visual testing of the cable; it can also upload the test data of the cable to be tested to the server, so that the server can realize data management.
[0074] The present invention also provides a cable identification device, the cable identification device includes a cable testing device and a cable switching device for connecting a cable to be tested, the cable identification device also includes a memory, a processor, and a cable identification program stored in the memory and executable on the processor, the cable identification program implements the steps of the cable identification method described above when executed by the processor. Since the cable identification program of the cable identification device adopts all the technical solutions of all the aforementioned embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0075] The present invention further provides a storage medium, on which a cable identification program is stored, and when the cable identification program is executed by a processor, the steps of the cable identification method described above are implemented.
[0076] Since the cable identification program adopts all the technical solutions of all the aforementioned embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0077] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A cable identification method, characterized in that, The cable identification method is applied to a cable identification device, the cable identification device includes a cable testing device and a cable switching device for accessing a cable to be tested, and the cable identification method includes the following steps: The cable testing device sends a first test signal to the cable switching device and receives a first test signal fed back by the cable switching device; Determining whether the bit error rate of the first test signal fed back is within a preset bit error rate range; When the bit error rate of the fed-back first test signal is within a preset bit error rate range, obtaining a number of second test signals corresponding to the number of cables to be tested; Sending a number of second test signals corresponding to the cable to be tested to the cable switching device and receiving a second test signal fed back by the cable switching device; Determining whether the number of the second test signals fed back is consistent with the number of the second test signals sent; When the number of the fed-back second test signals is consistent with the number of the sent second test signals, determining that the cable to be tested is qualified; Wherein, when the bit error rate of the fed-back first test signal is within a preset bit error rate range, the step of acquiring a number of second test signals corresponding to the cable to be tested includes: When the bit error rate of the first test signal fed back is within a preset bit error rate range, determining identification information of the cable to be tested; Acquire a corresponding number of second test signals according to the identification information of the cable to be tested; The step of acquiring a corresponding number of second test signals according to the identification information of the cable to be tested includes: Determine the test channel where the cable to be tested is located according to the identification information of the cable to be tested; Acquire a number of second test signals corresponding to the test channels where the cables to be tested are located.
2. The cable identification method according to claim 1, characterized in that After the step of determining whether the bit error rate of the first test signal fed back is within a preset bit error rate range, the method further includes: When the bit error rate of the fed-back first test signal exceeds a preset bit error rate range, it is determined that the cable to be tested is unqualified.
3. The cable identification method according to claim 1, wherein After the step of determining whether the number of the fed-back second test signals is consistent with the number of the sent second test signals, the method further includes: When the number of the fed-back second test signals is inconsistent with the number of the sent second test signals, it is determined that the cable to be tested is unqualified.
4. The cable identification method according to any one of claims 1-3, characterized in that, After the step of sending the second test signals corresponding to the number of the cables to be tested to the cable switching device and receiving the second test signals fed back by the cable switching device, the method further includes: The first test signal and the second test signal fed back by the cable switching device are sent to the main control circuit, so that the main control circuit generates a test report for the cable to be tested.
5. A cable identification device, characterized in that, The cable identification device includes a cable testing device and a cable switching device for accessing a cable to be tested. The cable identification device also includes a memory, a processor, and a cable identification program stored in the memory and executable on the processor. When the cable identification program is executed by the processor, the steps of the cable identification method according to any one of claims 1 to 4 are implemented.
6. The cable identification device according to claim 5, characterized in that: The cable testing device comprises a cable testing circuit and a testing interface; The cable adapter device includes a cable connector for accessing a cable under test and a test socket; When the test interface is inserted into the test socket, the cable connector is connected to the cable test circuit, and the cable under test is connected to the test loop.
7. The cable identification device according to claim 6, characterized in that, The cable identification device further includes a main control circuit, and the cable test device is communicatively connected to the main control circuit; The cable test device is further configured to send the first test signal and the second test signal fed back by the cable adapter device to the main control circuit; The main control circuit is configured to generate a test report of the cable under test according to the first test signal and the second test signal sent by the cable test device.
8. A storage medium, characterized in that, A cable identification program is stored on the storage medium, and when the cable identification program is executed by a processor, the steps of the cable identification method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Rack-mounted network switch test method and system
CN113114523A
Cable eligibility determination method, test equipment and test system
CN116318468A