Time delay compensation method, device and equipment of optical fiber transmission system and medium

By calculating the delay compensation value in the optical fiber transmission system, the time delay compensation for the remote machine is solved, and the communication interference problem caused by inconsistent delay of the remote machine is improved, and the communication rate and user experience are improved.

CN119996874APending Publication Date: 2025-05-13FUJIAN JINGAO COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510010622.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In fiber optic communication systems, inconsistent delays of remote machines will lead to communication interference, reduce communication speed and affect user experience.

Method used

By calculating the delay compensation value in the optical fiber transmission system, the remote machine is subject to delay compensation, and the synchronization of wireless signals in all remote coverage areas is achieved. The method includes obtaining the total delay value of each connected optical remote unit, comparing and calculating the delay compensation value, and sending it to the corresponding optical remote unit for compensation.

Benefits of technology

The synchronization of wireless signals in the remote coverage area is realized, the communication rate and user experience are improved, and communication interference caused by inconsistent delays is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996874A_ABST
    Figure CN119996874A_ABST
Patent Text Reader

Abstract

The invention discloses a time delay compensation method and device for an optical fiber transmission system, and the method comprises the steps: obtaining a total time delay value corresponding to each first main port connected with an optical remote unit; comparing the total time delay values to obtain a maximum total time delay value; subtracting each of the remaining total time delay values from the maximum total time delay value in sequence to obtain a corresponding time delay compensation value, and sending the time delay compensation value to each corresponding optical remote unit; judging whether each optical far-end unit connected with the first main port corresponding to each other total time delay value has a connected next-level optical far-end unit or not; if not, adopting the received time delay compensation value to carry out time delay compensation; if yes, obtaining a time delay value from the optical remote unit to the last stage of optical remote unit, and adding the time delay value with the received time delay compensation value to obtain a final time delay compensation value for time delay compensation; therefore, wireless signal synchronization of all far-end coverage areas can be realized, so that the communication rate and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical fiber communication technology, and in particular to a delay compensation method, device, equipment and medium for an optical fiber transmission system. Background Art

[0002] With the continuous development of communication technology, from the earliest 2G, 3G to the current 4G, 5G, and the 6G that is being developed, the communication rate is getting faster and faster, the bandwidth requirements are getting wider and wider, and people's requirements for communication quality are also constantly improving; the application of optical module units (OMU) and optical remote units (ORU) as near-end and remote units can achieve better coverage of base station signals; with the large-scale application of remote units, if the delay of the overlapping coverage area of ​​the remote units is inconsistent, it will interfere with the communication, reduce the communication rate, and seriously affect the user experience. For example, in the application of TDD signals, if the delay is inconsistent, the uplink and downlink switches of the two remote units are inconsistent, and the downlink output signal of one remote unit may be received by the uplink of another remote unit, which seriously affects the communication and may even interfere with the base station. Therefore, it is very necessary to compensate the delay of the remote units and realize the synchronization of wireless signals in all remote coverage areas. Summary of the invention

[0003] The present application aims to solve at least one of the technical problems in the above-mentioned technology to a certain extent. To this end, one purpose of the present application is to propose a delay compensation method for an optical fiber transmission system, which can achieve wireless signal synchronization in all remote coverage areas by calculating the optical fiber delay compensation value to compensate for the delay of the remote machine, thereby improving the communication rate and user experience.

[0004] To achieve the above-mentioned purpose, the first aspect of the present application proposes a delay compensation method for an optical fiber transmission system, wherein the optical fiber transmission system includes an optical module unit and at least one optical remote unit, wherein the optical module unit is provided with at least one first main port, wherein the optical remote unit is provided with a second main port and a slave port, wherein the optical remote unit is connected to the first main port on the optical module unit via the slave port, or is connected to the first main port on the optical module unit after the second main port and the slave port of another optical remote unit are cascaded, wherein the delay compensation method includes the following steps: obtaining a total delay value corresponding to each first main port connected to the optical remote unit; comparing the size of each total delay value to obtain a maximum total delay value; and The maximum total delay value is subtracted from each of the remaining total delay values ​​in turn to obtain the delay compensation value of the first main port corresponding to each of the remaining total delay values, and the delay compensation value is sent to each optical remote unit connected to the corresponding first main port; it is determined whether there is a next-level optical remote unit connected to each of the optical remote units connected to the first main port corresponding to each of the remaining total delay values; if there is no next-level optical remote unit connected, the received delay compensation value is used for delay compensation; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is added to the received delay compensation value to obtain a final delay compensation value, and the final delay compensation value is used for delay compensation.

[0005] According to the above-mentioned technical means, the embodiments of the present application take into account various connection relationships of communication devices, calculate corresponding compensation values ​​according to different connection relationships, and perform corresponding delay compensation according to the calculated corresponding compensation values. Thus, wireless signal synchronization of all remote coverage areas can be achieved, thereby improving communication rate and user experience.

[0006] In addition, the delay compensation method of the optical fiber transmission system proposed in the above embodiment of the present application may also have the following additional technical features:

[0007] Further, the optical module unit obtains a total delay value corresponding to each first main port connected to an optical remote unit, including: obtaining the optical fiber transmission delay value from the main port to the slave port at each level; obtaining a first delay value corresponding to each first main port of the optical module unit to the next-level optical remote unit and a second delay value sent by the next-level optical remote unit to the last-level optical remote unit according to the optical fiber transmission delay value; and adding the first delay value and the second delay value to obtain the total delay value corresponding to the first main port.

[0008] Furthermore, the optical fiber transmission delay value from the master port to the slave port at each level is obtained, including: the master port sends a frame trigger signal and a frame number flag to the slave port, and starts counting; if the master port receives the frame trigger signal and frame number flag returned by the slave port, the sent frame number flag and the received frame number flag are compared; if they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

[0009] Furthermore, it also includes judging whether there is a next-level optical remote unit connected to each optical remote unit connected under the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used for delay compensation.

[0010] A second aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the delay compensation method for the optical fiber transmission system as described in the above embodiment.

[0011] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the delay compensation method for the optical fiber transmission system as described in the above embodiment.

[0012] In a fourth aspect, an embodiment of the present application provides a delay compensation device for an optical fiber transmission system, the optical fiber transmission system comprising an optical module unit and at least one optical remote unit, the optical module unit being provided with at least one first main port, the optical remote unit being provided with a second main port and a slave port, the optical remote unit being connected to the first main port on the optical module unit via the slave port, or being connected to the first main port on the optical module unit after cascading the second main port and the slave port of another optical remote unit, the delay compensation device comprising: an acquisition module for acquiring a total delay value corresponding to each first main port connected to the optical remote unit; a comparison module for comparing the size of each total delay value to obtain a maximum total delay value; and a calculation module for converting the total delay value into a total delay value. The maximum total delay value is subtracted from each of the remaining total delay values ​​in turn to obtain a delay compensation value of the first main port corresponding to each of the remaining total delay values, and the delay compensation value is sent to each optical remote unit connected to the corresponding first main port; a judgment module is used to judge whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to each of the remaining total delay values; if there is no next-level optical remote unit connected, the received delay compensation value is used for delay compensation; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is added to the received delay compensation value to obtain a final delay compensation value, and the final delay compensation value is used for delay compensation.

[0013] In addition, the delay compensation device of the optical fiber transmission system proposed in the above embodiment of the present application may also have the following additional technical features:

[0014] Furthermore, the acquisition module is also used to obtain the optical fiber transmission delay value from the main port to the slave port at each level; obtain the first delay value corresponding to each first main port of the optical module unit to the next-level optical remote unit and the second delay value sent by the next-level optical remote unit to the last-level optical remote unit according to the optical fiber transmission delay value; add the first delay value and the second delay value to obtain the total delay value corresponding to the first main port.

[0015] Furthermore, the acquisition module is also used for the master port to send a frame trigger signal and a frame number flag to the slave port and start counting; if the master port receives the frame trigger signal and the frame number flag returned by the slave port, the sent frame number flag and the received frame number flag are compared; if they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

[0016] Furthermore, it also includes judging whether there is a next-level optical remote unit connected to each optical remote unit connected under the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used for delay compensation.

[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a process of a delay compensation method for an optical fiber transmission system according to an embodiment of the present application;

[0019] Figure 2 A schematic diagram of the connection structure of an optical fiber transmission system according to an embodiment of the present application;

[0020] Figure 3 A schematic diagram of a specific process of calculating the transmission delay of a single optical fiber at a primary port according to an embodiment of the present application;

[0021] Figure 4 A schematic diagram of a specific process of calculating a slave port in a single optical fiber transmission delay according to an embodiment of the present application;

[0022] Figure 5 A schematic diagram of a specific process of an optical module unit in delay compensation according to an embodiment of the present application;

[0023] Figure 6 A schematic diagram of a specific process of an optical remote unit in delay compensation according to an embodiment of the present application;

[0024] Figure 7 4 is a block diagram of a delay compensation device for an optical fiber transmission system according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0026] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0027] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0028] When multiple first main ports of a near-end machine are connected to multiple remote-end devices through optical fibers of different lengths, or multiple remote-end machines are cascaded, it is necessary to perform delay compensation on the remote machines to avoid interference to communication caused by inconsistent overlapping coverage delays; this application mainly uses the remote machine difference compensation method to achieve delay compensation.

[0029] See also Figure 1 , Figure 1 The present invention is a flow chart of a delay compensation method for an optical fiber transmission system according to an embodiment of the present application. The optical fiber transmission system includes an optical module unit and at least one optical remote unit. The optical module unit is provided with at least one first main port. The optical remote unit is provided with a second main port and a slave port. The optical remote unit is connected to the first main port on the optical module unit through the slave port, or is connected to the first main port on the optical module unit after the second main port and the slave port of another optical remote unit are cascaded. Figure 1 As shown, the delay compensation method of the optical fiber transmission system includes the following steps:

[0030] S101, obtaining a total delay value corresponding to each first main port connected to an optical remote unit.

[0031] S102: Compare the total delay values ​​to obtain the maximum total delay value.

[0032] S103, subtracting each of the remaining total delay values ​​from the maximum total delay value in turn to obtain a delay compensation value of each of the remaining total delay values ​​corresponding to the first main port, and sending the delay compensation value to each optical remote unit connected to the corresponding first main port.

[0033] That is to say, the optical module unit calculates the total delay from each of the first main ports connected to the optical remote unit to the connected last-level optical remote unit, finds the maximum value by comparing the total delay of the first main port, calculates the difference of each first main port, and transmits this difference to the optical remote unit through the optical fiber for delay compensation.

[0034] S104, determining whether each optical remote unit connected to the first main port corresponding to each of the remaining total delay values ​​has a next-level optical remote unit connected thereto.

[0035] S105: If there is no next-stage optical remote unit connected, the received delay compensation value is used to perform delay compensation.

[0036] S106, if there is a next-stage optical remote unit connected, obtain the delay value from the optical remote unit to the last stage optical remote unit, add it to the received delay compensation value to obtain a final delay compensation value, and use the final delay compensation value for delay compensation.

[0037] That is to say, the last-stage optical remote unit directly compensates through the received delay compensation value. If there is a cascaded optical remote unit in the next stage, the optical remote unit will add the delay compensation value sent by the optical module unit received from the port and the delay value from itself to the last-stage optical remote unit to obtain the final delay compensation value, and then perform delay compensation through the data fifo.

[0038] As an embodiment, the optical module unit obtains the total delay value corresponding to each first main port connected to the optical remote unit, including: obtaining the optical fiber transmission delay value from the main port to the slave port at each level; obtaining the first delay value corresponding to each first main port of the optical module unit to the next-level optical remote unit and the second delay value sent by the next-level optical remote unit to the last-level optical remote unit according to the optical fiber transmission delay value; adding the first delay value and the second delay value to obtain the total delay value corresponding to the first main port.

[0039] It should be noted that, first, it is necessary to detect and calculate the delay of optical fiber transmission from the main port (master port) to the slave port (slave port) at each level; then, each level of optical remote unit needs to detect and calculate the delay value from itself to the last level of optical remote unit in the cascade, and transmit it to the optical remote unit or optical module unit of the previous level through a custom data field, and so on, so that the last optical module unit can obtain the first delay value corresponding to each first main port of the optical module unit to the next level optical remote unit and the second delay value sent by the next level optical remote unit to the last level optical remote unit according to the optical fiber transmission delay value to calculate the total delay value corresponding to the first main port.

[0040] As an embodiment, the optical fiber transmission delay value from the master port to the slave port at each level is obtained, including: the master port sends a frame trigger signal and a frame number flag to the slave port, and starts counting; if the master port receives the frame trigger signal and the frame number flag returned by the slave port, the sent frame number flag and the received frame number flag are compared; if they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

[0041] That is to say, the delay of each level of optical fiber transmission from the master port to the slave port can be detected and calculated by sending a frame trigger signal and a frame number mark.

[0042] As an embodiment, the delay compensation method of the optical fiber transmission system also includes determining whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used to perform delay compensation.

[0043] In order to better understand the above solution, this application also proposes a specific embodiment, such as Figure 2 The connection structure diagram of the optical fiber transmission system shown in the figure includes an optical module unit OMU and three optical remote units: a first optical remote unit ORU1, a second optical remote unit ORU2, and a third optical remote unit ORU3, wherein the first optical remote unit ORU1 is connected to the M0 port of the optical module unit OMU through a slave port, the first optical remote unit ORU1 is connected to the slave port of the second optical remote unit ORU2 through its own master port, and the third optical remote unit ORU3 is connected to the M3 port of the optical module unit OMU through a slave port. It is assumed that the delay from the M0 port to the S port of ORU1 is T1, the delay from ORU1 to ORU2 is T2, and the delay from the M3 port of the OMU to the S port of ORU3 is T3.

[0044] Since the delay compensation mechanism requires the delay from OMU to ORU1, ORU2, and ORU3 to be consistent, the delay obtained by detection and calculation of the M0 port of the OMU is T(M0) = T1 + T2; since the M3 port of the OMU has only one level, the delay value is T(M3) = T3. If the delay of T(M0) is greater than the delay of T(M3), the delay that ORU1 needs to compensate is T2; the delay that ORU2 needs to compensate is 0; the delay that ORU3 needs to compensate is T(M0)-T(M3); if the delay of T(M0) is less than the delay of T(M3), the delay that ORU1 needs to compensate is T(M3)-T(M0)+T2; the delay that ORU2 needs to compensate is T(M3)-T(M0); the delay that ORU3 needs to compensate is 0.

[0045] As a specific example, Figure 3-4As shown in the figure, it describes how to calculate the delay of an optical fiber from the master end to the slave end; the master port of the near-end OMU or the remote ORU sends a frame trigger signal (for example, pulling up several high levels for 10ms) and a frame number mark (accumulated data of the frame) to the slave port of the remote machine and starts counting. The slave port of the remote ORU will return the received frame trigger signal and frame number mark to the master port. If the master port receives the frame trigger signal, it will compare the sent frame number mark with the received frame number mark. If they are equal, it will stop counting. The count value divided by 2 is equal to the delay of the first-level optical fiber transmission.

[0046] As a specific example, Figure 5-6 As shown in the figure, it describes the flowchart of the specific design of delay compensation. The near-end OMU adds the delay detected by the master port to the next-level remote machine and the delay value sent by the remote machine to the last-level ORU to obtain the total delay from the OMU to the last-level ORU. The maximum value is found by comparing the total delay of each port, and the difference of each port is calculated. This difference is transmitted to the remote ORU through optical fiber for delay compensation.

[0047] If there are cascaded ORUs, the ORU will add the delay value detected by the master port and the delay detected by the next-level remote machine received by the master port to obtain the delay from the current ORU to the last ORU, and then transmit it to the previous ORU or OMU through a custom data field. Then add the delay value and the delay compensation difference value sent by the proximal machine or the previous ORU received by the salve port to obtain the final compensation value, which is then compensated by the delay compensation module FIFO or RAM, etc.

[0048] If it is the last-stage remote ORU, the received delay compensation value is the final compensation value, which is compensated through the delay compensation module FIFO or RAM, etc.

[0049] In summary, the delay compensation method of the optical fiber transmission system according to the embodiment of the present application aims to achieve synchronization of wireless signals in the remote coverage area to avoid interference to communication caused by inconsistent overlapping coverage delays; the method detects and calculates the delay of each level of optical fiber transmission, uses a custom data field to transmit the delay value, and calculates the total delay from each main port to the last level of remote machine connected at the near-end machine, finds the maximum value and calculates the difference, and then transmits the difference to the corresponding remote machine for compensation; finally, accurate delay compensation is achieved through delay compensation modules such as data FIFO to improve communication efficiency and user experience.

[0050] In addition, an embodiment of the present application also provides a computer-readable storage medium on which a delay compensation program for an optical fiber transmission system is stored, characterized in that the delay compensation program for the optical fiber transmission system is executed by a processor to implement the delay compensation method for the optical fiber transmission system as described above.

[0051] In addition, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a delay compensation program for an optical fiber transmission system stored in the memory and executable on the processor, wherein the processor executes the delay compensation program for the optical fiber transmission system to implement the delay compensation method for the optical fiber transmission system as described above.

[0052] In order to implement the above embodiment, the embodiment of the present application proposes a delay compensation device for an optical fiber transmission system, such as Figure 7 As shown, the delay compensation device of the optical fiber transmission system proposed in the present application includes: an acquisition module 10, a comparison module 20, a calculation module 30 and a judgment module 40.

[0053] Among them, the acquisition module 10 is used to obtain the total delay value corresponding to each first main port of the optical module unit connected to the optical remote unit; the comparison module 20 is used to compare the size of each total delay value to obtain the maximum total delay value; the calculation module 30 is used to subtract each of the remaining total delay values ​​from the maximum total delay value in turn to obtain the delay compensation value of the first main port corresponding to each of the remaining total delay values, and send it to each optical remote unit connected to the corresponding first main port; the judgment module 40 is used to judge whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to each of the remaining total delay values; if there is no next-level optical remote unit connected, the received delay compensation value is used for delay compensation; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is added to the received delay compensation value to obtain the final delay compensation value, and the final delay compensation value is used for delay compensation.

[0054] As an embodiment, the acquisition module 10 is also used to obtain the optical fiber transmission delay value from the main port to the slave port at each level; according to the optical fiber transmission delay value, the first delay value corresponding to each first main port of the optical module unit to the next-level optical remote unit and the second delay value sent by the next-level optical remote unit to the last-level optical remote unit are obtained; the first delay value and the second delay value are added to obtain the total delay value corresponding to the first main port.

[0055] As an embodiment, the acquisition module 10 is also used to send a frame trigger signal and a frame number flag to the slave port through the master port and start counting; if the master port receives the frame trigger signal and the frame number flag returned by the slave port, the sent frame number flag and the received frame number flag are compared; if they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

[0056] As an embodiment, the delay compensation device of the optical fiber transmission system also includes judging whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used to perform delay compensation.

[0057] It should be noted that the above explanation of the embodiment of the delay compensation method for the optical fiber transmission system is also applicable to the delay compensation device for the optical fiber transmission system of this embodiment, and will not be repeated here.

[0058] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0059] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0060] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0061] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0062] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0063] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0064] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0065] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A delay compensation method for an optical fiber transmission system, characterized in that: The optical fiber transmission system comprises an optical module unit and at least one optical remote unit, wherein the optical module unit is provided with at least one first main port, the optical remote unit is provided with a second main port and a slave port, the optical remote unit is connected to the first main port on the optical module unit through the slave port, or is connected to the first main port on the optical module unit after the second main port and the slave port of another optical remote unit are cascaded, and the delay compensation method comprises the following steps: Obtaining a total delay value corresponding to each first main port connected to an optical remote unit; Compare the total delay values ​​to obtain the maximum total delay value; Subtracting each of the remaining total delay values ​​from the maximum total delay value in turn to obtain a delay compensation value of the first main port corresponding to each of the remaining total delay values, and sending the delay compensation value to each optical remote unit connected to the corresponding first main port; Determine whether each optical remote unit connected to the first main port corresponding to each of the remaining total delay values ​​has a next-level optical remote unit connected thereto; If there is no next-stage optical remote unit connected, use the received delay compensation value to perform delay compensation; If there is a next-stage optical remote unit connected, the delay value from the optical remote unit to the last stage optical remote unit is obtained, and it is added to the received delay compensation value to obtain a final delay compensation value, and the final delay compensation value is used for delay compensation.

2. The delay compensation method of the optical fiber transmission system according to claim 1, characterized in that: The optical module unit obtains a total delay value corresponding to each first main port connected to the optical remote unit, including: Obtain the optical fiber transmission delay value from the master port to the slave port at each level; According to the optical fiber transmission delay value, obtain a first delay value corresponding to each first main port of the optical module unit to the next-stage optical remote unit and a second delay value sent by the next-stage optical remote unit to the last-stage optical remote unit; The first delay value and the second delay value are added to obtain a total delay value corresponding to the first master port.

3. The delay compensation method of the optical fiber transmission system according to claim 2, characterized in that: Obtain the fiber transmission delay value from the master port to the slave port at each level, including: The master port sends a frame trigger signal and a frame number mark to the slave port, and starts counting; If the master port receives the frame trigger signal and the frame number flag returned by the slave port, the sent frame number flag is compared with the received frame number flag; If they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

4. The delay compensation method of the optical fiber transmission system according to claim 3, characterized in that: It also includes determining whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used for delay compensation.

5. A computer-readable storage medium storing a delay compensation program for an optical fiber transmission system, characterized in that: The delay compensation program of the optical fiber transmission system is executed by a processor to implement the delay compensation method of the optical fiber transmission system according to any one of claims 1 to 4.

6. An electronic device, characterized in that: include: A memory, a processor, and a delay compensation program for an optical fiber transmission system stored in the memory and executable on the processor, wherein the processor executes the delay compensation program for the optical fiber transmission system to implement a delay compensation method for an optical fiber transmission system as described in any one of claims 1 to 4.

7. A delay compensation device for an optical fiber transmission system, characterized in that: The optical fiber transmission system comprises an optical module unit and at least one optical remote unit, wherein the optical module unit is provided with at least one first main port, the optical remote unit is provided with a second main port and a slave port, the optical remote unit is connected to the first main port on the optical module unit through the slave port, or is connected to the first main port on the optical module unit after the second main port and the slave port of another optical remote unit are cascaded, and the delay compensation device comprises: An acquisition module, used for acquiring a total delay value corresponding to each first main port connected to an optical remote unit; A comparison module, used to compare the size of each total delay value to obtain the maximum total delay value; A calculation module, used for subtracting each of the remaining total delay values ​​from the maximum total delay value in turn to obtain a delay compensation value of the first main port corresponding to each of the remaining total delay values, and sending the delay compensation value to each optical remote unit connected to the corresponding first main port; A judgment module is used to judge whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to each of the remaining total delay values; if there is no next-level optical remote unit connected, the received delay compensation value is used for delay compensation; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is added to the received delay compensation value to obtain a final delay compensation value, and the final delay compensation value is used for delay compensation.

8. The delay compensation device of the optical fiber transmission system according to claim 7, characterized in that: The acquisition module is also used to obtain the optical fiber transmission delay value from the main port to the slave port at each level; obtain the first delay value corresponding to each first main port of the optical module unit to the next-level optical remote unit and the second delay value sent by the next-level optical remote unit to the last-level optical remote unit according to the optical fiber transmission delay value; add the first delay value and the second delay value to obtain the total delay value corresponding to the first main port.

9. The delay compensation device of the optical fiber transmission system according to claim 8, characterized in that: The acquisition module is also used for the master port to send a frame trigger signal and a frame number mark to the slave port and start counting; if the master port receives the frame trigger signal and the frame number mark returned by the slave port, the sent frame number mark is compared with the received frame number mark; If they are equal, the counting is stopped, and the count value is divided by 2 to obtain the optical fiber transmission delay value.

10. The delay compensation device of the optical fiber transmission system according to claim 9, characterized in that: It also includes determining whether there is a next-level optical remote unit connected to each optical remote unit connected to the first main port corresponding to the maximum total delay value; if there is no next-level optical remote unit connected, no delay compensation is performed; if there is a next-level optical remote unit connected, the delay value from the optical remote unit to the last-level optical remote unit is obtained, and the delay value is used for delay compensation.