Cable diagnosis method and system and industrial communication equipment

By integrating cable diagnostic functions on industrial communication equipment, real-time acquisition and processing of cable signals, calculating the target signal-to-noise ratio to obtain cable quality parameters, the problem of cable monitoring in the prior art is solved, and real-time cable diagnosis and fault warning are realized.

CN119884880APending Publication Date: 2025-04-25深圳市三旺通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411980802.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The prior art is difficult to monitor industrial communication cables automatically in real time without interrupting network communication, cannot predict and quantify cable failures in advance, and cannot generate fault warnings in time.

Method used

By integrating cable diagnostic functions on industrial communication equipment, the cable attenuation signal and crosstalk signal are collected in real time, the initial signal-to-noise ratio is calculated, and the target signal-to-noise ratio is calculated according to preset rules, and transmitted to external devices for processing to obtain cable quality parameters.

Benefits of technology

Real-time and accurate diagnosis of industrial communication cables is achieved, no additional detection equipment is required, and fault warning can be generated in a timely manner, improving network reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119884880A_ABST
    Figure CN119884880A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of industrial communication, and discloses a cable diagnosis method and system and industrial communication equipment, and the method is applied to the industrial communication equipment, and comprises the steps: obtaining an initial signal-to-noise ratio according to an attenuation signal and a crosstalk signal, collected in real time, of a connected cable; performing calculation optimization processing on the initial signal-to-noise ratio for multiple times according to a preset rule to obtain a target signal-to-noise ratio of the cable; and transmitting the obtained target signal-to-noise ratio to external equipment in real time, so that the external equipment converts the target signal-to-noise ratio into a cable quality parameter of the connected cable according to the target signal-to-noise ratio. According to the invention, a cable diagnosis function can be integrated on the existing industrial communication equipment, so that the connected cable can be diagnosed in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial communication technology, and in particular to a cable diagnosis method, system and industrial communication equipment. Background Art

[0002] In industrial sites such as coal, rail transit, and electric power, communication cables are worn and aged for a long time due to long-term operation in harsh environments with high humidity, heat, dust, and ash accumulation, which affects the change of cable impedance, or reduces the anti-interference ability of cables due to factors such as strong electromagnetic environment interference. Due to various factors such as electromagnetic interference and crosstalk, the signal-to-noise ratio of cable communication is reduced, which leads to the receiver being unable to distinguish between data signals and noise signals when receiving data signals, which easily causes occasional or continuous error frames or abnormal packet loss in the communication network, resulting in reduced network reliability.

[0003] Existing communication equipment often uses time domain reflectometry (TDR) technology to detect the status of cables. This technology is only a conventional cable detection method, and can only be detected when the cable is faulty. It cannot effectively diagnose the quality of communication cables in real time, predict the fault points and aging of cables in advance, and provide fault warnings without interrupting Ethernet communication.

[0004] At present, the domestic cable fault detection mainly adopts the pulse reflection method and the fault location method. The two methods can usually detect the location and type of general fault points, but the process is cumbersome and inefficient, and it is impossible to realize the real-time online detection of communication cables. Of course, at present, major communication chip manufacturers basically integrate various cable diagnostic functions on PHY chips (external signal interface chips). For example, Marvell's phy chip generally integrates VCT (Virtual Cable Tester@), which is a virtual cable test function, which can diagnose problems including open circuit, short circuit, cable impedance mismatch, bad connector, terminal mismatch and bad magnetism. However, this type of technology generally has the following practical problems: 1. It is impossible to monitor the cable in real time and automatically without interrupting network communication; 2. It can only be checked after the Ethernet cable fails, and it is impossible to predict and quantify it in advance; 3. It cannot generate fault warnings in time to inform users to perform on-site maintenance in time. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a cable diagnosis method, system and industrial communication equipment, which can add a cable diagnosis function to existing industrial communication equipment to achieve real-time diagnosis of connected cables.

[0006] In a first aspect, an embodiment of the present application provides a cable diagnosis method, which is applied to industrial communication equipment and includes:

[0007] Obtain an initial signal-to-noise ratio according to the attenuation signal and crosstalk signal of the connected cable collected in real time;

[0008] Calculating the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period;

[0009] The obtained target signal-to-noise ratio is transmitted to an external device in real time, so that the external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable.

[0010] In some embodiments, the step of obtaining an initial signal-to-noise ratio according to the attenuation signal and the crosstalk signal of the connected cable collected in real time includes:

[0011] The attenuation signal and the crosstalk signal of the connected cable collected for a preset number of times are taken as a calculation group, and according to the attenuation signal and the crosstalk signal corresponding to each twisted pair of the connected cable in each calculation group, an effective signal-to-noise ratio of each twisted pair in each calculation group is calculated;

[0012] The minimum effective signal-to-noise ratio among the effective signal-to-noise ratios of each twisted pair in the connected cable is used as the initial signal-to-noise ratio corresponding to the current calculation group of the connected cable; wherein each calculation group corresponds to one initial signal-to-noise ratio.

[0013] In some embodiments, calculating the effective signal-to-noise ratio of each twisted pair in each calculation group according to the attenuation signal and the crosstalk signal corresponding to each twisted pair of the connected cables in each calculation group includes:

[0014] Calculate a plurality of actual signal-to-noise ratios corresponding to each of the twisted pairs according to the attenuation signal and the crosstalk signal in each of the calculation groups of each of the twisted pairs;

[0015] An average value is calculated for a plurality of actual signal-to-noise ratios of each twisted pair in each calculation group to obtain an effective signal-to-noise ratio of each twisted pair in the corresponding calculation group.

[0016] In some embodiments, calculating the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period includes:

[0017] When calculating the target signal-to-noise ratio within the current preset time period, taking the first initial signal-to-noise ratio as the first target signal-to-noise ratio;

[0018] When calculating the next target signal-to-noise ratio, obtaining the current target signal-to-noise ratio according to the previous target signal-to-noise ratio and the current initial signal-to-noise ratio;

[0019] The last target signal-to-noise ratio calculated within the current preset time period is used as the target signal-to-noise ratio of the current preset time period.

[0020] In some embodiments, the formula for obtaining the current target signal-to-noise ratio according to the previous target signal-to-noise ratio and the current initial signal-to-noise ratio is:

[0021] SNR new =0.095×SNR pre +0.005×SNR ini ;

[0022] SNR in the formula new is the current target signal-to-noise ratio; SNR pre The signal-to-noise ratio of the previous target; SNR ini is the current initial signal-to-noise ratio.

[0023] In some embodiments, the external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable, including:

[0024] The external device obtains a cable quality parameter of the connected cable according to the target signal-to-noise ratio and the length of the connected cable.

[0025] In some embodiments, the formula for obtaining the cable quality parameter of the connected cable according to the target signal-to-noise ratio and the length of the connected cable is:

[0026] Q = (SNR m +(0.05×L)) / 25;

[0027] In the formula, Q is the cable quality parameter of the connected cable; SNR m is the target signal-to-noise ratio for the current preset time period; L is the length of the connected cable.

[0028] In a second aspect, an embodiment of the present application provides an industrial communication device, including a PHY chip and a processor;

[0029] The PHY chip is connected to the cable and is used to collect the attenuation signal and crosstalk signal of the connected cable in real time;

[0030] The processor is connected to the PHY chip, and is used to receive the attenuation signal and the crosstalk signal of the connected cable in real time, and obtain an initial signal-to-noise ratio in real time according to the attenuation signal and the crosstalk signal received in real time;

[0031] The processor is further configured to calculate the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period;

[0032] The processor is further configured to transmit the obtained target signal-to-noise ratio to an external device in real time, so that the external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable.

[0033] In a third aspect, an embodiment of the present application provides a cable diagnostic system, including: an industrial communication device and an external device;

[0034] The industrial communication device is used to perform the above-mentioned cable diagnosis method;

[0035] The external device is used to receive the target signal-to-noise ratio in real time, and convert the target signal-to-noise ratio into a cable quality parameter of the connected cable.

[0036] In some embodiments, after receiving the cable quality parameters of the connected cable, the external device displays the cable quality parameters corresponding to the cable in a graphical manner.

[0037] The embodiments of the present application have the following beneficial effects: the present application integrates the function of cable diagnosis on the existing industrial communication equipment, thereby realizing real-time quality detection of industrial communication cables without adding additional detection equipment. In addition, the embodiments of the present application collect the attenuation signal and crosstalk signal of the connected cable in real time through the PHY chip of the industrial communication equipment, and then transmit the collected attenuation signal and crosstalk signal to the processor of the industrial communication equipment. The processor processes the received attenuation signal and crosstalk signal to obtain the target signal-to-noise ratio of the connected cable, and then sends the target signal-to-noise ratio to an external device for processing and real-time display. The present application can realize real-time and accurate diagnosis of the connected cable through this method. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A schematic diagram of the structure of an industrial communication device according to an embodiment of the present application is shown;

[0040] Figure 2 A first flow chart of the cable diagnosis method according to an embodiment of the present application is shown;

[0041] Figure 3 A second flow chart of the cable diagnosis method according to an embodiment of the present application is shown;

[0042] Figure 4A third flow chart of the cable diagnosis method according to an embodiment of the present application is shown;

[0043] Figure 5 A schematic diagram showing the connection between the industrial communication device and the external device according to an embodiment of the present application is shown;

[0044] Figure 6 A schematic diagram of an external device display interface according to an embodiment of the present application is shown;

[0045] Figure 7 A schematic structural diagram of a cable diagnostic system according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0047] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0048] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0049] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0050] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0051] In the prior art, time domain reflectometry (TDR) technology is used to diagnose problems in industrial communication cables only when the communication cables fail. In addition, although there are many quality detection instruments for communication cables in the prior art, operation and maintenance personnel are required to conduct regular inspection and maintenance of the communication cables on site, and it is impossible to monitor the quality of the cables in real time.

[0052] Based on this, the present application proposes a cable diagnostic method, system and industrial communication equipment. By integrating the cable diagnostic function into the industrial communication equipment, real-time diagnosis of the communication cables can be achieved without adding additional diagnostic instruments or equipment, and the problem of regular maintenance and inspection in harsh working environments is solved.

[0053] The following first describes the industrial communication device in an embodiment of the present application.

[0054] Industrial communication equipment is mainly used to achieve stable and reliable communication functions in industrial environments. Figure 1 As shown, the industrial communication equipment includes a PHY chip 100 (a chip of an external signal interface) and a processor 200; wherein the PHY chip 100 is connected to an Ethernet communication cable 300 through an RJ45 interface; the cable 300 applicable to this embodiment is a cable 300 including multiple twisted pairs. The signal received by each twisted pair includes two parts, one part is the signal transmitted from the other end, and this signal has to pass through the entire link, so it will be affected by the attenuation parameters, and the second part is the crosstalk signal of other pairs of lines. Among them, the PHY chip 100 contains HYBRID circuits (hybrid circuits), Echo cancellers (echo cancellation) and other circuits, which can collect the transmission signal of the Ethernet twisted pair connected to the PHY chip 100 in real time without affecting normal communication. Among them, the PHY chip 100 in this embodiment is a PHY chip whose model can be 88E168X.

[0055] The cable diagnosis method of the present application only adds the functions required by the cable segments to the various components of the original industrial communication equipment, does not affect the realization of the original functions of the industrial communication equipment, and can also realize real-time diagnosis of the cables.

[0056] The cable diagnosis method of the embodiment of the present application is described below in conjunction with the above-mentioned industrial communication equipment. Figure 2 As shown, the cable diagnostic method includes:

[0057] Step S100, obtaining an initial signal-to-noise ratio according to the attenuation signal and crosstalk signal of the connected cable collected in real time.

[0058] The connected cable is a cable to which the PHY chip of the industrial communication device is connected via an RJ45 interface, and this embodiment is used for real-time diagnosis of the connected cable.

[0059] In this step, the PHY chip can collect the attenuation signal and crosstalk signal of the connected cable in real time. Since the present embodiment is applicable to cables composed of twisted pairs, the attenuation signal is a signal sent from the communication peer (such as another device), which needs to pass through the entire communication link (including cables, connectors, plugs, etc.) to reach the receiving end (i.e., the PHY chip); the reason for the formation of crosstalk signals is that since the twisted pairs are wound in pairs, there is still a certain electromagnetic coupling effect between different pairs, so the signals on other pairs will be coupled to the current pair to a certain extent, thereby forming crosstalk signals.

[0060] Exemplarily, in this step, the attenuation signal and the crosstalk signal on the twisted pair can be collected in real time by the HYBRID circuit in the PHY chip.

[0061] In some embodiments, Figure 3 As shown, step S100 includes steps S110 to S120:

[0062] Step S110, taking the attenuation signals and crosstalk signals of the connected cables collected for a preset number of times as a calculation group, and calculating the effective signal-to-noise ratio corresponding to each calculation group of each twisted pair according to the attenuation signals and crosstalk signals corresponding to each twisted pair of the connected cables in each calculation group.

[0063] The signals in each calculation group include attenuation signals and crosstalk signals of the connected cables collected a preset number of times.

[0064] Since the cable includes multiple twisted pairs, when the PHY chip collects the attenuation signal and crosstalk signal of the cable, the PHY chip will collect the attenuation signal and crosstalk signal corresponding to each twisted pair. If the cable includes four twisted pairs, namely CH1, CH2, CH3 and CH4, the PHY chip will collect the attenuation signal and crosstalk signal corresponding to the twisted pair CH1, the attenuation signal and crosstalk signal corresponding to CH2, the attenuation signal and crosstalk signal corresponding to CH3 and the attenuation signal and crosstalk signal corresponding to CH4.

[0065] In this step, the attenuation signals and crosstalk signals of the connected cables collected for a preset number of times are taken as a calculation group, mainly for more accurate calculation of the effective signal-to-noise ratio of each twisted pair in the subsequent calculation.

[0066] Exemplarily, after the PHY chip collects the attenuation signal and crosstalk signal of the connected cable in real time, it will transmit it to the processor in a timely manner. The processor receives the attenuation signal and crosstalk signal of the connected cable, and performs data shaping algorithm processing according to the attenuation signal and crosstalk signal of each twisted pair of the connected cable in each calculation group according to the predetermined grouping rules to obtain the effective signal-to-noise ratio corresponding to each calculation group of each twisted pair.

[0067] In one embodiment, if Figure 4 As shown, according to the attenuation signal and the crosstalk signal corresponding to each twisted pair of cables connected in each calculation group, calculating the effective signal-to-noise ratio corresponding to each calculation group of each twisted pair includes steps S111-S112:

[0068] Step S111 , calculating a plurality of actual signal-to-noise ratios corresponding to each twisted pair according to the attenuation signal and the crosstalk signal in each calculation group of each twisted pair.

[0069] Exemplarily, since a calculation group includes a preset number of collected attenuation signals and crosstalk signals, for each calculation group, the corresponding actual signal-to-noise ratio of the twisted pair is calculated once according to the attenuation signal and crosstalk signal collected each time. It can be understood that in each calculation group, a preset number of actual signal-to-noise ratios (which can be understood as attenuation-crosstalk ratios) will be calculated for each twisted pair.

[0070] If the preset number is 3 times, then in this step, the actual signal-to-noise ratio of the corresponding twisted pair will be calculated according to the attenuation signal and crosstalk signal corresponding to the twisted pair collected each time, that is, 3 actual signal-to-noise ratios will be calculated for each twisted pair in the calculation group.

[0071] Step S112, averaging multiple actual signal-to-noise ratios of each twisted pair in each calculation group to obtain an effective signal-to-noise ratio of each twisted pair in the corresponding calculation group.

[0072] In the above step S121, the actual signal-to-noise ratio corresponding to each signal collected in a calculation group is calculated. In this step, the multiple actual signal-to-noise ratios of each twisted pair in each calculation group are averaged to obtain the effective signal-to-noise ratio of each twisted pair in the corresponding calculation group. In this embodiment, by calculating the effective signal-to-noise ratio based on the attenuation signal and crosstalk signal collected multiple times, the situation of signal instability caused by signal fluctuation during the operation of the cable can be avoided, thereby improving the reliability and stability of cable diagnosis.

[0073] Step S120: taking the minimum effective signal-to-noise ratio among the effective signal-to-noise ratios of each twisted pair in the connected cables as the initial signal-to-noise ratio corresponding to the current calculation group of the connected cables.

[0074] Each calculation group corresponds to an initial signal-to-noise ratio.

[0075] Since the connected cable is composed of multiple twisted pairs, the effective signal-to-noise ratio of each twisted pair will be obtained in each calculation group, that is, each calculation group corresponds to multiple effective signal-to-noise ratios. Since the signal-to-noise ratio (SNR) is an important indicator for measuring signal quality, it reflects the ratio of signal strength to noise strength. The higher the signal-to-noise ratio value, the better the signal quality. In industrial communications, each twisted pair in the cable is responsible for the transmission of a part of the data. Therefore, the signal-to-noise ratio value of each twisted pair reflects the quality of its own transmission signal. Based on this, it can be understood that even if the signal-to-noise ratio values ​​of other twisted pairs in the same cable are very high, if the signal-to-noise ratio value of one twisted pair is very low, the quality of the entire cable will still be affected, because data transmission is the result of the coordinated work of multiple twisted pairs. As long as there is a problem with one twisted pair, it may cause communication quality problems. Therefore, in order to ensure the accuracy of cable diagnosis and avoid misjudgment, in this embodiment, the minimum effective signal-to-noise ratio among multiple twisted pairs is used as the initial signal-to-noise ratio of the connected cable.

[0076] For example, the connected cable includes four twisted pair cables, namely CH1, CH2, CH3 and CH4; assuming that the actual signal-to-noise ratio values ​​of CH1, CH2, CH3 and CH4 are respectively 20dB for CH1, 25dB for CH2, 18dB for CH3 and 30dB for CH4, then the initial signal-to-noise ratio is equal to min(20dB, 25dB, 18dB, 30dB), that is, the initial signal-to-noise ratio is 18dB. In this way, the initial signal-to-noise ratio of the entire cable is 18dB, rather than a higher value. This means that even if other twisted pair cables perform well, but at least one twisted pair cable has a problem, the system will promptly discover and prompt maintenance.

[0077] This embodiment takes the minimum value of the effective signal-to-noise ratio of each twisted pair as the initial signal-to-noise ratio of the entire cable, so that the system can comprehensively and accurately evaluate the quality status of the entire cable, ensuring the reliability and effectiveness of the diagnosis results. This method is a conservative and robust strategy that helps to promptly discover and deal with potential problems, avoiding the degradation of the communication quality of the entire network due to problems with a certain twisted pair.

[0078] Step S200: calculating the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period.

[0079] In this step, the target signal-to-noise ratio is calculated once in each preset time period. In the current preset time period, when the target signal-to-noise ratio of the connected cable is calculated, the first initial signal-to-noise ratio is used as the first target signal-to-noise ratio. When the target signal-to-noise ratio of the cable is subsequently calculated, the current target signal-to-noise ratio is obtained based on the previous target signal-to-noise ratio and the current initial signal-to-noise ratio. It can be understood that the target signal-to-noise ratio is calculated cyclically based on the initial signal-to-noise ratio and the target signal-to-noise ratio obtained in the previous calculation to obtain the latest target signal-to-noise ratio. This embodiment can make the result of the cable signal-to-noise ratio closest to the real data through such a cyclic calculation method, thereby ensuring the stability and reliability of the test.

[0080] The formula for obtaining the current target signal-to-noise ratio based on the previous target signal-to-noise ratio and the current initial signal-to-noise ratio is:

[0081] SNR new =0.095×SNR pre +0.005×SNR ini ;

[0082] SNR in the formula new is the current target signal-to-noise ratio; SNR pre The signal-to-noise ratio of the previous target; SNR ini is the current initial signal-to-noise ratio.

[0083] It can be understood that if there are 4 initial signal-to-noise ratios (A, B, C, and D) in the current preset time period, then when calculating, the first initial signal-to-noise ratio A is first used as the first target signal-to-noise ratio. When calculating the second target signal-to-noise ratio, the second target signal-to-noise ratio E is obtained by the formula 0.095×A+0.005×B. When calculating the third target signal-to-noise ratio, the third target signal-to-noise ratio F=0.095×E+0.005×C can be calculated by the formula; when calculating the fourth target signal-to-noise ratio, the fourth target signal-to-noise ratio G=0.095×F+0.005×D can be calculated by the formula; then the fourth target signal-to-noise ratio G is the target signal-to-noise ratio of the current preset time period.

[0084] Step S300, at the end of each preset time period, the target signal-to-noise ratio corresponding to the preset time period is transmitted to an external device, so that the external device converts the received target signal-to-noise ratio into a cable quality parameter of the connected cable.

[0085] For example, Figure 5As shown, data is transmitted between the industrial communication device 400 and the external device 600 through the web server 500. The industrial communication device 400 stores the target signal-to-noise ratio of each preset time period in the web server 500 through the CGI standard interface. The external device 600 accesses the remote device through the HTTPS protocol and obtains the target signal-to-noise ratio stored on the web server 500.

[0086] After obtaining the target signal-to-noise ratio of the cable 300, the external device 600 calculates the cable quality parameter of the connected cable 300 by combining the target signal-to-noise ratio and the length of the connected cable 300 through a preset algorithm, and the calculation formula is: Q = (SNR m +(0.05×L)) / 25; where Q is the cable quality parameter of the connected cable; SNR m is the target signal-to-noise ratio for the current preset time period; L is the length of the connected cable.

[0087] After the external device 600 calculates the cable quality parameters of the cable 300, it displays them graphically on the display interface of the external device 600. For example, it can display the cable quality parameters through a bar graph, and some threshold ranges can be set. For example, if the cable quality parameters are within the first threshold range, it means that the cable quality is normal. If the cable quality parameters are within the second threshold range, it means that the cable quality is not very good, and there is a certain risk in long-term use. It is recommended to replace the cable; if the cable quality parameters are within the third threshold range, it means that the cable has an aging problem, which may easily lead to communication packet loss, and the cable must be replaced.

[0088] like Figure 6 As shown, since each external device 600 can monitor multiple cables 300, in order for maintenance personnel to clearly view the quality of each cable 300, when the quality parameters of each cable 300 are displayed on the display interface, if it is within the first threshold range, its corresponding column can be green; if the cable quality parameter is within the second threshold range, its corresponding column can be yellow; if the cable quality parameter is within the third threshold range, its corresponding column can be red.

[0089] It should be noted that Figure 6 In the figure, the vertical axis Quality Values ​​represents the quality parameters of the cable, and the horizontal axis represents each cable 300 monitored by the external device 600. In addition, the external device is also provided with an alarm module, and the alarm modes include but are not limited to software alarms and hardware alarms. The software alarms include but are not limited to remote alarm reminder modes such as Snmp and E-mail; the hardware alarms can be set relay alarms, and the maintenance personnel can also select the alarm output mode and the cable quality threshold alarm parameters through the display interface. When the cable quality exceeds the threshold setting value, an alarm is issued.

[0090] It can be understood that in some industrial communication equipment, the processor 200 includes a main processor and a DSP processor. The method of the present application can also be applied to industrial communication equipment 400. If it is an industrial communication equipment with a DSP processor, the PHY chip 100 can first transmit the collected attenuation signal and crosstalk signal to the DSP processor, and then transmit it to the main processor through the DSP processor. The main processor performs the above processing on the received attenuation signal and crosstalk signal.

[0091] This application adds a cable diagnosis function to existing industrial communication equipment, thereby realizing real-time quality detection of industrial communication cables without adding additional detection equipment. In addition, the embodiment of the present application collects the attenuation signal and crosstalk signal of the connected cable in real time through the PHY chip of the industrial communication equipment, and then transmits the collected attenuation signal and crosstalk signal to the processor of the industrial communication equipment. The processor processes the received attenuation signal and crosstalk signal to obtain the target signal-to-noise ratio of the connected cable, and then sends the target signal-to-noise ratio to an external device for processing and real-time display. This method can realize real-time and accurate diagnosis of the connected cable.

[0092] On the other hand, Figure 7 As shown, an embodiment of the present application proposes a cable diagnostic system, which includes: an industrial communication device 400 and an external device 600; the industrial communication device 400 is used to execute the above-mentioned cable diagnostic method; the external device 600 is used to receive the target signal-to-noise ratio in real time, and convert it into a cable quality parameter of the connected cable according to the target signal-to-noise ratio.

[0093] In some implementations, after receiving the cable quality parameters of the connected cable, the external device displays the cable quality parameters of the corresponding cable in a graphical manner.

[0094] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0095] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0096] The present application also provides a computer-readable storage medium for storing the computer program used in the above industrial communication device. For example, the computer-readable storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0097] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0099] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0100] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A cable diagnosis method, characterized in that: The cable diagnosis method is applied to industrial communication equipment, comprising: Obtain an initial signal-to-noise ratio according to the attenuation signal and crosstalk signal of the connected cable collected in real time; Calculating the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period; The obtained target signal-to-noise ratio is transmitted to an external device in real time, so that the external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable.

2. The cable diagnosis method according to claim 1, characterized in that: The step of obtaining an initial signal-to-noise ratio according to the attenuation signal and the crosstalk signal of the connected cable collected in real time includes: The attenuation signal and the crosstalk signal of the connected cable collected for a preset number of times are taken as a calculation group, and according to the attenuation signal and the crosstalk signal corresponding to each twisted pair of the connected cable in each calculation group, an effective signal-to-noise ratio of each twisted pair in each calculation group is calculated; The minimum effective signal-to-noise ratio among the effective signal-to-noise ratios of each twisted pair in the connected cable is used as the initial signal-to-noise ratio corresponding to the current calculation group of the connected cable; wherein each calculation group corresponds to one initial signal-to-noise ratio.

3. The cable diagnosis method according to claim 2, characterized in that: The calculating, according to the attenuation signal and the crosstalk signal corresponding to each twisted pair of the connected cables in each calculation group, an effective signal-to-noise ratio of each twisted pair in each calculation group comprises: Calculate a plurality of actual signal-to-noise ratios corresponding to each of the twisted pairs according to the attenuation signal and the crosstalk signal in each of the calculation groups of each of the twisted pairs; An average value is calculated for a plurality of actual signal-to-noise ratios of each twisted pair in each calculation group to obtain an effective signal-to-noise ratio of each twisted pair in the corresponding calculation group.

4. The cable diagnosis method according to claim 1, characterized in that: The calculating the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period includes: When calculating the target signal-to-noise ratio within the current preset time period, taking the first initial signal-to-noise ratio as the first target signal-to-noise ratio; When calculating the next target signal-to-noise ratio, obtaining the current target signal-to-noise ratio according to the previous target signal-to-noise ratio and the current initial signal-to-noise ratio; The last target signal-to-noise ratio calculated within the current preset time period is used as the target signal-to-noise ratio of the current preset time period.

5. The cable diagnosis method according to claim 4, characterized in that: The formula for obtaining the current target signal-to-noise ratio according to the previous target signal-to-noise ratio and the current initial signal-to-noise ratio is: SNR new =0.095×SNR pre +0.005×SNR ini ; SNR in the formula new is the current target signal-to-noise ratio; SNR pre The signal-to-noise ratio of the previous target; SNR ini is the current initial signal-to-noise ratio.

6. The cable diagnosis method according to claim 1, characterized in that: The external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable, including: The external device obtains a cable quality parameter of the connected cable according to the target signal-to-noise ratio and the length of the connected cable.

7. The cable diagnosis method according to claim 6, characterized in that: The formula for obtaining the cable quality parameter of the connected cable according to the target signal-to-noise ratio and the length of the connected cable is: Q=(SNR m +(0.05×L)) / 25. In the formula, Q is the cable quality parameter of the connected cable; SNR m is the target signal-to-noise ratio of the current preset time period; L is the length of the connected cable.

8. An industrial communication device, characterized in that: Including PHY chip and processor; The PHY chip is connected to the cable and is used to collect the attenuation signal and crosstalk signal of the connected cable in real time; The processor is connected to the PHY chip, and is used to receive the attenuation signal and the crosstalk signal of the connected cable in real time, and obtain an initial signal-to-noise ratio in real time according to the attenuation signal and the crosstalk signal received in real time; The processor is further configured to calculate the initial signal-to-noise ratio according to a preset rule to obtain a target signal-to-noise ratio for each preset time period; The processor is further configured to transmit the obtained target signal-to-noise ratio to an external device in real time, so that the external device converts the target signal-to-noise ratio into a cable quality parameter of the connected cable.

9. A cable diagnostic system, characterized in that: include: Industrial communication equipment and peripherals; The industrial communication device is used to execute the cable diagnostic method according to any one of claims 1 to 7; The external device is used to receive the target signal-to-noise ratio in real time, and convert the target signal-to-noise ratio into a cable quality parameter of the connected cable.

10. The cable diagnostic system according to claim 9, characterized in that: After receiving the cable quality parameter of the connected cable, the external device displays the cable quality parameter corresponding to the cable in a graphical manner.