WO2024041160A1 - Optical power testing method and apparatus - Google Patents

Optical power testing method and apparatus Download PDF

Info

Publication number
WO2024041160A1
WO2024041160A1 PCT/CN2023/102511 CN2023102511W WO2024041160A1 WO 2024041160 A1 WO2024041160 A1 WO 2024041160A1 CN 2023102511 W CN2023102511 W CN 2023102511W WO 2024041160 A1 WO2024041160 A1 WO 2024041160A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical
terminal
signal
trigger signal
uplink
Prior art date
Application number
PCT/CN2023/102511
Other languages
French (fr)
Chinese (zh)
Inventor
张迎
卢艳东
武小元
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024041160A1 publication Critical patent/WO2024041160A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal

Definitions

  • the present application relates to the field of optical communication technology, and in particular to an optical power detection method and device.
  • PON Passive optical network
  • PON network includes optical head end, optical distribution network and optical terminal.
  • the health of the optical path in the PON network is crucial to PON communication.
  • both optical heads and optical terminals support monitoring of the optical power of the optical transmitter and optical receiver.
  • the upstream direction has the characteristics of time division multiplexing, when the optical head end measures the power of the upstream optical signal of the optical terminal, it needs to provide a trigger signal to the optical module of the optical head end.
  • the trigger signal is aligned in timing with the uplink optical signal of the optical terminal to be collected.
  • the optical module After the optical module receives the trigger signal, it samples the analog voltage that represents the average uplink optical power, performs analog-to-digital conversion on the voltage, and stores the detection results in the table of the inter-integrated circuit bus (I2C) interface of the optical module. item, and then read the detection results from the optical module through the I2C interface.
  • I2C inter-integrated circuit bus
  • the current detection result will overwrite the previous detection result after the optical module starts optical power collection based on the trigger signal. Then, reading the collected optical power from the optical module through the I2C interface needs to be completed after the current optical module completes the optical power collection and before sending a trigger signal to the optical module next time.
  • the time it takes to collect the uplink optical power inside the optical module is about 500us
  • reading the uplink optical power through the I2C interface takes about 560us
  • a single sampling takes 1.06ms.
  • Embodiments of the present application provide an optical power detection method and device to improve the efficiency of sampling optical power.
  • embodiments of the present application provide an optical power detection device, including an optical module and a processing module; the processing module is configured to send a trigger signal to the optical module within the uplink authorization time slot of the first optical terminal.
  • a first trigger signal for uplink optical power detection the first trigger signal carries the identification information of the first optical terminal;
  • the optical module is configured to detect the uplink signal of the first optical terminal according to the first trigger signal.
  • the power of the uplink optical signal sent by the first optical terminal is detected within the authorized time slot to obtain a detection result, and the detection result is stored in association with the identification information of the first optical terminal.
  • the existing optical module does not know which optical terminal corresponds to the current optical power that needs to be sampled, it only authorizes the uplink The time slot samples the optical signal. As a result, it is necessary to wait for the OLT to read the optical power sampled by the optical module through the I2C interface before sending the trigger signal again.
  • the optical module by carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, associates and saves the sampled detection results with the identification information of the optical terminal, so that the next time The test results will not overwrite the previous test results.
  • reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
  • the optical module is specifically configured to: extract from the first trigger signal a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and the Identification information of the first optical terminal; sampling the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first signal.
  • the optical module has the function of extracting the identification information of the optical terminal and the first signal for sampling the optical power from the trigger signal, so that the optical power can be sampled based on the first signal, and the extracted information can be collected after collection.
  • the identification information of the optical terminal is stored in association with the sampled optical power, so that the next detection result will not overwrite the previous detection result. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, which can improve detection efficiency.
  • the first trigger signal is obtained by carrying the identification information of the first optical terminal at the high level of the first signal; or,
  • the first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  • the first signal can understand the original trigger signal. It can also be a signal that is different from the original trigger signal.
  • the first trigger signal is obtained by combining the first signal and the level signal corresponding to the identification information of the optical terminal, which is easy to implement.
  • the first signal when the first signal is the original trigger signal, there is no need to change the function of the optical module to trigger detection based on the trigger signal, thereby improving compatibility.
  • the processing module is specifically configured to send the first trigger signal to the optical module N times within a set time period.
  • the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period.
  • the number of times of power detection of the uplink optical signal of the first optical terminal is N; the control unit is configured to, after receiving the control command, detect the power of the first optical terminal included in the set time period.
  • the first trigger signal is sent to the optical module respectively within N uplink authorization time slots.
  • the processing unit only needs to send a command once, and the control unit triggers multiple detections for the same optical terminal, which can reduce the load of the processing unit.
  • the processing unit may be a central processing unit CPU, and the control unit may be a media control unit MAC.
  • the processing module may read N times of the detection results of the first optical terminal from the optical module.
  • the optical module determines the optical power of the first optical terminal based on the N times of saved detection results of the first optical terminal. Variation range; the processing module is also configured to read the optical power variation range of the first optical terminal from the optical module.
  • the processing module does not need to frequently read detection results from the optical module, which can reduce the load of the processing module.
  • the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to instruct the control unit to continuously trigger the Detect the power of the uplink optical signal of the first optical terminal; and after sending the control command for the set time period, send an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the first Power detection of an uplink optical signal of an optical terminal; the control unit is configured to, after receiving the control command, continue to send the first optical module in the uplink authorization time slot of the first optical terminal. trigger signal; and when receiving the interrupt command, stop sending the first trigger signal to the optical module.
  • the processing unit only needs to send a command once, and the control unit triggers continuous detection for the same optical terminal.
  • the processing unit triggers the control unit to stop detection, which can reduce the load of the processing unit.
  • the processing module is specifically configured to: send M*N trigger signals to the optical module within a set time period; wherein the M*N trigger signals include triggers of M optical terminals. signal, each optical terminal corresponds to N trigger signals, the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal, and the trigger signal of each optical terminal corresponds to the set duration. It is sent within the uplink authorized time slot of each optical terminal.
  • the processing module supports multiple detections of the optical power of multiple optical terminals within a set time period, which can improve detection efficiency.
  • the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period.
  • the power detection of the uplink optical signals of the M optical terminals and the number of power detections of each optical terminal is N; the control unit is configured to, after receiving the control command, send the power to the The optical module sends the M*N trigger signals.
  • the processing unit only needs to send a command once, and the control unit triggers multiple detections for multiple optical terminals, which can reduce the load of the processing unit.
  • the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to instruct the control unit to continuously trigger M Power detection of the uplink optical signal of the optical terminal; and after sending the control command for the set time period, sending an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the M optical signals.
  • Power detection of the uplink optical signal of the terminal; the control unit is configured to, after receiving the control command, continue to send trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals; and When receiving the interrupt command, stop sending trigger signals to the optical module in the uplink authorization time slots respectively corresponding to the M optical terminals.
  • the processing module can read multiple detection results of each of the M optical terminals from the optical module.
  • the CPU in the processing module reads the detection results from the optical module through I2C.
  • the optical module is also configured to determine the optical power variation range of the first optical terminal based on the N times of saved detection results of the first optical terminal; the processing module, It is also used to read the optical power variation range of the first optical terminal from the optical module.
  • the processing module does not need to frequently read detection results from the optical module, which can reduce the load of the processing module.
  • the processing module is specifically used for:
  • the M trigger signals correspond to M optical terminals one-to-one, and the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal.
  • the trigger signal of each optical terminal It is sent within the uplink authorized time slot corresponding to each optical terminal within the set time period.
  • the set duration can be the duration of one data frame or the duration of multiple data frames.
  • the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period. Power detection of the uplink optical signals of the M optical terminals; the control unit is configured to send the M trigger signals to the optical module within the set time period after receiving the control command.
  • the processing module is also configured to read the detection results of each of the M optical terminals from the optical module.
  • the processing module is also used to read the function indication information of the optical module from the optical module; when the function indication information indicates that the optical module has the ability to collect optical power at high speed, When capable, a first trigger signal for triggering uplink optical power detection is sent to the optical module within the uplink authorization time slot of the first optical terminal.
  • the processing module is further configured to, when the function indication information indicates that the optical module does not have the ability to collect optical power at high speed, send the signal to the first optical terminal in the uplink authorization time slot.
  • the optical module sends a second trigger signal for triggering uplink optical power detection, where the second trigger signal does not carry the identification information of the first optical terminal.
  • embodiments of the present application provide an optical power detection method, applied to an optical head end, including: generating a first trigger signal for triggering uplink optical power detection, the first trigger signal carrying the first optical power Identification information of the terminal; detecting the power of the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal to obtain the detection result of the first optical terminal; The detection result is stored in association with the identification information of the first optical terminal.
  • the first trigger signal includes a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and identification information of the first optical terminal;
  • the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal.
  • the first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
  • M is an integer greater than 1
  • the M trigger signals correspond to M optical terminals one-to-one
  • the M optical terminals include the first optical terminal
  • each of the M optical terminals corresponds to
  • the trigger signal carries the identification information of each optical terminal
  • the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of N optical terminals generate trigger signals corresponding to N optical terminals respectively; when setting The length includes at least M uplink authorization time slots of the first optical terminal.
  • the M uplink authorization time slots of the first optical terminal respectively generate the first trigger signal of the first optical terminal.
  • Each of the M optical terminals The trigger signal corresponding to each optical terminal carries the identification information of each optical terminal.
  • the method further includes:
  • the optical power variation range of the first optical terminal is determined according to the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
  • the method further includes:
  • the device Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
  • the method further includes:
  • a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
  • embodiments of the present application provide an OLT, including an optical module and a MAC unit; the MAC unit is configured to send a signal to the optical module for triggering uplink optical power detection within the uplink authorization time slot of the first optical terminal.
  • the first trigger signal the first trigger signal carries the identification information of the first optical terminal;
  • the optical module is configured to activate the first trigger signal in the uplink authorization time slot of the first optical terminal according to the first trigger signal Detect the power of the uplink optical signal sent by the first optical terminal to obtain a detection result, and store the detection result in association with the identification information of the first optical terminal.
  • the existing technology optical module does not know which optical terminal corresponds to the current optical power that needs to be sampled, it only samples the optical signal in the uplink authorized time slot. As a result, it is necessary to wait for the OLT to read the optical power sampled by the optical module through the I2C interface before sending the trigger signal again.
  • the optical module by carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, associates and saves the sampled detection results with the identification information of the optical terminal, so that the next time The test results will not overwrite the previous test results.
  • reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
  • the optical module is specifically configured to: extract from the first trigger signal a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and the Identification information of the first optical terminal; sampling the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first signal.
  • the first trigger signal is obtained by carrying the identification information of the first optical terminal at the high level of the first signal; or,
  • the first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  • the first signal can understand the original trigger signal. It can also be a signal that is different from the original trigger signal.
  • the first trigger signal is obtained by combining the first signal and the level signal corresponding to the identification information of the optical terminal, which is easy to implement.
  • the first signal when the first signal is the original trigger signal, there is no need to change the function of the optical module to trigger detection based on the trigger signal, thereby improving compatibility.
  • the MAC unit is specifically configured to send the first trigger signal to the optical module N times within a set time period.
  • the OLT further includes a processing unit; the processing unit is used to send a control command to the MAC unit, and the control command is used to instruct the triggering of the first step within the set time period.
  • the number of times of power detection of the uplink optical signal of an optical terminal is N; the MAC unit is configured to, after receiving the control command, detect N uplink signals of the first optical terminal included in the set time period.
  • the first trigger signal is sent to the optical module respectively within the authorized time slot.
  • the processing unit only needs to send a command once, and the MAC unit triggers multiple detections for the same optical terminal, which can reduce the load of the processing unit.
  • the processing unit may read N times of the detection results of the first optical terminal from the optical module.
  • the optical module determines the optical power of the first optical terminal based on the N times of saved detection results of the first optical terminal. Variation range; the processing unit is also configured to read the optical power variation range of the first optical terminal from the optical module.
  • the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct the MAC unit to continuously trigger power detection of the uplink optical signal of the first optical terminal. ; And after sending the control command for the set duration, send an interrupt command to the MAC unit, where the interrupt command is used to instruct the MAC unit to stop triggering the power detection of the uplink optical signal of the first optical terminal;
  • the MAC unit is configured to continue to send the first trigger signal to the optical module in the uplink authorization time slot of the first optical terminal after receiving the control command; and after receiving the interrupt command when, stop sending the first trigger signal to the optical module.
  • the processing unit only needs to send a command once, the MAC unit triggers continuous detection of the same optical terminal, and the processing unit triggers the MAC unit to stop detection, which can reduce the load of the processing unit.
  • the MAC unit is specifically configured to: send M*N trigger signals to the optical module within a set time period; wherein the M*N trigger signals include triggers of M optical terminals. signal, each optical terminal corresponds to N trigger signals, the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal, and the trigger signal of each optical terminal corresponds to the set duration. It is sent within the uplink authorized time slot of each optical terminal.
  • the MAC unit supports multiple detections of the optical power of multiple optical terminals within a set time period, which can improve detection efficiency.
  • the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct to trigger the uplink optical signals of the M optical terminals within the set time period.
  • Power detection and the number of power detections for each optical terminal is N; the MAC unit is configured to send the M*N trigger signals to the optical module within the set time period after receiving the control command. .
  • the processing unit only needs to send a command once, and the MAC unit triggers multiple detections for multiple optical terminals, which can reduce the load of the processing unit.
  • the processing unit is configured to send a control command to the MAC unit, and the control command The order is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signals of M optical terminals; and after sending the control command for the set time period, send an interrupt command to the MAC unit, and the interrupt command is used to Instruct the MAC unit to stop triggering the power detection of the uplink optical signals of the M optical terminals; the MAC unit is configured to continue to perform uplink authorization corresponding to the M optical terminals after receiving the control command. Send a trigger signal to the optical module in the time slot; and when receiving the interrupt command, stop sending the trigger signal to the optical module in the uplink authorization time slot corresponding to the M optical terminals.
  • the processing unit can read multiple detection results of each of the M optical terminals from the optical module.
  • the CPU reads the detection results from the optical module through I2C.
  • the optical module is also configured to determine the optical power variation range of the first optical terminal based on the saved N detection results of the first optical terminal; the processing unit, It is also used to read the optical power variation range of the first optical terminal from the optical module.
  • the MAC unit is specifically used for:
  • the M trigger signals correspond to M optical terminals one-to-one, and the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal.
  • the trigger signal of each optical terminal It is sent within the uplink authorized time slot corresponding to each optical terminal within the set time period.
  • the set duration can be the duration of one data frame or the duration of multiple data frames.
  • the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct to trigger the uplink optical signals of the M optical terminals within the set time period.
  • the control command is used to instruct to trigger the uplink optical signals of the M optical terminals within the set time period.
  • Power detection the MAC unit is configured to send the M trigger signals to the optical module within the set time period after receiving the control command.
  • the processing unit is also configured to read the detection results of each of the M optical terminals from the optical module.
  • the processing unit is also configured to read the function indication information of the optical module from the optical module; when the function indication information indicates that the optical module has the ability to collect optical power at high speed, When capable, a first trigger signal for triggering uplink optical power detection is sent to the optical module within the uplink authorization time slot of the first optical terminal.
  • the processing unit is further configured to, when the function indication information indicates that the optical module does not have the ability to collect optical power at high speed, send the signal to the first optical terminal in the uplink authorization time slot.
  • the optical module sends a second trigger signal for triggering uplink optical power detection, where the second trigger signal does not carry the identification information of the first optical terminal.
  • embodiments of the present application provide an optical power detection method, including: generating a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal; Send the first trigger signal to the optical module to trigger the optical module to detect the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal.
  • the power obtains the detection result of the first optical terminal, and stores the detection result in association with the identification information of the first optical terminal.
  • the first trigger signal includes a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and identification information of the first optical terminal;
  • the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal.
  • the first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
  • M is an integer greater than 1
  • the M trigger signals correspond to M optical terminals one-to-one
  • the M optical terminals include the first optical terminal
  • each of the M optical terminals corresponds to
  • the trigger signal carries the identification information of each optical terminal
  • the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of the N optical terminals within the set time period generate trigger signals corresponding to the N optical terminals respectively;
  • the set time period includes at least M uplink authorization time slots of the first optical terminal, M of the first optical terminal
  • the first trigger signals of the first optical terminals are respectively generated in the uplink authorization time slots, and the trigger signals corresponding to each of the M optical terminals carry the identification information of each optical terminal.
  • the method further includes:
  • the detection results of the M first optical terminals associated with the identification information of the first optical terminal are obtained from the optical module.
  • the method further includes:
  • the optical power variation range is determined by the optical module based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
  • the method further includes:
  • the device Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
  • the method further includes:
  • a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
  • embodiments of the present application provide an optical power detection device, including: the device includes a processor, a memory and a bus system; the processor and the memory are connected through the bus system; the memory uses For storing instructions, the processor is configured to execute instructions stored in the memory to implement the method described in the fourth aspect or any design of the fourth aspect.
  • embodiments of the present application provide a computer-readable medium for storing a computer program.
  • the computer program includes instructions for executing the method in the fourth aspect or any optional implementation of the fourth aspect.
  • Figure 1 is a schematic diagram of the optical communication system architecture provided by an embodiment of the present application.
  • Figure 2A is a schematic diagram of an OLT structure
  • Figure 2B is a schematic diagram of trigger signal timing
  • Figure 3 is a schematic diagram of an optical power detection device provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of another optical power detection device provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an extended trigger signal provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of another optical power detection device provided by an embodiment of the present application.
  • Figure 7 is a schematic flow chart of an optical power detection method provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of an optical power detection device 800 provided by an embodiment of the present application.
  • the embodiments of this application can be applied to optical communication systems, and the optical communication system can be a TDM PON system.
  • the TDM PON system can be a gigabit-capable PON (GPON) system, an Ethernet passive optical network (ethernet PON, EPON) system, or a 10Gb/s ethernet passive optical network , 10G-EPON) system, 10 gigabit-capable passive optical network (XG-PON) system or 10G bit symmetric passive optical network (10-gigabit-capable symmetric passive optical network, XGS-PON) system etc.
  • the TDM PON system is a point-to-multipoint (point 2 multiple point, P2MP) system.
  • Figure 1 is a schematic system architecture diagram of an optical communication system applicable to this application.
  • the optical communication system includes an optical head end, an optical distribution network (optical distribution network, ODN) and an optical terminal as an example.
  • the optical head end is connected to the optical terminal through ODN.
  • Figure 1 takes an optical communication system including n optical terminals as an example.
  • the n optical terminals are optical terminal 1, optical terminal 2, ..., and optical terminal n.
  • the optical head end can be, for example, an optical line terminal (OLT).
  • the OLT is a central office device that provides a network-side interface for the optical communication system and connects one or more ODNs.
  • ODN is a passive optical distribution network, used to connect optical line terminals OLT and optical terminals, and to distribute or multiplex data signals between OLT and optical terminals.
  • ODN includes trunk optical fibers, splitters (or optical splitters) and branch optical fibers.
  • An optical splitter is an optical fiber junction device with multiple input ends and multiple output ends, used for coupling and distribution of optical signals.
  • the optical head end and the optical splitter are connected through the trunk optical fiber, and the optical splitter and the optical terminal are connected through the branch optical fiber.
  • the optical terminal can be, for example, an optical network terminal (ONT) or an optical network unit (ONU).
  • the ONT or ONU is the end unit of the PON system and is used to provide a user-side interface for the optical communication system, also known as For "Light Cat".
  • the OLT can realize the function of the optical headend in this application
  • the ONT or ONU can realize the function of the optical terminal in this application.
  • TDM time division multiplexing
  • different optical terminals send uplink optical signals to the optical head end in different uplink authorized time slots, and the duration of the uplink optical signal sent by the optical terminal is Or the bandwidth can be uniformly allocated by the optical head end.
  • optical heads, optical terminals, optical splitters, and ports included in the optical splitter included in the optical communication system illustrated in FIG. 1 are only examples, and are not limited in this application.
  • names of each structure in the optical communication system shown in Figure 1 are only an example. In specific implementation, the names of each structure may also be other names, and this application does not specifically limit this.
  • optical communication system can be used in industrial scenarios.
  • it can be used as a network carrying infrastructure to achieve comprehensive access to business applications such as industrial production line services, office networks, video surveillance, access control systems, production management, external networks or intranets.
  • optical heads need to have network slicing capabilities.
  • one physical optical head can virtualize multiple logical optical heads (which are equivalent to multiple independent physical devices in the user's view) to carry various services respectively.
  • Network resources, operation and maintenance management permissions, and services between slices do not interfere with each other, thus effectively achieving a balance between reliability, security, and network resources.
  • the optical head end is an OLT and the optical terminal is an ONU. That is to say, the OLT described later in this application can be replaced with an optical head end, and the ONU can be replaced with an optical terminal.
  • the transmission direction of data (or signal) from the optical head end to the optical terminal is called the downstream direction.
  • the direction in which data (or signals) are transmitted from the optical terminal to the optical head is called the upstream direction.
  • the PON system is a multi-point to point (MP2P) system; for the downlink direction, the PON system is a point 2 multiple point (P2MP) system.
  • the OLT port sends out optical signals, which are distributed by the ODN network and reach each ONU.
  • the gap between the optical power of the optical signal sent by the OLT port and the optical power received by the ONU is determined by the two brought between ODN networks.
  • the optical power sent by the ONU is attenuated by the ODN network, which will also form a power gap between the ONU sending and OLT receiving ports.
  • the attenuation of the uplink and downlink optical signals brought by the ODN network is within a certain range.
  • the attenuation of the ODN network, as well as the uplink and downlink optical signals, can be planned during network construction.
  • the optical power emitted by the transmitting end and the minimum optical power that the receiving end can tolerate are determined so that the optical signal strength reaching the receiving end can meet the requirements for the normal operation of the receiving end.
  • additional optical components and optical interface losses may occur, which may even cause the optical signal at the receiving end to be too weak or lost, preventing normal communication.
  • the OLT encapsulates all ONU messages in data frames, and the ONU receives its own data.
  • the upstream direction uses time division multiplexing technology.
  • the OLT allocates uplink authorized time slots for sending data signals to each ONU, and the ONU sends uplink data signals on the uplink authorized time slots allocated by the OLT. Therefore, the uplink optical signal received by the OLT is segmented, because each ONU is on a different port of the ODN, and the attenuation between it and the OLT port is different.
  • the transmit optical power of each ONU is not exactly the same.
  • the OLT The uplink optical power received by each ONU at the end is also different.
  • the optical power detection method currently adopted by OLT can detect the optical power of the optical signal from any ONU under the port reaching the OLT through the cooperation of MAC chip and optical module.
  • the MAC in the OLT provides a trigger signal to the optical module of the OLT.
  • the trigger signal is aligned in timing with the upstream optical signal of the ONU whose upstream optical power is to be collected.
  • the optical module receives the trigger signal, it samples the analog voltage that represents the average uplink optical power, performs analog-to-digital conversion on the voltage, and stores the detection result in the I2C interface entry of the optical module.
  • the module reads the test results.
  • the I2C interface is a simple, bidirectional two-wire synchronous serial bus interface. It requires only two wires to transfer information between devices connected to the bus.
  • mainstream optical modules use the I2C interface as the management interface.
  • the internal storage table of the optical module can be accessed through the I2C interface to achieve optical module identification, function configuration, digital diagnosis and other purposes.
  • the optical signals sent by the ONU are all serial, so the optical power collected by the OLT is also serial.
  • the OLT's MAC sends a trigger signal
  • the optical module samples the uplink optical signal strength. and analog-to-digital conversion to obtain the detection result, and store the detection result in the table entry of the I2C interface of the optical module.
  • the CPU in the OLT reads the detection results stored in the table entry of the I2C interface of the optical module through the I2C interface.
  • the trigger signal is aligned with the upstream optical signal timing of the ONU to be collected, as shown in Figure 2B.
  • the current detection result will overwrite the previous detection result. Then, reading the collected optical power from the optical module through the I2C interface needs to be completed after the current optical module completes the optical power collection and before sending a trigger signal to the optical module next time.
  • the time it takes to collect the uplink optical power inside the optical module is about 500us, while reading the uplink optical power through the I2C interface takes about 560us, and a single sampling takes 1.06ms. In scenarios such as fault analysis, the OLT end needs to be able to collect the uplink optical power signal of the ONU at high speed.
  • embodiments of the present application provide an optical power detection method and device.
  • the optical module By carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, compares the sampled detection results with The identification information of the optical terminal is stored in association, so that the next detection result will not overwrite the previous detection result. Furthermore, reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
  • the optical power detection device provided by the embodiment of the present application includes a processing module 310 and an optical module 320 .
  • the optical power detection device is used in OLT. It should be understood that the optical power detection device shown in FIG. 3 is only an example. The optical power detection device in this application may have more components than the optical power detection device shown in FIG. 3 .
  • the trigger signal sent by the processing module to the optical module to trigger the uplink power detection carries the identification information of the ONU.
  • the identification information may be, for example, the ID of the ONU, or other information used to uniquely identify the ONU in the optical communication system. Taking the first ONU as an example, the trigger signal of the first ONU is called the first trigger signal.
  • the processing module 310 sends a first trigger signal for triggering the uplink power detection to the optical module 320 within the uplink authorization time slot of the first ONU.
  • the first trigger signal carries identification information of the first ONU.
  • the optical module 320 can detect the power of the uplink optical signal of the first ONU within the uplink authorized time slot of the first ONU according to the first trigger signal to obtain a detection result, and associate and save the detection result with the identification information of the first ONU. .
  • the optical module 320 extracts the identification information of the first ONU from the first trigger signal, and detects that the first ONU sends an uplink optical signal within the uplink authorized time slot of the first ONU. After the power is obtained, the detection result can be associated and saved with the identification information of the first ONU.
  • the trigger signal provided by the embodiment of the present application is different from the existing trigger signal.
  • the trigger signal provided by the embodiment of the present application carries the identification information of the optical terminal for which the trigger signal detects power.
  • Existing trigger signals carry no other information.
  • the trigger signal provided by the embodiment of the present application may also be called an extended trigger signal.
  • the extended trigger signal carries the identification information of the optical terminal for which the trigger signal detects power.
  • different storage spaces can be configured for different ONUs to save detection results of different ONUs.
  • different tables may be configured for different ONUs to store detection results of different ONUs.
  • all ONUs are stored in one table, but different ONUs occupy different table entries.
  • the embodiment of the present application does not specifically limit the storage method of the association between the detection results and the identification information of the ONU.
  • the processing module 310 of the optical power detection device can It includes a processing unit 311 and a control unit 312.
  • the processing unit 311 may include a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a field-implementable processor.
  • CPU central processing unit
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the control unit 312 may adopt a Medium Access Control (Medium Access Control, MAC) unit.
  • MAC Medium Access Control
  • the MAC unit of the OLT is used to implement functions such as ONU management, dynamic bandwidth allocation (DBA), ONU registration activation, data transmission and reception, and power detection triggering.
  • functions such as ONU management, dynamic bandwidth allocation (DBA), ONU registration activation, data transmission and reception, and power detection triggering.
  • DBA dynamic bandwidth allocation
  • the MAC unit of the OLT can use a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC).
  • FPGA field-programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processor
  • MCU programmable logic device
  • PLD programmable logic device
  • the processing unit 311 and the control unit 312 may be integrated into one chip, or may be implemented by different chips to implement corresponding functions. This embodiment of the present application does not specifically limit this.
  • the CPU of the OLT initiates the detection of the upstream optical power on the ONU side, it sends a command for detecting the upstream optical power to the MAC unit of the OLT.
  • the command may include the identification of the ONU that needs to measure the upstream optical power.
  • the MAC unit sends an extended trigger signal to the optical module in the uplink authorization time slot of the ONU under test.
  • the extended trigger signal carries the identification information of the ONU under test to control the optical module during the uplink authorization.
  • the optical signal is sampled for the ONU, and then the sampling result is converted from an analog signal to a digital signal to obtain the value of the uplink optical power of the ONU under test, which is the detection result.
  • the detection time of the ONU under test can be determined based on the starting time of the uplink authorization time slot of the ONU under test, so that at the detection time of the ONU under test Generate an extended trigger signal for detecting the uplink optical power of the ONU under test.
  • the generated extended trigger signal carries the identification information of the ONU under test.
  • the optical module 320 may include a control unit 321, an analog-to-digital conversion unit 322, a mirror current source 323, and an avalanche photodiode (avalanche photodiode, APD) bias circuit 324 .
  • the APD bias circuit 324 is used to receive the upstream optical signal of the ONU and convert the upstream optical signal into an upstream electrical signal.
  • the upstream electrical signal passes through the mirror current source 323 and outputs the optical power related level signal of the ONU.
  • the analog-to-digital conversion unit 322 converts the optical power related level signal from an analog signal to a digital signal to obtain an optical power value, and sends it to the control circuit.
  • the APD bias circuit 324 is used to implement the photodetection function.
  • Other photodetectors can also be used in the optical module, which is not specifically limited in the embodiment of the present application. In order to facilitate the subsequent description, the labels of each device will no longer be shown.
  • the control unit in the optical module may include one or more controllers.
  • the controller can use FPGA, ASIC, SoC, CPU, NP, DSP or MCU, and can also use PLD or other integrated chips.
  • the MAC unit in the OLT sends an extended trigger signal to the control unit in the optical module.
  • the control unit parses the identification information of the ONU under test from the extended trigger signal, and then, after receiving the detection result sent by the analog-to-digital conversion unit, the control unit associates and stores the detection result with the identification information of the ONU.
  • the optical module After the optical module determines the detection result of the ONU under test, it can also send the detection result to the CPU in the OLT.
  • CPU based on The test results analyze the link performance between the ONU under test and OLT, such as analyzing the optical fiber link loss between the ONU under test and OLT, and the relationship between the optical fiber link loss between the ONU under test and OLT over time.
  • the processing module of the OLT can also trigger multiple detections of the ONU under test to the optical module.
  • the optical module can save the multiple detection results of the ONU under test, and can analyze the ONU under test based on the multiple detection results.
  • Link performance with the OLT such as analyzing the fiber link loss between the ONU under test and the OLT, the relationship between the fiber link loss over time between the ONU under test and the OLT, etc., and then sending the analysis results to the OLT processing module.
  • the optical module may also include a memory.
  • the memory is used to store the detection results of the optical power of the ONU.
  • the memory can be high-speed random access memory (RAM), static random access memory (static random-access memory (SRAM)), dynamic random access memory (dynamic random access memory (DRAM)), or it can be a register, It can also be non-volatile memory (non-volatile memory), such as flash memory, or at least one disk memory.
  • the processing module is supported to continuously send extended trigger signals to further improve the optical power collection efficiency.
  • the processing module supports collecting the uplink optical power of a single ONU multiple times in a row. For example, collecting a specific number of times continuously.
  • the processing module continuously sends the first trigger signal for triggering the optical power detection of the first ONU to the optical module N times.
  • the CPU in the processing module sends a control command to the MAC unit, where the control command is used to indicate that the number of times to trigger optical power detection of the first ONU is N.
  • the control command may include identification information of the first ONU and the detection number N.
  • the MAC unit After receiving the control command sent by the CPU, the MAC unit sends the first trigger signal to the optical module respectively within the N uplink authorization time slots of the first ONU.
  • the MAC unit can send the first trigger signal to the optical module N times at set time intervals.
  • the set time interval may be the interval between two uplink grant time slots of the first ONU, or the duration of one or more data frames.
  • the optical module Each time after receiving the first trigger signal, the optical module detects the uplink optical power of the first ONU, and associates and saves the detection result with the identification information of the first ONU. Therefore, after triggering the first trigger signal N times, the optical module has saved N detection results associated with the identification information of the first ONU.
  • the optical module can analyze the N consecutive detection results and analyze the changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between the ONU under test and the OLT, such as analyzing the optical fiber link loss between the ONU under test and the OLT. Measure the relationship between the optical fiber link loss over time between the ONU and the OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
  • the CPU can also read the detection results of multiple power detections from the optical module, analyze the continuous multiple detection results, and analyze the link performance between the ONU under test and the OLT, such as analyzing the ONU under test
  • the CPU every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
  • the processing module supports the setting of continuously collecting the uplink optical power of a single ONU until the setting is updated.
  • the CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signal of the first ONU.
  • the MAC unit continuously sends the first trigger signal to the optical module at set time intervals.
  • the set time interval is related to the interval between two adjacent uplink grant time slots of the first ONU, or Relevant to the duration of the data frame.
  • the set time interval may be the interval between two uplink grant time slots of the first ONU, or the duration of one or more data frames.
  • the CPU After sending the control command to the MAC unit for a set period of time, the CPU sends an interrupt command to the MAC unit of the OLT.
  • the interrupt command is used to instruct the MAC unit of the OLT to stop triggering the power detection of the uplink optical signal of the first ONU.
  • the MAC unit stops sending the first trigger signal to the optical module.
  • the optical module Each time after receiving the first trigger signal, the optical module detects the uplink optical power of the first ONU, and associates and saves the detection result with the identification information of the first ONU. Therefore, after triggering the first trigger signal N times, the optical module has saved N detection results associated with the identification information of the first ONU.
  • the CPU when it sends an interrupt command to the MAC unit, it may also notify the optical module to analyze multiple detection results.
  • the optical module can analyze the continuous detection results and analyze the changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between the ONU under test and the OLT, such as analyzing the optical fiber link loss between the ONU under test and the OLT. Measure the relationship between the optical fiber link loss over time between the ONU and the OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
  • the CPU can also read the detection results of multiple power detections from the optical module, analyze the continuous multiple detection results, and analyze the link performance between the ONU under test and the OLT, such as analyzing the ONU under test
  • the CPU every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
  • the processing module supports collecting the uplink optical power of multiple or all online ONUs under the port.
  • the processing module sends M extended trigger signals to the optical module within a set time period.
  • M extended trigger signals correspond to M ONUs under test one-to-one.
  • the extended trigger signal corresponding to each ONU in the M ONUs carries the identification information of each ONU.
  • the extended trigger signal of each ONU corresponds to the set time period. Sent within the uplink authorized time slot of each ONU.
  • the set duration may be the duration of a single data frame.
  • the CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the power detection of the upstream optical signals of the M ONUs under test to be triggered within the set time period.
  • the MAC unit in the processing module After receiving the control command, the MAC unit in the processing module sends M extended trigger signals to the optical module within the set time period. Further, the CPU in the processing module reads the detection results of the M ONUs to be tested from the MAC unit.
  • the CPU every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
  • the processing module supports the uplink optical power of multiple or all online ONUs under the port for a specific number of consecutive times.
  • the processing module sends M*N extended trigger signals to the optical module within a set time period.
  • M*N extended trigger signals include extended trigger signals of M ONUs.
  • Each ONU corresponds to N extended trigger signals.
  • the extended trigger signal corresponding to each ONU in the M ONUs carries the identification information of each ONU.
  • Each ONU The extended trigger signal of the ONU is sent correspondingly within the uplink authorized time slot of each ONU within the set time period.
  • the CPU in the processing module sends a control command to the MAC unit.
  • the control command is used to instruct the power detection of the upstream optical signals of the M ONUs to be tested to be triggered within the set time period and the number of times of power detection for each ONU is N.
  • the MAC unit sends M*N extended trigger signals to the optical module within the set time period.
  • the CPU every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
  • each time the optical module receives the extended trigger signal it parses the identification information of the ONU under test from the extended trigger signal, and then when detecting the optical power to obtain the detection result, compares the detection result with the extended trigger signal.
  • the parsed identification information of the ONU under test is stored in association.
  • the processing module supports continuous detection of the uplink optical power of multiple or all online ONUs under the setting port until the setting is updated.
  • the CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signals of the M optical terminals.
  • the MAC unit continues to send extended trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals.
  • the sending time interval between two extended trigger signals is related to the sampling capability of the optical module.
  • the specific sending time interval between two extended trigger signals is related to the analysis of the extended trigger signal, analog-to-digital conversion processing, ADC sampling, and storage of detection results. There is no need to consider the time it takes for the CPU to read the optical power from the optical module through I2C.
  • the conversion time of the uplink optical power inside the optical module is about 500us, and the time interval between the two extended trigger signals is not less than 500us.
  • a high-speed analog-to-digital converter is used inside the optical module, which can further increase the transmission time interval between two extended trigger signals.
  • the CPU After the CPU sends the control command for the set time period, it sends an interrupt command to the MAC unit.
  • the interrupt command is used to indicate that the MAC unit stops triggering the power detection of the uplink optical signals of the M ONUs to be tested. Therefore, when receiving the interrupt command, the MAC unit stops sending the extended trigger signal to the optical module.
  • the CPU when it sends an interrupt command to the MAC unit, it may also notify the optical module to analyze the detection results of each ONU under test.
  • the optical module can analyze multiple consecutive detection results of each ONU to analyze changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between each tested ONU and the OLT, such as analyzing the optical fiber link between each tested ONU and the OLT. path loss, the relationship between the optical fiber link loss over time between each tested ONU and OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
  • the optical module can also notify the CPU to read the detection results or analysis results of each ONU.
  • the CPU can also read the detection results of multiple power detections for each ONU from the optical module, analyze the continuous multiple detection results of each ONU, and analyze the relationship between each tested ONU and the OLT.
  • Link performance such as analyzing the optical fiber link loss between each tested ONU and OLT, and the relationship between the optical fiber link loss between each tested ONU and OLT over time, etc.
  • the CPU every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
  • the extended trigger signal in the embodiment of the present application is described as follows.
  • the extended trigger signal may include a first signal that triggers sampling of the uplink optical power of the ONU and the identification information of the ONU.
  • the first signal has the same function as the existing trigger signal.
  • the existing trigger signal (trig signal) is a pulse signal with a fixed width, and the embodiment of the present application improves the fixed-width pulse signal, and carries the identification information of the ONU in the fixed-width pulse signal. The following are examples of several ways of carrying the identification information of the ONU on the first signal.
  • the identification information of the ONU is carried on the high level of the first signal to obtain an extended trigger signal.
  • the identification information of ONU is ONU ID.
  • the signal corresponding to the ONU ID information in the extended trigger signal uses 1 bit Start bit (low level)+8bit ONUID+1bit check bit.
  • the ONU ID information uses 1 bit start bit (low level) + 8 bit ONU ID + 1 bit check bit, a total of 10 bits. If the width of a single bit is 10ns, a total of 100ns is required, which is significantly smaller than the width of the original trigger signal. Due to the time required to filter the power signal output by the mirror current source and stabilize the sampling capacitor voltage, the extended trigger signal width is generally several hundred ns.
  • This method superimposes the ONU ID information on the high level of the first signal (such as the original trigger signal). This method can directly complete the transmission of ONU ID information within the high-level effective time period of the original trigger signal (received signal strength indication (RSSI) trig) without increasing the requirement for the width of the trigger signal.
  • RSSI received signal strength indication
  • the ONU ID verification can be implemented using odd parity, even parity, CRC, etc.
  • the signal corresponding to the identification information of the ONU may not include a check digit.
  • the interface corresponding to the trigger signal generally does not have abnormal situations, and the check bit can also be added.
  • the level signal of the ONU ID information is added to the level signal of the first signal to obtain a three-level signal.
  • the level signal of the ONU ID information is located before the first signal.
  • the level signal of the ONU ID information is located after the first signal.
  • the sending time interval between two extended trigger signals is related to the sampling capability of the optical module.
  • the specific sending time interval between two extended trigger signals is related to the analysis of the extended trigger signal, analog-to-digital conversion processing, ADC sampling, and storage of detection results.
  • ADC sampling analog-to-digital conversion processing
  • storage of detection results but there is no need to consider the time it takes for the CPU to read the optical power from the optical module through I2C.
  • MCU is used in optical modules to process each trigger signal. In the scenario of continuous high-speed acquisition in the embodiment of this application, if the current MCU processing capability is insufficient, hardware logic circuits can be used to achieve continuous high-speed acquisition.
  • control unit in the optical module includes an MCU and hardware logic control.
  • Hardware logic control can use FPGA, ASIC, SoC, PLD or other hardware integrated chips.
  • the hardware logic control can be responsible for associating and storing the data sampled by the analog-to-digital conversion unit with the ID of the ONU.
  • the MCU is responsible for processing and reading the power data of the ONU according to the needs of the OLT processing flow.
  • the optical module After receiving the extended trigger signal, the optical module parses the extended trigger signal through hardware logic control, and separates the first signal and ONU ID information from the extended trigger signal.
  • the hardware logic control controls the sampling, holding, and conversion of the trigger analog-to-digital conversion unit according to the extended trigger signal.
  • the hardware logic control can also be responsible for verifying the ONU ID information and notifying the MCU to interrupt processing when the ONU ID verification is abnormal.
  • the hardware logic control stores the detection results representing the ONU upstream optical power into a specific storage space, which corresponds to the ONU ID.
  • the MCU can analyze the link performance between the ONU and the OLT based on multiple detection results, and notify the CPU to read the analysis results.
  • some optical modules do not have the ability to collect optical power at high speed, and some optical modules have the ability to collect optical power at high speed.
  • the CPU determines whether the optical module has the ability to collect optical power at high speed. Or whether the optical module supports parsing extended trigger signals. For example, the value of a reserved field in the Electrically Erasable Programmable Read-Only Memory (EEPROM) of the optical module indicates whether the optical module has the ability to collect optical power at high speed. For example, if the value of a reserved field is 1, it indicates that the optical module has the ability to collect optical power at high speed; if the value of the reserved field is 0, it indicates that the optical module does not have the ability to collect optical power at high speed.
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • the CPU determines that the optical module does not have the ability to collect optical power at high speed, it triggers the MAC unit to send a first signal to the optical module, such as an existing trigger signal, which does not carry the identification information of the ONU. Therefore, the optical module detects the optical power according to the existing solution.
  • this application also provides an optical power detection method. This method can be implemented by the optical head end. See Figure 7.
  • the first trigger signal for triggering uplink optical power detection is generated by the MAC unit of the OLT and then sent to the optical module of the OLT.
  • the optical module of the OLT detects the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first trigger signal, and compares the detection result with The identification information of the first optical terminal is stored in association.
  • the first trigger signal includes a first signal used to trigger sampling of the power of an uplink optical signal of the first optical terminal and identification information of the first optical terminal;
  • the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal.
  • the first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
  • the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
  • M is an integer greater than 1
  • the M trigger signals correspond to M optical terminals one-to-one
  • the M optical terminals include the first optical terminal
  • each of the M optical terminals corresponds to
  • the trigger signal carries the identification information of each optical terminal
  • the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of the N optical terminals within the set time period generate trigger signals corresponding to the N optical terminals respectively;
  • the set time period includes at least M uplink authorization time slots of the first optical terminal, M of the first optical terminal
  • the first trigger signals of the first optical terminals are respectively generated in the uplink authorization time slots, and the trigger signals corresponding to each of the M optical terminals carry the identification information of each optical terminal.
  • the method further includes: determining the optical power conversion range of the first optical terminal based on detection results of M first optical terminals associated with the identification information of the first optical terminal. .
  • the optical module determines the optical power variation range of the first optical terminal based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal. Specifically, after completing M times of power detection of the uplink optical signal of the first optical terminal corresponding to the first trigger signal in M uplink authorization time slots, the optical module determines the power of the first optical terminal according to the first trigger signal. The detection results of the M first optical terminals associated with the terminal identification information determine the optical power variation range of the first optical terminal.
  • the method further includes: the processing unit in the OLT can read the optical power variation range of the first optical terminal from the optical module.
  • generating a first trigger signal for triggering uplink optical power detection includes:
  • the uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
  • the method further includes:
  • the device Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
  • the processing unit controls the MAC unit to generate the first trigger signal for triggering the uplink optical power detection, it is determined that the optical module has the ability to collect optical power at high speed.
  • the method further includes:
  • a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
  • the processing unit determines that the optical module does not have the ability to collect optical power at high speed, it controls the MAC unit to generate a second trigger signal for triggering uplink optical power detection within the uplink authorization time slot of the first optical terminal.
  • this embodiment of the present invention also provides an optical power detection device 800 .
  • the device 800 includes a processor 810 , a communication interface 820 and a bus system 830 .
  • the processor 810 and the communication interface 820 are connected through the bus system 830 .
  • the device 800 can exchange information with other devices (other components) through the communication interface 820.
  • the communication interface 820 may be a circuit, bus, transceiver, or any other component that may be used for information exchange.
  • the apparatus 800 may also include memory (not shown in Figure 8).
  • the memory is used to store instructions, and the processor 810 is used to execute the instructions stored in the memory to implement functions performed by the processing module in the OLT.
  • the processor 810 is configured to: generate a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal; and send the first trigger signal to the optical module through the communication interface 820.
  • a trigger signal to trigger the optical module to detect the power of the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal to obtain detection of the first optical terminal.
  • the result is stored in association with the detection result and the identification information of the first optical terminal.
  • the processor 810 is specifically configured to generate the first trigger signal respectively within the uplink authorization time slots of the M optical terminals included in the set time period;
  • M is an integer greater than 1
  • the M trigger signals correspond to M optical terminals one-to-one
  • the M optical terminals include the first optical terminal
  • each of the M optical terminals corresponds to
  • the trigger signal carries the identification information of each optical terminal
  • the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
  • the processor 810 is specifically configured to generate trigger signals corresponding to N optical terminals in the uplink authorization time slots of N optical terminals within a set time period; at least M including the first optical terminal within the set time period.
  • the M uplink grant time slots of the first optical terminal respectively generate the first trigger signal of the first optical terminal, and the trigger signal corresponding to each of the M optical terminals carries the Identification information of each optical terminal.
  • the processor 810 is further configured to obtain the detection results of the M first optical terminals associated with the identification information of the first optical terminal from the optical module.
  • the processor 810 is also configured to obtain the optical power change of the first optical terminal from the optical module. scope.
  • the optical power variation range is determined by the optical module based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
  • the processor 810 is configured to generate trigger signals corresponding to the N optical terminals in the uplink authorization time slots of the N optical terminals within a set time period; the N optical terminals include the first optical terminal. , the trigger signal corresponding to each optical terminal among the N optical terminals carries the identification information of each optical terminal.
  • the processor 810 is also configured to determine that the optical module has the ability to collect optical power at high speed before generating the first trigger signal for triggering the uplink optical power detection.
  • the processor 810 is also configured to generate a second trigger for triggering the uplink optical power detection in the uplink authorized time slot of the first optical terminal when it is determined that the optical module does not have the ability to collect optical power at high speed. signal, the second trigger signal does not carry the identification information of the first optical terminal.
  • the function of the processor 810 can be implemented by a processor or by a processing system.
  • the processor can be a CPU, or other general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices , discrete hardware components, etc.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • This memory may include read-only memory and random access memory and provides instructions and data to processor 810.
  • a portion of the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • bus system 830 may also include a power bus, a control bus, a status signal bus, etc.
  • bus system 830 may also include a power bus, a control bus, a status signal bus, etc.
  • the various buses are labeled as bus system 830 in FIG. 8 .
  • each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 810 .
  • the steps of the methods disclosed in conjunction with the embodiments of the present invention can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory.
  • the processor 810 reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • system and “network” are often used interchangeably herein.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units.
  • the connection can also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
  • each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, etc.) having computer-usable program code embodied therein.
  • a computer-usable storage media including, but not limited to, disk storage, optical storage, etc.

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

An optical power testing method and apparatus, which are used for improving the efficiency of sampling optical power. Due to the existing optical module not knowing which optical terminal needs to sample optical power at the time, an optical signal is only sampled during an uplink license time slot, and only after the OLT reads via an I2C interface the optical power sampled by the optical module, a trigger signal can be sent again. In the embodiments of the present application, a trigger signal carries identification information of an optical terminal, and after an optical module samples the uplink optical power of an optical terminal, a testing result obtained by sampling is associated and stored with the identification information of the optical terminal, thus the next testing result will not cover the last testing result. Furthermore, reading the testing result from the optical module does not need to be completed after the current optical module completing optical power acquisition and before sending to the optical module the trigger signal next time; and similarly, sending to the optical module the trigger signal next time does not need to wait for reading the last testing result from the optical module, thereby improving the testing efficiency.

Description

一种光功率的检测方法及装置Optical power detection method and device
本申请要求于2022年8月24日提交中国国家知识产权局、申请号202211020723.9、申请名称为“一种光功率的检测方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 24, 2022, with application number 202211020723.9 and the application title "An optical power detection method and device", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及光通信技术领域,特别涉及一种光功率的检测方法及装置。The present application relates to the field of optical communication technology, and in particular to an optical power detection method and device.
背景技术Background technique
无源光网络(passive optical network,PON)技术,是一种点对多点方式的光接入技术。PON网络包括光头端、光分配网络和光终端。PON网络中光路的健康与否对PON通信至关重要。当前光头端和光终端均支持对光发送端和光接收端的光功率的监控。其中,由于上行方向具有时分复用的特性,则光头端测量光终端的上行光信号的功率时,需要给光头端的光模块提供一个触发信号。触发信号与待采集上行光功率的光终端的上行光信号时序上对齐。光模块收到触发信号后,采样代表上行平均光功率的模拟电压,并对该电压做模数转换得到的检测结果,存储到光模块的集成电路间总线(inter integrated circuit bus I2C)接口的表项中,进而再通过I2C接口从光模块读取检测结果。Passive optical network (PON) technology is a point-to-multipoint optical access technology. PON network includes optical head end, optical distribution network and optical terminal. The health of the optical path in the PON network is crucial to PON communication. Currently, both optical heads and optical terminals support monitoring of the optical power of the optical transmitter and optical receiver. Among them, since the upstream direction has the characteristics of time division multiplexing, when the optical head end measures the power of the upstream optical signal of the optical terminal, it needs to provide a trigger signal to the optical module of the optical head end. The trigger signal is aligned in timing with the uplink optical signal of the optical terminal to be collected. After the optical module receives the trigger signal, it samples the analog voltage that represents the average uplink optical power, performs analog-to-digital conversion on the voltage, and stores the detection results in the table of the inter-integrated circuit bus (I2C) interface of the optical module. item, and then read the detection results from the optical module through the I2C interface.
但由于触发信号与待采集上行光功率的光终端的上行光信号时序对齐,从而光模块在根据触发信号启动光功率采集后,当前次的检测结果会覆盖上一次的检测结果。进而通过I2C接口从光模块读取采集的光功率,需要当前次光模块完成光功率的采集之后,且在下次向光模块发送触发信号之前来完成。目前,光模块内部采集上行光功率的时间在500us左右,而通过I2C接口读取上行光功率则需要约560us的时间,单次采样需要时间达到1.06ms。在故障分析等场景中,为了更高效的确定故障原因,需要更高速的采样上行光功率,目前并没有一种可行的来提高采样上行光功率的效率的方式。However, since the trigger signal is aligned with the timing of the upstream optical signal of the optical terminal to be collected, the current detection result will overwrite the previous detection result after the optical module starts optical power collection based on the trigger signal. Then, reading the collected optical power from the optical module through the I2C interface needs to be completed after the current optical module completes the optical power collection and before sending a trigger signal to the optical module next time. Currently, the time it takes to collect the uplink optical power inside the optical module is about 500us, while reading the uplink optical power through the I2C interface takes about 560us, and a single sampling takes 1.06ms. In scenarios such as fault analysis, in order to more efficiently determine the cause of the fault, it is necessary to sample the upstream optical power at a higher speed. Currently, there is no feasible way to improve the efficiency of sampling the upstream optical power.
发明内容Contents of the invention
本申请实施例提供一种光功率的检测方法及装置,以提高采样光功率的效率。Embodiments of the present application provide an optical power detection method and device to improve the efficiency of sampling optical power.
第一方面,本申请实施例提供一种光功率的检测装置,包括光模块和处理模块;所述处理模块,用于在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;所述光模块,用于根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到检测结果,并将所述检测结果与所述第一光终端的标识信息关联保存。In a first aspect, embodiments of the present application provide an optical power detection device, including an optical module and a processing module; the processing module is configured to send a trigger signal to the optical module within the uplink authorization time slot of the first optical terminal. A first trigger signal for uplink optical power detection, the first trigger signal carries the identification information of the first optical terminal; the optical module is configured to detect the uplink signal of the first optical terminal according to the first trigger signal. The power of the uplink optical signal sent by the first optical terminal is detected within the authorized time slot to obtain a detection result, and the detection result is stored in association with the identification information of the first optical terminal.
由于现有技术光模块并不知晓当前需要采样光功率对应的是哪个光终端,仅在上行授权 时隙采样光信号。从而导致需要等待OLT通过I2C接口读取到光模块采样的光功率后,才能再次发送触发信号。而本申请实施例中,通过在触发信号中携带光终端的标识信息,从而光模块在采样光终端的上行光功率后,将采样得到的检测结果与光终端的标识信息关联保存,从而下一次的检测结果并不会覆盖上一次的检测结果。进而从光模块读取检测结果也无需在当前次光模块完成光功率的采集之后,且在下次向光模块发送触发信号之前来完成。进一步地,下一次向光模块发送触发信号的时间也无需等待从光模块读取上一次检测结果的时间,进而可以提高检测效率。Since the existing optical module does not know which optical terminal corresponds to the current optical power that needs to be sampled, it only authorizes the uplink The time slot samples the optical signal. As a result, it is necessary to wait for the OLT to read the optical power sampled by the optical module through the I2C interface before sending the trigger signal again. In the embodiment of the present application, by carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, associates and saves the sampled detection results with the identification information of the optical terminal, so that the next time The test results will not overwrite the previous test results. Furthermore, reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
在一种可能的设计中,所述光模块,具体用于:从所述第一触发信号中提取出用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;根据所述第一信号在所述第一光终端的上行授权时隙内采样所述第一光终端发送的上行光信号的功率。In a possible design, the optical module is specifically configured to: extract from the first trigger signal a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and the Identification information of the first optical terminal; sampling the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first signal.
上述设计中,光模块具备从触发信号中提取光终端的标识信息以及用于采样光功率的第一信号的功能,从而可以基于第一信号来采样光功率,并且在采集后可以将提取出的光终端的标识信息与采样的光功率关联保存,从而下一次的检测结果并不会覆盖上一次的检测结果。进而下一次向光模块发送触发信号的时间也无需等待从光模块读取上一次检测结果的时间,可以提高检测效率。In the above design, the optical module has the function of extracting the identification information of the optical terminal and the first signal for sampling the optical power from the trigger signal, so that the optical power can be sampled based on the first signal, and the extracted information can be collected after collection. The identification information of the optical terminal is stored in association with the sampled optical power, so that the next detection result will not overwrite the previous detection result. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, which can improve detection efficiency.
在一种可能的设计中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,In a possible design, the first trigger signal is obtained by carrying the identification information of the first optical terminal at the high level of the first signal; or,
所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
上述设计中,第一信号可以理解原始的触发信号。也可以是区别于原始触发信号的信号。通过第一信号与光终端的标识信息对应的电平信号的合并来获得第一触发信号,易于实现。一些实施例中,第一信号为原始的触发信号的情况下,无需更改光模块根据触发信号来触发检测的功能,提高兼容性。In the above design, the first signal can understand the original trigger signal. It can also be a signal that is different from the original trigger signal. The first trigger signal is obtained by combining the first signal and the level signal corresponding to the identification information of the optical terminal, which is easy to implement. In some embodiments, when the first signal is the original trigger signal, there is no need to change the function of the optical module to trigger detection based on the trigger signal, thereby improving compatibility.
在一种可能的设计中,所述处理模块,具体用于:在设定时长内向所述光模块发送N次所述第一触发信号。In a possible design, the processing module is specifically configured to send the first trigger signal to the optical module N times within a set time period.
在一种可能的设计中,所述处理模块包括处理单元和控制单元;所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述第一光终端的上行光信号的功率检测的次数为N;所述控制单元,用于在接收到所述控制命令后,在所述设定时长内包括的所述第一光终端的N个上行授权时隙内分别向所述光模块发送所述第一触发信号。In a possible design, the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period. The number of times of power detection of the uplink optical signal of the first optical terminal is N; the control unit is configured to, after receiving the control command, detect the power of the first optical terminal included in the set time period. The first trigger signal is sent to the optical module respectively within N uplink authorization time slots.
上述设计中,处理单元仅需发送一次命令,控制单元触发针对同一光终端的多次检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, and the control unit triggers multiple detections for the same optical terminal, which can reduce the load of the processing unit.
示例性地,处理单元可以为中央处理单元CPU,控制单元可以是媒体控制单元MAC。For example, the processing unit may be a central processing unit CPU, and the control unit may be a media control unit MAC.
在一种可能的设计中,处理模块可以从所述光模块读取所述第一光终端的N次所述检测结果。 In a possible design, the processing module may read N times of the detection results of the first optical terminal from the optical module.
一种可能的设计中,光模块完成N次光终端的光功率检测后,所述光模块根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围;所述处理模块,还用于从所述光模块读取所述第一光终端的光功率变化范围。In one possible design, after the optical module completes N times of optical power detection of the optical terminal, the optical module determines the optical power of the first optical terminal based on the N times of saved detection results of the first optical terminal. Variation range; the processing module is also configured to read the optical power variation range of the first optical terminal from the optical module.
上述设计中,无需处理模块频繁的从光模块读取检测结果,可以降低处理模块的负荷。In the above design, the processing module does not need to frequently read detection results from the optical module, which can reduce the load of the processing module.
在一种可能的设计中,所述处理模块包括处理单元和控制单元;所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示所述控制单元持续触发所述第一光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述控制单元发送中断命令,所述中断命令用于指示所述控制单元停止触发所述第一光终端的上行光信号的功率检测;所述控制单元,用于在接收到所述控制命令后,持续在所述第一光终端的上行授权时隙向所述光模块发送所述第一触发信号;并在接收到所述中断命令时,停止向所述光模块发送所述第一触发信号。In a possible design, the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to instruct the control unit to continuously trigger the Detect the power of the uplink optical signal of the first optical terminal; and after sending the control command for the set time period, send an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the first Power detection of an uplink optical signal of an optical terminal; the control unit is configured to, after receiving the control command, continue to send the first optical module in the uplink authorization time slot of the first optical terminal. trigger signal; and when receiving the interrupt command, stop sending the first trigger signal to the optical module.
上述设计中,处理单元仅需发送一次命令,控制单元触发针对同一光终端的连续检测,由处理单元来触发控制单元停止检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, and the control unit triggers continuous detection for the same optical terminal. The processing unit triggers the control unit to stop detection, which can reduce the load of the processing unit.
在一种可能设计中,所述处理模块,具体用于:在设定时长内向所述光模块发送M*N个触发信号;其中,所述M*N个触发信号包括M个光终端的触发信号,每个光终端对应N个触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号对应在设定时长内所述每个光终端的上行授权时隙内发送。In one possible design, the processing module is specifically configured to: send M*N trigger signals to the optical module within a set time period; wherein the M*N trigger signals include triggers of M optical terminals. signal, each optical terminal corresponds to N trigger signals, the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal, and the trigger signal of each optical terminal corresponds to the set duration. It is sent within the uplink authorized time slot of each optical terminal.
上述设计中,处理模块支持在设定时长内的多个光终端的光功率的多次检测,可以提高检测效率。In the above design, the processing module supports multiple detections of the optical power of multiple optical terminals within a set time period, which can improve detection efficiency.
在一种可能的设计中,所述处理模块包括处理单元和控制单元;所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测且每个光终端的功率检测次数为N;所述控制单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M*N个触发信号。In a possible design, the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period. The power detection of the uplink optical signals of the M optical terminals and the number of power detections of each optical terminal is N; the control unit is configured to, after receiving the control command, send the power to the The optical module sends the M*N trigger signals.
上述设计中,处理单元仅需发送一次命令,控制单元触发针对多个光终端的多次检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, and the control unit triggers multiple detections for multiple optical terminals, which can reduce the load of the processing unit.
在一种可能的设计中,所述处理模块包括处理单元和控制单元;所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示所述控制单元持续触发M个光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述控制单元发送中断命令,所述中断命令用于指示所述控制单元停止触发所述M个光终端的上行光信号的功率检测;所述控制单元,用于在接收到所述控制命令后,持续在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号;并在接收到所述中断命令时,停止在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号。In a possible design, the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to instruct the control unit to continuously trigger M Power detection of the uplink optical signal of the optical terminal; and after sending the control command for the set time period, sending an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the M optical signals. Power detection of the uplink optical signal of the terminal; the control unit is configured to, after receiving the control command, continue to send trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals; and When receiving the interrupt command, stop sending trigger signals to the optical module in the uplink authorization time slots respectively corresponding to the M optical terminals.
在一种可能的设计中,处理模块可以从光模块读取M个光终端中每个光终端的多次检测结果。例如,处理模块中的CPU通过I2C从光模块读取检测结果。In a possible design, the processing module can read multiple detection results of each of the M optical terminals from the optical module. For example, the CPU in the processing module reads the detection results from the optical module through I2C.
在一种可能的设计中,所述光模块,还用于根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围;所述处理模块,还用于从所述光模块读取所述第一光终端的光功率变化范围。In a possible design, the optical module is also configured to determine the optical power variation range of the first optical terminal based on the N times of saved detection results of the first optical terminal; the processing module, It is also used to read the optical power variation range of the first optical terminal from the optical module.
上述设计中,无需处理模块频繁的从光模块读取检测结果,可以降低处理模块的负荷。In the above design, the processing module does not need to frequently read detection results from the optical module, which can reduce the load of the processing module.
在一种可能的设计中,所述处理模块,具体用于: In a possible design, the processing module is specifically used for:
在设定时长内向所述光模块发送M个触发信号;Send M trigger signals to the optical module within a set time period;
其中,所述M个触发信号与M个光终端一一对应,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。例如,设定时长可以是一个数据帧的时长,也可以是多个数据帧的时长。Wherein, the M trigger signals correspond to M optical terminals one-to-one, and the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal. The trigger signal of each optical terminal It is sent within the uplink authorized time slot corresponding to each optical terminal within the set time period. For example, the set duration can be the duration of one data frame or the duration of multiple data frames.
在一种可能的设计中,所述处理模块包括处理单元和控制单元;所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测;所述控制单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M个触发信号。In a possible design, the processing module includes a processing unit and a control unit; the processing unit is used to send a control command to the control unit, and the control command is used to indicate triggering within the set time period. Power detection of the uplink optical signals of the M optical terminals; the control unit is configured to send the M trigger signals to the optical module within the set time period after receiving the control command.
在一种可能的设计中,所述处理模块,还用于从所述光模块读取所述M个光终端每个光终端的检测结果。In a possible design, the processing module is also configured to read the detection results of each of the M optical terminals from the optical module.
在一种可能的设计中,所述处理模块,还用于从所述光模块中读取所述光模块的功能指示信息;当所述功能指示信息指示所述光模块具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号。In a possible design, the processing module is also used to read the function indication information of the optical module from the optical module; when the function indication information indicates that the optical module has the ability to collect optical power at high speed, When capable, a first trigger signal for triggering uplink optical power detection is sent to the optical module within the uplink authorization time slot of the first optical terminal.
在一种可能的设计中,所述处理模块,还用于在所述功能指示信息指示所述光模块不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。In a possible design, the processing module is further configured to, when the function indication information indicates that the optical module does not have the ability to collect optical power at high speed, send the signal to the first optical terminal in the uplink authorization time slot. The optical module sends a second trigger signal for triggering uplink optical power detection, where the second trigger signal does not carry the identification information of the first optical terminal.
上述设计中,支持兼容无法识别携带光终端的标识信息的光模块。In the above design, it is compatible with optical modules that cannot recognize the identification information carrying the optical terminal.
第二方面,本申请实施例提供一种光功率的检测方法,应用于光头端,包括:生成用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到第一光终端的检测结果;将所述检测结果与所述第一光终端的标识信息关联保存。In a second aspect, embodiments of the present application provide an optical power detection method, applied to an optical head end, including: generating a first trigger signal for triggering uplink optical power detection, the first trigger signal carrying the first optical power Identification information of the terminal; detecting the power of the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal to obtain the detection result of the first optical terminal; The detection result is stored in association with the identification information of the first optical terminal.
在一种可能的设计中,所述第一触发信号中包括用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;In a possible design, the first trigger signal includes a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and identification information of the first optical terminal;
其中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,Wherein, the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal; or,
所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长包括的M个光终端的上行授权时隙内分别生成所述第一触发信号;The first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
其中,M为大于1的整数,所述M个触发信号与M个光终端一一对应,所述M个光终端包括所述第一光终端,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, M is an integer greater than 1, the M trigger signals correspond to M optical terminals one-to-one, the M optical terminals include the first optical terminal, and each of the M optical terminals corresponds to The trigger signal carries the identification information of each optical terminal, and the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;设定时 长内至少包括第一光终端的M个上行授权时隙,第一光终端的M个上行授权时隙分别生成有所述第一光终端的第一触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。Within the set time period, the uplink authorization time slots of N optical terminals generate trigger signals corresponding to N optical terminals respectively; when setting The length includes at least M uplink authorization time slots of the first optical terminal. The M uplink authorization time slots of the first optical terminal respectively generate the first trigger signal of the first optical terminal. Each of the M optical terminals The trigger signal corresponding to each optical terminal carries the identification information of each optical terminal.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
根据所述第一光终端的标识信息关联的M个所述第一光终端的检测结果确定所述第一光终端的光功率变化范围。The optical power variation range of the first optical terminal is determined according to the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;所述N个光终端包括所述第一光终端,所述N个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
生成用于触发上行光功率检测的第一触发信号之前,确定具备高速采集光功率的能力。Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
在不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。When the ability to collect optical power at high speed is not available, a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
第三方面,本申请实施例提供一种OLT,包括光模块和MAC单元;所述MAC单元,用于在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;所述光模块,用于根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到检测结果,并将所述检测结果与所述第一光终端的标识信息关联保存。In a third aspect, embodiments of the present application provide an OLT, including an optical module and a MAC unit; the MAC unit is configured to send a signal to the optical module for triggering uplink optical power detection within the uplink authorization time slot of the first optical terminal. the first trigger signal, the first trigger signal carries the identification information of the first optical terminal; the optical module is configured to activate the first trigger signal in the uplink authorization time slot of the first optical terminal according to the first trigger signal Detect the power of the uplink optical signal sent by the first optical terminal to obtain a detection result, and store the detection result in association with the identification information of the first optical terminal.
由于现有技术光模块并不知晓当前需要采样光功率对应的是哪个光终端,仅在上行授权时隙采样光信号。从而导致需要等待OLT通过I2C接口读取到光模块采样的光功率后,才能再次发送触发信号。而本申请实施例中,通过在触发信号中携带光终端的标识信息,从而光模块在采样光终端的上行光功率后,将采样得到的检测结果与光终端的标识信息关联保存,从而下一次的检测结果并不会覆盖上一次的检测结果。进而从光模块读取检测结果也无需在当前次光模块完成光功率的采集之后,且在下次向光模块发送触发信号之前来完成。进一步地,下一次向光模块发送触发信号的时间也无需等待从光模块读取上一次检测结果的时间,进而可以提高检测效率。Since the existing technology optical module does not know which optical terminal corresponds to the current optical power that needs to be sampled, it only samples the optical signal in the uplink authorized time slot. As a result, it is necessary to wait for the OLT to read the optical power sampled by the optical module through the I2C interface before sending the trigger signal again. In the embodiment of the present application, by carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, associates and saves the sampled detection results with the identification information of the optical terminal, so that the next time The test results will not overwrite the previous test results. Furthermore, reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
在一种可能的设计中,所述光模块,具体用于:从所述第一触发信号中提取出用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;根据所述第一信号在所述第一光终端的上行授权时隙内采样所述第一光终端发送的上行光信号的功率。In a possible design, the optical module is specifically configured to: extract from the first trigger signal a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and the Identification information of the first optical terminal; sampling the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first signal.
在一种可能的设计中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,In a possible design, the first trigger signal is obtained by carrying the identification information of the first optical terminal at the high level of the first signal; or,
所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。 In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
上述设计中,第一信号可以理解原始的触发信号。也可以是区别于原始触发信号的信号。通过第一信号与光终端的标识信息对应的电平信号的合并来获得第一触发信号,易于实现。一些实施例中,第一信号为原始的触发信号的情况下,无需更改光模块根据触发信号来触发检测的功能,提高兼容性。In the above design, the first signal can understand the original trigger signal. It can also be a signal that is different from the original trigger signal. The first trigger signal is obtained by combining the first signal and the level signal corresponding to the identification information of the optical terminal, which is easy to implement. In some embodiments, when the first signal is the original trigger signal, there is no need to change the function of the optical module to trigger detection based on the trigger signal, thereby improving compatibility.
在一种可能的设计中,所述MAC单元,具体用于:在设定时长内向所述光模块发送N次所述第一触发信号。In a possible design, the MAC unit is specifically configured to send the first trigger signal to the optical module N times within a set time period.
在一种可能的设计中,所述OLT还包括处理单元;所述处理单元,用于向所述MAC单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述第一光终端的上行光信号的功率检测的次数为N;所述MAC单元,用于在接收到所述控制命令后,在所述设定时长内包括的所述第一光终端的N个上行授权时隙内分别向所述光模块发送所述第一触发信号。In a possible design, the OLT further includes a processing unit; the processing unit is used to send a control command to the MAC unit, and the control command is used to instruct the triggering of the first step within the set time period. The number of times of power detection of the uplink optical signal of an optical terminal is N; the MAC unit is configured to, after receiving the control command, detect N uplink signals of the first optical terminal included in the set time period. The first trigger signal is sent to the optical module respectively within the authorized time slot.
上述设计中,处理单元仅需发送一次命令,MAC单元触发针对同一光终端的多次检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, and the MAC unit triggers multiple detections for the same optical terminal, which can reduce the load of the processing unit.
在一种可能的设计中,处理单元可以从所述光模块读取所述第一光终端的N次所述检测结果。In a possible design, the processing unit may read N times of the detection results of the first optical terminal from the optical module.
一种可能的设计中,光模块完成N次光终端的光功率检测后,所述光模块根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围;所述处理单元,还用于从所述光模块读取所述第一光终端的光功率变化范围。In one possible design, after the optical module completes N times of optical power detection of the optical terminal, the optical module determines the optical power of the first optical terminal based on the N times of saved detection results of the first optical terminal. Variation range; the processing unit is also configured to read the optical power variation range of the first optical terminal from the optical module.
上述设计中,无需处理单元频繁的从光模块读取检测结果,可以降低MAC单元的负荷。In the above design, there is no need for the processing unit to frequently read detection results from the optical module, which can reduce the load of the MAC unit.
在一种可能的设计中,所述处理单元,用于向所述MAC单元发送控制命令,所述控制命令用于指示所述MAC单元持续触发所述第一光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述MAC单元发送中断命令,所述中断命令用于指示所述MAC单元停止触发所述第一光终端的上行光信号的功率检测;所述MAC单元,用于在接收到所述控制命令后,持续在所述第一光终端的上行授权时隙向所述光模块发送所述第一触发信号;并在接收到所述中断命令时,停止向所述光模块发送所述第一触发信号。In a possible design, the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct the MAC unit to continuously trigger power detection of the uplink optical signal of the first optical terminal. ; And after sending the control command for the set duration, send an interrupt command to the MAC unit, where the interrupt command is used to instruct the MAC unit to stop triggering the power detection of the uplink optical signal of the first optical terminal; The MAC unit is configured to continue to send the first trigger signal to the optical module in the uplink authorization time slot of the first optical terminal after receiving the control command; and after receiving the interrupt command when, stop sending the first trigger signal to the optical module.
上述设计中,处理单元仅需发送一次命令,MAC单元触发针对同一光终端的连续检测,由处理单元来触发MAC单元停止检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, the MAC unit triggers continuous detection of the same optical terminal, and the processing unit triggers the MAC unit to stop detection, which can reduce the load of the processing unit.
在一种可能设计中,所述MAC单元,具体用于:在设定时长内向所述光模块发送M*N个触发信号;其中,所述M*N个触发信号包括M个光终端的触发信号,每个光终端对应N个触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号对应在设定时长内所述每个光终端的上行授权时隙内发送。In one possible design, the MAC unit is specifically configured to: send M*N trigger signals to the optical module within a set time period; wherein the M*N trigger signals include triggers of M optical terminals. signal, each optical terminal corresponds to N trigger signals, the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal, and the trigger signal of each optical terminal corresponds to the set duration. It is sent within the uplink authorized time slot of each optical terminal.
上述设计中,MAC单元支持在设定时长内的多个光终端的光功率的多次检测,可以提高检测效率。In the above design, the MAC unit supports multiple detections of the optical power of multiple optical terminals within a set time period, which can improve detection efficiency.
在一种可能的设计中,所述处理单元,用于向所述MAC单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测且每个光终端的功率检测次数为N;所述MAC单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M*N个触发信号。In a possible design, the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct to trigger the uplink optical signals of the M optical terminals within the set time period. Power detection and the number of power detections for each optical terminal is N; the MAC unit is configured to send the M*N trigger signals to the optical module within the set time period after receiving the control command. .
上述设计中,处理单元仅需发送一次命令,MAC单元触发针对多个光终端的多次检测,可以减少处理单元的负荷。In the above design, the processing unit only needs to send a command once, and the MAC unit triggers multiple detections for multiple optical terminals, which can reduce the load of the processing unit.
在一种可能的设计中,所述处理单元,用于向所述MAC单元发送控制命令,所述控制命 令用于指示所述MAC单元持续触发M个光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述MAC单元发送中断命令,所述中断命令用于指示所述MAC单元停止触发所述M个光终端的上行光信号的功率检测;所述MAC单元,用于在接收到所述控制命令后,持续在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号;并在接收到所述中断命令时,停止在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号。In a possible design, the processing unit is configured to send a control command to the MAC unit, and the control command The order is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signals of M optical terminals; and after sending the control command for the set time period, send an interrupt command to the MAC unit, and the interrupt command is used to Instruct the MAC unit to stop triggering the power detection of the uplink optical signals of the M optical terminals; the MAC unit is configured to continue to perform uplink authorization corresponding to the M optical terminals after receiving the control command. Send a trigger signal to the optical module in the time slot; and when receiving the interrupt command, stop sending the trigger signal to the optical module in the uplink authorization time slot corresponding to the M optical terminals.
在一种可能的设计中,处理单元可以从光模块读取M个光终端中每个光终端的多次检测结果。例如,CPU通过I2C从光模块读取检测结果。In one possible design, the processing unit can read multiple detection results of each of the M optical terminals from the optical module. For example, the CPU reads the detection results from the optical module through I2C.
在一种可能的设计中,所述光模块,还用于根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围;所述处理单元,还用于从所述光模块读取所述第一光终端的光功率变化范围。In a possible design, the optical module is also configured to determine the optical power variation range of the first optical terminal based on the saved N detection results of the first optical terminal; the processing unit, It is also used to read the optical power variation range of the first optical terminal from the optical module.
上述设计中,无需处理单元频繁的从光模块读取检测结果,可以降低处理单元的负荷。In the above design, there is no need for the processing unit to frequently read detection results from the optical module, which can reduce the load of the processing unit.
在一种可能的设计中,所述MAC单元,具体用于:In a possible design, the MAC unit is specifically used for:
在设定时长内向所述光模块发送M个触发信号;Send M trigger signals to the optical module within a set time period;
其中,所述M个触发信号与M个光终端一一对应,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。例如,设定时长可以是一个数据帧的时长,也可以是多个数据帧的时长。Wherein, the M trigger signals correspond to M optical terminals one-to-one, and the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal. The trigger signal of each optical terminal It is sent within the uplink authorized time slot corresponding to each optical terminal within the set time period. For example, the set duration can be the duration of one data frame or the duration of multiple data frames.
在一种可能的设计中,所述处理单元,用于向所述MAC单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测;所述MAC单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M个触发信号。In a possible design, the processing unit is configured to send a control command to the MAC unit, where the control command is used to instruct to trigger the uplink optical signals of the M optical terminals within the set time period. Power detection; the MAC unit is configured to send the M trigger signals to the optical module within the set time period after receiving the control command.
在一种可能的设计中,所述处理单元,还用于从所述光模块读取所述M个光终端每个光终端的检测结果。In a possible design, the processing unit is also configured to read the detection results of each of the M optical terminals from the optical module.
在一种可能的设计中,所述处理单元,还用于从所述光模块中读取所述光模块的功能指示信息;当所述功能指示信息指示所述光模块具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号。In a possible design, the processing unit is also configured to read the function indication information of the optical module from the optical module; when the function indication information indicates that the optical module has the ability to collect optical power at high speed, When capable, a first trigger signal for triggering uplink optical power detection is sent to the optical module within the uplink authorization time slot of the first optical terminal.
在一种可能的设计中,所述处理单元,还用于在所述功能指示信息指示所述光模块不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。In a possible design, the processing unit is further configured to, when the function indication information indicates that the optical module does not have the ability to collect optical power at high speed, send the signal to the first optical terminal in the uplink authorization time slot. The optical module sends a second trigger signal for triggering uplink optical power detection, where the second trigger signal does not carry the identification information of the first optical terminal.
上述设计中,支持兼容无法识别携带光终端的标识信息的光模块。In the above design, it is compatible with optical modules that cannot recognize the identification information carrying the optical terminal.
第四方面,本申请实施例提供一种光功率的检测方法,包括:生成用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;向光模块发送所述第一触发信号,以触发所述光模块根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到第一光终端的检测结果,并将所述检测结果与所述第一光终端的标识信息关联保存。In a fourth aspect, embodiments of the present application provide an optical power detection method, including: generating a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal; Send the first trigger signal to the optical module to trigger the optical module to detect the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal. The power obtains the detection result of the first optical terminal, and stores the detection result in association with the identification information of the first optical terminal.
在一种可能的设计中,所述第一触发信号中包括用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;In a possible design, the first trigger signal includes a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and identification information of the first optical terminal;
其中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者, Wherein, the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal; or,
所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长包括的M个光终端的上行授权时隙内分别生成所述第一触发信号;The first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
其中,M为大于1的整数,所述M个触发信号与M个光终端一一对应,所述M个光终端包括所述第一光终端,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, M is an integer greater than 1, the M trigger signals correspond to M optical terminals one-to-one, the M optical terminals include the first optical terminal, and each of the M optical terminals corresponds to The trigger signal carries the identification information of each optical terminal, and the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;设定时长内至少包括第一光终端的M个上行授权时隙,第一光终端的M个上行授权时隙分别生成有所述第一光终端的第一触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals within the set time period generate trigger signals corresponding to the N optical terminals respectively; the set time period includes at least M uplink authorization time slots of the first optical terminal, M of the first optical terminal The first trigger signals of the first optical terminals are respectively generated in the uplink authorization time slots, and the trigger signals corresponding to each of the M optical terminals carry the identification information of each optical terminal.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
从所述光模块获取所述第一光终端的标识信息关联的M个所述第一光终端的检测结果。The detection results of the M first optical terminals associated with the identification information of the first optical terminal are obtained from the optical module.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
从所述光模块获取所述第一光终端的光功率变化范围。所述光功率变化范围是所述光模块根据所述第一光终端的标识信息关联的M个所述第一光终端的检测结果确定的。Obtain the optical power variation range of the first optical terminal from the optical module. The optical power variation range is determined by the optical module based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
在一种可能的设计中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible design, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;所述N个光终端包括所述第一光终端,所述N个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
生成用于触发上行光功率检测的第一触发信号之前,确定具备高速采集光功率的能力。Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
在不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。When the ability to collect optical power at high speed is not available, a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
第五方面,本申请实施例提供一种光功率的检测装置,包括,所述装置包括处理器、存储器和总线系统,所述处理器和所述存储器通过所述总线系统相连,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,以实现第四方面或者第四方面的任一设计所述的方法。In a fifth aspect, embodiments of the present application provide an optical power detection device, including: the device includes a processor, a memory and a bus system; the processor and the memory are connected through the bus system; the memory uses For storing instructions, the processor is configured to execute instructions stored in the memory to implement the method described in the fourth aspect or any design of the fourth aspect.
第六方面,本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第四方面或第四方面的任意可选的实现中的方法的指令。In a sixth aspect, embodiments of the present application provide a computer-readable medium for storing a computer program. The computer program includes instructions for executing the method in the fourth aspect or any optional implementation of the fourth aspect.
本申请在上述各方面提供的实现的基础上,还可以进行进一步组合以提供更多实现。On the basis of the implementations provided by the above aspects, this application can also be further combined to provide more implementations.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附 图作简要介绍。In order to explain the technical solutions in the embodiments of the present application more clearly, the appendices needed to be used in the description of the embodiments will be described below. Picture for a brief introduction.
图1为本申请实施例提供的光通信系统架构示意图;Figure 1 is a schematic diagram of the optical communication system architecture provided by an embodiment of the present application;
图2A为一种OLT结构示意图;Figure 2A is a schematic diagram of an OLT structure;
图2B为一种触发信号时序示意图;Figure 2B is a schematic diagram of trigger signal timing;
图3为本申请实施例提供的一种光功率检测装置示意图;Figure 3 is a schematic diagram of an optical power detection device provided by an embodiment of the present application;
图4为本申请实施例提供的另一种光功率检测装置示意图;Figure 4 is a schematic diagram of another optical power detection device provided by an embodiment of the present application;
图5为本申请实施例提供的扩展触发信号示意图;Figure 5 is a schematic diagram of an extended trigger signal provided by an embodiment of the present application;
图6为本申请实施例提供的又一种光功率检测装置示意图;Figure 6 is a schematic diagram of another optical power detection device provided by an embodiment of the present application;
图7为本申请实施例提供的一种光功率的检测方法流程示意图;Figure 7 is a schematic flow chart of an optical power detection method provided by an embodiment of the present application;
图8为本申请实施例提供的一种光功率检测装置800示意图。Figure 8 is a schematic diagram of an optical power detection device 800 provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例可以应用于光通信系统中,光通信系统可以是TDM PON系统。TDM PON系统可以是吉比特无源光网络(gigabit-capable PON,GPON)系统、以太网无源光网络(ethernet PON,EPON)系统、10G以太无源光网络(10 Gb/s ethernet passive optical network,10G-EPON)系统、10G比特无源光网络(10 gigabit-capable passive optical network,XG-PON)系统或者10G比特对称无源光网络(10-gigabit-capable symmetric passive optical network,XGS-PON)系统等。TDM PON系统是一个点到多点(point 2 multiple point,P2MP)系统。The embodiments of this application can be applied to optical communication systems, and the optical communication system can be a TDM PON system. The TDM PON system can be a gigabit-capable PON (GPON) system, an Ethernet passive optical network (ethernet PON, EPON) system, or a 10Gb/s ethernet passive optical network , 10G-EPON) system, 10 gigabit-capable passive optical network (XG-PON) system or 10G bit symmetric passive optical network (10-gigabit-capable symmetric passive optical network, XGS-PON) system etc. The TDM PON system is a point-to-multipoint (point 2 multiple point, P2MP) system.
图1是本申请适用的一种光通信系统的系统架构示意图。该光通信系统以包括光头端、光分配网络(optical distribution network,ODN)和光终端为例。光头端通过ODN与光终端连接。图1是以光通信系统包括n个光终端为例,n个光终端分别为光终端1、光终端2、……、光终端n。其中,光头端例如可以是光线路终端(optical line terminal,OLT),OLT是局端设备,为光通信系统提供网络侧接口,连接一个或者多个ODN。ODN是无源光分配网络,用于连接光线路终端OLT和光终端,用于分发或复用OLT和光终端之间的数据信号。ODN包括主干光纤、分光器(splitter)(或称为光分路器)和分支光纤,分光器是具有多个输入端和多个输出端的光纤汇接器件,用于光信号的耦合和分配。光头端与分光器之间通过主干光纤连接,分光器与光终端之间通过分支光纤连接。光终端例如可以是光网络终端(optical network terminal,ONT)或光网络单元(optical network unit,ONU),ONT或ONU是PON系统的末尾单元,用于为光通信系统提供用户侧接口,也称为“光猫”。换言之,OLT可以实现本申请中光头端的功能,ONT或ONU可以实现本申请中光终端的功能。Figure 1 is a schematic system architecture diagram of an optical communication system applicable to this application. The optical communication system includes an optical head end, an optical distribution network (optical distribution network, ODN) and an optical terminal as an example. The optical head end is connected to the optical terminal through ODN. Figure 1 takes an optical communication system including n optical terminals as an example. The n optical terminals are optical terminal 1, optical terminal 2, ..., and optical terminal n. Among them, the optical head end can be, for example, an optical line terminal (OLT). The OLT is a central office device that provides a network-side interface for the optical communication system and connects one or more ODNs. ODN is a passive optical distribution network, used to connect optical line terminals OLT and optical terminals, and to distribute or multiplex data signals between OLT and optical terminals. ODN includes trunk optical fibers, splitters (or optical splitters) and branch optical fibers. An optical splitter is an optical fiber junction device with multiple input ends and multiple output ends, used for coupling and distribution of optical signals. The optical head end and the optical splitter are connected through the trunk optical fiber, and the optical splitter and the optical terminal are connected through the branch optical fiber. The optical terminal can be, for example, an optical network terminal (ONT) or an optical network unit (ONU). The ONT or ONU is the end unit of the PON system and is used to provide a user-side interface for the optical communication system, also known as For "Light Cat". In other words, the OLT can realize the function of the optical headend in this application, and the ONT or ONU can realize the function of the optical terminal in this application.
在采用时分复用(TDM)的光通信系统中,例如在GPON系统中,不同的光终端分别在不同的上行授权时隙中向光头端发送上行光信号,光终端发送上行光信号的持续时间或带宽可以统一由光头端分配。In an optical communication system using time division multiplexing (TDM), such as in a GPON system, different optical terminals send uplink optical signals to the optical head end in different uplink authorized time slots, and the duration of the uplink optical signal sent by the optical terminal is Or the bandwidth can be uniformly allocated by the optical head end.
需要说明的是,上述图1所示例出光通信系统中包括的光头端、光终端、分光器、以及分光器包括的端口的数量也仅是示例,本申请对此不作限定。此外,图1所示的光通信系统中的各个结构的名称仅是一个示例,具体实现中各个结构的名称也可能为其他名称,本申请对此不作具体限定。 It should be noted that the number of optical heads, optical terminals, optical splitters, and ports included in the optical splitter included in the optical communication system illustrated in FIG. 1 are only examples, and are not limited in this application. In addition, the names of each structure in the optical communication system shown in Figure 1 are only an example. In specific implementation, the names of each structure may also be other names, and this application does not specifically limit this.
上述光通信系统可应用于工业场景,例如可作为网络承载基础设施,实现对工业产线业务、办公网络、视频监控、门禁系统、生产管理、外网或内网等业务应用的综合接入。面对各类业务对于网络资源的需求、分权分区域管理和安全隔离等必要的需求,光头端需要具备网络切片能力。也可以理解为,一个物理光头端可以虚拟出多个逻辑光头端(在用户看来等同于多个独立的物理设备),分别承载各类业务。切片之间的网络资源、运维管理权限和业务等互不干扰,从而可以有效实现可靠性、安全性和网络资源三者之间的平衡。The above-mentioned optical communication system can be used in industrial scenarios. For example, it can be used as a network carrying infrastructure to achieve comprehensive access to business applications such as industrial production line services, office networks, video surveillance, access control systems, production management, external networks or intranets. In the face of various business demands for network resources, decentralized area management, and security isolation, optical heads need to have network slicing capabilities. It can also be understood that one physical optical head can virtualize multiple logical optical heads (which are equivalent to multiple independent physical devices in the user's view) to carry various services respectively. Network resources, operation and maintenance management permissions, and services between slices do not interfere with each other, thus effectively achieving a balance between reliability, security, and network resources.
为方便说明,本申请后续,以光头端为OLT,光终端为ONU为例进行说明。即本申请后续所描述的OLT均可替换为光头端,ONU均可替换为光终端。For convenience of explanation, in the following description of this application, the optical head end is an OLT and the optical terminal is an ONU. That is to say, the OLT described later in this application can be replaced with an optical head end, and the ONU can be replaced with an optical terminal.
基于上述图1,数据(或信号)从光头端传输至光终端的传输方向称为下行方向。数据(或信号)从光终端传输至光头端的方向称为上行方向。光头端向光终端传输数据(或信号)的方式可以是广播,光终端向光头端传输数据(或信号)的方式可以单播。应理解,对于上行方向,该PON系统是多点对点(multi-point to point,MP2P)系统;对于下行方向,该PON系统是点到多点(point 2 multiple point,P2MP)系统。Based on the above-mentioned Figure 1, the transmission direction of data (or signal) from the optical head end to the optical terminal is called the downstream direction. The direction in which data (or signals) are transmitted from the optical terminal to the optical head is called the upstream direction. The way the optical head end transmits data (or signals) to the optical terminal can be broadcast, and the way the optical terminal transmits data (or signals) to the optical head end can be unicast. It should be understood that for the uplink direction, the PON system is a multi-point to point (MP2P) system; for the downlink direction, the PON system is a point 2 multiple point (P2MP) system.
结合图1来说,在下行方向上,OLT端口发出光信号,经过ODN网络的分发,达到每个ONU,OLT端口发送光信号的光功率和ONU接收到的光功率之间的差距是由两者之间的ODN网络带来的。同样,在上行方向上,ONU发送的光功率经过ODN网络的衰减,也会在ONU发送和OLT接收端口之间形成功率的差距。一般来讲,在ODN网络各个部件工作正常,接头连接良好时,ODN网络带来的上、下行光信号的衰减是在一定的范围内,可以在网络建设时规划好ODN网络的衰减,以及上下行发送端发出的光功率及接收端能够容忍的最小光功率,使得达到接收端的光信号强度能够满足接收端正常工作的要求。但是,在实际情况下,因为地震、施工、不恰当的维护等原因,可能会带来额外的光器件、光接口损耗,甚至导致接收端光信号太弱或丢失,不能正常通信。Combined with Figure 1, in the downlink direction, the OLT port sends out optical signals, which are distributed by the ODN network and reach each ONU. The gap between the optical power of the optical signal sent by the OLT port and the optical power received by the ONU is determined by the two brought between ODN networks. Similarly, in the upstream direction, the optical power sent by the ONU is attenuated by the ODN network, which will also form a power gap between the ONU sending and OLT receiving ports. Generally speaking, when the various components of the ODN network are working normally and the connectors are well connected, the attenuation of the uplink and downlink optical signals brought by the ODN network is within a certain range. The attenuation of the ODN network, as well as the uplink and downlink optical signals, can be planned during network construction. The optical power emitted by the transmitting end and the minimum optical power that the receiving end can tolerate are determined so that the optical signal strength reaching the receiving end can meet the requirements for the normal operation of the receiving end. However, in actual situations, due to earthquakes, construction, improper maintenance, etc., additional optical components and optical interface losses may occur, which may even cause the optical signal at the receiving end to be too weak or lost, preventing normal communication.
在典型的上下行分别使用单个波长的PON网络中,由于多个ONU共用一个公共波长,下行方向采用了广播方式,OLT将所有ONU的报文封装在数据帧中,ONU接收属于自己的数据。上行方向则使用了时分复用技术,正常工作时,OLT给每个ONU分别分配用于发送数据信号的上行授权时隙,ONU在OLT分配的上行授权时隙上发送上行数据信号。因此OLT端接收到的上行光信号是分段的,因为每个ONU在ODN的不同端口上,其与OLT端口之间的衰减各异,另外各个ONU的发送光功率也并不完全相同,OLT端接收到各个ONU的上行光功率也是不同的。In a typical PON network that uses a single wavelength for uplink and downlink, since multiple ONUs share a common wavelength, broadcast mode is used in the downlink direction. The OLT encapsulates all ONU messages in data frames, and the ONU receives its own data. The upstream direction uses time division multiplexing technology. During normal operation, the OLT allocates uplink authorized time slots for sending data signals to each ONU, and the ONU sends uplink data signals on the uplink authorized time slots allocated by the OLT. Therefore, the uplink optical signal received by the OLT is segmented, because each ONU is on a different port of the ODN, and the attenuation between it and the OLT port is different. In addition, the transmit optical power of each ONU is not exactly the same. The OLT The uplink optical power received by each ONU at the end is also different.
目前OLT采用的光功率检测方式,通过MAC芯片与光模块配合,可以检测端口下任一ONU发出的光信号到达OLT的光功率。参见图2A所示,OLT中MAC给OLT的光模块提供一个触发信号。触发信号与待采集上行光功率的ONU的上行光信号时序上对齐。光模块收到触发信号后,采样代表上行平均光功率的模拟电压,并对该电压做模数转换得到的检测结果,存储到光模块的I2C接口的表项中,进而再通过I2C接口从光模块读取检测结果。The optical power detection method currently adopted by OLT can detect the optical power of the optical signal from any ONU under the port reaching the OLT through the cooperation of MAC chip and optical module. As shown in Figure 2A, the MAC in the OLT provides a trigger signal to the optical module of the OLT. The trigger signal is aligned in timing with the upstream optical signal of the ONU whose upstream optical power is to be collected. After the optical module receives the trigger signal, it samples the analog voltage that represents the average uplink optical power, performs analog-to-digital conversion on the voltage, and stores the detection result in the I2C interface entry of the optical module. The module reads the test results.
I2C接口是一种简单、双向二线制同步串行总线接口。它只需要两根线即可在连接于总线上的器件之间传送信息。目前主流的光模块均采用了I2C接口作为管理接口,可以通过I2C接口访问光模块内部存储表,实现光模块识别、功能配置、数字诊断等目的。The I2C interface is a simple, bidirectional two-wire synchronous serial bus interface. It requires only two wires to transfer information between devices connected to the bus. Currently, mainstream optical modules use the I2C interface as the management interface. The internal storage table of the optical module can be accessed through the I2C interface to achieve optical module identification, function configuration, digital diagnosis and other purposes.
由于上行采用时分复用的PON系统中,ONU发送的光信号都是串行,从而OLT采集ONU的光功率也都是串行的。在OLT的MAC发出触发信号后,光模块对上行光信号强度进行采样 和模数转换得到检测结果,并将检测结果存在到光模块的I2C接口的表项中。然后OLT中的CPU通过I2C接口来读取光模块的I2C接口的表项中存储的检测结果。但是触发信号与待采集上行光功率的ONU的上行光信号时序对齐,参见图2B所示,从而光模块在根据触发信号启动光功率采集后,当前次的检测结果会覆盖上一次的检测结果。进而通过I2C接口从光模块读取采集的光功率,需要当前次光模块完成光功率的采集之后,且在下次向光模块发送触发信号之前来完成。目前,光模块内部采集上行光功率的时间在500us左右,而通过I2C接口读取上行光功率则需要约560us的时间,单次采样需要时间达到1.06ms。在故障分析等场景中,需要OLT端能够实现高速采集ONU的上行光功率信号,在该信号强度发生变化时,希望通过对该信号变化过程的分析,获知故障产生的可能原因,并对故障恢复提供指导。而某些功率衰减/信号断开事件可能发生在数ms的时间内,需要高速率的功率采集(最高达到逐个burst采集能力),获取足够丰富的功率变化细节数据。目前的方案难以再提高光功率的采集速率。Since in the PON system that uses time division multiplexing in the upstream, the optical signals sent by the ONU are all serial, so the optical power collected by the OLT is also serial. After the OLT's MAC sends a trigger signal, the optical module samples the uplink optical signal strength. and analog-to-digital conversion to obtain the detection result, and store the detection result in the table entry of the I2C interface of the optical module. Then the CPU in the OLT reads the detection results stored in the table entry of the I2C interface of the optical module through the I2C interface. However, the trigger signal is aligned with the upstream optical signal timing of the ONU to be collected, as shown in Figure 2B. Therefore, after the optical module starts optical power collection based on the trigger signal, the current detection result will overwrite the previous detection result. Then, reading the collected optical power from the optical module through the I2C interface needs to be completed after the current optical module completes the optical power collection and before sending a trigger signal to the optical module next time. Currently, the time it takes to collect the uplink optical power inside the optical module is about 500us, while reading the uplink optical power through the I2C interface takes about 560us, and a single sampling takes 1.06ms. In scenarios such as fault analysis, the OLT end needs to be able to collect the uplink optical power signal of the ONU at high speed. When the signal strength changes, it is hoped that through the analysis of the signal change process, the possible cause of the fault can be known, and fault recovery can be carried out. Provide guidance. Some power attenuation/signal disconnection events may occur within a few milliseconds, requiring high-rate power collection (up to burst-by-burst collection capabilities) to obtain sufficiently rich detailed power change data. It is difficult to increase the optical power collection rate with the current solution.
基于此,本申请实施例提供一种光功率的检测方法及装置,通过在触发信号中携带光终端的标识信息,从而光模块在采样光终端的上行光功率后,将采样得到的检测结果与光终端的标识信息关联保存,从而下一次的检测结果并不会覆盖上一次的检测结果。进而从光模块读取检测结果也无需在当前次光模块完成光功率的采集之后,且在下次向光模块发送触发信号之前来完成。进一步地,下一次向光模块发送触发信号的时间也无需等待从光模块读取上一次检测结果的时间,进而可以提高检测效率。Based on this, embodiments of the present application provide an optical power detection method and device. By carrying the identification information of the optical terminal in the trigger signal, the optical module, after sampling the uplink optical power of the optical terminal, compares the sampled detection results with The identification information of the optical terminal is stored in association, so that the next detection result will not overwrite the previous detection result. Furthermore, reading the detection results from the optical module does not need to be completed after the current optical module completes the collection of optical power and before sending a trigger signal to the optical module next time. Furthermore, the next time the trigger signal is sent to the optical module, there is no need to wait for the time to read the last detection result from the optical module, thereby improving detection efficiency.
参见图3所示,本申请实施例提供的光功率的检测装置包括处理模块310和光模块320。光功率的检测装置应用于OLT中。应理解,图3所示的光功率的检测装置仅是一个示例。本申请中的光功率的检测装置可以具有比图3所示的光功率的检测装置更多的器件。处理模块向光模块发送的用于触发上行功率检测的触发信号中携带ONU的标识信息。标识信息比如可以是ONU的ID,或者其它用于在光通信系统中唯一标识ONU的信息。以第一ONU为例,第一ONU的触发信号称为第一触发信号。处理模块310在第一ONU的上行授权时隙内向光模块320发送用于触发上行功率检测的第一触发信号。该第一触发信号中携带第一ONU的标识信息。进一步地,光模块320可以根据第一触发信号在第一ONU的上行授权时隙内检测第一ONU的上行光信号的功率得到检测结果,并将该检测结果与第一ONU的标识信息关联保存。Referring to FIG. 3 , the optical power detection device provided by the embodiment of the present application includes a processing module 310 and an optical module 320 . The optical power detection device is used in OLT. It should be understood that the optical power detection device shown in FIG. 3 is only an example. The optical power detection device in this application may have more components than the optical power detection device shown in FIG. 3 . The trigger signal sent by the processing module to the optical module to trigger the uplink power detection carries the identification information of the ONU. The identification information may be, for example, the ID of the ONU, or other information used to uniquely identify the ONU in the optical communication system. Taking the first ONU as an example, the trigger signal of the first ONU is called the first trigger signal. The processing module 310 sends a first trigger signal for triggering the uplink power detection to the optical module 320 within the uplink authorization time slot of the first ONU. The first trigger signal carries identification information of the first ONU. Further, the optical module 320 can detect the power of the uplink optical signal of the first ONU within the uplink authorized time slot of the first ONU according to the first trigger signal to obtain a detection result, and associate and save the detection result with the identification information of the first ONU. .
示例性地,光模块320在接收到第一触发信号后,从第一触发信号中提取出第一ONU的标识信息,在第一ONU的上行授权时隙内检测到第一ONU发送上行光信号的功率后,可以将检测结果与第一ONU的标识信息关联保存。Exemplarily, after receiving the first trigger signal, the optical module 320 extracts the identification information of the first ONU from the first trigger signal, and detects that the first ONU sends an uplink optical signal within the uplink authorized time slot of the first ONU. After the power is obtained, the detection result can be associated and saved with the identification information of the first ONU.
本申请实施例提供的触发信号不同于现有的触发信号,本申请实施例提供的触发信号携带该触发信号所针对检测功率的光终端的标识信息。现有的触发信号并不会携带其它信息。为了便于与现有的触发信号进行区分,本申请实施例提供的触发信号也可以称为扩展触发信号,扩展触发信号携带该触发信号所针对检测功率的光终端的标识信息。The trigger signal provided by the embodiment of the present application is different from the existing trigger signal. The trigger signal provided by the embodiment of the present application carries the identification information of the optical terminal for which the trigger signal detects power. Existing trigger signals carry no other information. In order to facilitate distinction from existing trigger signals, the trigger signal provided by the embodiment of the present application may also be called an extended trigger signal. The extended trigger signal carries the identification information of the optical terminal for which the trigger signal detects power.
一种可能的示例中,针对不同ONU的可以配置不同的存储空间,用于保存不同的ONU的检测结果。一些实施例中,针对不同的ONU可以配置不同的表,用于存储不同的ONU的检测结果。另一些实施例中,所有的ONU的均保存在一个表中,但不同的ONU占用不同的表项。本申请实施例对检测结果与ONU的标识信息的关联保存方式不作具体限定。In one possible example, different storage spaces can be configured for different ONUs to save detection results of different ONUs. In some embodiments, different tables may be configured for different ONUs to store detection results of different ONUs. In other embodiments, all ONUs are stored in one table, but different ONUs occupy different table entries. The embodiment of the present application does not specifically limit the storage method of the association between the detection results and the identification information of the ONU.
在一种可能的实施方式中,参见图4所示,在光功率的检测装置的处理模块310中可以 包括处理单元311以及控制单元312。In a possible implementation, as shown in Figure 4, the processing module 310 of the optical power detection device can It includes a processing unit 311 and a control unit 312.
示例性地,处理单元311可以包括中央处理单元(central process unit,CPU)、通用处理器、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等中的一个或者多个。控制单元312可以采用媒体接入控制(Medium Access Control,MAC)单元。Exemplarily, the processing unit 311 may include a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or a field-implementable processor. One or more of field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The control unit 312 may adopt a Medium Access Control (Medium Access Control, MAC) unit.
OLT的MAC单元,用于实现ONU管理、动态带宽分配(dynamic bandwidth allocation,DBA)、ONU注册激活、数据收发以及功率检测的触发等功能。The MAC unit of the OLT is used to implement functions such as ONU management, dynamic bandwidth allocation (DBA), ONU registration activation, data transmission and reception, and power detection triggering.
OLT的MAC单元可以采用现场可编程门阵列(field-programmable gate array,FPGA),可以采用专用集成芯片(application specific integrated circuit,ASIC),还可以采用系统芯片(system on chip,SoC),还可以采用中央处理器(central processor unit,CPU),还可以采用网络处理器(Network Processor,NP),还可以采用数字信号处理电路(digital signal processor,DSP),还可以采用微控制器(micro controller unit,MCU),还可以采用可编程控制器(programmable logic device,PLD)或其他集成芯片。The MAC unit of the OLT can use a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). A central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), or a microcontroller unit can be used. , MCU), programmable logic device (PLD) or other integrated chips can also be used.
本申请实施例中,处理单元311与控制单元312可以集成在一个芯片中,也可以分别由不同的芯片来实现相应功能,本申请实施例对此不作具体限定。In the embodiment of the present application, the processing unit 311 and the control unit 312 may be integrated into one chip, or may be implemented by different chips to implement corresponding functions. This embodiment of the present application does not specifically limit this.
如下以OLT中处理单元采用CPU为例,以OLT中的控制单元为MAC单元为例。OLT的CPU发起对ONU侧进行上行光功率的检测时,向OLT的MAC单元发送进行上行光功率检测的命令,该命令中可以包括需要测量上行光功率的ONU的标识。进行MAC单元接收到CPU的命令后,MAC单元在该被测ONU的上行授权时隙向光模块发送扩展触发信号,扩展触发信号携带被测ONU的标识信息,以控制光模块在该上行授权时隙针对该ONU进行光信号采样,然后将采样结果进行模拟信号到数字信号的转换得到该被测ONU的上行光功率的值,即检测结果。The following takes the CPU as the processing unit in the OLT as an example, and the MAC unit as the control unit in the OLT as an example. When the CPU of the OLT initiates the detection of the upstream optical power on the ONU side, it sends a command for detecting the upstream optical power to the MAC unit of the OLT. The command may include the identification of the ONU that needs to measure the upstream optical power. After the MAC unit receives the command from the CPU, the MAC unit sends an extended trigger signal to the optical module in the uplink authorization time slot of the ONU under test. The extended trigger signal carries the identification information of the ONU under test to control the optical module during the uplink authorization. The optical signal is sampled for the ONU, and then the sampling result is converted from an analog signal to a digital signal to obtain the value of the uplink optical power of the ONU under test, which is the detection result.
一些实施例中,OLT的MAC单元在生成扩展触发信号时,可以根据该被测ONU的上行授权时隙的起始时刻来确定该被测ONU的检测时刻,从而在该被测ONU的检测时刻生成用于检测该被测ONU的上行光功率的扩展触发信号。生成的扩展触发信号携带该被测ONU的标识信息。In some embodiments, when the MAC unit of the OLT generates the extended trigger signal, the detection time of the ONU under test can be determined based on the starting time of the uplink authorization time slot of the ONU under test, so that at the detection time of the ONU under test Generate an extended trigger signal for detecting the uplink optical power of the ONU under test. The generated extended trigger signal carries the identification information of the ONU under test.
在一种可能的实施方式中,参见图4所示,光模块320中可以包括控制单元321、模数转换单元322、镜像电流源323、雪崩光电二极管(avalanche photo diode,APD)偏置电路324。APD偏置电路324用于接收ONU的上行光信号,将该上行光信号转换为上行电信号,该上行电信号经过镜像电流源323后输出ONU的光功率相关电平信号。模数转换单元322将光功率相关电平信号从模拟信号转换为数字信号得到光功率的值,发送给控制电路。APD偏置电路324用于实现光电探测功能,光模块中也可以采用其它的光电探测器,本申请实施例对此不作具体限定。后续为了便于描述,不再对各个器件的标号进行示意。In a possible implementation, as shown in Figure 4, the optical module 320 may include a control unit 321, an analog-to-digital conversion unit 322, a mirror current source 323, and an avalanche photodiode (avalanche photodiode, APD) bias circuit 324 . The APD bias circuit 324 is used to receive the upstream optical signal of the ONU and convert the upstream optical signal into an upstream electrical signal. The upstream electrical signal passes through the mirror current source 323 and outputs the optical power related level signal of the ONU. The analog-to-digital conversion unit 322 converts the optical power related level signal from an analog signal to a digital signal to obtain an optical power value, and sends it to the control circuit. The APD bias circuit 324 is used to implement the photodetection function. Other photodetectors can also be used in the optical module, which is not specifically limited in the embodiment of the present application. In order to facilitate the subsequent description, the labels of each device will no longer be shown.
光模块中的控制单元可以包括一个或者多个控制器。控制器可以采用FPGA、ASIC、SoC、CPU、NP、DSP或者MCU,还可以采用PLD或其他集成芯片。The control unit in the optical module may include one or more controllers. The controller can use FPGA, ASIC, SoC, CPU, NP, DSP or MCU, and can also use PLD or other integrated chips.
OLT中的MAC单元向光模块中控制单元发送扩展触发信号。控制单元从扩展触发信号中解析出待测ONU的标识信息,进而控制单元在接收到模数转换单元发送的检测结果后,将该检测结果与ONU的标识信息关联存储。The MAC unit in the OLT sends an extended trigger signal to the control unit in the optical module. The control unit parses the identification information of the ONU under test from the extended trigger signal, and then, after receiving the detection result sent by the analog-to-digital conversion unit, the control unit associates and stores the detection result with the identification information of the ONU.
光模块在确定待测ONU的检测结果后,还可以将检测结果发送给OLT中的CPU。CPU根据 检测结果分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。After the optical module determines the detection result of the ONU under test, it can also send the detection result to the CPU in the OLT. CPU based on The test results analyze the link performance between the ONU under test and OLT, such as analyzing the optical fiber link loss between the ONU under test and OLT, and the relationship between the optical fiber link loss between the ONU under test and OLT over time.
本申请实施例中,还可以由OLT的处理模块向光模块触发待测ONU的多次检测,光模块可以保存该待测ONU的多次检测结果,可以根据多次检测结果来分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等,进而将分析结果发送给OLT的处理模块。In the embodiment of this application, the processing module of the OLT can also trigger multiple detections of the ONU under test to the optical module. The optical module can save the multiple detection results of the ONU under test, and can analyze the ONU under test based on the multiple detection results. Link performance with the OLT, such as analyzing the fiber link loss between the ONU under test and the OLT, the relationship between the fiber link loss over time between the ONU under test and the OLT, etc., and then sending the analysis results to the OLT processing module.
本申请实施例中,光模块中还可以包括存储器。存储器用于存储ONU的光功率的检测结果。存储器可以是高速随机存取存储器(random access memory,RAM),静态随机存取存储器(static random-access memory,SRAM),动态随机存取存储器(dynamic random access memory,DRAM),也可以是寄存器,也可以为非易失性存储器(non-volatile memory),例如闪存flash,或至少一个磁盘存储器。In this embodiment of the present application, the optical module may also include a memory. The memory is used to store the detection results of the optical power of the ONU. The memory can be high-speed random access memory (RAM), static random access memory (static random-access memory (SRAM)), dynamic random access memory (dynamic random access memory (DRAM)), or it can be a register, It can also be non-volatile memory (non-volatile memory), such as flash memory, or at least one disk memory.
本申请实施例中支持处理模块连续发送扩展触发信号,以进一步提高光功率的采集效率。In the embodiment of this application, the processing module is supported to continuously send extended trigger signals to further improve the optical power collection efficiency.
一种方式中,处理模块支持连续多次采集单个ONU的上行光功率。比如连续采集特定次数。In one method, the processing module supports collecting the uplink optical power of a single ONU multiple times in a row. For example, collecting a specific number of times continuously.
接着以第一ONU为例。处理模块向光模块连续发送N次用于触发第一ONU的光功率检测的第一触发信号。Next, take the first ONU as an example. The processing module continuously sends the first trigger signal for triggering the optical power detection of the first ONU to the optical module N times.
由处理模块中的CPU向MAC单元发送给控制命令,控制命令用于指示触发所述第一ONU的光功率检测的次数为N。示例性地,控制命令中可以包括第一ONU的标识信息以及检测次数N。MAC单元接收到CPU发送的控制命令后,在第一ONU的N个上行授权时隙内分别向光模块发送第一触发信号。比如,MAC单元可以以设定时间间隔向光模块发送N次第一触发信号。例如,设定时间间隔可以为第一ONU的两个上行授权时隙的间隔,或者一个或者多个数据帧Frame的时长。The CPU in the processing module sends a control command to the MAC unit, where the control command is used to indicate that the number of times to trigger optical power detection of the first ONU is N. For example, the control command may include identification information of the first ONU and the detection number N. After receiving the control command sent by the CPU, the MAC unit sends the first trigger signal to the optical module respectively within the N uplink authorization time slots of the first ONU. For example, the MAC unit can send the first trigger signal to the optical module N times at set time intervals. For example, the set time interval may be the interval between two uplink grant time slots of the first ONU, or the duration of one or more data frames.
光模块每次在接收到第一触发信号后,检测该第一ONU的上行光功率,并将检测结果与第一ONU的标识信息关联保存。从而经过N次触发第一触发信号后,光模块已保存第一ONU的标识信息关联的N个检测结果。Each time after receiving the first trigger signal, the optical module detects the uplink optical power of the first ONU, and associates and saves the detection result with the identification information of the first ONU. Therefore, after triggering the first trigger signal N times, the optical module has saved N detection results associated with the identification information of the first ONU.
一些实施例中,可以由光模块针对连续N次检测结果进行分析,分析第一ONU的光功率变化情况,比如确定第一ONU的光功率的变化范围。从而处理模块可以从光模块读取第一ONU的光功率变化情况的信息,以分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。从而CPU不需要频繁从光模块读取检测结果,可以提高效率,并且降低CPU的负荷。In some embodiments, the optical module can analyze the N consecutive detection results and analyze the changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between the ONU under test and the OLT, such as analyzing the optical fiber link loss between the ONU under test and the OLT. Measure the relationship between the optical fiber link loss over time between the ONU and the OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
另一些实施例中,CPU也可以从光模块中读取多次功率检测的检测结果,针对连续多次检测结果进行分析,分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。In other embodiments, the CPU can also read the detection results of multiple power detections from the optical module, analyze the continuous multiple detection results, and analyze the link performance between the ONU under test and the OLT, such as analyzing the ONU under test The optical fiber link loss between the ONU and the OLT, the relationship between the optical fiber link loss between the ONU under test and the OLT and its changes over time, etc.
上述方式中,在MAC单元每次发送扩展触发信号时,不需要CPU频繁指示,仅需指示一次即可,可以降低CPU的负荷。In the above method, every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
另一种方式中,处理模块支持设置连续采集单个ONU的上行光功率直到设置更新。In another method, the processing module supports the setting of continuously collecting the uplink optical power of a single ONU until the setting is updated.
由处理模块中的CPU向MAC单元发送控制命令,控制命令用于指示MAC单元持续触发第一ONU的上行光信号的功率检测。MAC单元在接收到控制命令后,以设定时间间隔连续向光模块发送第一触发信号。设定时间间隔与第一ONU的相邻两个上行授权时隙间隔相关,或者 与数据帧的时长相关。例如,设定时间间隔可以为第一ONU的两个上行授权时隙的间隔,或者一个或者多个数据帧Frame的时长。The CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signal of the first ONU. After receiving the control command, the MAC unit continuously sends the first trigger signal to the optical module at set time intervals. The set time interval is related to the interval between two adjacent uplink grant time slots of the first ONU, or Relevant to the duration of the data frame. For example, the set time interval may be the interval between two uplink grant time slots of the first ONU, or the duration of one or more data frames.
CPU在向MAC单元发送控制命令经过设定时长之后,向OLT的MAC单元发送中断命令,中断命令用于指示OLT的MAC单元停止触发第一ONU的上行光信号的功率检测。MAC单元在接收到该中断命令时,停止向光模块发送该第一触发信号。After sending the control command to the MAC unit for a set period of time, the CPU sends an interrupt command to the MAC unit of the OLT. The interrupt command is used to instruct the MAC unit of the OLT to stop triggering the power detection of the uplink optical signal of the first ONU. When receiving the interrupt command, the MAC unit stops sending the first trigger signal to the optical module.
光模块每次在接收到第一触发信号后,检测该第一ONU的上行光功率,并将检测结果与第一ONU的标识信息关联保存。从而经过N次触发第一触发信号后,光模块已保存第一ONU的标识信息关联的N个检测结果。Each time after receiving the first trigger signal, the optical module detects the uplink optical power of the first ONU, and associates and saves the detection result with the identification information of the first ONU. Therefore, after triggering the first trigger signal N times, the optical module has saved N detection results associated with the identification information of the first ONU.
一些实施例中,CPU在向MAC单元发送中断命令时,也可以通知光模块对多次检测结果进行分析。可以由光模块针对连续多次检测结果进行分析,分析第一ONU的光功率变化情况,比如确定第一ONU的光功率的变化范围。从而处理模块可以从光模块读取第一ONU的光功率变化情况的信息,以分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。从而CPU不需要频繁从光模块读取检测结果,可以提高效率,并且降低CPU的负荷。In some embodiments, when the CPU sends an interrupt command to the MAC unit, it may also notify the optical module to analyze multiple detection results. The optical module can analyze the continuous detection results and analyze the changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between the ONU under test and the OLT, such as analyzing the optical fiber link loss between the ONU under test and the OLT. Measure the relationship between the optical fiber link loss over time between the ONU and the OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
另一些实施例中,CPU也可以从光模块中读取多次功率检测的检测结果,针对连续多次检测结果进行分析,分析被测ONU与OLT之间的链路性能,比如分析被测ONU与OLT之间的光纤链路损耗、被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。In other embodiments, the CPU can also read the detection results of multiple power detections from the optical module, analyze the continuous multiple detection results, and analyze the link performance between the ONU under test and the OLT, such as analyzing the ONU under test The optical fiber link loss between the ONU and the OLT, the relationship between the optical fiber link loss between the ONU under test and the OLT and its changes over time, etc.
上述方式中,在MAC单元每次发送扩展触发信号时,不需要CPU频繁指示,仅需指示一次即可,可以降低CPU的负荷。In the above method, every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
又一种方式中,处理模块支持采集端口下多个或者所有在线的ONU的上行光功率。In another method, the processing module supports collecting the uplink optical power of multiple or all online ONUs under the port.
处理模块在设定时长内向光模块发送M个扩展触发信号。The processing module sends M extended trigger signals to the optical module within a set time period.
其中,M个扩展触发信号与M个待测ONU一一对应,M个ONU中每个ONU对应的扩展触发信号携带每个ONU的标识信息,每个ONU的扩展触发信号对应在设定时长内每个ONU的上行授权时隙内发送。比如,该设定时长可以是单个数据帧的时长。Among them, M extended trigger signals correspond to M ONUs under test one-to-one. The extended trigger signal corresponding to each ONU in the M ONUs carries the identification information of each ONU. The extended trigger signal of each ONU corresponds to the set time period. Sent within the uplink authorized time slot of each ONU. For example, the set duration may be the duration of a single data frame.
由处理模块中CPU向MAC单元发送控制命令,控制命令用于指示在所述设定时长内触发M个待测ONU的上行光信号的功率检测。处理模块中MAC单元在接收到该控制命令后,在所述设定时长内向所述光模块发送M个扩展触发信号。进一步地,处理模块中的CPU从MAC单元读取M个待测ONU的检测结果。The CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the power detection of the upstream optical signals of the M ONUs under test to be triggered within the set time period. After receiving the control command, the MAC unit in the processing module sends M extended trigger signals to the optical module within the set time period. Further, the CPU in the processing module reads the detection results of the M ONUs to be tested from the MAC unit.
上述方式中,在MAC单元每次发送扩展触发信号时,不需要CPU频繁指示,仅需指示一次即可,可以降低CPU的负荷。In the above method, every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
又一种方式中,处理模块支持端口下多个或者所有在线的ONU的上行光功率的连续多次特定次数。In another method, the processing module supports the uplink optical power of multiple or all online ONUs under the port for a specific number of consecutive times.
示例性地,处理模块在设定时长内向光模块发送M*N个扩展触发信号。其中,M*N个扩展触发信号包括M个ONU的扩展触发信号,每个ONU对应N个扩展触发信号,M个ONU中每个ONU对应的扩展触发信号携带每个ONU的标识信息,每个ONU的扩展触发信号对应在设定时长内所述每个ONU的上行授权时隙内发送。For example, the processing module sends M*N extended trigger signals to the optical module within a set time period. Among them, M*N extended trigger signals include extended trigger signals of M ONUs. Each ONU corresponds to N extended trigger signals. The extended trigger signal corresponding to each ONU in the M ONUs carries the identification information of each ONU. Each ONU The extended trigger signal of the ONU is sent correspondingly within the uplink authorized time slot of each ONU within the set time period.
由处理模块中的CPU向MAC单元发送控制命令,控制命令用于指示在所述设定时长内触发M个待测ONU的上行光信号的功率检测且每个ONU的功率检测次数为N。进而MAC单元在接收到控制命令后,在所述设定时长内向光模块发送M*N个扩展触发信号。 The CPU in the processing module sends a control command to the MAC unit. The control command is used to instruct the power detection of the upstream optical signals of the M ONUs to be tested to be triggered within the set time period and the number of times of power detection for each ONU is N. Then, after receiving the control command, the MAC unit sends M*N extended trigger signals to the optical module within the set time period.
上述方式中,在MAC单元每次发送扩展触发信号时,不需要CPU频繁指示,仅需指示一次即可,可以降低CPU的负荷。In the above method, every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
一些实施例中,光模块在每次接收到扩展触发信号后,从扩展触发信号中解析出待测ONU的标识信息,然后在检测光功率得到检测结果时,将该检测结果与从扩展触发信号解析的待测ONU的标识信息关联保存。In some embodiments, each time the optical module receives the extended trigger signal, it parses the identification information of the ONU under test from the extended trigger signal, and then when detecting the optical power to obtain the detection result, compares the detection result with the extended trigger signal. The parsed identification information of the ONU under test is stored in association.
又一种方式中,处理模块支持设置端口下多个或者所有在线的ONU的上行光功率的连续检测,直到设置更新。In another method, the processing module supports continuous detection of the uplink optical power of multiple or all online ONUs under the setting port until the setting is updated.
由处理模块中的CPU向MAC单元发送控制命令,控制命令用于指示MAC单元持续触发M个光终端的上行光信号的功率检测。MAC单元在接收到控制命令后,持续在所述M个光终端分别对应的上行授权时隙向光模块发送扩展触发信号。应理解的是:两个扩展触发信号之间的发送时间间隔与光模块的采样能力相关。具体两个扩展触发信号之间的发送时间间隔与扩展触发信号的解析、模数转换处理、ADC采样以及检测结果的存储等相关。无需考虑CPU通过I2C从光模块读取光功率的时间。比如光模块内部对上行光功率的转换时间为500us左右,则两个扩展触发信号之间的时间间隔不小于该500us。一些场景中,光模块内部使用高速模数转换器,从而可以进一步提高两个扩展触发信号之间的发送时间间隔。The CPU in the processing module sends a control command to the MAC unit, and the control command is used to instruct the MAC unit to continuously trigger the power detection of the uplink optical signals of the M optical terminals. After receiving the control command, the MAC unit continues to send extended trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals. It should be understood that the sending time interval between two extended trigger signals is related to the sampling capability of the optical module. The specific sending time interval between two extended trigger signals is related to the analysis of the extended trigger signal, analog-to-digital conversion processing, ADC sampling, and storage of detection results. There is no need to consider the time it takes for the CPU to read the optical power from the optical module through I2C. For example, the conversion time of the uplink optical power inside the optical module is about 500us, and the time interval between the two extended trigger signals is not less than 500us. In some scenarios, a high-speed analog-to-digital converter is used inside the optical module, which can further increase the transmission time interval between two extended trigger signals.
CPU在发送控制命令经过所述设定时长之后,向MAC单元发送中断命令,中断命令用于指MAC单元停止触发M个待测ONU的上行光信号的功率检测。从而MAC单元在接收到中断命令时,停止向所述光模块发送扩展触发信号。After the CPU sends the control command for the set time period, it sends an interrupt command to the MAC unit. The interrupt command is used to indicate that the MAC unit stops triggering the power detection of the uplink optical signals of the M ONUs to be tested. Therefore, when receiving the interrupt command, the MAC unit stops sending the extended trigger signal to the optical module.
一些实施例中,CPU在向MAC单元发送中断命令时,也可以通知光模块对每个待测ONU的检测结果进行分析。可以由光模块针对每个ONU的连续多次检测结果进行分析,分析第一ONU的光功率变化情况,比如确定第一ONU的光功率的变化范围。从而处理模块可以从光模块读取第一ONU的光功率变化情况的信息,以分析每个被测ONU与OLT之间的链路性能,比如分析每个被测ONU与OLT之间的光纤链路损耗、每个被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。从而CPU不需要频繁从光模块读取检测结果,可以提高效率,并且降低CPU的负荷。In some embodiments, when the CPU sends an interrupt command to the MAC unit, it may also notify the optical module to analyze the detection results of each ONU under test. The optical module can analyze multiple consecutive detection results of each ONU to analyze changes in the optical power of the first ONU, such as determining the change range of the optical power of the first ONU. Therefore, the processing module can read the information about the optical power change of the first ONU from the optical module to analyze the link performance between each tested ONU and the OLT, such as analyzing the optical fiber link between each tested ONU and the OLT. path loss, the relationship between the optical fiber link loss over time between each tested ONU and OLT, etc. Therefore, the CPU does not need to frequently read detection results from the optical module, which can improve efficiency and reduce the load on the CPU.
光模块也可以通知CPU读取每个ONU的检测结果或者分析结果。The optical module can also notify the CPU to read the detection results or analysis results of each ONU.
另一些实施例中,CPU也可以从光模块中读取针对每个ONU多次功率检测的检测结果,针对每个ONU的连续多次检测结果进行分析,分析每个被测ONU与OLT之间的链路性能,比如分析每个被测ONU与OLT之间的光纤链路损耗、每个被测ONU与OLT之间的光纤链路损耗随时间的变化关系等。In other embodiments, the CPU can also read the detection results of multiple power detections for each ONU from the optical module, analyze the continuous multiple detection results of each ONU, and analyze the relationship between each tested ONU and the OLT. Link performance, such as analyzing the optical fiber link loss between each tested ONU and OLT, and the relationship between the optical fiber link loss between each tested ONU and OLT over time, etc.
上述方式中,在MAC单元每次发送扩展触发信号时,不需要CPU频繁指示,仅需指示一次即可,可以降低CPU的负荷。In the above method, every time the MAC unit sends an extended trigger signal, the CPU does not need to provide frequent instructions and only needs to be instructed once, which can reduce the load of the CPU.
如下对本申请实施例中的扩展触发信号进行说明。The extended trigger signal in the embodiment of the present application is described as follows.
扩展触发信号可以包括触发采样ONU的上行光功率的第一信号和ONU的标识信息。第一信号与现有的触发信号的功能相同。现有的触发信号(trig信号)为一段固定宽度的脉冲信号,而本申请实施例对该固定宽度的脉冲信号进行了改进,在该固定宽度的脉冲信号中承载ONU的标识信息。如下例举几种在第一信号上承载ONU的标识信息的方式。The extended trigger signal may include a first signal that triggers sampling of the uplink optical power of the ONU and the identification information of the ONU. The first signal has the same function as the existing trigger signal. The existing trigger signal (trig signal) is a pulse signal with a fixed width, and the embodiment of the present application improves the fixed-width pulse signal, and carries the identification information of the ONU in the fixed-width pulse signal. The following are examples of several ways of carrying the identification information of the ONU on the first signal.
第一种可能的举例中,在第一信号的高电平上承载ONU的标识信息得到扩展触发信号。In a first possible example, the identification information of the ONU is carried on the high level of the first signal to obtain an extended trigger signal.
比如,ONU的标识信息为ONU ID。扩展触发信号中的ONU ID信息对应的信号使用1比特 起始位(低电平)+8bit ONUID+1bit校验位。参见图5所示,ONU ID信息使用1bit起始位(低电平)+8bit ONU ID+1bit校验位,总共10bit。如果单bit宽度10ns,共需要100ns时间,比原有的触发信号的宽度要明显小。而出于对镜像电流源输出的功率信号滤波、稳定采样电容电压所需时间的考虑,扩展触发信号宽度一般在数百ns。该方式将ONU ID信息叠加在第一信号(比如原始触发信号)的高电平上。该方式可以不增加对触发信号宽度的要求,直接在原有的触发信号(接收信号强度指示(received signal strength indication,RSSI)trig)的高电平有效的时间段内完成ONU ID信息的传输。For example, the identification information of ONU is ONU ID. The signal corresponding to the ONU ID information in the extended trigger signal uses 1 bit Start bit (low level)+8bit ONUID+1bit check bit. As shown in Figure 5, the ONU ID information uses 1 bit start bit (low level) + 8 bit ONU ID + 1 bit check bit, a total of 10 bits. If the width of a single bit is 10ns, a total of 100ns is required, which is significantly smaller than the width of the original trigger signal. Due to the time required to filter the power signal output by the mirror current source and stabilize the sampling capacitor voltage, the extended trigger signal width is generally several hundred ns. This method superimposes the ONU ID information on the high level of the first signal (such as the original trigger signal). This method can directly complete the transmission of ONU ID information within the high-level effective time period of the original trigger signal (received signal strength indication (RSSI) trig) without increasing the requirement for the width of the trigger signal.
ONU ID的校验可以使用奇校验、偶校验、CRC等方式实现。一些实施例中ONU的标识信息对应的信号中也可以不包括的校验位。比如触发信号对应的接口一般不会出现异常的情况,也可以增加校验位。ONU ID verification can be implemented using odd parity, even parity, CRC, etc. In some embodiments, the signal corresponding to the identification information of the ONU may not include a check digit. For example, the interface corresponding to the trigger signal generally does not have abnormal situations, and the check bit can also be added.
第二种可能的举例中,将ONU ID信息的电平信号与第一信号的电平信号相加,得到三电平信号。In the second possible example, the level signal of the ONU ID information is added to the level signal of the first signal to obtain a three-level signal.
第三种可能的举例中,ONU ID信息的电平信号位于所述第一信号之前。In a third possible example, the level signal of the ONU ID information is located before the first signal.
第四种可能的举例中,ONU ID信息的电平信号位于所述第一信号之后。In a fourth possible example, the level signal of the ONU ID information is located after the first signal.
应理解的是,上述仅例举4种可能的在扩展触发信号中包含第一信号和ONU的标识信息的方式。第一信号和ONU的标识信息的组合方式,本申请实施例不作具体限定。It should be understood that the above only exemplifies four possible ways of including the first signal and the identification information of the ONU in the extended trigger signal. The embodiment of this application does not specifically limit the combination of the first signal and the identification information of the ONU.
本申请实施例中两个扩展触发信号之间的发送时间间隔与光模块的采样能力相关。具体两个扩展触发信号之间的发送时间间隔与扩展触发信号的解析、模数转换处理、ADC采样以及检测结果的存储等相关。但无需考虑CPU通过I2C从光模块读取光功率的时间。目前光模块中借助MCU来处理每个触发信号。而本申请实施例中连续高速采集的场景下,如果目前MCU处理能力不足的情况,可以借助硬件逻辑电路来实现连续高速采集。In the embodiment of the present application, the sending time interval between two extended trigger signals is related to the sampling capability of the optical module. The specific sending time interval between two extended trigger signals is related to the analysis of the extended trigger signal, analog-to-digital conversion processing, ADC sampling, and storage of detection results. But there is no need to consider the time it takes for the CPU to read the optical power from the optical module through I2C. Currently, MCU is used in optical modules to process each trigger signal. In the scenario of continuous high-speed acquisition in the embodiment of this application, if the current MCU processing capability is insufficient, hardware logic circuits can be used to achieve continuous high-speed acquisition.
示例性地,参见图6所示,光模块中的控制单元中包括MCU和硬件逻辑控制。硬件逻辑控制可以采用FPGA、ASIC、SoC、PLD或其他硬件集成芯片。For example, as shown in Figure 6, the control unit in the optical module includes an MCU and hardware logic control. Hardware logic control can use FPGA, ASIC, SoC, PLD or other hardware integrated chips.
硬件逻辑控制可以负责将模数转换单元采样的数据与ONU的ID的关联存储,MCU则负责根据OLT处理流程的需要,完成对ONU的功率数据进行处理、读取等操作。The hardware logic control can be responsible for associating and storing the data sampled by the analog-to-digital conversion unit with the ID of the ONU. The MCU is responsible for processing and reading the power data of the ONU according to the needs of the OLT processing flow.
光模块在接收到扩展触发信号后,通过硬件逻辑控制来解析扩展触发信号,从扩展触发信号中分离出第一信号和ONU ID信息。硬件逻辑控制根据扩展触发信号,控制触发模数转换单元的采样、保持、转换。硬件逻辑控制还可以负责校验ONU ID信息,在ONU ID校验异常时通知MCU中断处理。在模数转换单元转换完成后,硬件逻辑控制将代表ONU上行光功率的检测结果存储到特定的存储空间中,该存储空间与ONU ID对应。MCU可以基于多次的检测结果来对ONU与OLT之间的链路性能进行分析,并通知CPU读取分析结果。After receiving the extended trigger signal, the optical module parses the extended trigger signal through hardware logic control, and separates the first signal and ONU ID information from the extended trigger signal. The hardware logic control controls the sampling, holding, and conversion of the trigger analog-to-digital conversion unit according to the extended trigger signal. The hardware logic control can also be responsible for verifying the ONU ID information and notifying the MCU to interrupt processing when the ONU ID verification is abnormal. After the analog-to-digital conversion unit conversion is completed, the hardware logic control stores the detection results representing the ONU upstream optical power into a specific storage space, which corresponds to the ONU ID. The MCU can analyze the link performance between the ONU and the OLT based on multiple detection results, and notify the CPU to read the analysis results.
在一些可能的场景中,一些光模块不具备高速采集光功率的能力,一些光模块具备高速采集光功率的能力。In some possible scenarios, some optical modules do not have the ability to collect optical power at high speed, and some optical modules have the ability to collect optical power at high speed.
CPU在控制MAC单元向光模块发送扩展触发信号之前,确定光模块是否具备高速采集光功率的能力。或者光模块是否支持解析扩展触发信号。例如,光模块的电可擦编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)中的保留字段的取值指示光模块是否具备高速采集光功率的能力。比如,保留字段的取值为1,则指示光模块具备高速采集光功率的能力,保留字段的取值为0,则指示光模块不具备高速采集光功率的能力。 Before controlling the MAC unit to send an extended trigger signal to the optical module, the CPU determines whether the optical module has the ability to collect optical power at high speed. Or whether the optical module supports parsing extended trigger signals. For example, the value of a reserved field in the Electrically Erasable Programmable Read-Only Memory (EEPROM) of the optical module indicates whether the optical module has the ability to collect optical power at high speed. For example, if the value of a reserved field is 1, it indicates that the optical module has the ability to collect optical power at high speed; if the value of the reserved field is 0, it indicates that the optical module does not have the ability to collect optical power at high speed.
CPU确定光模块不具备高速采集光功率的能力时,则触发MAC单元向光模块发送第一信号,比如现有的触发信号,该触发信号中不携带ONU的标识信息。从而光模块按照现有的方案来检测光功率。When the CPU determines that the optical module does not have the ability to collect optical power at high speed, it triggers the MAC unit to send a first signal to the optical module, such as an existing trigger signal, which does not carry the identification information of the ONU. Therefore, the optical module detects the optical power according to the existing solution.
基于以上实施例,本申请还提供一种光功率的检测方法。该方法可以由光头端来实现。参见图7所示。Based on the above embodiments, this application also provides an optical power detection method. This method can be implemented by the optical head end. See Figure 7.
701,生成用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息。701. Generate a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal.
示例性地,通过OLT的MAC单元来生成用于触发上行光功率检测的第一触发信号,然后发送给OLT的光模块。Exemplarily, the first trigger signal for triggering uplink optical power detection is generated by the MAC unit of the OLT and then sent to the optical module of the OLT.
702,根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到第一光终端的检测结果。702. Detect the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first trigger signal to obtain a detection result of the first optical terminal.
703,将所述检测结果与所述第一光终端的标识信息关联保存。703. Associate and save the detection result with the identification information of the first optical terminal.
示例性地,OLT的光模块根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率,并将所述检测结果与所述第一光终端的标识信息关联保存。Exemplarily, the optical module of the OLT detects the power of the uplink optical signal sent by the first optical terminal in the uplink authorized time slot of the first optical terminal according to the first trigger signal, and compares the detection result with The identification information of the first optical terminal is stored in association.
在一种可能的实施方式中,所述第一触发信号中包括用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;In a possible implementation, the first trigger signal includes a first signal used to trigger sampling of the power of an uplink optical signal of the first optical terminal and identification information of the first optical terminal;
其中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,Wherein, the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal; or,
所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
在一种可能的实施方式中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible implementation, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长包括的M个光终端的上行授权时隙内分别生成所述第一触发信号;The first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
其中,M为大于1的整数,所述M个触发信号与M个光终端一一对应,所述M个光终端包括所述第一光终端,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, M is an integer greater than 1, the M trigger signals correspond to M optical terminals one-to-one, the M optical terminals include the first optical terminal, and each of the M optical terminals corresponds to The trigger signal carries the identification information of each optical terminal, and the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
在一种可能的实施方式中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible implementation, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;设定时长内至少包括第一光终端的M个上行授权时隙,第一光终端的M个上行授权时隙分别生成有所述第一光终端的第一触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals within the set time period generate trigger signals corresponding to the N optical terminals respectively; the set time period includes at least M uplink authorization time slots of the first optical terminal, M of the first optical terminal The first trigger signals of the first optical terminals are respectively generated in the uplink authorization time slots, and the trigger signals corresponding to each of the M optical terminals carry the identification information of each optical terminal.
在一种可能的实施方式中,所述方法还包括:根据所述第一光终端的标识信息关联的M个所述第一光终端的检测结果确定所述第一光终端的光功率变换范围。In a possible implementation, the method further includes: determining the optical power conversion range of the first optical terminal based on detection results of M first optical terminals associated with the identification information of the first optical terminal. .
示例性地,通过光模块根据所述第一光终端的标识信息关联的M个所述第一光终端的检测结果确定所述第一光终端的光功率变化范围。具体的,在完成M个上行授权时隙内的第一触发信号对应的M次所述第一光终端的上行光信号的功率检测后,光模块根据所述第一光终 端的标识信息关联的M个所述第一光终端的检测结果确定所述第一光终端的光功率变化范围。For example, the optical module determines the optical power variation range of the first optical terminal based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal. Specifically, after completing M times of power detection of the uplink optical signal of the first optical terminal corresponding to the first trigger signal in M uplink authorization time slots, the optical module determines the power of the first optical terminal according to the first trigger signal. The detection results of the M first optical terminals associated with the terminal identification information determine the optical power variation range of the first optical terminal.
在一种可能的实施方式中,所述方法还包括:OLT中的处理单元可以从光模块读取所述第一光终端的光功率变化范围。In a possible implementation, the method further includes: the processing unit in the OLT can read the optical power variation range of the first optical terminal from the optical module.
在一种可能的实施方式中,所述生成用于触发上行光功率检测的第一触发信号,包括:In a possible implementation, generating a first trigger signal for triggering uplink optical power detection includes:
在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;所述N个光终端包括所述第一光终端,所述N个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
生成用于触发上行光功率检测的第一触发信号之前,确定具备高速采集光功率的能力。Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
示例性地,处理单元控制MAC单元生成用于触发上行光功率检测的第一触发信号之前,确定光模块具备高速采集光功率的能力。Exemplarily, before the processing unit controls the MAC unit to generate the first trigger signal for triggering the uplink optical power detection, it is determined that the optical module has the ability to collect optical power at high speed.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。When the ability to collect optical power at high speed is not available, a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
示例性地,处理单元确定光模块不具备高速采集光功率的能力时,控制MAC单元在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号。For example, when the processing unit determines that the optical module does not have the ability to collect optical power at high speed, it controls the MAC unit to generate a second trigger signal for triggering uplink optical power detection within the uplink authorization time slot of the first optical terminal.
如图8所示,本发明实施例还提供了一种光功率的检测装置800,该装置800包括处理器810、通信接口820和总线系统830。该处理器810和该通信接口820通过该总线系统830相连。装置800可以通过通信接口820和其它设备(其它组件)进行信息交互。通信接口820可以是电路、总线、收发器或者其它任意可以用于进行信息交互的组件。一些实施例中,装置800还可以包括存储器(图8中未示出)。该存储器用于存储指令,该处理器810用于执行该存储器存储的指令,以实现OLT中处理模块所执行的功能。As shown in FIG. 8 , this embodiment of the present invention also provides an optical power detection device 800 . The device 800 includes a processor 810 , a communication interface 820 and a bus system 830 . The processor 810 and the communication interface 820 are connected through the bus system 830 . The device 800 can exchange information with other devices (other components) through the communication interface 820. The communication interface 820 may be a circuit, bus, transceiver, or any other component that may be used for information exchange. In some embodiments, the apparatus 800 may also include memory (not shown in Figure 8). The memory is used to store instructions, and the processor 810 is used to execute the instructions stored in the memory to implement functions performed by the processing module in the OLT.
处理器810用于执行:生成用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;通过通信接口820向光模块发送所述第一触发信号,以触发所述光模块根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到第一光终端的检测结果,并将所述检测结果与所述第一光终端的标识信息关联保存。The processor 810 is configured to: generate a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal; and send the first trigger signal to the optical module through the communication interface 820. A trigger signal to trigger the optical module to detect the power of the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal to obtain detection of the first optical terminal. The result is stored in association with the detection result and the identification information of the first optical terminal.
在一些实施例中,处理器810,具体用于在设定时长包括的M个光终端的上行授权时隙内分别生成所述第一触发信号;In some embodiments, the processor 810 is specifically configured to generate the first trigger signal respectively within the uplink authorization time slots of the M optical terminals included in the set time period;
其中,M为大于1的整数,所述M个触发信号与M个光终端一一对应,所述M个光终端包括所述第一光终端,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, M is an integer greater than 1, the M trigger signals correspond to M optical terminals one-to-one, the M optical terminals include the first optical terminal, and each of the M optical terminals corresponds to The trigger signal carries the identification information of each optical terminal, and the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
在一些实施例中,处理器810,具体用于在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;设定时长内至少包括第一光终端的M个上行授权时隙,第一光终端的M个上行授权时隙分别生成有所述第一光终端的第一触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。In some embodiments, the processor 810 is specifically configured to generate trigger signals corresponding to N optical terminals in the uplink authorization time slots of N optical terminals within a set time period; at least M including the first optical terminal within the set time period. The M uplink grant time slots of the first optical terminal respectively generate the first trigger signal of the first optical terminal, and the trigger signal corresponding to each of the M optical terminals carries the Identification information of each optical terminal.
在一些实施例中,处理器810,还用于从所述光模块获取所述第一光终端的标识信息关联的M个所述第一光终端的检测结果。In some embodiments, the processor 810 is further configured to obtain the detection results of the M first optical terminals associated with the identification information of the first optical terminal from the optical module.
在一些实施例中,处理器810,还用于从所述光模块获取所述第一光终端的光功率变化 范围。所述光功率变化范围是所述光模块根据所述第一光终端的标识信息关联的M个所述第一光终端的检测结果确定的。In some embodiments, the processor 810 is also configured to obtain the optical power change of the first optical terminal from the optical module. scope. The optical power variation range is determined by the optical module based on the detection results of the M first optical terminals associated with the identification information of the first optical terminal.
在一些实施例中,处理器810,用于在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;所述N个光终端包括所述第一光终端,所述N个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。In some embodiments, the processor 810 is configured to generate trigger signals corresponding to the N optical terminals in the uplink authorization time slots of the N optical terminals within a set time period; the N optical terminals include the first optical terminal. , the trigger signal corresponding to each optical terminal among the N optical terminals carries the identification information of each optical terminal.
在一些实施例中,处理器810,还用于在生成用于触发上行光功率检测的第一触发信号之前,确定光模块具备高速采集光功率的能力。In some embodiments, the processor 810 is also configured to determine that the optical module has the ability to collect optical power at high speed before generating the first trigger signal for triggering the uplink optical power detection.
在一些实施例中,处理器810,还用于在确定光模块不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。In some embodiments, the processor 810 is also configured to generate a second trigger for triggering the uplink optical power detection in the uplink authorized time slot of the first optical terminal when it is determined that the optical module does not have the ability to collect optical power at high speed. signal, the second trigger signal does not carry the identification information of the first optical terminal.
应理解,在本发明实施例中,该处理器810的功能可以由一个处理器来实现,也可以由处理系统来实现。处理器可以是CPU,还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in this embodiment of the present invention, the function of the processor 810 can be implemented by a processor or by a processing system. The processor can be a CPU, or other general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices , discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
该存储器可以包括只读存储器和随机存取存储器,并向处理器810提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以储设备类型的信息。This memory may include read-only memory and random access memory and provides instructions and data to processor 810. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information.
该总线系统830除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图8中将各种总线都标为总线系统830。In addition to a data bus, the bus system 830 may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, the various buses are labeled as bus system 830 in FIG. 8 .
在实现过程中,上述方法的各步骤可以通过处理器810中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器810读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 810 . The steps of the methods disclosed in conjunction with the embodiments of the present invention can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory. The processor 810 reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。Additionally, the terms "system" and "network" are often used interchangeably herein.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of both. In order to clearly illustrate the relationship between hardware and software Interchangeability, in the above description, the composition and steps of each example have been generally described according to functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连 接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units. The connection can also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read–Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. .
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (24)

  1. 一种光功率的检测装置,其特征在于,包括光模块和处理模块;An optical power detection device, characterized by including an optical module and a processing module;
    所述处理模块,用于在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;The processing module is configured to send a first trigger signal for triggering uplink optical power detection to the optical module within the uplink authorization time slot of the first optical terminal, where the first trigger signal carries the identification information;
    所述光模块,用于根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到检测结果,并将所述检测结果与所述第一光终端的标识信息关联保存。The optical module is configured to detect the power of the uplink optical signal sent by the first optical terminal within the uplink authorized time slot of the first optical terminal according to the first trigger signal to obtain a detection result, and obtain the detection result. The result is stored in association with the identification information of the first optical terminal.
  2. 如权利要求1所述的装置,其特征在于,所述光模块,具体用于:The device according to claim 1, wherein the optical module is specifically used for:
    从所述第一触发信号中提取出用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;Extract the first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and the identification information of the first optical terminal from the first trigger signal;
    根据所述第一信号在所述第一光终端的上行授权时隙内采样所述第一光终端发送的上行光信号的功率。The power of the uplink optical signal sent by the first optical terminal is sampled according to the first signal in the uplink authorized time slot of the first optical terminal.
  3. 如权利要求2所述的装置,其特征在于,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,The device according to claim 2, wherein the first trigger signal is obtained by carrying the identification information of the first optical terminal at the high level of the first signal; or,
    所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电平信号相加得到的;或者,The first trigger signal is obtained by adding the level signal corresponding to the identification information of the first optical terminal and the level signal of the first signal; or,
    所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
    所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  4. 如权利要求1-3任一项所述的装置,其特征在于,所述处理模块,具体用于:The device according to any one of claims 1 to 3, characterized in that the processing module is specifically used for:
    在设定时长内向所述光模块发送N次所述第一触发信号。Send the first trigger signal to the optical module N times within a set time period.
  5. 如权利要求4所述的装置,其特征在于,所述处理模块包括处理单元和控制单元;The device according to claim 4, wherein the processing module includes a processing unit and a control unit;
    所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述第一光终端的上行光信号的功率检测的次数为N;The processing unit is configured to send a control command to the control unit, where the control command is used to indicate that the number of times to trigger the power detection of the uplink optical signal of the first optical terminal within the set time period is N;
    所述控制单元,用于在接收到所述控制命令后,在所述设定时长内包括的所述第一光终端的N个上行授权时隙内分别向所述光模块发送所述第一触发信号。The control unit is configured to, after receiving the control command, send the first optical module to the optical module within the N uplink authorization time slots of the first optical terminal included in the set time period. trigger signal.
  6. 如权利要求4所述的装置,其特征在于,所述处理模块包括处理单元和控制单元;The device according to claim 4, wherein the processing module includes a processing unit and a control unit;
    所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示所述控制单元持续触发所述第一光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述控制单元发送中断命令,所述中断命令用于指示所述控制单元停止触发所述第一光终端的上行光信号的功率检测;The processing unit is configured to send a control command to the control unit, the control command is used to instruct the control unit to continuously trigger the power detection of the uplink optical signal of the first optical terminal; and after sending the control command through the After the set time period, send an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the power detection of the uplink optical signal of the first optical terminal;
    所述控制单元,用于在接收到所述控制命令后,持续在所述第一光终端的上行授权时隙向所述光模块发送所述第一触发信号;并在接收到所述中断命令时,停止向所述光模块发送所述第一触发信号。The control unit is configured to, after receiving the control command, continue to send the first trigger signal to the optical module in the uplink authorization time slot of the first optical terminal; and after receiving the interrupt command when, stop sending the first trigger signal to the optical module.
  7. 如权利要求1-3任一项所述的装置,其特征在于,所述处理模块,具体用于:The device according to any one of claims 1 to 3, characterized in that the processing module is specifically used for:
    在设定时长内向所述光模块发送M*N个触发信号;Send M*N trigger signals to the optical module within the set time period;
    其中,所述M*N个触发信号包括M个光终端的触发信号,每个光终端对应N个触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号对应在设定时长内所述每个光终端的上行授权时隙内发送。Wherein, the M*N trigger signals include trigger signals of M optical terminals, each optical terminal corresponds to N trigger signals, and the trigger signal corresponding to each optical terminal in the M optical terminals carries the trigger signal of each optical terminal. The identification information of the terminal and the trigger signal of each optical terminal are correspondingly sent within the uplink authorization time slot of each optical terminal within the set time period.
  8. 如权利要求7所述的装置,其特征在于,所述处理模块包括处理单元和控制单元;The device according to claim 7, wherein the processing module includes a processing unit and a control unit;
    所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测且每个光终端的功率检测次数为N; The processing unit is configured to send a control command to the control unit, where the control command is used to instruct the power detection of the uplink optical signals of the M optical terminals to be triggered within the set time period and the power detection of each optical terminal is The number of power detection times is N;
    所述控制单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M*N个触发信号。The control unit is configured to send the M*N trigger signals to the optical module within the set time period after receiving the control command.
  9. 如权利要求7所述的装置,其特征在于,所述处理模块包括处理单元和控制单元;The device according to claim 7, wherein the processing module includes a processing unit and a control unit;
    所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示所述控制单元持续触发M个光终端的上行光信号的功率检测;以及在发送控制命令经过所述设定时长之后,向所述控制单元发送中断命令,所述中断命令用于指示所述控制单元停止触发所述M个光终端的上行光信号的功率检测;The processing unit is configured to send a control command to the control unit, the control command is used to instruct the control unit to continuously trigger the power detection of the uplink optical signals of M optical terminals; and after sending the control command through the device After a certain period of time, send an interrupt command to the control unit, where the interrupt command is used to instruct the control unit to stop triggering the power detection of the uplink optical signals of the M optical terminals;
    所述控制单元,用于在接收到所述控制命令后,持续在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号;并在接收到所述中断命令时,停止在所述M个光终端分别对应的上行授权时隙向所述光模块发送触发信号。The control unit is configured to, after receiving the control command, continue to send trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals; and when receiving the interrupt command, Stop sending trigger signals to the optical module in the uplink authorization time slots corresponding to the M optical terminals.
  10. 如权利要求4-9任一项所述的装置,其特征在于,所述光模块,还用于根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围;The device according to any one of claims 4 to 9, wherein the optical module is further configured to determine the first optical terminal based on the stored N detection results of the first optical terminal. Optical power variation range;
    所述处理模块,还用于从所述光模块读取所述第一光终端的光功率变化范围。The processing module is also configured to read the optical power variation range of the first optical terminal from the optical module.
  11. 如权利要求4-9任一项所述的装置,其特征在于,所述处理模块,还用于从所述光模块读取所述第一光终端的N次所述检测结果。The device according to any one of claims 4 to 9, wherein the processing module is further configured to read N times of the detection results of the first optical terminal from the optical module.
  12. 如权利要求1-3任一项所述的装置,其特征在于,所述处理模块,具体用于:The device according to any one of claims 1 to 3, characterized in that the processing module is specifically used for:
    在设定时长内向所述光模块发送M个触发信号;Send M trigger signals to the optical module within a set time period;
    其中,所述M个触发信号与M个光终端一一对应,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, the M trigger signals correspond to M optical terminals one-to-one, and the trigger signal corresponding to each optical terminal among the M optical terminals carries the identification information of each optical terminal. The trigger signal of each optical terminal It is sent within the uplink authorized time slot corresponding to each optical terminal within the set time period.
  13. 如权利要求12所述的装置,其特征在于,所述处理模块包括处理单元和控制单元;The device according to claim 12, wherein the processing module includes a processing unit and a control unit;
    所述处理单元,用于向所述控制单元发送控制命令,所述控制命令用于指示在所述设定时长内触发所述M个光终端的上行光信号的功率检测;The processing unit is configured to send a control command to the control unit, where the control command is used to instruct the power detection of the uplink optical signals of the M optical terminals to be triggered within the set time period;
    所述控制单元,用于在接收到所述控制命令后,在所述设定时长内向所述光模块发送所述M个触发信号。The control unit is configured to send the M trigger signals to the optical module within the set time period after receiving the control command.
  14. 如权利要求12或13所述的装置,其特征在于,所述处理模块,还用于从所述光模块读取所述M个光终端每个光终端的检测结果。The device according to claim 12 or 13, wherein the processing module is further configured to read the detection results of each of the M optical terminals from the optical module.
  15. 如权利要求1-14任一项所述的装置,其特征在于,所述处理模块,还用于从所述光模块中读取所述光模块的功能指示信息;当所述功能指示信息指示所述光模块具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第一触发信号。The device according to any one of claims 1 to 14, wherein the processing module is further configured to read the function indication information of the optical module from the optical module; when the function indication information indicates When the optical module has the ability to collect optical power at high speed, a first trigger signal for triggering uplink optical power detection is sent to the optical module in the uplink authorized time slot of the first optical terminal.
  16. 如权利要求15所述的装置,其特征在于,所述处理模块,还用于在所述功能指示信息指示所述光模块不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内向所述光模块发送用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。The device of claim 15, wherein the processing module is further configured to perform uplink authorization on the first optical terminal when the function indication information indicates that the optical module does not have the ability to collect optical power at high speed. A second trigger signal for triggering uplink optical power detection is sent to the optical module in the time slot, and the second trigger signal does not carry the identification information of the first optical terminal.
  17. 一种光功率的检测方法,其特征在于,应用于光头端,包括:An optical power detection method, characterized in that it is applied to the optical head end and includes:
    生成用于触发上行光功率检测的第一触发信号,所述第一触发信号携带所述第一光终端的标识信息;Generate a first trigger signal for triggering uplink optical power detection, where the first trigger signal carries identification information of the first optical terminal;
    根据所述第一触发信号在所述第一光终端的上行授权时隙内检测所述第一光终端发送的上行光信号的功率得到第一光终端的检测结果;Detect the power of the uplink optical signal sent by the first optical terminal within the uplink authorization time slot of the first optical terminal according to the first trigger signal to obtain the detection result of the first optical terminal;
    将所述检测结果与所述第一光终端的标识信息关联保存。The detection result is associated and saved with the identification information of the first optical terminal.
  18. 如权利要求17所述的方法,其特征在于,所述第一触发信号中包括用于触发采样所述第一光终端的上行光信号的功率的第一信号和所述第一光终端的标识信息;The method of claim 17, wherein the first trigger signal includes a first signal used to trigger sampling of the power of the uplink optical signal of the first optical terminal and an identification of the first optical terminal. information;
    其中,所述第一触发信号在所述第一信号的高电平上承载所述第一光终端的标识信息得到的;或者,Wherein, the first trigger signal is obtained by carrying the identification information of the first optical terminal on the high level of the first signal; or,
    所述第一触发信号是所述第一光终端的标识信息对应的电平信号与所述第一信号的电 平信号相加得到的;或者,The first trigger signal is a level signal corresponding to the identification information of the first optical terminal and a voltage level of the first signal. obtained by adding the flat signals; or,
    所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之前;或者,The level signal corresponding to the identification information of the first optical terminal in the first trigger signal is located before the first signal; or,
    所述第一触发信号中所述第一光终端的标识信息对应的电平信号位于所述第一信号之后。In the first trigger signal, the level signal corresponding to the identification information of the first optical terminal is located after the first signal.
  19. 如权利要求17或18所述的方法,其特征在于,所述生成用于触发上行光功率检测的第一触发信号,包括:The method of claim 17 or 18, wherein generating a first trigger signal for triggering uplink optical power detection includes:
    在设定时长包括的M个光终端的上行授权时隙内分别生成所述第一触发信号;The first trigger signal is generated respectively within the uplink authorization time slots of the M optical terminals included in the set duration;
    其中,M为大于1的整数,所述M个触发信号与M个光终端一一对应,所述M个光终端包括所述第一光终端,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息,每个光终端的触发信号在设定时长内对应所述每个光终端的上行授权时隙内发送。Wherein, M is an integer greater than 1, the M trigger signals correspond to M optical terminals one-to-one, the M optical terminals include the first optical terminal, and each of the M optical terminals corresponds to The trigger signal carries the identification information of each optical terminal, and the trigger signal of each optical terminal is sent within the uplink authorization time slot corresponding to each optical terminal within a set time period.
  20. 如权利要求17或18所述的方法,其特征在于,所述生成用于触发上行光功率检测的第一触发信号,包括:The method of claim 17 or 18, wherein generating a first trigger signal for triggering uplink optical power detection includes:
    在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;设定时长内至少包括第一光终端的M个上行授权时隙,第一光终端的M个上行授权时隙分别生成有所述第一光终端的第一触发信号,所述M个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals within the set time period generate trigger signals corresponding to the N optical terminals respectively; the set time period includes at least M uplink authorization time slots of the first optical terminal, M of the first optical terminal The first trigger signals of the first optical terminals are respectively generated in the uplink authorization time slots, and the trigger signals corresponding to each of the M optical terminals carry the identification information of each optical terminal.
  21. 如权利要求19或20所述的方法,其特征在于,所述方法还包括:The method according to claim 19 or 20, characterized in that the method further includes:
    在完成M个上行授权时隙内的第一触发信号对应的M次所述第一光终端的上行光信号的功率检测后,根据保存的所述第一光终端的N次所述检测结果确定所述第一光终端的光功率变化范围。After completing the M times of power detection of the uplink optical signal of the first optical terminal corresponding to the first trigger signal in the M uplink authorization time slots, determine based on the N times of the saved detection results of the first optical terminal. The optical power variation range of the first optical terminal.
  22. 如权利要求17或18所述的方法,其特征在于,所述生成用于触发上行光功率检测的第一触发信号,包括:The method of claim 17 or 18, wherein generating a first trigger signal for triggering uplink optical power detection includes:
    在设定时长内N个光终端的上行授权时隙分别生成N个光终端对应的触发信号;所述N个光终端包括所述第一光终端,所述N个光终端中每个光终端对应的触发信号携带所述每个光终端的标识信息。The uplink authorization time slots of the N optical terminals generate trigger signals corresponding to the N optical terminals within the set time period; the N optical terminals include the first optical terminal, and each optical terminal among the N optical terminals The corresponding trigger signal carries the identification information of each optical terminal.
  23. 如权利要求17-22任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 17-22, characterized in that the method further includes:
    生成用于触发上行光功率检测的第一触发信号之前,确定具备高速采集光功率的能力。Before generating the first trigger signal for triggering uplink optical power detection, it is determined that the device has the ability to collect optical power at high speed.
  24. 如权利要求23所述的方法,其特征在于,所述方法还包括:The method of claim 23, further comprising:
    在不具备高速采集光功率的能力时,在第一光终端的上行授权时隙内生成用于触发上行光功率检测的第二触发信号,所述第二触发信号不携带所述第一光终端的标识信息。 When the ability to collect optical power at high speed is not available, a second trigger signal for triggering uplink optical power detection is generated within the uplink authorization time slot of the first optical terminal, and the second trigger signal does not carry the first optical terminal. identification information.
PCT/CN2023/102511 2022-08-24 2023-06-26 Optical power testing method and apparatus WO2024041160A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211020723.9A CN117674989A (en) 2022-08-24 2022-08-24 Method and device for detecting optical power
CN202211020723.9 2022-08-24

Publications (1)

Publication Number Publication Date
WO2024041160A1 true WO2024041160A1 (en) 2024-02-29

Family

ID=90012393

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102511 WO2024041160A1 (en) 2022-08-24 2023-06-26 Optical power testing method and apparatus

Country Status (2)

Country Link
CN (1) CN117674989A (en)
WO (1) WO2024041160A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056720A1 (en) * 2006-08-30 2008-03-06 Broadlight Ltd. Method and system for power management control in passive optical networks
CN101431372A (en) * 2007-11-07 2009-05-13 华为技术有限公司 Method and apparatus for acquiring optical power, and optical line terminal
WO2009094943A1 (en) * 2008-01-25 2009-08-06 Huawei Technologies Co., Ltd. Line administrating method, system and apparatus
CN101854208A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method for measuring optical power, optical line terminal and optical network unit
WO2022022693A1 (en) * 2020-07-31 2022-02-03 中兴通讯股份有限公司 Apd performance test method and apparatus for optical module, and optical network and medium
CN114337806A (en) * 2020-10-12 2022-04-12 华为技术有限公司 Optical power detection method, device and optical network terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056720A1 (en) * 2006-08-30 2008-03-06 Broadlight Ltd. Method and system for power management control in passive optical networks
CN101431372A (en) * 2007-11-07 2009-05-13 华为技术有限公司 Method and apparatus for acquiring optical power, and optical line terminal
WO2009094943A1 (en) * 2008-01-25 2009-08-06 Huawei Technologies Co., Ltd. Line administrating method, system and apparatus
CN101854208A (en) * 2009-03-31 2010-10-06 华为技术有限公司 Method for measuring optical power, optical line terminal and optical network unit
WO2022022693A1 (en) * 2020-07-31 2022-02-03 中兴通讯股份有限公司 Apd performance test method and apparatus for optical module, and optical network and medium
CN114337806A (en) * 2020-10-12 2022-04-12 华为技术有限公司 Optical power detection method, device and optical network terminal

Also Published As

Publication number Publication date
CN117674989A (en) 2024-03-08

Similar Documents

Publication Publication Date Title
US8335235B2 (en) Methods and apparatus for extending MAC control message in EPON
US10097910B2 (en) Optical network device with integrated port mirroring
US7733886B2 (en) Burst data reception method and apparatus in EPON
US20170054719A1 (en) Optical network unit onu registration method, apparatus, and system
CN102917285B (en) Method and device for testing Ethernet passive optical network devices
WO2010111954A1 (en) Method for measuring optical power, optical line terminal and optical network unit
CN111885435A (en) Passive optical network system, optical line terminal and optical network unit
EP2501058B1 (en) Device for optical network unit integration
US10256910B2 (en) Control and management of passive optical network reach extenders
AU2018403910B2 (en) Communication network and related devices
US20240048880A1 (en) Transmission method, apparatus, and system
US20130188947A1 (en) Apparatus and method for monitoring optical line
JP5067610B2 (en) Station side terminal equipment in PON system
JP2009171441A (en) Registration method for house-side device, ason system, and station-side device
WO2015085468A1 (en) Apparatus and method for detecting optical network uplink signal
WO2024041160A1 (en) Optical power testing method and apparatus
EP2398165A1 (en) Method and device for transmitting an upstream transmission frame in a passive optical network
EP2562947B1 (en) Method, apparatus and system for passive optical network communication
US20180359235A1 (en) Transmission apparatus and communication method
WO2021196932A1 (en) Multiplexing-based channel identification method and apparatus therefor
JP2009171434A (en) Ason system and optical switch device used for the same, and station-side device
CN115209245A (en) Data transmission method, optical line terminal, optical network unit and communication system
CN103004108A (en) Optical power detection method, apparatus, equipment and optical module
JP4893589B2 (en) PON system station side apparatus and frame processing method
JP2011035738A (en) Failed onu specification method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856252

Country of ref document: EP

Kind code of ref document: A1