CN110336616B - Burst received optical power processing method, device, optical line terminal and storage medium - Google Patents

Burst received optical power processing method, device, optical line terminal and storage medium Download PDF

Info

Publication number
CN110336616B
CN110336616B CN201910472206.7A CN201910472206A CN110336616B CN 110336616 B CN110336616 B CN 110336616B CN 201910472206 A CN201910472206 A CN 201910472206A CN 110336616 B CN110336616 B CN 110336616B
Authority
CN
China
Prior art keywords
conversion channel
interrupt signal
conversion
type
switching
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910472206.7A
Other languages
Chinese (zh)
Other versions
CN110336616A (en
Inventor
祝成军
陈序光
杜康
梁坡
陈志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Telecommunication Devices Co Ltd
Original Assignee
Wuhan Telecommunication Devices Co Ltd
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 Wuhan Telecommunication Devices Co Ltd filed Critical Wuhan Telecommunication Devices Co Ltd
Priority to CN201910472206.7A priority Critical patent/CN110336616B/en
Publication of CN110336616A publication Critical patent/CN110336616A/en
Application granted granted Critical
Publication of CN110336616B publication Critical patent/CN110336616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/1205Multiplexed conversion systems
    • 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
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • H04B10/07955Monitoring or measuring power
    • 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/27Arrangements for networking
    • 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/60Receivers
    • H04B10/66Non-coherent receivers, e.g. using direct detection

Abstract

The embodiment of the application discloses a burst received optical power processing method, a device, an optical line terminal and a storage medium, wherein the method comprises the following steps: receiving an interrupt signal; switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data acquired by a sampler into second data corresponding to the interrupt signal; and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data.

Description

Burst received optical power processing method, device, optical line terminal and storage medium
Technical Field
The present application relates to the field of optical communications technologies, and in particular, to a method and an apparatus for processing burst received optical power, an optical line terminal, and a storage medium.
Background
At present, an Optical Line Terminal (OLT) Optical module with a Digital Diagnostics Monitoring (DDM) function needs to report the same conventional analog quantity as a conventional module, such as Temperature (Temperature), voltage (Power supply), Laser Bias Current (Laser Bias Current), Laser Output Power (Laser Output Power), and the like, and also needs to report the burst received Optical Power.
The OLT optical module needs to perform Analog-to-Digital (AD) conversion on the reported normal Analog quantity or burst received optical power. In some cases, there may be a case where the burst received optical power needs to be AD-converted simultaneously with the conventional analog quantity. For such a situation, in the prior art, two AD converter modules are selected to perform AD conversion on the burst received optical power and the conventional analog quantity, respectively, which results in an increase in hardware cost of the OLT optical module, and on the other hand, increases complexity of an OLT hardware circuit.
Disclosure of Invention
Embodiments of the present application provide a method and an apparatus for processing burst received optical power, an optical line terminal, and a storage medium to solve at least one problem in the prior art.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a burst received optical power processing method, where the method includes:
receiving an interrupt signal;
switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data acquired by a sampler into second data corresponding to the interrupt signal;
and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data.
Further, the interrupt signal is a Trigger interrupt signal or a timer interrupt signal.
Further, in a case that the interrupt signal is a Trigger interrupt signal, before the switching the first AD conversion channel to the second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, the method further includes:
the first AD conversion channel information is saved.
Further, the switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal includes:
and switching the AD conversion channel to the saved first AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
Further, when the interrupt signal is a timer interrupt signal, the switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal includes:
and switching the AD conversion channel to a third AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
Further, the first AD conversion channel and the third AD conversion channel are conventional analog AD conversion channels, and the second AD conversion channel is a burst received optical power AD conversion channel or a conventional analog AD conversion channel.
Further, before the switching of the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal, the method further includes:
and obtaining and storing the AD conversion result of the second data according to the type of the second AD conversion channel.
In a second aspect, an embodiment of the present application provides a burst received optical power processing apparatus, including:
a receiving unit for receiving an interrupt signal;
the first switching unit is used for switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal and switching first data collected by the sampler into second data corresponding to the interrupt signal;
a second switching unit configured to switch an AD conversion channel according to a type of the second AD conversion channel or a type of the interrupt signal, in a case where the second AD conversion channel completes AD conversion of the second data.
Further, the interrupt signal is a Trigger interrupt signal or a timer interrupt signal.
Further, in a case that the interrupt signal is a Trigger interrupt signal, the apparatus further includes:
and a holding unit for holding the first AD conversion channel information.
Further, the second switching unit is specifically configured to switch the AD conversion channel to the saved first AD conversion channel according to a type of the second AD conversion channel or a type of the interrupt signal.
Further, when the interrupt signal is a timer interrupt signal, the second switching unit is specifically configured to switch the AD conversion channel to a third AD conversion channel according to a type of the second AD conversion channel or a type of the interrupt signal.
Further, the first AD conversion channel and the third AD conversion channel are conventional analog AD conversion channels, and the second AD conversion channel is a burst received optical power AD conversion channel or a conventional analog AD conversion channel.
Further, the apparatus further comprises:
and the reporting unit is used for acquiring and storing the AD conversion result of the second data according to the type of the second AD conversion channel.
In a third aspect, an embodiment of the present application provides an optical line terminal, where the optical line terminal includes a network interface, a memory, and a processor; wherein the content of the first and second substances,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor is configured to perform the method of the first aspect when running the computer program.
In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program, which when executed by at least one processor implements the method of the first aspect.
The burst received optical power processing method, the burst received optical power processing device, the optical line terminal and the storage medium provided by the embodiment of the application receive an interrupt signal; switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data acquired by a sampler into second data corresponding to the interrupt signal; and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data. Therefore, on the premise of not increasing hardware cost, the AD conversion of the conventional analog quantity and the burst receiving optical power can be realized simultaneously, and the AD conversion conflict of data is avoided.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a burst received optical power processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a second implementation flow of a burst received optical power processing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating a third implementation of a burst received optical power processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of an implementation flow of a Trigger interrupt procedure in the burst received optical power processing method according to the embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation flow of a timer interrupt procedure in a burst received optical power processing method according to an embodiment of the present application;
fig. 6 is a schematic flow chart illustrating an implementation of an AD interrupt procedure in the burst received optical power processing method according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a burst received optical power processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic diagram of a specific hardware structure of an optical line terminal according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present embodiments can be understood in detail, a more particular description of the embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
The OLT system sends a Trigger signal to the inside of the OLT optical module through a Trigger (Trigger) interface so as to Trigger an AD converter and a sampling holder in the OLT optical module, the sampling holder holds an analog quantity signal for a period of time, the AD converter converts the voltage quantity of the analog quantity signal into a digital signal in the holding time, a microprocessor converts the digital signal into corresponding optical power through a specific algorithm and reports the optical power to the system through an Inter-Integrated Circuit (IIC) interface, and due to the uncertainty of the arrival time of the Trigger signal, the situation that the burst receiving optical power and the conventional analog quantity need to be subjected to AD conversion at the same time may exist. For this purpose, the method one) can be adopted by a microprocessor with two AD converter modules; or, the second mode) selects a microprocessor with an AD converter module and is externally connected with an independent AD converter module. One of the AD converter modules is used for AD conversion of a normal analog quantity, and the other AD converter module is used for AD conversion of burst receiving optical power. However, in either method, two AD converters are required, which increases the hardware cost of the OLT optical module, and increases the complexity of the OLT hardware circuit. On the other hand, the method three) may also be adopted to close Trigger interrupt when the conventional analog quantity is sampled, and then open Trigger interrupt after the conventional analog quantity is sampled, but this may result in failure to respond to Trigger interrupt in time, so that a time difference exists between the time of receiving the Trigger interrupt signal and the sampling time of the burst received optical power, and thus the reporting of the burst received optical power is delayed.
Therefore, the following technical scheme of the embodiment of the application is provided.
An embodiment of the present application provides a method for processing a burst received optical power, and fig. 1 is a schematic diagram illustrating an implementation flow of the method for processing a burst received optical power according to the embodiment of the present application, where the method mainly includes the following steps:
step 101, receiving an interrupt signal.
And step 102, switching the first AD conversion channel to a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching the first data collected by the sampler to second data corresponding to the interrupt signal.
In the embodiment of the application, the processor receives an interrupt signal, enters an interrupt program, switches a current first AD conversion channel into a second AD conversion channel corresponding to the interrupt signal, and switches first data currently acquired by the sampler into second data corresponding to the interrupt signal. It should be noted that the first AD conversion channel and the second AD conversion channel are different types of AD conversion channels, and the first data and the second data are also different types of data.
In some alternative embodiments, the interrupt signal may be a Trigger interrupt signal or a timer interrupt signal.
In some alternative embodiments, the first AD conversion channel is the AD conversion channel currently being sampled. The second AD conversion channel is a conventional analog quantity AD conversion channel or a burst receiving optical power AD conversion channel.
In some alternative embodiments, the first data is data currently being sampled. The second data is a conventional analog quantity or a burst received optical power.
In some alternative embodiments, the conventional analog quantity is, for example, temperature, voltage, laser bias current, laser output optical power, or the like.
Step 103, when the second AD conversion channel completes AD conversion of the second data, switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
In the embodiment of the application, after a current first AD conversion channel is switched to a second AD conversion channel corresponding to the interrupt signal, AD conversion is started, the second AD conversion channel performs AD conversion on collected second data, after the AD conversion is completed, AD interruption is started, an AD conversion result of the second data is acquired and stored according to the type of the second AD conversion channel, the AD conversion and the AD interruption are closed, and the AD conversion channel is switched according to the type of the second AD conversion channel or the type of the interrupt signal.
It should be noted that the processor in this embodiment of the application is only provided with one AD converter, and the AD converter is provided with a plurality of AD conversion channels, each of which corresponds to different data types, for example, a first AD conversion channel corresponds to first data, a second AD conversion channel corresponds to second data, and a third AD conversion channel corresponds to third data.
The burst received optical power processing method provided by the embodiment of the application receives an interrupt signal; switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data acquired by a sampler into second data corresponding to the interrupt signal; and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data. Therefore, on the premise of not increasing hardware cost, the AD conversion of the conventional analog quantity and the burst receiving optical power can be realized simultaneously, and the AD conversion conflict of data is avoided.
An embodiment of the present application provides a method for processing a burst received optical power, and fig. 2 is a schematic diagram illustrating an implementation flow of the method for processing a burst received optical power, where the method mainly includes the following steps:
step 201, receiving Trigger interrupt signal.
Step 202, saving the first AD conversion channel information.
Step 203, switching the first AD conversion channel to a second AD conversion channel corresponding to the Trigger interrupt signal according to the Trigger interrupt signal, and switching the first data collected by the sampler to second data corresponding to the Trigger interrupt signal.
In the embodiment of the application, the processor receives a Trigger interrupt signal, enters a Trigger interrupt program, stores a current first AD conversion channel, switches the first AD conversion channel to a second AD conversion channel corresponding to the Trigger interrupt signal, and switches first data currently acquired by the sampler to second data corresponding to the interrupt signal. The second AD conversion channel is a burst received optical power AD conversion channel, and the second data is a burst received optical power signal. It should be noted that the first AD conversion channel and the second AD conversion channel are different types of AD conversion channels, and the first data and the second data are also different types of data.
In an optional embodiment of the present application, after the processor receives the Trigger interrupt signal and enters the Trigger interrupt program, the timer interrupt and the AD interrupt are first closed, and then the switching of the AD conversion channel and the switching of the collected data are performed. Therefore, the situation that the current interrupt is interfered by other interrupts when being processed is avoided, and all data can be ensured to complete AD conversion.
Step 204, when the second AD conversion channel completes AD conversion of the second data, switching the AD conversion channel to the saved first AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
In this application embodiment, the treater basis Trigger interrupt signal is with current first AD conversion channel switch into with behind the proruption received optical power AD conversion channel that Trigger interrupt signal corresponds, open AD conversion, carry out AD conversion to the proruption received optical power signal of gathering, after AD conversion accomplishes, open AD interrupt, according to proruption received optical power AD conversion channel acquires and stores the AD conversion result of proruption received optical power signal, closes AD conversion and AD interrupt, switches AD conversion channel into the saving according to proruption received optical power AD conversion channel or Trigger interrupt signal first AD conversion channel.
It should be noted that the processor in the embodiment of the present application is only provided with one AD converter, and the AD converter is provided with a plurality of AD conversion channels, each of the AD conversion channels corresponds to different data types, for example, a first AD conversion channel corresponds to first data, and a second AD conversion channel corresponds to second data.
The burst received optical power processing method provided by the embodiment of the application receives an interrupt signal; switching a first AD conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data collected by a sampler into second data corresponding to the interrupt signal; and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data. Therefore, on the premise of not increasing hardware cost, the AD conversion of the conventional analog quantity and the burst receiving optical power can be realized simultaneously, and the AD conversion conflict of data is avoided.
An embodiment of the present application provides a method for processing a burst received optical power, and fig. 3 is a schematic diagram of an implementation flow of the method for processing a burst received optical power, where the method mainly includes the following steps:
step 301, receiving a timer interrupt signal.
Step 302, switching the first AD conversion channel to a second AD conversion channel corresponding to the timer interrupt signal according to the timer interrupt signal, and switching the first data collected by the sampler to second data corresponding to the timer interrupt signal.
In the embodiment of the application, the processor receives a timer interrupt signal, enters a timer interrupt program, switches a current first AD conversion channel into a second AD conversion channel corresponding to the timer interrupt signal, and switches first data currently acquired by the sampler into second data corresponding to the timer interrupt signal. Wherein the second AD conversion channel is a conventional analog quantity AD conversion channel, and the second data is a conventional analog quantity signal. Wherein, the conventional analog quantity can be temperature, voltage, laser bias current or laser output optical power. It should be noted that the first AD conversion channel and the second AD conversion channel are different types of AD conversion channels, and the first data and the second data are also different types of data.
In an optional embodiment of the present application, after the processor receives the timer interrupt signal and enters the timer interrupt program, the timer interrupt and the AD conversion interrupt are first closed, and then the switching of the AD conversion channel and the switching of the collected data are performed. Therefore, the situation that the current interrupt is interfered by other interrupts when being processed is avoided, and all data can be ensured to complete AD conversion.
Step 303, when the second AD conversion channel completes AD conversion of the second data, switching the AD conversion channel to a third AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
In the embodiment of the application, the processor switches the current first AD conversion channel into the conventional analog quantity AD conversion channel corresponding to the timer interrupt signal, then starts AD conversion, performs AD conversion on the acquired conventional analog quantity signal, and after the AD conversion is completed, starts AD interruption, and according to the conventional analog quantity AD conversion channel acquires and stores the AD conversion result of the conventional analog quantity signal, the AD conversion and AD conversion interruption are closed, and the AD conversion channel is switched into the third AD conversion channel according to the conventional analog quantity AD conversion channel or the timer interrupt signal. It should be noted that the first AD conversion channel, the second AD conversion channel, and the third AD conversion channel are different types of AD conversion channels, and the first data, the second data, and the third data are also different types of data.
It should be noted that the processor in this embodiment of the application is only provided with one AD converter, and the AD converter is provided with a plurality of AD conversion channels, each of which corresponds to different data types, for example, a first AD conversion channel corresponds to first data, a second AD conversion channel corresponds to second data, and a third AD conversion channel corresponds to third data.
The burst received optical power processing method provided by the embodiment of the application receives an interrupt signal; switching a first AD conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data collected by a sampler into second data corresponding to the interrupt signal; and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data. Therefore, on the premise of not increasing hardware cost, the AD conversion of the conventional analog quantity and the burst receiving optical power can be realized simultaneously, and the AD conversion conflict of data is avoided.
Fig. 4 is a schematic diagram of an implementation flow of a Trigger interrupt procedure in the burst received optical power processing method provided in the embodiment of the present application, and as shown in fig. 4, the Trigger interrupt procedure mainly includes the following operation steps:
step 401, receiving a Trigger interrupt signal, and entering a Trigger interrupt program.
Step 402, turn off timer interrupt and AD interrupt.
Step 403, saving the current first AD conversion channel.
Step 404, switching the AD conversion channel to a burst receiving optical power AD conversion channel.
In the embodiment of the application, the processor receives a Trigger interrupt signal, enters a Trigger interrupt program, closes timer interrupt and AD interrupt, saves a current first AD conversion channel, switches the first AD conversion channel into a burst received optical power AD conversion channel corresponding to the Trigger interrupt signal, and switches first data currently collected by the sampler into a burst received optical power signal corresponding to the interrupt signal. It should be noted that the first AD conversion channel and the second AD conversion channel are different types of AD conversion channels, and the first data and the second data are also different types of data.
Step 405, the AD conversion is turned on.
Step 406, start AD interrupt.
In this application embodiment, the treater basis Trigger interrupt signal is with current first AD conversion channel switch into with behind the proruption received optical power AD conversion channel that Trigger interrupt signal corresponds, open AD conversion, carry out AD conversion to the proruption received optical power signal of gathering, after AD conversion accomplishes, open AD interrupt, according to proruption received optical power AD conversion channel acquires and stores the AD conversion result of proruption received optical power signal, closes AD conversion and AD interrupt, switches AD conversion channel into the saving according to proruption received optical power AD conversion channel or Trigger interrupt signal first AD conversion channel.
And 407, exiting the Trigger interrupt program.
Fig. 5 is a schematic flow chart illustrating an implementation flow of a timer interrupt procedure in the burst received optical power processing method according to the embodiment of the present application, and as shown in fig. 5, the timer interrupt procedure mainly includes the following operation steps:
step 501, receiving a timer interrupt signal, and entering a timer interrupt program.
Step 502, turn off timer interrupt and AD interrupt.
In the embodiment of the application, the processor receives a timer interrupt signal, enters a timer interrupt program, switches the current first AD conversion channel into a conventional analog quantity AD conversion channel corresponding to the timer interrupt signal, and switches the first data currently acquired by the sampler into a conventional analog quantity signal corresponding to the timer interrupt signal.
Step 503, starting AD conversion.
Step 504, start AD interrupt.
In the embodiment of the application, the processor switches the current first AD conversion channel into the conventional analog quantity AD conversion channel corresponding to the timer interrupt signal, then starts AD conversion, performs AD conversion on the acquired conventional analog quantity signal, and after the AD conversion is completed, starts AD interruption, and according to the conventional analog quantity AD conversion channel acquires and stores the AD conversion result of the conventional analog quantity signal, the AD conversion and the AD interruption are closed, and the AD conversion channel is switched into the third AD conversion channel according to the conventional analog quantity AD conversion channel or the timer interrupt signal.
It should be noted that the first AD conversion channel, the second AD conversion channel, and the third AD conversion channel are different types of AD conversion channels, and the first data, the second data, and the third data are also different types of data.
And step 505, exiting the timer interrupt routine.
Fig. 6 is a schematic flow chart illustrating an implementation flow of an AD interrupt procedure in a burst received optical power processing method according to an embodiment of the present application, where as shown in fig. 6, the AD interrupt procedure mainly includes the following operation steps:
step 601, an AD interrupt program is entered.
Step 602, turn off timer interrupt and AD interrupt.
Step 603, obtaining the AD conversion result.
In the embodiment of the application, the processor enters an AD interrupt program after receiving the signal of the AD conversion completion, and acquires and stores the AD conversion result of the second data according to the type of the second AD conversion channel.
And step 604, switching the AD conversion channel.
Step 605, start timer interrupt.
In this embodiment of the application, the processor switches the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal, determines the type of the second AD conversion channel, and stores the AD conversion result of the burst received optical power signal in the burst received optical power memory and switches the AD conversion channel to the stored first AD conversion channel if the type of the second AD conversion channel is the burst received optical power AD conversion channel; and if the second AD conversion channel is a conventional analog quantity AD conversion channel, storing the AD conversion result of the conventional analog quantity signal into a memory corresponding to the conventional analog quantity, switching the AD conversion channel into a third AD conversion channel, and starting a timer to interrupt.
In this embodiment of the application, the processor determines the type of the interrupt signal, and if the type of the interrupt signal is a Trigger interrupt signal, stores an AD conversion result of a burst received optical power signal to a burst received optical power memory, and switches an AD conversion channel to the stored first AD conversion channel; and if the interrupt signal type is a timer interrupt signal, storing the AD conversion result of the conventional analog quantity signal into a memory corresponding to the conventional analog quantity, switching the AD conversion channel into a third AD conversion channel, and starting a timer to interrupt.
It should be noted that the first AD conversion channel, the second AD conversion channel, and the third AD conversion channel are different types of AD conversion channels, and the first data, the second data, and the third data are also different types of data.
Step 606, exiting the AD interrupt routine.
It should be noted that the Trigger interrupt in the embodiment of the present application has the highest priority, for example, if a Trigger interrupt signal and timer interrupt information are received simultaneously, the Trigger interrupt with the high priority is processed preferentially, and then the timer interrupt with the low priority is processed; and if another Trigger interrupt signal is received when Trigger interrupts are processed, processing according to the sequence of the time of receiving the Trigger interrupt signals for Trigger interrupts with the same priority.
Based on the same technical concept as the aforementioned burst received optical power processing method, an embodiment of the present application provides a burst received optical power processing apparatus, fig. 7 is a schematic structural diagram of the burst received optical power processing apparatus provided in the embodiment of the present application, and as shown in fig. 7, the burst received optical power processing apparatus 700 includes:
a receiving unit 701 configured to receive an interrupt signal;
a first switching unit 702, configured to switch a first AD conversion channel to a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switch first data collected by the sampler to second data corresponding to the interrupt signal;
a second switching unit 703, configured to switch the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion on the second data.
In other embodiments, the interrupt signal is a Trigger interrupt signal or a timer interrupt signal.
In another embodiment, in a case that the interrupt signal is a Trigger interrupt signal, the apparatus further includes:
a holding unit 704 for holding the first AD conversion channel information.
In another embodiment, the second switching unit is specifically configured to switch the AD conversion channel to the saved first AD conversion channel according to a type of the second AD conversion channel or a type of the interrupt signal.
In other embodiments, when the interrupt signal is a timer interrupt signal, the second switching unit 703 is specifically configured to switch the AD conversion channel to the third AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
In other embodiments, the first AD conversion channel and the third AD conversion channel are conventional analog AD conversion channels, and the second AD conversion channel is a burst received optical power AD conversion channel or a conventional analog AD conversion channel.
In other embodiments, the apparatus further comprises:
a reporting unit 705, configured to obtain and store an AD conversion result of the second data according to the type of the second AD conversion channel.
The components in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the embodiments of the present application, or a part thereof contributing to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a computer storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned computer storage media include: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Accordingly, embodiments of the present application provide a computer storage medium storing a computer program, which when executed by at least one processor implements the steps of the above embodiments.
Referring to fig. 8, a specific hardware structure of an optical line terminal 800 provided in an embodiment of the present application is shown, including: a network interface 801, a memory 802, and a processor 803; the various components are coupled together by a bus system 804. It is understood that the bus system 804 is used to enable communications among the components. The bus system 804 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 804 in FIG. 8. Wherein the content of the first and second substances,
the network interface 801 is configured to receive and transmit signals in a process of receiving and transmitting information with other external network elements;
a memory 802 for storing a computer program capable of running on the processor 803;
a processor 803 for executing, when running the computer program, the following:
receiving an interrupt signal;
switching a first AD conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data collected by a sampler into second data corresponding to the interrupt signal;
and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data.
The processor 803 is further configured to, when running the computer program, perform:
the interrupt signal is Trigger interrupt signal or timer interrupt signal.
The processor 803 is further configured to, when running the computer program, perform:
and under the condition that the interrupt signal is a Trigger interrupt signal, before the first AD conversion channel is switched to a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, saving information of the first AD conversion channel.
The processor 803 is further configured to, when running the computer program, perform:
and switching the AD conversion channel to the saved first AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
The processor 803 is further configured to, when running the computer program, perform:
and under the condition that the interrupt signal is a timer interrupt signal, switching the AD conversion channel into a third AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
The processor 803 is further configured to, when running the computer program, perform:
the first AD conversion channel and the third AD conversion channel are conventional analog quantity AD conversion channels, and the second AD conversion channel is a burst receiving optical power AD conversion channel or a conventional analog quantity AD conversion channel.
The processor 803 is further configured to, when running the computer program, perform:
and obtaining and storing the AD conversion result of the second data according to the type of the second AD conversion channel.
It will be appreciated that the memory 802 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 802 of the methodologies described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 803 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 803. The Processor 803 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may reside in ram, flash memory, rom, prom, or eprom, registers, among other computer storage media that are well known in the art. The computer storage medium is located in the memory 802, and the processor 803 reads the information in the memory 802, and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for burst received optical power processing, the method comprising:
receiving an interrupt signal; the interrupt signal is a Trigger interrupt signal or a timer interrupt signal;
switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, and switching first data acquired by a sampler into second data corresponding to the interrupt signal;
and switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal when the second AD conversion channel completes AD conversion of the second data.
2. The method according to claim 1, wherein in a case where the interrupt signal is a Trigger interrupt signal, before the switching the first AD conversion channel to the second AD conversion channel corresponding to the interrupt signal according to the interrupt signal, the method further comprises:
the first AD conversion channel information is saved.
3. The method according to claim 2, wherein the switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal comprises:
and switching the AD conversion channel to the saved first AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
4. The method according to claim 1, wherein the switching the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal in the case where the interrupt signal is a timer interrupt signal includes:
and switching the AD conversion channel to a third AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal.
5. The method of claim 4,
the first AD conversion channel and the third AD conversion channel are conventional analog quantity AD conversion channels, and the second AD conversion channel is a burst receiving optical power AD conversion channel or a conventional analog quantity AD conversion channel.
6. The method according to any one of claims 1 to 5, wherein before the switching of the AD conversion channel according to the type of the second AD conversion channel or the type of the interrupt signal, the method further comprises:
and obtaining and storing the AD conversion result of the second data according to the type of the second AD conversion channel.
7. A burst received optical power processing apparatus, the apparatus comprising:
a receiving unit for receiving an interrupt signal; the interrupt signal is a Trigger interrupt signal or a timer interrupt signal;
the first switching unit is used for switching a first analog-to-digital (AD) conversion channel into a second AD conversion channel corresponding to the interrupt signal according to the interrupt signal and switching first data collected by the sampler into second data corresponding to the interrupt signal;
a second switching unit configured to switch an AD conversion channel according to a type of the second AD conversion channel or a type of the interrupt signal, in a case where the second AD conversion channel completes AD conversion of the second data.
8. An optical line terminal, comprising a network interface, a memory, and a processor; wherein the content of the first and second substances,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor, when executing the computer program, is configured to perform the method of any of claims 1 to 6.
9. A storage medium, characterized in that the storage medium stores a computer program which, when executed by at least one processor, implements the method according to any one of claims 1 to 6.
CN201910472206.7A 2019-05-31 2019-05-31 Burst received optical power processing method, device, optical line terminal and storage medium Active CN110336616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472206.7A CN110336616B (en) 2019-05-31 2019-05-31 Burst received optical power processing method, device, optical line terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472206.7A CN110336616B (en) 2019-05-31 2019-05-31 Burst received optical power processing method, device, optical line terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110336616A CN110336616A (en) 2019-10-15
CN110336616B true CN110336616B (en) 2021-02-12

Family

ID=68140665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472206.7A Active CN110336616B (en) 2019-05-31 2019-05-31 Burst received optical power processing method, device, optical line terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110336616B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055012A (en) * 2021-03-05 2021-06-29 Tcl空调器(中山)有限公司 AD sampling method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281101A (en) * 2011-06-29 2011-12-14 成都优博创技术有限公司 Method and device for timely monitoring and maintaining emission light power in burst mode
CN102324965A (en) * 2011-09-21 2012-01-18 成都优博创技术有限公司 A kind of double-receiver is shared the device of RSSI supervisory circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834666A (en) * 2010-05-07 2010-09-15 成都优博创技术有限公司 Device and method for testing burst optical power of optical network unit
US9031319B2 (en) * 2012-05-31 2015-05-12 Apple Inc. Systems and methods for luma sharpening
CN106612141B (en) * 2016-12-20 2019-04-12 北京旋极信息技术股份有限公司 A kind of fiber channel protocol common simulation test card and its data interactive method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281101A (en) * 2011-06-29 2011-12-14 成都优博创技术有限公司 Method and device for timely monitoring and maintaining emission light power in burst mode
CN102324965A (en) * 2011-09-21 2012-01-18 成都优博创技术有限公司 A kind of double-receiver is shared the device of RSSI supervisory circuit

Also Published As

Publication number Publication date
CN110336616A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110536344B (en) Measurement reporting method, electronic equipment and storage medium
US8868803B2 (en) Managing data communication between a peripheral device and a host
US10762033B2 (en) Method and apparatus for updating server firmware in server, and server
US10951425B2 (en) Power supply method, device, and power supply system
JP6307625B2 (en) Direct source selection
EP3159219A1 (en) Vehicle-mounted program writing device
CN110336616B (en) Burst received optical power processing method, device, optical line terminal and storage medium
EP3358883B1 (en) Method for enabling terminal access to cell, terminal and computer storage medium
RU2011138256A (en) LIGHTING MANAGEMENT NETWORK
CN109450009B (en) Charging control method and device and computer storage medium
KR20200053439A (en) Information instruction method, terminal and computer storage medium
US20240089934A1 (en) Method and apparatus for integrating wireless communication and wireless sensing
CN108983940B (en) Double-control storage power-down protection system
US7836234B2 (en) Communication in accordance with a master-slave communication protocol
WO2019136683A1 (en) Indication method for system broadcast information, network device, and terminal device
CN111510204B (en) Protection circuit, protection method and optical module
CN103731888A (en) Wireless communication method, device and system
CN113068238B (en) Cell selection method, device and storage medium
CN214670239U (en) Automobile diagnosis equipment
US11720318B2 (en) Audio accessory with high and low impedance paths to a speaker, and a radio for the audio accessory
CN112868159A (en) System and method for managing battery
US20190313339A1 (en) Wifi power supply switching method, circuit and apparatus, and storage medium
CN109711214B (en) Operation method applied to radio frequency identification reader
US20170090946A1 (en) Transmission device and activation method of transmission device
CN111209020B (en) Equipment control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant