Link fault point positioning method and serial communication link system
By determining the effective communication direction in the serial communication link system and detecting the link edge nodes, and using time domain reflection testing, the problem of rapid and accurate location of link disconnection faults in the existing technology is solved, and the efficiency of fault repair is improved.
Patent Information
- Application Number
- CN202511035437.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-09-16
AI Technical Summary
In serial transceiver communication systems, when a link is disconnected due to external factors, existing technologies rely on manual troubleshooting, which is inefficient and inaccurate, making it difficult to quickly and accurately locate the fault point.
By determining the effective communication direction in the signal transceiver, link edge node detection is performed, and the link breakpoint position is automatically located using time domain reflection testing.
It realizes the rapid and accurate positioning of all link fault points in the serial communication link system, and improves the efficiency of link fault repair.
Smart Images

Figure CN120658576A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication operation and maintenance technology, and in particular to a link fault point locating method and a serial communication link system. Background Art
[0002] With the continuous development of science and technology, the serial transceiver communication system architecture in which a single master device controls multiple slave devices is becoming more and more widely used in various industries (such as industrial automation, data centers, and smart homes). In order to reduce the port resource usage of the master device and the number of signal transmission cables, a daisy chain topology (including linear daisy chain topology and ring daisy chain topology) is usually used to build a serial transceiver communication system.
[0003] However, in the actual use of serial transceiver communication systems, various external factors (such as high temperatures and falling rocks) often cause one or more open circuit faults in the signal transmission cable between any two system components, resulting in a link disconnection in the serial transceiver communication system. Currently, communication operations and maintenance personnel are required to manually troubleshoot each signal transmission cable using specialized measuring instruments. This relies heavily on their personal experience and instrument proficiency, resulting in inefficient troubleshooting and poor fault location accuracy, making link repair inefficient. Summary of the Invention
[0004] In view of this, the purpose of the present application is to provide a link fault point locating method and a serial communication link system, which can enable the signal transceiver device acting as the local link master node device to automatically detect the corresponding local link edge breakpoint position in its own effective communication direction when a link disconnection fault occurs in the serial communication link system, so as to quickly and accurately locate all link fault points of the entire serial communication link system and improve the efficiency of link fault repair.
[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows: In a first aspect, the present application provides a link fault point locating method, which is applied to any one of a plurality of signal transceiver devices in a serial communication link system, wherein a downstream transceiver unit of each of the plurality of signal transceiver devices can be connected to an upstream transceiver unit of another signal transceiver device via a cable; the method comprising: In the case where a link disconnection fault occurs in the serial communication link system and any one of the signal transceiver devices serves as a local link master node device of the serial communication link system, determining an effective communication direction of the signal transceiver device; Perform link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device; A target transceiver unit corresponding to the effective communication direction of the target edge node device is driven to perform a time domain reflection test to obtain an actual link breakpoint position close to the target edge node device in the serial communication link system.
[0006] In an optional embodiment, when any one of the signal transceiver devices includes an upstream transceiver unit corresponding to the upstream communication direction and a downstream transceiver unit corresponding to the downstream communication direction, the step of determining the effective communication direction of the signal transceiver device includes: detecting, based on original link configuration information of the serial communication link system, whether an upstream transceiver unit and a downstream transceiver unit of the signal transceiver device are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device.
[0007] In an optional embodiment, the step of performing link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device includes: For each valid communication direction of the signal transceiver device, detecting whether the signal transceiver unit of the signal transceiver device in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is not currently connected to other signal transceiver devices, directly use the signal transceiver device itself as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0008] In an optional embodiment, the method further comprises: When a link disconnection failure occurs in the serial communication link system, detecting whether any one of the signal transceiver devices belongs to an originally pre-configured master node device in the original link configuration information of the serial communication link system, and detecting whether the signal transceiver device can currently communicate normally with other signal transceiver devices; When it is detected that the signal transceiver device belongs to the original pre-configured master node device and / or it is detected that the signal transceiver device is currently unable to communicate normally with other signal transceiver devices, directly use the signal transceiver device as a local link master node device; When it is detected that the signal transceiver device does not belong to the originally pre-configured master node device and the signal transceiver device can currently communicate normally with other signal transceiver devices, detecting whether the signal transceiver device can currently communicate normally with the originally pre-configured master node device; If it is detected that the signal transceiver device can currently communicate normally with the original pre-configured master node device, it is determined that the signal transceiver device belongs to the link slave node device of the effective communication link where the original pre-configured master node device is located; otherwise, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0009] In a second aspect, the present application provides a link fault point locating method, which is applied to a serial communication link system composed of multiple signal transceiver devices, wherein the downstream transceiver unit of each of the multiple signal transceiver devices can be connected to the upstream transceiver unit of another signal transceiver device through a cable; the method comprises: In the event that a link disconnection failure occurs in the serial communication link system, determining all current local link master node devices of the serial communication link system; For each signal transceiver device serving as a local link master node device, determining an effective communication direction of the signal transceiver device; Perform link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device; A target transceiver unit corresponding to the effective communication direction of the target edge node device is driven to perform a time domain reflection test to obtain an actual link breakpoint position close to the target edge node device in the serial communication link system.
[0010] In an optional embodiment, when any signal transceiver device serving as a local link master node device includes an upstream transceiver unit corresponding to an upstream communication direction and a downstream transceiver unit corresponding to a downstream communication direction, the step of determining the effective communication direction of the signal transceiver device includes: detecting, based on original link configuration information of the serial communication link system, whether an upstream transceiver unit and a downstream transceiver unit of the signal transceiver device are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device.
[0011] In an optional embodiment, for each signal transceiver device serving as a local link master node device, the step of performing link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device includes: For each valid communication direction of the signal transceiver device, detecting whether the signal transceiver unit of the signal transceiver device in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is not currently connected to other signal transceiver devices, directly use the signal transceiver device itself as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0012] In an optional embodiment, the step of determining all current local link master node devices of the serial communication link system includes: For the signal transceiver device as the original pre-configured master node device in the original link configuration information of the serial communication link system, directly use the signal transceiver device as a local link master node device; For each signal transceiver device as an original pre-configured slave node device in the original link configuration information, detecting whether the signal transceiver device can currently communicate normally with other signal transceiver devices; When it is detected that the signal transceiver device is currently unable to communicate normally with other signal transceiver devices, the signal transceiver device is directly used as a local link master node device.
[0013] In an optional embodiment, the step of determining all current local link master node devices of the serial communication link system further includes: When it is detected that the signal transceiver device serving as the original pre-configured slave node device can currently communicate normally with other signal transceiver devices, detecting whether the signal transceiver device can currently communicate normally with the original pre-configured master node device; When it is detected that the signal transceiver device is currently unable to communicate normally with the original pre-configured master node device, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0014] In a third aspect, the present application provides a serial communication link system, the system comprising a plurality of signal transceiver devices, wherein a downstream transceiver unit of each of the plurality of signal transceiver devices can be connected to an upstream transceiver unit of another signal transceiver device via a cable; Any one of the multiple signal transceiver devices may execute the link fault point locating method described in any one of the aforementioned implementations when a link disconnection failure occurs, or cooperate with other signal transceiver devices to execute the link fault point locating method described in any one of the aforementioned implementations.
[0015] In this case, the beneficial effects of the embodiments of the present application may include the following: When a link disconnection failure occurs in a serial communication link system, the present application will determine the effective communication direction of the signal transceiver device currently acting as a local link master node device in the serial communication link system in the upstream communication direction and / or downstream communication direction involved in the signal transceiver device, and then perform link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device, and then drive the target transceiver unit of the target edge node device corresponding to the aforementioned effective communication direction to perform a time domain reflection test to obtain the actual link breakpoint position close to the target edge node device in the serial communication link system (that is, the local link edge breakpoint position of the corresponding local link master node device in its own effective communication direction), and realize the automatic detection function of the link edge breakpoint position of the local link formed due to the link disconnection failure in the serial communication link system, so as to quickly and accurately locate all link failure points of the entire serial communication link system, thereby improving the efficiency of link failure repair.
[0016] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. 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 relevant drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 One of the link configuration diagrams of the serial communication link system provided in an embodiment of the present application; Figure 2 The second link configuration diagram of the serial communication link system provided in an embodiment of the present application; Figure 3 for Figure 1 A link disconnection diagram of a serial communication link system shown; Figure 4 for Figure 2 A link disconnection diagram of a serial communication link system shown; Figure 5 A schematic diagram of a flow chart of a method for locating a first link fault point provided in an embodiment of the present application; Figure 6 for Figure 5 A schematic flow chart of the sub-steps included in step S210; Figure 7 This is a flow chart of a second link fault point location method provided in an embodiment of the present application; Figure 8 This is a second flow chart of the second link fault point locating method provided in an embodiment of the present application.
[0019] Icon: 10-serial communication link system; 11-signal transceiver equipment; TRX1-downstream transceiver unit; TRX2-upstream transceiver unit. DETAILED DESCRIPTION
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.
[0021] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative work are within the scope of protection of the present application.
[0022] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0023] In the description of this application, it should be understood that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, or are the orientation or position relationship in which the product of the application is usually placed when in use, or are the orientation or position relationship commonly understood by those skilled in the art. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.
[0024] It should also be noted that, in the description of this application, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0025] In addition, in the description of the present application, it is understood that relational terms such as the terms "first" and "second" are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also include elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or equipment comprising the elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0026] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0027] Please refer to Figure 1 、 Figure 2 、 Figure 3 and Figure 4 ,in Figure 1 This is one of the link configuration diagrams of the serial communication link system 10 provided in an embodiment of the present application. Figure 2 This is the second link configuration diagram of the serial communication link system 10 provided in an embodiment of the present application. Figure 3 yes Figure 1 The serial communication link system 10 is shown as a link disconnection diagram, Figure 4 yes Figure 2 Schematic diagram of link disconnection of the serial communication link system 10 shown. In the embodiment of the present application, Figure 1 or Figure 2 The serial communication link system 10 shown may include a plurality of signal transceiver devices 11, wherein each of the plurality of signal transceiver devices 11 may include a downstream transceiver unit TRX1 and an upstream transceiver unit TRX2, wherein the downstream transceiver unit TRX1 is responsible for implementing the signal transceiver function of the corresponding signal transceiver device 11 in the downstream communication direction, and the upstream transceiver unit TRX2 is responsible for implementing the signal transceiver function of the corresponding signal transceiver device 11 in the upstream communication direction. The downstream transceiver unit TRX1 of each of the plurality of signal transceiver devices 11 in the same serial communication link system 10 may be connected via a cable (which adopts Figure 1 or Figure 2 (Indicated by the bidirectional thick solid arrow in the figure) is connected to the upstream transceiver unit TRX2 of another signal transceiver device 11.
[0028] In this embodiment, the serial communication link system 10 can use a linear daisy chain topology to construct an original communication link between multiple signal transceiver devices 11 (eg Figure 1 A linear communication link as shown in FIG), or a ring daisy chain topology can be used to construct an original communication link between multiple signal transceiver devices 11 (such as Figure 2 Wherein, whether a linear daisy chain topology or a ring daisy chain topology is adopted, the serial communication link system 10 will select a certain signal transceiver device 11 in its own original link configuration information as the original pre-configured master node device, and the remaining signal transceiver devices 11 will be respectively used as the original pre-configured slave node devices controlled by the original pre-configured master node device (for example, Figure 1 and Figure 2The serial communication link system 10 shown uses the signal transceiver device 11 with device number "M" as the original pre-configured master node device, and uses the signal transceiver devices 11 with device numbers "S1-S5" as the original pre-configured slave node devices). At the same time, the serial communication link system 10 also records in its own original link configuration information the device numbers of other signal transceiver devices to which the signal transceiver units (including the upstream transceiver unit TRX2 and / or the downstream transceiver unit TRX1) of each signal transceiver device 11 are configured to connect (for example, Figure 1 The upstream transceiver unit TRX2 of the signal transceiver device 11 with device number “M” is not configured to connect to other signal transceiver devices, the downstream transceiver unit TRX1 of the signal transceiver device 11 with device number “M” is configured to connect to the signal transceiver device 11 with device number “S1”, the upstream transceiver unit TRX2 of the device number “S5” is configured to connect to the signal transceiver device 11 with device number “S4”, and the downstream transceiver unit TRX1 of the device number “S5” is not configured to connect to other signal transceiver devices; Figure 2 The upstream transceiver unit TRX2 of the signal transceiver device 11 with device number “M” is configured to be connected to the device number “S5”, the downstream transceiver unit TRX1 of the signal transceiver device 11 with device number “M” is configured to be connected to the signal transceiver device 11 with device number “S1”, the upstream transceiver unit TRX2 of the device number “S5” is configured to be connected to the signal transceiver device 11 with device number “S4”, and the downstream transceiver unit TRX1 of the device number “S5” is configured to be connected to the signal transceiver device 11 with device number “M”), so as to represent the specific communication link composition of the corresponding serial communication link system 10 in the normal communication state through the original link configuration information.
[0029] In this process, it can be understood that when the serial communication link system 10 adopts a linear daisy chain topology and wants to implement a linear link unidirectional communication control function, the serial communication link system 10 can select the link end devices (e.g., Figure 1 The signal transceiver device 11 with the device number "M" and the signal transceiver device 11 with the device number "S5" are respectively used as the original provisioning master node device and the original provisioning end node device, so as to use the original provisioning master node device to realize the unidirectional communication control of each original provisioning slave node device (including the original provisioning end node device). At this time, the signal transceiver device 11 as the original provisioning master node device does not need to communicate with other signal transceiver devices 11 in the upstream communication direction, and can be realized by using a communication device including only the downstream transceiver unit TRX1 ( Figure 1Not shown), at the same time, the signal transceiver device 11 as the original provisioning end node device does not need to communicate with other signal transceiver devices 11 in the downstream communication direction, and can be implemented by a communication device including only the upstream transceiver unit TRX2 ( Figure 1 not shown).
[0030] When the serial communication link system 10 adopts a linear daisy chain topology and wants to realize the bidirectional communication control function of the linear link, the serial communication link system 10 can select a signal transceiver device 11 located in the middle of the original communication link as the original pre-configured master node device, so as to use the original pre-configured master node device to realize the bidirectional communication control of each original pre-configured slave node device. At this time, the signal transceiver device 11 as the original pre-configured master node device needs to have both the upstream transceiver unit TRX2 and the downstream transceiver unit TRX1, while the signal transceiver device 11 as the original pre-configured end node device can be realized by using a communication device including only the downstream transceiver unit TRX1 or the upstream transceiver unit TRX2 ( Figure 1 not shown).
[0031] In addition, when the serial communication link system 10 adopts a ring daisy chain topology structure, all signal transceiver devices 11 included in the serial communication link system 10 must also include an upstream transceiver unit TRX2 and a downstream transceiver unit TRX1. The serial communication link system 10 can select a signal transceiver device 11 as the original pre-configured master node device according to the communication control requirements, and configure the actual communication control direction of the original pre-configured master node device to realize the unidirectional communication control function or bidirectional communication control function of the original pre-configured master node device to each original pre-configured slave node device.
[0032] In an embodiment of the present application, the original link configuration information of the serial communication link system 10 can be synchronously stored in each signal transceiver device 11 included in the serial communication link system 10, so that each signal transceiver device 11 clearly knows its own effective communication direction in the serial communication link system 10 based on the original link configuration information. Among them, for any signal transceiver device 11, the effective communication direction of the signal transceiver device 11 is directly associated with the signal transceiver unit (including the downstream transceiver unit TRX1 and / or the upstream transceiver unit TRX2) of the signal transceiver device 11 that is configured to connect to other signal transceiver devices: for example, if a signal transceiver device 11 only has the downstream transceiver unit TRX1 configured to connect to other signal transceiver devices (regardless of whether the signal transceiver device 11 only includes the downstream transceiver unit TRX1 or includes both the downstream transceiver unit TRX1 and the upstream transceiver unit TRX2), then the effective communication direction of the signal transceiver device 11 in the original link configuration information only includes the downstream transceiver unit TRX1. direction; if only the upstream transceiver unit TRX2 of a certain signal transceiver device 11 is configured to connect to other signal transceiver devices (regardless of whether the signal transceiver device 11 includes only the upstream transceiver unit TRX2, or includes both the downstream transceiver unit TRX1 and the upstream transceiver unit TRX2), then the effective communication direction of the signal transceiver device 11 in the original link configuration information only includes the upstream communication direction; and if both the downstream transceiver unit TRX1 and the upstream transceiver unit TRX2 of a certain signal transceiver device 11 are configured to connect to other signal transceiver devices, then the effective communication direction of the signal transceiver device 11 in the original link configuration information includes the upstream communication direction and the downstream communication direction.
[0033] In the embodiment of the present application, whether a linear daisy chain topology or a ring daisy chain topology is used, a link disconnection fault (which uses Figure 3 and Figure 4 The double-headed arrows (indicated by the wavy lines) can occur on the cable between any two signal transceiver devices 11 in the serial communication link system 10. In fact, a single cable often has one or more open circuit fault points, causing the original communication link represented by the serial communication link system 10 to be divided into multiple local links by the random link disconnection fault (for example, Figure 1 The original communication link characterized in Figure 3 is divided into 4 local links (including a local link composed of two signal transceiver devices 11 with device numbers "M" and "S1", a local link composed of two signal transceiver devices 11 with device numbers "S2" and "S3", a local link independently constructed by the signal transceiver device 11 with device number "S4", and a local link independently constructed by the signal transceiver device 11 with device number "S5"). Figure 2 The original communication link characterized in Figure 4 The serial communication link system 10 is divided into three local links (including a local link composed of three signal transceiver devices 11 with device numbers "S5", "M" and "S1", a local link composed of two signal transceiver devices 11 with device numbers "S2" and "S3", and a local link constructed solely by the signal transceiver device 11 with device number "S4"), and since the location of the open circuit fault point has obvious randomness, the multiple local links divided into the serial communication link system 10 often have obvious randomness in the composition of the transceiver devices.
[0034] In this case, each signal transceiver device 11 included in the serial communication link system 10 can be pre-configured with a software function module or hardware circuit module related to the link fault point locating function, and when a link disconnection failure occurs in the serial communication link system 10, and as the main node device of the local link where the signal transceiver device 11 is located (which can temporarily control other signal transceiver devices in the local link), by driving the aforementioned software function module or hardware circuit module to operate, the corresponding local link edge breakpoint position can be automatically detected in the effective communication direction of the signal transceiver device 11, thereby cooperating with other signal transceiver devices or independently to quickly and accurately locate all link fault points of the entire serial communication link system 10, thereby improving the efficiency of link fault repair.
[0035] During this process, it can be understood that the serial communication link system 10 can use an original pre-configured master node device with data processing capabilities as the only local link master node device, so that when the original pre-configured master node device detects a local link edge breakpoint position based on the link fault point locating function, the link fault point is repaired through a fault cable replacement operation (which corresponds to any of the aforementioned local link edge breakpoint positions) to expand the local link range where the original pre-configured master node device is located (in essence, it achieves the effect of merging multiple local links through the fault cable replacement operation), and then by continuously repeating the aforementioned local link edge breakpoint position detection action and fault cable replacement operation, the final link range of the local link where the original pre-configured master node device is located is kept consistent with the original communication link range of the serial communication link system 10, thereby completing the link fault repair operation of the serial communication link system 10 while locating all link fault points of the serial communication link system 10.
[0036] Furthermore, it is also understood that the serial communication link system 10 can be equipped with a local link master node device for each of the multiple local links that have been divided, so that each of the multiple local link master node devices can detect the location of the local link edge breakpoints for the local link in which it is located, thereby quickly and accurately locating all link fault points in the entire serial communication link system 10, thereby improving the efficiency of link fault repair. Specifically, when each of the originally pre-configured slave node devices in the serial communication link system 10 itself has a certain data processing capability, each signal transceiver device 11 in any local link can independently determine the local link master node device through a temporary master node device election operation.
[0037] When the original pre-configured slave node devices in the serial communication link system 10 do not have data processing capabilities or have extremely weak data processing capabilities, the communication operation and maintenance personnel can directly specify the local link master node device of the local link when detecting the specific transceiver device composition of each local link. For example, the communication operation and maintenance personnel may first directly use the original pre-configured master node device as a local link master node device for the local link where the original pre-configured master node device is located, and have the original pre-configured master node device detect the specific transceiver device composition of the local link where it is located. Then, based on the transceiver device composition of the detected local link, select a signal transceiver device 11 that does not belong to the detected local link (which may be a signal transceiver device 11 configured to be connected to the aforementioned detected local link in the original link configuration information) as a local link master node device, and have the signal transceiver device 11 detect the specific transceiver device composition of the local link where it is located. Then, repeat the aforementioned operation of "based on the transceiver device composition of the detected local link, select a signal transceiver device 11 that does not belong to the detected local link as a local link master node device, and have the signal transceiver device 11 detect the specific transceiver device composition of the local link where it is located", so as to determine the specific transceiver device composition of all local links in the serial communication link system 10, as well as the local link master node device corresponding to each local link.
[0038] In the present application, in order to ensure that the serial communication link system 10 can automatically detect the link edge breakpoint positions for multiple local links caused by the link disconnection failure when a link disconnection failure occurs, so as to quickly and accurately locate all link fault points of the entire serial communication link system 10, the embodiment of the present application achieves the aforementioned purpose by providing a first link fault point locating method applied to the above-mentioned serial communication link system 10. The first link fault point locating method provided in the embodiment of the present application is described in detail below.
[0039] Please refer to Figure 5 , Figure 5: is a flow chart of the first link fault point location method provided in the embodiment of the present application. In the embodiment of the present application, Figure 5 The first link fault point locating method shown is applied to the above serial communication link system 10 composed of multiple signal transceiver devices 11. The first link fault point locating method may include steps S210 to S240.
[0040] Step S210 : When a link disconnection failure occurs in the serial communication link system, all current local link master node devices of the serial communication link system are determined.
[0041] In this embodiment, when a link disconnection occurs in the serial communication link system 10, an originally pre-configured master node device with data processing capabilities can be directly designated as the sole local link master node device, or a local link master node device can be assigned to each of the multiple local links into which the serial communication link system 10 is divided. When a local link master node device is required for each of the multiple local links, and each signal transceiver device 11 included in the serial communication link system 10 has a certain data processing capability, each signal transceiver device 11 included in the serial communication link system 10 will, based on the stored original link configuration information, automatically detect other signal transceiver devices that can currently communicate (or establish communication) with the signal transceiver device 11, determine the specific transceiver device composition of the local link to which it belongs based on the corresponding communicative device detection results, and then select a target transceiver device in the corresponding local link that is currently suitable to serve as the temporary master node device, thereby obtaining all the local link master node devices currently in the serial communication link system.
[0042] Alternatively, see Figure 6 , Figure 6 yes Figure 5 Flowchart of the sub-steps included in step S210 in the embodiment of the present application. In an embodiment of the present application, when it is necessary to equip each of the multiple local links that are divided with a local link master node device, and each signal transceiver device 11 included in the serial communication link system 10 has a certain data processing capability, the step of "determining all current local link master node devices of the serial communication link system 10" in step S210 may include sub-steps S211 to S215, so as to utilize the data processing capability of each signal transceiver device 11 to automatically detect the actual local links currently existing in the serial communication link system 10, and perform a temporary master node device election for each local link.
[0043] Sub-step S211 , for the signal transceiver device that is the original pre-configured master node device in the original link configuration information of the serial communication link system, directly use the signal transceiver device as a local link master node device.
[0044] In this embodiment, for the original pre-configured master node device in the original link configuration information, regardless of whether the original pre-configured master node device communicates normally with other original pre-configured slave node devices under the influence of a link disconnection fault, the local link where the original pre-configured master node device is located always belongs to the main link of the serial communication link system 10, and the original pre-configured master node device can be directly used as a local link master node device (for example, Figure 3 and Figure 4 The signal transceiver device 11 with the device number “M” as the original pre-configured master node device in the original link configuration information directly serves as a local link master node device). For each signal transceiver device 11 included in the serial communication link system 10, it can be determined whether it can directly serve as a local link master node device by detecting whether the signal transceiver device 11 belongs to the original pre-configured master node device in the original link configuration information of the serial communication link system 10.
[0045] Sub-step S212: for each signal transceiver device as an original pre-configured slave node device in the original link configuration information, detecting whether the signal transceiver device can currently communicate normally with other signal transceiver devices.
[0046] In this embodiment, when a signal transceiver device 11 does not belong to the original pre-configured master node device in the original link configuration information, it means that the signal transceiver device 11 is an original pre-configured slave node device in the original link configuration information. At this time, it is possible to determine whether the cable used to connect the signal transceiver device 11 to other signal transceiver devices is faulty and whether the signal transceiver device 11 independently constructs a local link by detecting whether the signal transceiver device 11 can currently communicate normally with other signal transceiver devices based on the original link configuration information.
[0047] Sub-step S213: when it is detected that the signal transceiver device is currently unable to communicate normally with other signal transceiver devices, directly use the signal transceiver device as a local link master node device.
[0048] In this embodiment, when the signal transceiver device 11 as the original pre-configured slave node device is currently unable to communicate normally with other signal transceiver devices, it indicates that the cable used to connect the signal transceiver device 11 to other signal transceiver devices has failed, and the signal transceiver device 11 actually independently constructs a local link. At this time, the signal transceiver device 11 will directly serve as a local link master node device (for example, Figure 3 The signal transceiver devices 11 with device numbers "S4" and "S5" are respectively used as a local link master node device. Figure 4The signal transceiver device 11 with device number "S4" directly serves as a local link master node device).
[0049] Sub-step S214, when it is detected that the signal transceiver device as the original pre-configured slave node device can currently communicate normally with other signal transceiver devices, detect whether the signal transceiver device can currently communicate normally with the original pre-configured master node device.
[0050] In this embodiment, when the signal transceiver device 11, which is the original pre-configured slave node device, can currently communicate normally with other signal transceiver devices, it indicates that the cable used to connect the signal transceiver device 11 to other signal transceiver devices has not failed, and the signal transceiver device 11 actually needs to cooperate with other signal transceiver devices to build a local link. At this time, by detecting whether the signal transceiver device 11 can currently communicate normally with the original pre-configured master node device, it can be determined whether the signal transceiver device 11 is currently in the valid communication link (i.e., local link) where the original pre-configured master node device is located, and whether the signal transceiver device 11 currently belongs to the link slave node device of the original pre-configured master node device on the corresponding local link. The valid communication link where the original pre-configured master node device is located is composed of the original pre-configured master node device and all other signal transceiver devices that can communicate normally with the original pre-configured master node device.
[0051] Sub-step S215, when it is detected that the signal transceiver device is currently unable to communicate normally with the originally pre-configured master node device, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located.
[0052] In this embodiment, when a signal transceiver device 11 as an original pre-configured slave node device can currently communicate normally with other signal transceiver devices, but cannot communicate normally with the original pre-configured master node device (for example Figure 3 and Figure 4), it indicates that the signal transceiver device 11 is not currently in the valid communication link where the original pre-configured master node device is located, and the signal transceiver device 11 is not currently a link slave node device of the original pre-configured master node device on the corresponding local link. The signal transceiver device 11 needs to cooperate with other signal transceiver devices that can communicate normally to perform local master node election, so as to determine the local link master node device in the valid communication link where the signal transceiver device 11 is located, wherein the valid communication link where the signal transceiver device 11 is located is composed of the signal transceiver device 11 and all other signal transceiver devices that can communicate normally. Among them, for any valid communication link composed of multiple signal transceiver devices 11, a signal transceiver device 11 whose corresponding link position in the original link configuration information is closest to the original pre-configured master node device can be selected as the local link master node device of the valid communication link (for example, for Figure 3 For a local link composed of two signal transceiver devices 11 with device numbers "S2" and "S3", the signal transceiver device 11 with device number "S2" can be directly selected as a local link master node device).
[0053] When a signal transceiver device 11 serving as the original provisioned slave node device can currently communicate normally with the original provisioned master node device (for example Figure 3 The signal transceiver device 11 with the device number "S1" in the device number, or Figure 4 When there are two signal transceiver devices 11 with device numbers "S1" and "S5" in the original pre-configured master node device, it means that the signal transceiver device 11 is currently in the effective communication link where the original pre-configured master node device is located. The signal transceiver device 11 currently belongs to the link slave node device of the original pre-configured master node device on the corresponding local link. The signal transceiver device 11 cannot serve as the local link master node device of the local link where the original pre-configured master node device is located.
[0054] Therefore, when it is necessary to equip each of the multiple local links divided into the serial communication link system 10 with a local link master node device, and each signal transceiver device 11 included in the serial communication link system 10 has a certain data processing capability, the present application can execute the above-mentioned sub-steps S211 to sub-steps S215, utilize the data processing capability of each signal transceiver device 11, and automatically detect the local links currently actually existing in the serial communication link system 10, and perform a temporary master node device election for each local link to obtain all the current local link master node devices of the serial communication link system 10.
[0055] Step S220: For each signal transceiver device that serves as a local link master node device, determine the effective communication direction of the signal transceiver device.
[0056] In this embodiment, when a signal transceiver device 11 serves as a current local link master node device of the serial communication link system 10, the signal transceiver device 11 can query whether the original link configuration information stored in itself records the device numbers of other signal transceiver devices to which the signal transceiver device 11 is configured to be connected, and then use the device communication direction corresponding to the signal transceiver unit of the signal transceiver device 11 that is configured to be connected to other signal transceiver devices as the effective communication direction of the signal transceiver device 11 in the serial communication link system 10.
[0057] Therefore, for each signal transceiver device 11 serving as a local link master node device, if the signal transceiver device 11 includes an upstream transceiver unit TRX2 and a downstream transceiver unit TRX1, the step of "determining the effective communication direction of the signal transceiver device" may include: According to the original link configuration information of the serial communication link system 10, detecting whether the upstream transceiver unit TRX2 and the downstream transceiver unit TRX1 of the signal transceiver device 11 are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device 11. The device communication direction corresponding to the upstream transceiver unit TRX2 is the upstream communication direction, and the device communication direction corresponding to the downstream transceiver unit TRX1 is the downstream communication direction.
[0058] Step S230 : performing link edge node detection in the effective communication direction of the signal transceiver device to obtain a corresponding target edge node device.
[0059] In this embodiment, when a signal transceiver device 11 serving as a master node device in a local link determines its own effective communication direction, the signal transceiver device 11 will detect the furthest communicable device along the corresponding effective communication link (i.e., the local link where the signal transceiver device 11 is located) and use the furthest communicable device (i.e., the link end device) ultimately detected as the target edge node device for the signal transceiver device 11 in the corresponding effective communication link corresponding to the effective communication direction. For example, Figure 3 The target edge node device corresponding to the downstream communication direction in the corresponding local link of the signal transceiver device 11 with the device number "M" is the signal transceiver device 11 with the device number "S1", and Figure 4The target edge node device corresponding to the downstream communication direction in the corresponding local link of the signal transceiver device 11 with the device number “M” is the signal transceiver device 11 with the device number “S1”. Figure 4 The target edge node device corresponding to the upstream communication direction of the signal transceiver device 11 with the device number “M” in the corresponding local link is the signal transceiver device 11 with the device number “S5”.
[0060] When a signal transceiver device 11 that is a local link master node device does not detect other communicable devices along a certain valid communication direction on the corresponding valid communication link, it means that the signal transceiver device 11 is not actually connected to other signal transceiver devices in the valid communication direction. The target edge node device of the signal transceiver device 11 in the valid communication direction is the signal transceiver device 11 itself. For example, Figure 3 or Figure 4 The target edge node device corresponding to the upstream communication direction in the corresponding local link of the signal transceiver device 11 with the device number “S2” is the signal transceiver device 11 with the device number “S2”; Figure 3 or Figure 4 The target edge node devices corresponding to the upstream communication direction and the downstream communication direction in the corresponding local link of the signal transceiver device 11 with the device number “S4” are both the signal transceiver device 11 with the device number “S4”.
[0061] At this time, for each signal transceiver device 11 serving as a local link master node device, the step of "performing link edge node detection in the effective communication direction of the signal transceiver device 11 to obtain a corresponding target edge node device" may include: For each valid communication direction of the signal transceiver device 11, detecting whether the signal transceiver unit of the signal transceiver device 11 in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device 11 in the effective communication direction is not currently connected to other signal transceiver devices, the signal transceiver device 11 itself is directly used as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device 11 in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device 11 is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device 11 is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0062] Step S240 , driving the target transceiver unit corresponding to the effective communication direction of the target edge node device to perform a time domain reflection test to obtain the actual link breakpoint position close to the target edge node device in the serial communication link system.
[0063] In this embodiment, for each signal transceiver device 11 serving as a local link master node device, when the target edge node device in its own effective communication direction is determined, the signal transceiver device 11 will send a time domain reflectometry (TDR) operation instruction to the target edge node device, thereby driving the target edge node device to call its own target transceiver unit corresponding to the effective communication direction of the signal transceiver device 11 to perform a time domain reflectometry test externally, thereby detecting the actual link breakpoint location near the target edge node device in the local link where the signal transceiver device 11 is located. After completing the link edge breakpoint location detection operation for its own effective communication direction, any signal transceiver device 11 serving as a local link master node device can read the actual link breakpoint location detected by the corresponding target edge node device through normal link communication means, and transmit the read actual link breakpoint location to the inspection terminal device held by the communication operation and maintenance personnel through wired communication or wireless communication for display, so as to assist the communication operation and maintenance personnel in performing link fault repair operations, thereby improving the efficiency of link fault repair.
[0064] by Figure 3 Taking the signal transceiver device 11 with device number "M" in the figure as an example, the effective communication direction of the signal transceiver device 11 only includes the downstream communication direction. When the signal transceiver device 11 serves as a local link master node device, the target edge node device of the signal transceiver device 11 in the downstream communication direction is the signal transceiver device 11 with device number "S1". The signal transceiver device 11 with device number "M" will send a TDR operation instruction to the signal transceiver device 11 with device number "S1" to drive the signal transceiver device 11 with device number "S1" to use its own downstream transceiver unit TRX1 corresponding to the downstream communication direction to perform time domain reflection test externally to measure the actual link breakpoint position close to the signal transceiver device 11 with device number "S1".
[0065] by Figure 3 or Figure 4Taking the signal transceiver device 11 with the device number "S4" in the figure as an example, the effective communication directions of the signal transceiver device 11 include the downstream communication direction and the upstream communication direction. When the signal transceiver device 11 serves as a local link master node device, the target edge node devices of the signal transceiver device 11 in the two effective communication directions are the signal transceiver device 11 itself. Then, the signal transceiver device 11 can issue TDR operation instructions to its own downstream transceiver unit TRX1 and upstream transceiver unit TRX2 respectively, so as to use its own downstream transceiver unit TRX1 and upstream transceiver unit TRX2 to perform time domain reflection tests externally, so as to measure the actual link breakpoint positions that the signal transceiver device 11 is close to in the downstream communication direction and the upstream communication direction respectively.
[0066] In addition, in this embodiment, when the serial communication link system 10 only uses the original pre-configured master node device as the only local link master node device, after the original pre-configured master node device executes the above steps S220 to S240, the link fault point of the local link where the original pre-configured master node device is located can be repaired through a faulty cable replacement operation to expand the local link range where the original pre-configured master node device is located (in essence, the effect of merging multiple local links is achieved through the faulty cable replacement operation). Then, by continuously repeating the above steps S220 to S240 and the faulty cable replacement operation, the final link range of the local link where the original pre-configured master node device is located is kept consistent with the original communication link range of the serial communication link system 10, thereby completing the link fault repair operation of the serial communication link system 10 while locating all link fault points of the serial communication link system 10.
[0067] Therefore, the present application can ensure that when a link disconnection fault occurs in the serial communication link system 10 by executing the above steps S210 to S240, the serial communication link system 10 can realize the automatic detection function of the link edge breakpoint position for multiple local links formed due to the link disconnection fault, so as to quickly and accurately locate all link fault points of the entire serial communication link system 10, thereby improving the efficiency of link fault repair.
[0068] In the present application, in order to ensure that the signal transceiver device 11 acting as a local link master node device in the serial communication link system 10 can independently detect the corresponding local link edge breakpoint position in its own effective communication direction, so as to cooperate with other signal transceiver devices or independently quickly and accurately locate all link fault points of the entire serial communication link system 10, the embodiment of the present application achieves the above-mentioned purpose by providing a second link fault point locating method applied to a single signal transceiver device 11 in the above-mentioned serial communication link system 10. The second link fault point locating method provided in the embodiment of the present application is described in detail below.
[0069] Please refer to Figure 7 , Figure 7 This is one of the flow charts of the second link fault point location method provided in the embodiment of the present application. In the embodiment of the present application, Figure 7 The second link fault point locating method shown is applied to the single signal transceiver device 11 used to act as a local link master node device included in the above-mentioned serial communication link system 10. The second link fault point locating method may include steps S310 to S330.
[0070] Step S310: When a link disconnection failure occurs in the serial communication link system and any one of the signal transceiver devices serves as a local link master node device of the serial communication link system, determine the effective communication direction of the signal transceiver device.
[0071] In this embodiment, when a signal transceiver device 11 (i.e., any of the signal transceiver devices 11 described above) serves as a local link master node device in the serial communication link system 10, the signal transceiver device 11 may refer to the detailed description of step S220 above to determine its own valid communication direction composition in the serial communication link system 10. Specifically, when the signal transceiver device 11 serving as the local link master node device includes an upstream transceiver unit TRX2 and a downstream transceiver unit TRX1, the step of "determining the valid communication direction of the signal transceiver device 11" may include: According to the original link configuration information of the serial communication link system 10, detecting whether the upstream transceiver unit TRX2 and the downstream transceiver unit TRX1 of the signal transceiver device 11 are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device 11. The device communication direction corresponding to the upstream transceiver unit TRX2 is the upstream communication direction, and the device communication direction corresponding to the downstream transceiver unit TRX1 is the downstream communication direction.
[0072] Step S320: perform link edge node detection in the effective communication direction of the signal transceiver device to obtain a corresponding target edge node device.
[0073] In this embodiment, after a signal transceiver device 11 serving as a master node in a local link determines its own effective communication direction, the signal transceiver device 11 will, with reference to the detailed description of step S220 above, detect target edge node devices in its local link (i.e., the effective communication link) distributed along the effective communication direction of the signal transceiver device 11. For each signal transceiver device 11 serving as a master node in the local link, the step of "performing link edge node detection in the effective communication direction of the signal transceiver device 11 to obtain the corresponding target edge node device" may include: For each valid communication direction of the signal transceiver device 11, detecting whether the signal transceiver unit of the signal transceiver device 11 in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device 11 in the effective communication direction is not currently connected to other signal transceiver devices, the signal transceiver device 11 itself is directly used as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device 11 in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device 11 is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device 11 is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0074] Step S330 : driving the target transceiver unit corresponding to the effective communication direction of the target edge node device to perform a time domain reflection test to obtain the actual link breakpoint position close to the target edge node device in the serial communication link system.
[0075] In this embodiment, when the target edge node device in the effective communication direction of the signal transceiver device 11 serving as the main node device of the local link is determined, the signal transceiver device 11 can refer to the detailed description of step S240 above to drive its corresponding target edge node device to call the target transceiver unit to perform a time domain reflection test to detect the actual link breakpoint position close to the target edge node device in the local link where the signal transceiver device 11 is located. Among them, when the signal transceiver device 11 is the only local link master node device in the serial communication link system 10, after the signal transceiver device 11 (i.e., the original pre-configured master node device) executes the above steps S220 to S240, the link fault point of the local link where the signal transceiver device 11 is located can be repaired through a faulty cable replacement operation to expand the local link range where the signal transceiver device 11 is located (in essence, the effect of merging multiple local links is achieved through the faulty cable replacement operation). Then, by repeatedly driving the signal transceiver device 11 to execute the above steps S220 to S240 and coordinating with the continuously executed faulty cable replacement operation, the final link range of the local link where the signal transceiver device 11 is located is kept consistent with the original communication link range of the serial communication link system 10, thereby completing the link fault repair operation of the serial communication link system 10 while locating all link fault points of the serial communication link system 10.
[0076] Therefore, the present application can ensure that the signal transceiver device 11 acting as the local link master node device can detect the corresponding local link edge breakpoint position in its own effective communication direction by executing the above steps S310 to S330, so as to cooperate with other signal transceiver devices or independently quickly and accurately locate all link fault points of the entire serial communication link system 10, thereby improving the efficiency of link fault repair.
[0077] Alternatively, see Figure 8 , Figure 8 This is the second flow chart of the second link fault point location method provided in the embodiment of the present application. Figure 7 Compared with the second link fault point location method shown in FIG, Figure 8 The second link fault point locating method shown may further include steps S410 to S450, so as to ensure that each signal transceiver device 11 can detect by itself whether it can serve as a local link master node device in the serial communication link system 10 when it is necessary to equip the serial communication link system 10 with multiple local link master node devices and each signal transceiver device 11 included in the serial communication link system 10 has a certain data processing capability, thereby quickly detecting the various local links that currently actually exist in the serial communication link system 10.
[0078] Step S410: When a link disconnection failure occurs in the serial communication link system, it is detected whether the signal transceiver device belongs to the original pre-configured master node device in the original link configuration information of the serial communication link system, and whether the signal transceiver device can currently communicate normally with other signal transceiver devices.
[0079] Step S420: When it is detected that the signal transceiver device belongs to the original pre-configured master node device and / or it is detected that the signal transceiver device cannot currently communicate normally with other signal transceiver devices, the signal transceiver device is directly used as a local link master node device.
[0080] Step S430: When it is detected that the signal transceiver device does not belong to the originally pre-configured master node device and the signal transceiver device can currently communicate normally with other signal transceiver devices, it is detected whether the signal transceiver device can currently communicate normally with the originally pre-configured master node device.
[0081] Step S440: If it is detected that the signal transceiver device can currently communicate normally with the originally provisioned master node device, it is determined that the signal transceiver device belongs to a link slave node device of the valid communication link where the originally provisioned master node device is located.
[0082] Step S450: If it is detected that the signal transceiver device is currently unable to communicate normally with the original pre-configured master node device, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
[0083] In this embodiment, the detailed steps of steps S410 to S450 can be referred to the detailed description of sub-steps S211 to S215 above, and will not be repeated here.
[0084] Therefore, when it is necessary to equip the serial communication link system 10 with multiple local link master node devices and each signal transceiver device 11 included in the serial communication link system 10 has a certain data processing capability, the present application can ensure that each signal transceiver device 11 can detect whether it can act as a local link master node device in the serial communication link system 10 by executing the above steps S410 to S450, thereby quickly detecting the various local links that currently actually exist in the serial communication link system 10.
[0085] In the embodiments provided in this 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 block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the 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 the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that 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 block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0086] The above are merely various embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A link fault point location method, characterized in that: The method is applied to any one of a plurality of signal transceiver devices in a serial communication link system, wherein a downstream transceiver unit of each of the plurality of signal transceiver devices can be connected to an upstream transceiver unit of another signal transceiver device via a cable; the method comprises: In the case where a link disconnection fault occurs in the serial communication link system and any one of the signal transceiver devices serves as a local link master node device of the serial communication link system, determining an effective communication direction of the signal transceiver device; Perform link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device; A target transceiver unit corresponding to the effective communication direction of the target edge node device is driven to perform a time domain reflection test to obtain an actual link breakpoint position close to the target edge node device in the serial communication link system.
2. The method according to claim 1, characterized in that When any one of the signal transceiver devices includes an upstream transceiver unit corresponding to the upstream communication direction and a downstream transceiver unit corresponding to the downstream communication direction, the step of determining the effective communication direction of the signal transceiver device includes: detecting, based on original link configuration information of the serial communication link system, whether an upstream transceiver unit and a downstream transceiver unit of the signal transceiver device are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device.
3. The method according to claim 1, characterized in that The step of performing link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device includes: For each valid communication direction of the signal transceiver device, detecting whether the signal transceiver unit of the signal transceiver device in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is not currently connected to other signal transceiver devices, directly use the signal transceiver device itself as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: When a link disconnection failure occurs in the serial communication link system, detecting whether any one of the signal transceiver devices belongs to an originally pre-configured master node device in the original link configuration information of the serial communication link system, and detecting whether the signal transceiver device can currently communicate normally with other signal transceiver devices; When it is detected that the signal transceiver device belongs to the original pre-configured master node device and / or it is detected that the signal transceiver device is currently unable to communicate normally with other signal transceiver devices, directly use the signal transceiver device as a local link master node device; When it is detected that the signal transceiver device does not belong to the originally pre-configured master node device and the signal transceiver device can currently communicate normally with other signal transceiver devices, detecting whether the signal transceiver device can currently communicate normally with the originally pre-configured master node device; If it is detected that the signal transceiver device can currently communicate normally with the original pre-configured master node device, it is determined that the signal transceiver device belongs to the link slave node device of the effective communication link where the original pre-configured master node device is located; otherwise, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
5. A link fault point location method, characterized in that: The method is applied to a serial communication link system composed of multiple signal transceiver devices, wherein the downstream transceiver unit of each of the multiple signal transceiver devices can be connected to the upstream transceiver unit of another signal transceiver device via a cable; the method comprises: In the event that a link disconnection failure occurs in the serial communication link system, determining all current local link master node devices of the serial communication link system; For each signal transceiver device serving as a local link master node device, determining an effective communication direction of the signal transceiver device; Perform link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device; A target transceiver unit corresponding to the effective communication direction of the target edge node device is driven to perform a time domain reflection test to obtain an actual link breakpoint position close to the target edge node device in the serial communication link system.
6. The method according to claim 5, characterized in that When any signal transceiver device serving as a local link master node device includes an upstream transceiver unit corresponding to an upstream communication direction and a downstream transceiver unit corresponding to a downstream communication direction, the step of determining the effective communication direction of the signal transceiver device includes: detecting, based on original link configuration information of the serial communication link system, whether an upstream transceiver unit and a downstream transceiver unit of the signal transceiver device are each configured to connect to other signal transceiver devices; The device communication direction corresponding to the signal transceiver unit configured to connect to other signal transceiver devices is used as the effective communication direction of the signal transceiver device.
7. The method according to claim 5, characterized in that For each signal transceiver device that serves as a local link master node device, the step of performing link edge node detection in the effective communication direction of the signal transceiver device to obtain the corresponding target edge node device includes: For each valid communication direction of the signal transceiver device, detecting whether the signal transceiver unit of the signal transceiver device in the valid communication direction is currently connected to other signal transceiver devices; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is not currently connected to other signal transceiver devices, directly use the signal transceiver device itself as the target edge node device associated with the effective communication direction; If it is detected that the signal transceiver unit of the signal transceiver device in the effective communication direction is currently connected to other signal transceiver devices, the link end device along the effective communication direction in the effective communication link where the signal transceiver device is located is used as the target edge node device associated with the effective communication direction, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
8. The method according to any one of claims 5 to 7, characterized in that: The step of determining all current local link master node devices of the serial communication link system comprises: For the signal transceiver device as the original pre-configured master node device in the original link configuration information of the serial communication link system, directly use the signal transceiver device as a local link master node device; For each signal transceiver device as an original pre-configured slave node device in the original link configuration information, detecting whether the signal transceiver device can currently communicate normally with other signal transceiver devices; When it is detected that the signal transceiver device is currently unable to communicate normally with other signal transceiver devices, the signal transceiver device is directly used as a local link master node device.
9. The method according to claim 8, characterized in that The step of determining all current local link master node devices of the serial communication link system further includes: When it is detected that the signal transceiver device serving as the original pre-configured slave node device can currently communicate normally with other signal transceiver devices, detecting whether the signal transceiver device can currently communicate normally with the original pre-configured master node device; When it is detected that the signal transceiver device is currently unable to communicate normally with the original pre-configured master node device, a local master node election is performed on the effective communication link where the signal transceiver device is located to obtain the local link master node device in the effective communication link where the signal transceiver device is located, wherein the effective communication link where the signal transceiver device is located is composed of the signal transceiver device and all other signal transceiver devices with which it can communicate normally.
10. A serial communication link system, characterized in that: The system is composed of a plurality of signal transceiver devices, wherein the downstream transceiver unit of each of the plurality of signal transceiver devices can be connected to the upstream transceiver unit of another signal transceiver device via a cable; Any one of the multiple signal transceiver devices can execute the link fault point locating method described in any one of claims 1-4 when a link disconnection failure occurs in the system, or cooperate with other signal transceiver devices to execute the link fault point locating method described in any one of claims 5-9.