CN107423236B - Processing method, reading method and device for monitoring parameters in optical module and optical module - Google Patents

Processing method, reading method and device for monitoring parameters in optical module and optical module Download PDF

Info

Publication number
CN107423236B
CN107423236B CN201710680529.6A CN201710680529A CN107423236B CN 107423236 B CN107423236 B CN 107423236B CN 201710680529 A CN201710680529 A CN 201710680529A CN 107423236 B CN107423236 B CN 107423236B
Authority
CN
China
Prior art keywords
optical module
monitoring
cache region
monitoring parameters
cache
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
CN201710680529.6A
Other languages
Chinese (zh)
Other versions
CN107423236A (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201710680529.6A priority Critical patent/CN107423236B/en
Publication of CN107423236A publication Critical patent/CN107423236A/en
Application granted granted Critical
Publication of CN107423236B publication Critical patent/CN107423236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0895Caches characterised by their organisation or structure of parts of caches, e.g. directory or tag array
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0844Multiple simultaneous or quasi-simultaneous cache accessing
    • G06F12/0853Cache with multiport tag or data arrays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • 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/077Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
    • H04B10/0775Performance monitoring and measurement of transmission parameters
    • 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/40Transceivers

Abstract

The invention discloses a processing method, a reading method and a device for monitoring parameters in an optical module and the optical module, in particular to a method for processing the monitoring parameters in the optical module, which divides a data cache area for storing the monitoring parameters in the optical module into at least three cache areas, and sets a flag bit for a second cache area for indicating the current state of the second cache area. When the second cache region is updating data, the storage zone bit of the second cache region is first identification information, which indicates that the internal data is incomplete, and when a bus interface read command comes temporarily, data is returned from the third cache region to a device issuing the bus interface read command; on the contrary, if the storage flag bit of the second cache region is the second identification information, which indicates that the internal data is complete, the data is returned from the second cache region to the device issuing the bus interface read command. Therefore, the problem that the accuracy of the monitored quantity is influenced by deviation of a calibration curve caused by reading error update data due to conflict between bus interface reading and data updating can be avoided.

Description

Processing method, reading method and device for monitoring parameters in optical module and optical module
Technical Field
The invention relates to the technical field of optical communication, in particular to a processing method, a reading method and a device for monitoring parameters in an optical module and the optical module.
Background
An optical transceiver module, called optical module for short, is a standard module used in the field of optical communication. In the actual application process of the optical module, the function of the optical module is abnormal due to the influence of external factors, so that errors occur in communication data. Therefore, as a network management unit in an optical fiber communication system, it is necessary to monitor the current operating condition of the optical module in real time to ensure that the optical module can always transmit data under normal working conditions.
In the existing optical fiber communication system, a network management unit can monitor monitoring parameters such as the temperature, the power supply voltage, the laser bias current, the transmitting and receiving optical power and the like of an optical module in real time. Correspondingly, the optical module needs to monitor the digital signal quantity of the parameters in the working process, and converts the monitoring unit required by the optical module protocol according to the calibration curve of the monitored digital signal quantity to output the monitoring unit to the address specified by the protocol, so that the network management unit can read out a normal monitoring information value through the IIC interface. Therefore, in order to make the network management unit accurately obtain each monitoring parameter, it is necessary to calibrate the parameters of the optical module before the optical module is put into use, and to establish a calibration curve of each monitoring parameter. Fig. 1 is a schematic structural diagram of a conventional optical module parameter calibration system. As shown in fig. 1, the system mainly includes an optical module 20 to be calibrated, and a main processing device 10 and a sampling device 30 connected to the optical module 20. When calibrating a certain monitoring parameter, firstly, adjusting the monitoring parameter of the optical module 20 according to a preset adjustment standard; meanwhile, the sampling device 30 is used for recording the corresponding actual physical quantity after the monitoring parameters are adjusted, and the main processing device 10 is used for reading the real-time digital signal quantity stored in the optical module 20 through the IIC interface; finally, the main processing device 10 forms a calibration curve of the monitoring parameters by comparing the corresponding relationship between the acquired real-time digital signal quantities and the actual physical quantities, and writes the calibration curve into the designated area of the optical module.
Since the real-time digital semaphore of many monitoring parameters of the optical module is a multi-byte semaphore, and usually occupies 2 bytes instead of 1 byte, if the optical module updates the lowest (or highest) valid bit byte of the multi-byte semaphore, if the main processing device 10 happens to read the digital semaphore, an "error value" consisting of the first 1 byte before updating and the other byte after updating will be read. The calibration curve under the error value also has errors, so that the precision of the optical module is poor at a certain point, and even the conventional index requirements cannot be met. Furthermore, after a large number of optical modules are calibrated, some optical modules may have normal calibration curves due to the fact that real wrong real-time digital signal quantities are not read during calibration, and some optical modules may have abnormal calibration curves due to the fact that an error value is read during calibration, so that the production consistency index of the same module is poor, and the subsequent empirical data accumulation is not facilitated.
Disclosure of Invention
The embodiment of the invention provides a processing method, a reading method and a device for monitoring parameters in an optical module and the optical module, and aims to solve the problem that the accuracy of the optical module is poor when the monitoring parameters of multi-byte semaphores are calibrated.
In a first aspect, the present invention provides a processing method for monitoring a parameter in an optical module as a multi-byte semaphore, the method comprising:
after the monitoring parameters reported by the digital-to-analog conversion module in the optical module are stored in a first cache region, configuring identification bits as first identification information, wherein the monitoring parameters are multi-byte semaphore;
copying the monitoring parameters from the first cache region to a second cache region and a third cache region, and configuring the identification bits as second identification information after copying the monitoring parameters to the second cache region;
the second buffer area and the third buffer area are available for a bus interface to read the monitoring parameters, the first identification information is used for indicating the third buffer area to supply the bus interface to read the monitoring parameters, and the second identification information is used for indicating the second buffer area to supply the bus interface to read the monitoring parameters.
In a second aspect, the present invention further provides a processing apparatus for monitoring a parameter in an optical module as a multi-byte semaphore, the apparatus comprising a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are connected via a communication bus;
the communication interface is used for acquiring monitoring parameters reported by a digital-to-analog conversion module in the optical module;
said memory for storing program code for the method according to the first aspect of the invention;
the processor is configured to read the program code stored in the memory and execute the method according to the first aspect of the invention.
In a third aspect, the present invention further provides a method for reading a multi-byte semaphore as a monitoring parameter in an optical module, where the method is used to read the monitoring parameter in the optical module according to the first aspect of the present invention, and the method includes:
judging the identification information of the identification bit in the optical module;
if the identification bit is configured as first identification information, reading the monitoring parameters stored in a third cache region of the optical module through a bus interface;
and if the identification bit is configured to be second identification information, reading the monitoring parameters stored in a second cache region of the optical module through the bus interface.
In a fourth aspect, the present invention further provides a reading apparatus for reading a multi-byte semaphore as a monitoring parameter in an optical module, the apparatus includes a processor, a memory and a communication interface, the processor, the memory and the communication interface are connected via a communication bus;
the communication interface is used for acquiring identification information of an identification bit in the optical module;
the memory is used for storing the program codes of the method of the third aspect of the invention;
the processor is configured to read the program code stored in the memory and execute the method provided by the third aspect of the present invention.
In a fifth aspect, the present invention further provides an optical module, where the optical module in the second aspect of the present invention provides a processing apparatus for monitoring a parameter in an optical module as a multi-byte semaphore, and further includes a digital-to-analog conversion module connected to the processing apparatus.
According to the technical scheme, the processing method, the reading method and the device for the monitoring parameters in the optical module and the optical module provided by the invention have the advantages that the data cache area is divided into three cache areas, and the flag bit is set for indicating the current state of the second cache area. When the second cache region is updating data, a bus interface reading command happens to come temporarily, and the storage zone bit of the second cache region is the first identification information, which indicates that the internal data is incomplete, the data is returned from the third cache region to the device sending the bus interface reading command. And the data stored in the third buffer area is generated according to the data reported by the ADC module in the previous data update period, and because the period for reporting the data by the ADC module in the optical module is short, the difference between the data reported in the two periods is also small, and the data does not fluctuate greatly. Therefore, according to the scheme provided by the embodiment of the invention, when the optical module calibrates the monitoring parameters of the multi-byte semaphore, the problems that the accuracy of the monitored semaphore is affected due to the inflection point or deviation of the calibration curve caused by the fact that the bus interface reads the 'conflict' and reads wrong updated data when the real-time data is updated can be avoided.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any inventive exercise.
Fig. 1 is a schematic structural diagram of a conventional optical module parameter calibration system. (ii) a
Fig. 2 is a schematic diagram illustrating an updating process of a real-time digital semaphore according to an embodiment of the invention;
FIG. 3 is a schematic diagram illustrating a logic division for storing multi-byte semaphore monitoring parameters according to an embodiment of the invention;
fig. 4 is a schematic flowchart of a processing method for monitoring a multi-byte semaphore as a monitoring parameter in an optical module according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a reading method for reading a multi-byte semaphore as a monitoring parameter in an optical module according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a processing apparatus for monitoring a multi-byte semaphore as a parameter in an optical module according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 2 is a schematic diagram of an update process of a real-time digital semaphore according to an embodiment of the invention. Since the real-time digital signal amount of the optical module does not occupy 1 byte, but usually occupies 2 bytes, that is, the real-time digital signal amount is a multi-byte signal amount, each byte needs to be updated in sequence. If The optical module updates The LSB (Least Significant Bit) byte of a certain digital signal amount, if The bus interface (e.g., IIC interface, SPI interface, etc.) happens to read The real-time amount, an "error value" composed of The LSB byte before updating and The MSB (The Most Significant Bit) byte after updating may be read. Alternatively, it is also possible to read an "error value" composed of the MSB byte before the update and the LSB byte after the update. Furthermore, the calibration curve of the optical module parameter is also wrong, so that the accuracy of the optical module is poor at a certain point, and even the conventional index requirement cannot be met.
In view of the above problems, an embodiment of the present invention provides a processing method for monitoring a multi-byte semaphore as a parameter in an optical module, which is applied to the optical module, and the basic principle of the processing method is as follows: and dividing the cache region of the MCU into a plurality of cache regions, and setting a data readable identifier for one or more cache regions. In this way, each path of real-time Digital semaphore transmitted by an ADC (Analog Digital Converter) in the optical module to the MCU is sequentially stored in the plurality of cache regions, and after the data in the cache regions is updated, the identifier indicating whether the internal data can be read is set as a readable identifier for other devices (such as a network management unit and a main processing device) to read, so as to solve the conflict between the reading of the bus interface data and the updating of the real-time Digital semaphore of the monitoring parameter.
Fig. 3 is a schematic diagram illustrating logic differentiation of storage of multi-byte semaphore monitoring parameters according to an embodiment of the invention. As shown in fig. 3, in the embodiment of the present invention, the cache area for storing the monitoring parameters is divided into three cache areas, that is, a first cache area, a second cache area, and a third cache area, where the first cache area only obtains and stores the monitoring parameters reported by the ADC, and copies the obtained monitoring parameters to the second cache area and the third cache area, but the first cache area is not open to the bus interface, so that the bus interface cannot read the monitoring parameters stored in the first cache area; the second cache region and the third cache region can be used for the bus interface to read the monitoring parameters stored in the second cache region and the third cache region, and are provided with flag bits for judging whether the monitoring parameters stored in the third cache region can be read by the bus interface. With the partitioning method, the following describes a method for processing and reading monitoring parameters in an optical module according to an embodiment of the present invention in detail.
Fig. 4 is a flowchart illustrating a processing method for monitoring a multi-byte semaphore as a parameter in an optical module according to an embodiment of the present invention. As shown in fig. 4, the method specifically includes the following steps:
step S110: and after the monitoring parameters reported by the digital-to-analog conversion module in the optical module are stored in a first cache region, configuring an identification bit as first identification information.
Firstly, acquiring a monitoring parameter which is reported by a digital-to-analog conversion module in an optical module and is a multi-byte digital signal quantity, and storing the monitoring parameter to a first cache region. Taking the bias current of the laser in the optical module as an example, the laser assembly in the optical module is used for converting an electrical signal into an optical signal, wherein a module circuit board in the optical module can control the bias current of the laser to be supplied to the laser, and the bias current of the laser is used for controlling the emitted light power of the laser. The sampling circuit in the optical module can collect the laser bias current, then the current signal is converted into digital semaphore through ADC, the digital semaphore is stored in the storage area of MCU as the laser bias current monitoring value, and the digital semaphore is reported to the network management unit in the passive optical network system.
In the process of storing the monitoring parameters, if the optical module is applied to the process of calibrating a certain monitoring parameter, the monitoring parameters currently reported by the ADC module are directly stored in the first cache region to perform subsequent calibration curve fitting work. For example, if the digital semaphore of the monitoring parameter occupies 2 bytes, the LSB and MSB bytes thereof may be updated successively; further, if the optical module is applied to a passive optical network system, that is, during the use and normal operation of the optical module, the real-time digital signal quantity is first brought into a calibration curve to perform calculation, so as to convert a final actual value of the optical module signal quantity, for example, the digital signal quantity of the emitted light power after ADC conversion is 1000, the actual value of +3.0dBm is converted through the emission calibration curve, and the actual emitted light power is also about 3.0dBm, and then the stored data in the first buffer area is directly updated to the converted actual value.
Of course, the physical quantity represented by the monitoring parameter is not limited to the laser bias current, and may also be the internal temperature of the optical module, the power supply voltage of the optical module, the light emission power, the light reception power, and the like.
And then, after the data in the first cache region is stored, configuring an identification bit for indicating whether the data stored in the second cache region and the third cache region can be read as first identification information, wherein the first identification information is used for indicating that the third cache region is provided for the bus interface to read the monitoring parameters stored therein, and the second identification information is used for indicating that the second cache region is provided for the bus interface to read the monitoring parameters stored therein. Specifically, the configuration of the identification bit as the first identification information, for example, the configuration of the identification bit as 1, indicates that the second buffer is preparing for data update, and at this time, if an event that the bus interface reads the real-time semaphore occurs, the data stored in the second buffer cannot be returned from the second buffer, but the data stored in the third buffer is returned from the third buffer.
Step S120: copying the monitoring parameters from the first cache region to a second cache region and a third cache region, and configuring the identification bits as second identification information after copying the monitoring parameters to the second cache region.
Specifically, the updated data in the first cache region is copied to the second cache region, and similarly, the updated data is also copied to the third cache region, so that when a real-time semaphore event is read by a bus interface and the data cannot be returned from the second cache region (that is, when the identification bit is set to the first identification information), the parameter data stored in the third cache region is returned.
Meanwhile, after the monitored parameters are copied to the second cache region, the identification bit is also changed from the first identification information to the second identification information, for example, the flag bit is set to 0 to indicate that the data stored in the second cache region can be read, and at this time, if a bus interface reads a real-time semaphore event, the data stored in the second cache region can be returned from the second cache region.
Further, in order to ensure timeliness of data update in the second cache region, so that the bus interface can read the latest parameters reported by the ADC module as much as possible, the embodiment of the present invention further provides an order of copying the monitoring parameters from the first cache region to the second cache region and the third cache region, specifically, copying the monitoring parameters from the first cache region to the second cache region, changing the identification bit from the first identification information to the second identification information after copying the monitoring parameters to the second cache region, and copying the monitoring parameters from the first cache region to the third cache region.
It can be seen from the above parameter processing scheme that when the second buffer area is performing data update, a bus interface read command happens to come temporarily, and since the flag storage bit is the first identification information, which indicates that the internal data is incomplete due to being in an update state, the third buffer area is set for the bus interface to call and read through the second identification information on the flag bit, and data is returned from the third buffer area to the device sending the bus interface read command. And the data stored in the third buffer area is generated according to the data reported by the ADC module in the previous data update period, and because the period for reporting the data by the ADC module in the optical module is short, the difference between the data reported in the two periods is also small, and the data does not fluctuate greatly. Therefore, the scheme provided by the embodiment of the invention can avoid the problem that the accuracy of the monitored quantity is influenced by the inflection point or deviation of the calibration curve caused by the fact that the data reading of the bus interface conflicts with the real-time data updating and the wrong updating data is read.
The following examples will provide a more accurate detailed description of the calibration curve provided by the present invention. For example, when the currently stored data in the second buffer is 0x00FF, if the latest sample value is 0x0100, and when the MSB thereof has been updated to 0x01 and the LSB thereof is still 0xFF, an instruction for the IIC interface to read the real-time sample value occurs, it is obvious that the combined value "0 x01 FF" of buf 2 is an error value, since the LSB has not been assigned yet, the flag bit is saved as the first identification information, that is, still 1, so that the history data in the third buffer is returned, and the history data is the real-time semaphore reported in the previous cycle, which is very close to the real-time value of this time, so that a large jitter of data does not occur. If this method is not used, when the value in the second buffer is directly returned, "0 x01 FF" is returned, or there may be extreme data "0 x 0000", and such real-time value, if it is used as a sampling point of the calibration curve, will affect the trend of the whole curve, resulting in a bias or error correction. By using the method provided by the scheme, the real-time value returned by the IIC is only a jump from 0x00FF to 0x0100, and only a jump of 1 value is needed, so that by using the scheme, the real-time value read by the IIC each time is ensured to be a "relatively correct" real-time value, and the calibration is more accurate.
Further, an embodiment of the present invention further provides that, when the optical module reports the monitoring parameter to the network management unit in the using process, the parameter processing process specifically includes:
step S210: and acquiring the monitoring parameters which are reported by a digital-to-analog conversion module in the optical module and are multi-byte digital signal quantities.
Step S220: and converting an actual value corresponding to the monitoring parameter according to the monitoring parameter and a parameter calibration curve stored by the optical module.
Firstly, a data processing unit in the optical module receives real-time digital signal quantity reported by an ADC (analog-to-digital converter), then, the digital signal quantity is brought into a corresponding calibration curve for operation, a final actual value of the optical module signal quantity is calculated, and data stored in a first cache area is updated according to the calculated actual value.
Step S230: and after the actual value corresponding to the monitoring parameter is stored in the first cache region, configuring an identification bit as first identification information.
Step S240: copying the monitoring parameters from the first cache region to a second cache region and a third cache region, and configuring the identification bits as second identification information after copying the monitoring parameters to the second cache region.
By using the scheme, the real-time semaphore stored in the first cache region only carries out the operation of the calibration curve, and is not open to a bus interface. The real-time semaphores stored in the second cache region and the third cache region are only used for bus interface access, and are not subjected to calibration curve operation, so that the function division of each cache region is clearer, and the problem of wrong monitoring parameters acquired by a network management unit can be prevented.
It should be noted that, in this embodiment, in order to configure the flag bit more quickly, the first identification information is set to be the value 1, and the second identification information is set to be the value 0, and in a specific implementation process, the first identification information may be set to be the value 0, and the second identification information may be set to be other values such as the value 1, as long as the current state of the cache region can be distinguished. In addition, this embodiment is described by taking three buffer areas as an example, and in a specific embodiment, more buffer areas may be provided as needed.
In addition, for the optical module, when the optical module is subjected to reading and writing at the power-on moment, the historical value of the real-time semaphore is not yet in the third cache region, but the initial value is 0. After 1 software cycle, the third buffer will store the historical value of the real-time semaphore, and the software cycle of the optical module is generally about 10-40 ms. The optical module product is required to be powered on for 300ms to complete operations such as initialization, and therefore, the related operations are performed after 300ms, which can completely avoid the problem, and therefore, the method provided by the embodiment can improve the accuracy of reporting the monitoring data by the optical module.
Aiming at the optical module parameter processing method, the embodiment of the invention provides an optical module parameter reading method. Fig. 5 is a flowchart illustrating a method for reading a multi-byte semaphore as a monitoring parameter in an optical module according to an embodiment of the present invention. As shown in fig. 5, the method comprises the steps of:
step S310: and judging the identification information of the identification bit in the optical module.
When a reading instruction issued by an upper computer in an optical network system or an optical module calibration system through a bus interface is received, firstly, the identification information in the identification bit is detected, if the identification information is the first identification information, the step S320 is executed, and if the identification information is the second identification information, the step S330 is executed.
Step S320: and if the identification bit is configured as first identification information, reading the monitoring parameters stored in a third cache region of the optical module through a bus interface.
If the identification bit is the first identification information, the second cache region is storing, the data is incomplete, and at this time, the data is returned to the corresponding upper computer from the third cache region.
Step S330: and if the identification bit is configured to be second identification information, reading the monitoring parameters stored in a second cache region of the optical module through the bus interface.
If the identification bit is the second identification information, the data in the second cache region is completely updated, and the latest data is returned to the corresponding upper computer from the second cache region.
And finally, the main processing equipment forms a calibration curve according to the digital signal quantity reported by the buffer area and the actual analog quantity reported by the sampling equipment, writes the calibration curve into a specified area in the optical module, and further can finish the parameter calibration work of the optical module.
Corresponding to the above method for processing and reading the optical module parameter, an embodiment of the present invention further provides a device for processing and reading the optical module monitoring parameter, and a processing device for processing and reading the optical module monitoring parameter as a multi-byte semaphore is taken as an example for description below. Fig. 6 is a processing apparatus for monitoring a multi-byte semaphore as a parameter in an optical module according to an embodiment of the invention, as shown in fig. 6, the apparatus 600 may include: at least one processor (processor)601, memory 602, peripheral interface 603, input/output subsystem 604, power lines 605, and communication lines 606.
In fig. 6, arrows indicate that communication and data transfer between components of the computer system can be performed, and the communication and data transfer can be implemented using a high-speed serial bus (high-speed serial bus), a parallel bus (parallel bus), a Storage Area Network (SAN), and/or other appropriate communication technology.
The memory 602 may include an operating system 612 and a light module monitoring parameter processing routine 622 (if the apparatus is a light module parameter reading apparatus, the memory 602 may include the operating system 612 and the light module monitoring parameter reading 622). For example, the memory 602 may include a high-speed random access memory (high-speed random access memory), a magnetic disk, a static random access memory (SPAM), a Dynamic Random Access Memory (DRAM), a Read Only Memory (ROM), a flash memory, or a non-volatile memory. The memory 602 may store program codes for the operating system 612 and the in-optical module monitoring parameter processing routine 122, that is, may include various data such as a software module, an instruction set architecture, or other data required for the operation of the processing apparatus 600 for monitoring the multi-byte semaphore as the parameter in the optical module. In this case, the access to the memory 602 and other controllers such as the processor 601 and the peripheral interface 606 may be controlled by the processor 601.
The peripheral interface 603 may combine the input and/or output peripherals of the processing apparatus 600 with the processor 601 and the memory 602 for monitoring parameters in the optical module as multi-byte semaphores. Also, the input/output subsystem 604 may combine a variety of input/output peripherals with the peripheral interface 606. For example, the input/output subsystem 604 may include a display, printer, or controller for integrating a camera, various sensors, and the like with the peripheral interface 603 as desired. According to another aspect, an input/output peripheral may also be coupled to the peripheral interface 603 without going through the input/output subsystem 604.
The power line 605 may supply power to all or part of the circuit elements of the mobile terminal. For example, the power line 605 may include, for example, a power management system, a battery or one or more power sources for Alternating Current (AC), a charging system, a power failure detection circuit (power failure detection circuit), a power converter or inverter, a power status marker, or any other circuit element for power generation, management, distribution.
The communication link 606 may utilize at least one interface to communicate with other computer systems, such as with other mobile terminals.
The processor 601 may perform various functions of the charging management device 600 and process data by executing software modules or instruction set architectures stored in the memory 602. That is, the processor 601 can be configured to process commands of a computer program by performing basic arithmetic, logic, and input/output operations of a computer system.
The embodiment of fig. 6 is only one example of the processing device 600 for monitoring multi-byte semaphores in the optical module, and in addition, the circuit elements included in the processing device 600 for monitoring multi-byte semaphores in the optical module can also be implemented by hardware, software, or a combination of both hardware and software including one or more integrated circuits specialized in signal processing or application programs.
Based on the processing apparatus 600 for monitoring parameters in the optical module shown in fig. 6, an embodiment of the present invention further provides an optical module, where the optical module includes the processing apparatus for processing the monitoring parameters in the optical module shown in fig. 6 into multi-byte semaphore, and further includes a digital-to-analog conversion module connected to the processing apparatus. The optical module provided by the embodiment of the invention can execute the processing method for monitoring the multi-byte semaphore in the optical module provided by the embodiment.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is merely a detailed description of the invention, and it should be noted that modifications and adaptations by those skilled in the art may be made without departing from the principles of the invention, and should be considered as within the scope of the invention.

Claims (8)

1. A method for processing a multi-byte semaphore as a monitoring parameter in an optical module, the method comprising:
after the monitoring parameters reported by the digital-to-analog conversion module in the optical module are stored in a first cache region, configuring an identification bit as first identification information;
copying the monitoring parameters from the first cache region to a second cache region and a third cache region, and configuring the identification bits as second identification information after copying the monitoring parameters to the second cache region;
the second buffer area and the third buffer area are available for a bus interface to read the monitoring parameters, the first identification information is used for indicating the third buffer area to supply the bus interface to read the monitoring parameters, and the second identification information is used for indicating the second buffer area to supply the bus interface to read the monitoring parameters;
the first cache is not open to the bus interface.
2. The method of claim 1, wherein copying the monitoring parameters from the first cache to a second cache and a third cache comprises:
firstly, copying the monitoring parameters from the first cache region to a second cache region;
after the monitoring parameters are copied to the second cache region, the monitoring parameters are copied from the first cache region to a third cache region.
3. The method of claim 1, wherein storing the monitoring parameters reported by a digital-to-analog conversion module in the optical module to a first buffer area comprises:
acquiring the monitoring parameters which are reported by a digital-to-analog conversion module in the optical module and are multi-byte digital signal quantities;
converting an actual value corresponding to the monitoring parameter according to the monitoring parameter and a parameter calibration curve stored by the optical module;
and storing the actual value corresponding to the monitoring parameter to the first cache region.
4. The method according to claim 1, wherein the physical quantity indicated by the monitoring parameter comprises a light module internal temperature, a laser bias current, a light module supply voltage, a light emission power or a light reception power.
5. A processing device for monitoring multi-byte semaphore in optical module is characterized in that the device comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are connected through a communication bus;
the communication interface is used for acquiring monitoring parameters reported by a digital-to-analog conversion module in the optical module;
the memory for storing program code for the method of any one of claims 1 to 4;
the processor for reading the program code stored in the memory and executing the method of any of claims 1 to 4.
6. A method for reading multi-byte semaphore as a monitoring parameter in an optical module, the method being used for reading the monitoring parameter in the optical module according to any one of claims 1-5, the method comprising:
judging the identification information of the identification bit in the optical module;
if the identification bit is configured as first identification information, reading the monitoring parameters stored in a third cache region of the optical module through a bus interface;
and if the identification bit is configured to be second identification information, reading the monitoring parameters stored in a second cache region of the optical module through the bus interface.
7. A reading device for monitoring multi-byte semaphore in optical module is characterized in that the device comprises a processor, a memory and a communication interface, wherein the processor, the memory and the communication interface are connected through a communication bus;
the communication interface is used for acquiring identification information of an identification bit in the optical module;
the memory for storing program code for the method of claim 6;
the processor for reading the program code stored in the memory and executing the method as claimed in claim 6.
8. An optical module, characterized in that the optical module includes the processing device of claim 5 for monitoring multi-byte semaphore as parameter in the optical module, and further includes a digital-to-analog conversion module connected to the processing device.
CN201710680529.6A 2017-08-10 2017-08-10 Processing method, reading method and device for monitoring parameters in optical module and optical module Active CN107423236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710680529.6A CN107423236B (en) 2017-08-10 2017-08-10 Processing method, reading method and device for monitoring parameters in optical module and optical module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710680529.6A CN107423236B (en) 2017-08-10 2017-08-10 Processing method, reading method and device for monitoring parameters in optical module and optical module

Publications (2)

Publication Number Publication Date
CN107423236A CN107423236A (en) 2017-12-01
CN107423236B true CN107423236B (en) 2020-12-04

Family

ID=60436920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710680529.6A Active CN107423236B (en) 2017-08-10 2017-08-10 Processing method, reading method and device for monitoring parameters in optical module and optical module

Country Status (1)

Country Link
CN (1) CN107423236B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555810B (en) * 2020-04-22 2023-08-08 青岛海信宽带多媒体技术有限公司 Optical module and data transmission method
WO2023016125A1 (en) * 2021-08-11 2023-02-16 青岛海信宽带多媒体技术有限公司 Optical module and signal calibration method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426348B2 (en) * 2003-01-15 2008-09-16 Avago Technologies Fiber Ip Pte Ltd Calibrating an optical transceiver via adaptive testing
CN201173927Y (en) * 2008-03-10 2008-12-31 江苏杰创科技有限公司 Wireless multi- parameter on-line environment monitoring apparatus
CN102930877A (en) * 2012-11-02 2013-02-13 东莞铭普光磁股份有限公司 Digital monitoring system suitable for light module controller and implementation method of digital monitoring system
CN105718748A (en) * 2016-01-28 2016-06-29 许继集团有限公司 Online monitoring data processing method
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN106330296A (en) * 2016-08-31 2017-01-11 无锡市电子仪表工业有限公司 Method for calibrating, compensating and self-correcting parameters of optical module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041227A (en) * 2006-08-10 2008-02-21 Sanyo Electric Co Ltd Optical disk signal processing circuit
US8995534B2 (en) * 2010-09-20 2015-03-31 Bevara Technologies, Llc Systems and methods for encoding and decoding

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426348B2 (en) * 2003-01-15 2008-09-16 Avago Technologies Fiber Ip Pte Ltd Calibrating an optical transceiver via adaptive testing
CN201173927Y (en) * 2008-03-10 2008-12-31 江苏杰创科技有限公司 Wireless multi- parameter on-line environment monitoring apparatus
CN102930877A (en) * 2012-11-02 2013-02-13 东莞铭普光磁股份有限公司 Digital monitoring system suitable for light module controller and implementation method of digital monitoring system
CN105718748A (en) * 2016-01-28 2016-06-29 许继集团有限公司 Online monitoring data processing method
CN106126362A (en) * 2016-06-17 2016-11-16 青岛海信宽带多媒体技术有限公司 A kind of optical module I2C bus unrest sequential diagnosis method and device
CN106330296A (en) * 2016-08-31 2017-01-11 无锡市电子仪表工业有限公司 Method for calibrating, compensating and self-correcting parameters of optical module

Also Published As

Publication number Publication date
CN107423236A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US8934779B2 (en) Operational status indicators in an optical transceiver using dynamic thresholds
US9906050B2 (en) Method for setting parameters of a field device electrical current supply module
US7275236B1 (en) Method for programming a multiple device control system using object sharing
CN107423236B (en) Processing method, reading method and device for monitoring parameters in optical module and optical module
US7213097B2 (en) Electronic control unit and electronic driving unit
GB2397712A (en) Transceiver with memory for failure information storage
CN109656633B (en) Instrument calibration method, device, system, terminal equipment and readable storage medium
US10365624B2 (en) Slave device, method for controlling slave device, and non-transitory computer-readable recording medium
US11301236B2 (en) Updating components of a modular system
JP5594116B2 (en) I / O duplex device
CN111294262B (en) Method and slave device for a bus system
CN104125047A (en) Communication circuit, physical quantity measurement device, electronic apparatus, and communication method
US20110268256A1 (en) Communication Apparatus, Programmable Device Incorporated in the Apparatus, and Method of Controlling Program Writing of the Device
CN113508562B (en) Control system and control device
CN113519143B (en) Control system and control device
CN111611186B (en) Transmission control method and device in embedded chip
KR20140066357A (en) Method for updating firmware of multiple micro controller unit and electronic control unit using the same
CN113676795A (en) BOSA automatic calibration and data storage system based on GPON router
JP3884643B2 (en) Process control device
CN112849218A (en) Wheel diameter parameter adaptation method and device
CN110618826A (en) Method and device for updating application program and terminal equipment
CN112860663B (en) System configuration method, device, equipment and storage medium
CN116388913B (en) RTC clock self-calibration method, electronic equipment and storage medium
US20230367578A1 (en) Method for updating software by confirming hardware version information
JP2018112939A (en) Processing apparatus

Legal Events

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