Optical module and temperature acquisition method of optical module
By combining the first temperature sensor on the circuit board and the second temperature sensor in the microcontroller unit, the compensating temperature calibration method is adopted to solve the problem of insufficient temperature acquisition accuracy of the optical module within the working temperature range, and high accuracy monitoring of the working state of the optical module is achieved.
Patent Information
- Application Number
- CN202311713773.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-06-13
AI Technical Summary
The existing optical modules have insufficient accuracy in temperature acquisition, especially in the full operating temperature range, making it difficult to accurately monitor the working status of the optical module.
By combining the first temperature sensor on the circuit board and the second temperature sensor in the microcontroller unit, the operating temperature of the optical module is accurately obtained by calibrating the temperature by compensating the temperature.
It improves the accuracy of the temperature acquisition of the optical module, ensures that the temperature data can be accurately collected within the full temperature range of the optical module, and facilitates the upper computer to effectively monitor the working status of the optical module.
Smart Images

Figure CN120141669A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technologies, and particularly to an optical module and a method for collecting the temperature of an optical module. Background Art
[0002] In the development of new services and application models such as cloud computing, mobile Internet, and video, the development and progress of optical communication technologies have become increasingly important. In optical communication technologies, an optical module is a tool for realizing the mutual conversion of optical and electrical signals and is one of the key components in optical communication devices.
[0003] The optical module is used to connect to a host computer and an optical fiber, convert the optical signal transmitted by the optical fiber into an electrical signal and transmit it to the host computer, or convert the electrical signal transmitted by the host computer into an optical signal and transmit it outward by the optical fiber. Therefore, the host computer needs to monitor the working state of the optical module. Summary of the Invention
[0004] Embodiments of this application provide an optical module and a method for collecting the temperature of the optical module. The working temperature of the optical module is collected by a first temperature sensor on a circuit board in a first collection mode, and the temperature is collected by a second temperature sensor in a micro control unit in a second collection mode, and the working temperature of the optical module is calibrated by compensating the temperature; the accuracy of collecting the temperature of the optical module is improved, and the working temperature of the optical module can be accurately collected within the full working temperature range of the optical module, which is convenient for the host computer to monitor the working state of the optical module.
[0005] According to the first aspect of the embodiments of this application, an optical module is provided, including:
[0006] A circuit board, on which a first temperature sensor and a micro control unit are provided, and a second temperature sensor is built in the micro control unit; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the collection accuracy of the first temperature sensor is greater than that of the second temperature sensor;
[0007] The micro control unit is configured to:
[0008] Determine the data source for collecting the current working temperature of the optical module and obtain the third collection data corresponding to the current working temperature of the optical module;
[0009] When the data source for collecting the current working temperature is the first temperature sensor, determine the magnitude relationship between the third sampling data and the first preset threshold;
[0010] When the third sampled data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module, receive the first collected data of the first temperature sensor, and update the third sampled data with the first collected data to determine the current operating temperature of the optical module; when the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module;
[0011] Obtain the compensation value and the second collected data of the second temperature sensor;
[0012] Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; the first preset threshold is the value with the smallest difference between the first collected data and the collected data.
[0013] In an optional implementation, the microcontroller unit is further configured to:
[0014] When the current data source is the second temperature sensor, determine the magnitude relationship between the current third collected data and the second preset threshold; the second preset threshold is greater than the first preset threshold;
[0015] When the current third collected data is less than the second preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module; and update the current third collected data with the calibrated second collected data; when the current third collected data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module;
[0016] Obtain the first collected data of the first temperature sensor, and update the current third collected data with the first collected data.
[0017] In an optional implementation, when the current third collected data is greater than or equal to the second preset threshold, and before the data source is switched to the first temperature sensor, the microcontroller unit is further configured to:
[0018] Clear the compensation value.
[0019] In an optional implementation, the second preset threshold and the first preset threshold have a preset difference, and the preset difference is greater than the fluctuation value of the instantaneous collected data when the optical module is in a stable operating state.
[0020] In an alternative implementation, the full operating temperature range of the optical module is -40°C to 120°C. The first acquisition data of the first temperature sensor corresponds to a first temperature range, and the second acquisition data of the second temperature sensor corresponds to a second temperature range. The first temperature range is greater than the second temperature range, and the first temperature range is 4 to 5.5 times the second temperature range.
[0021] In an alternative implementation, the temperature corresponding to the first preset threshold is -15°C, and the temperature corresponding to the second preset threshold is -10°C. When the data source switches from the first temperature sensor to the second temperature sensor, the first temperature range is -15°C to 120°C, and the second temperature range is -40°C to -15°C. When the data source switches from the second temperature sensor to the first temperature sensor, the first temperature range is -10°C to 120°C, and the second temperature range is -40°C to -10°C.
[0022] In an alternative implementation, before the data source switches to the second temperature sensor, the microcontroller unit is further configured to:
[0023] When the current third acquisition data is equal to the first preset threshold, obtain the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor.
[0024] Determine a compensation value according to the first acquisition data and the second acquisition data.
[0025] And / or
[0026] The compensation value is a preset compensation value. Before the data source switches to the second temperature sensor, the microcontroller unit is further configured to:
[0027] Obtain the preset compensation value.
[0028] According to the embodiment of the second aspect of the present application, an optical module is provided, including:
[0029] A circuit board, on which a first temperature sensor and a microcontroller unit are provided. The microcontroller unit internally has a second temperature sensor. The first temperature sensor is serially connected to an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range. The acquisition accuracy of the first temperature sensor is greater than that of the second temperature sensor.
[0030] The microcontroller unit is configured to:
[0031] Determine the acquisition data source of the current operating temperature of the optical module and obtain the third acquisition data corresponding to the current operating temperature of the optical module.
[0032] When the acquisition data source of the current operating temperature is the first temperature sensor, judge the magnitude relationship between the third sampling data and the first preset threshold.
[0033] When the third sampled data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module, receive the first collected data of the first temperature sensor, and update the third sampled data with the first collected data to determine the current operating temperature of the optical module; when the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module;
[0034] Obtain the compensation value and the second collected data of the second temperature sensor;
[0035] Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; the first preset threshold is the value with the smallest difference between the first collected data and the collected data;
[0036] When the current data source is the second temperature sensor, determine the magnitude relationship between the current third collected data and the second preset threshold; the second preset threshold is greater than the first preset threshold;
[0037] When the current third collected data is less than the second preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module; and update the current third collected data with the calibrated second collected data; when the current third collected data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module.
[0038] According to the third aspect of the embodiments of the present application, a method for collecting the temperature of an optical module is provided. The optical module includes:
[0039] A circuit board, on which a first temperature sensor and a micro control unit are provided, and a second temperature sensor is built in the micro control unit; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the acquisition accuracy of the first temperature sensor is greater than that of the second temperature sensor;
[0040] The method includes:
[0041] Determine the data source for collecting the current operating temperature of the optical module, and obtain the third collected data corresponding to the current operating temperature of the optical module;
[0042] When the data source for collecting the current operating temperature is the first temperature sensor, determine the magnitude relationship between the third sampled data and the first preset threshold;
[0043] When the third sampled data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module, receive the first collected data of the first temperature sensor, and update the third sampled data with the first collected data to determine the current operating temperature of the optical module; when the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module;
[0044] Obtain the compensation value and the second collected data of the second temperature sensor;
[0045] Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; the first preset threshold is the value with the smallest difference between the first collected data and the collected data.
[0046] In an alternative implementation, the method further includes:
[0047] When the current data source is the second temperature sensor, determine the magnitude relationship between the current third collected data and the second preset threshold; the second preset threshold is greater than the first preset threshold;
[0048] When the current third collected data is less than the second preset threshold, use the second temperature sensor as the data source for collecting data on the operating temperature of the optical module; and update the current third collected data with the calibrated second collected data; when the current third collected data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting data on the operating temperature of the optical module;
[0049] Obtain the first collected data of the first temperature sensor, and update the current third collected data with the first collected data.
[0050] The optical module and the temperature acquisition method of the optical module provided by the embodiments of the present application classify the data sources for collecting the working temperature of the optical module into a first temperature sensor and a second temperature sensor built into the MCU. In this way, the advantages of the first temperature sensor and the second temperature sensor built into the MCU can be fully utilized, thereby improving the accuracy of temperature acquisition of the optical module. For example, when the current third acquisition data of the optical module is greater than or equal to the first preset threshold, the first temperature sensor with higher precision is used as the data source for collecting data, and the first acquisition data collected by the first temperature sensor is used to update the third acquisition data of the optical module, so as to determine the current working temperature of the optical module. When the current third acquisition data of the optical module is less than the first preset threshold, since the resistance value of the first temperature sensor increases and the voltage division increases, resulting in an increase in the error of the first temperature sensor, the data source can be switched to the second temperature sensor at this time. In addition, the difference between the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor at the first preset threshold is used as a compensation value, and the compensation value is used to compensate and calibrate the second acquisition data collected by the second temperature sensor. In this way, the acquisition data difference (compensation value) between the accurate first acquisition data of the first temperature sensor within the allowable error range and the second temperature sensor is used to compensate and calibrate the second acquisition data, and the current third acquisition data of the optical module is obtained, which improves the accuracy of using the second temperature sensor in the MCU as the data source for collecting the working temperature of the optical module, eliminates the problem of large errors of the first temperature sensor after the working temperature corresponding to the first acquisition data is less than the temperature corresponding to the first preset threshold, and improves the accuracy of temperature acquisition in the full temperature range of the optical module working temperature. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 FIG. 6 is a partial structural diagram of an optical communication system according to some embodiments of the present application;
[0052] Figure 2 FIG. 10 is a partial structural diagram of a host computer according to some embodiments of the present application;
[0053] Figure 3 FIG. 14 is a structural diagram of an optical module according to some embodiments of the present application;
[0054] Figure 4 FIG. 18 is an exploded view of an optical module according to some embodiments of the present application;
[0055] Figure 5 FIG. 22 is a partial structural schematic diagram of a circuit board in an optical module according to some embodiments of the present application;
[0056] Figure 6 FIG. 26 is a schematic flow chart of a micro control unit in an optical module according to some embodiments of the present application;
[0057] Figure 7 It is a change diagram for the micro - control unit in the optical module to determine the current operating temperature of the optical module according to temperature changes provided by some embodiments of the present application;
[0058] Figure 8 It is a test curve diagram when the optical module provided by some embodiments of the present application collects the operating temperature;
[0059] Figure 9 It is another schematic flowchart for the micro - control unit in the optical module to perform operations provided by some embodiments of the present application;
[0060] Figure 10 It is a schematic flowchart of the method for collecting the temperature of the optical module provided by some embodiments of the present application. Detailed implementation manners
[0061] Next, some embodiments of the present disclosure will be clearly and detailedly described in conjunction with the accompanying drawings. However, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments provided by the present disclosure fall within the scope of protection of the present disclosure.
[0062] Unless otherwise required by the context, throughout the specification and claims, the term "comprising" is interpreted as an open and inclusive meaning, that is, "including, but not limited to"; the terms "first" and "second" cannot be understood as indicating or implying relative importance or an upper limit on quantity; the term "a plurality" means two or more; the term "connection" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or integrated, can be directly connected, or indirectly connected through an intermediate medium; the use of the term "suitable for" or "configured to" means open and inclusive language, which does not exclude devices suitable for or configured to perform additional tasks or steps; descriptions such as "parallel", "perpendicular", "same", "consistent", "flush", etc. do not limit to absolute mathematical theoretical relationships, but also include an acceptable error range in practice, and also include differences formed due to manufacturing reasons based on the same design concept.
[0063] In optical communication technology, in order to establish information transfer between information processing devices, it is necessary to load information onto light and utilize the propagation of light to achieve information transfer. Here, the light loaded with information is the optical signal. When the optical signal is transmitted in the information transmission device, the loss of optical power can be reduced, so that high-speed, long-distance, and low-cost information transfer can be achieved. The signals that information processing devices can recognize and process are electrical signals. Information processing devices generally include Optical Network Unit (ONU), gateway, router, switch, mobile phone, computer, server, tablet computer, television, etc., and information transmission devices generally include optical fiber and optical waveguide, etc.
[0064] The optical module can realize the mutual conversion between optical signals and electrical signals between the information processing device and the information transmission device. For example, at least one of the optical signal input end or the optical signal output end of the optical module is connected to an optical fiber, and at least one of the electrical signal input end or the electrical signal output end of the optical module is connected to an optical network terminal; the first optical signal from the optical fiber is transmitted to the optical module, the optical module converts the first optical signal into a first electrical signal, and transmits the first electrical signal to the optical network terminal; the second electrical signal from the optical network terminal is transmitted to the optical module, the optical module converts the second electrical signal into a second optical signal, and transmits the second optical signal to the optical fiber. Since information can be transmitted between multiple information processing devices through electrical signals, at least one of the multiple information processing devices needs to be directly connected to the optical module, rather than all information processing devices being directly connected to the optical module. Here, the information processing device directly connected to the optical module is called the host computer of the optical module. In addition, the optical signal input end or the optical signal output end of the optical module can be called the optical port, and the electrical signal input end or the electrical signal output end of the optical module can be called the electrical port.
[0065] Figure 1 It is a partial structural diagram of an optical communication system according to some embodiments of the present application. As Figure 1 shown, the optical communication system mainly includes a remote information processing device 1000, a local information processing device 2000, a host computer 100, an optical module 200, an optical fiber 101, and a network cable 103.
[0066] One end of the optical fiber 101 extends in the direction of the remote information processing device 1000, and the other end of the optical fiber 101 is connected to the optical module 200 through the optical port of the optical module 200. The optical signal can be totally reflected in the optical fiber 101, and the propagation of the optical signal in the total reflection direction can almost maintain the original optical power. The optical signal undergoes multiple total reflections in the optical fiber 101 to transmit the optical signal from the remote information processing device 1000 to the optical module 200, or transmit the optical signal from the optical module 200 to the remote information processing device 1000, thereby realizing long-distance and low-power-loss information transfer.
[0067] An optical communication system may include one or more optical fibers 101, and the optical fibers 101 are detachably or fixedly connected to the optical module 200. The host computer 100 is configured to provide a data signal to the optical module 200, receive a data signal from the optical module 200, or monitor or control the operating state of the optical module 200.
[0068] The host computer 100 includes a housing generally in the shape of a rectangular parallelepiped, and an optical module interface 102 provided on the housing. The optical module interface 102 is configured to access the optical module 200 to establish a unidirectional or bidirectional electrical signal connection between the host computer 100 and the optical module 200.
[0069] The host computer 100 further includes an external electrical interface, which can access an electrical signal network. For example, the external electrical interface includes a Universal Serial Bus (USB) interface or a network cable interface 104. The network cable interface 104 is configured to access the network cable 103 to establish a unidirectional or bidirectional electrical signal connection between the host computer 100 and the network cable 103. One end of the network cable 103 is connected to the local information processing device 2000, and the other end of the network cable 103 is connected to the host computer 100 to establish an electrical signal connection between the local information processing device 2000 and the host computer 100 through the network cable 103. For example, a third electrical signal sent by the local information processing device 2000 is transmitted into the host computer 100 through the network cable 103. The host computer 100 generates a second electrical signal according to the third electrical signal. The second electrical signal from the host computer 100 is transmitted to the optical module 200. The optical module 200 converts the second electrical signal into a second optical signal and transmits the second optical signal to the optical fiber 101. The second optical signal is transmitted in the optical fiber 101 to the remote information processing device 1000. For example, a first optical signal from the remote information processing device 1000 propagates through the optical fiber 101. The first optical signal from the optical fiber 101 is transmitted to the optical module 200. The optical module 200 converts the first optical signal into a first electrical signal. The optical module 200 transmits the first electrical signal to the host computer 100. The host computer 100 generates a fourth electrical signal according to the first electrical signal and transmits the fourth electrical signal into the local information processing device 2000. It should be noted that an optical module is a tool for realizing the mutual conversion between optical signals and electrical signals. During the above conversion process of optical signals and electrical signals, the information does not change, but the encoding and decoding methods of the information may change.
[0070] In addition to including an optical network terminal, the host computer 100 further includes an Optical Line Terminal (OLT), an Optical Network Terminal (ONT), or a data center server, etc.
[0071] Figure 2 This is a partial structure diagram of a host computer according to some embodiments of the present application. To clearly show the connection relationship between the optical module 200 and the host computer 100, Figure 2 only the structure of the host computer 100 related to the optical module 200 is shown. As Figure 2 shown, the host computer 100 further includes a PCB circuit board 105 disposed in the housing, a cage 106 disposed on the surface of the PCB circuit board 105, a radiator 107 disposed on the cage 106, and an electrical connector disposed inside the cage 106. The electrical connector is configured to access the electrical port of the optical module 200; the radiator 107 has raised structures such as fins to increase the heat dissipation area.
[0072] The optical module 200 is inserted into the cage 106 of the host computer 100, and the optical module 200 is fixed by the cage 106. The heat generated by the optical module 200 is conducted to the cage 106 and then dissipated through the radiator 107. After the optical module 200 is inserted into the cage 106, the electrical port of the optical module 200 is connected to the electrical connector inside the cage 106, thereby establishing a two-way electrical signal connection between the optical module 200 and the host computer 100. In addition, the optical port of the optical module 200 is connected to the optical fiber 101, thereby establishing a two-way optical signal connection between the optical module 200 and the optical fiber 101.
[0073] Figure 3 This is a structure diagram of an optical module according to some embodiments of the present application, Figure 4 This is an exploded view of an optical module according to some embodiments of the present application. As Figure 3 and Figure 4 shown, the optical module 200 includes a shell, a circuit board 300 disposed in the shell, an optical transmitting component 400, and an optical receiving component 500. However, the present disclosure is not limited thereto. In some embodiments, the optical module 200 includes one of the optical transmitting component 400 and the optical receiving component 500.
[0074] The shell includes an upper shell 201 and a lower shell 202. The upper shell 201 covers the lower shell 202 to form the above-mentioned shell having two openings 204 and 205; the outer contour of the shell generally presents a rectangular body.
[0075] In some embodiments, the lower shell 202 includes a bottom plate 2021 and two lower side plates 2022 located on both sides of the bottom plate 2021 and perpendicular to the bottom plate 2021; the upper shell 201 includes a cover plate 2011, and the cover plate 2011 covers the two lower side plates 2022 of the lower shell 202 to form the above-mentioned shell.
[0076] In some embodiments, the lower housing 202 includes a bottom plate 2021 and two lower side plates 2022 located on both sides of the bottom plate 2021 and perpendicular to the bottom plate 2021; the upper housing 201 includes a cover plate 2011 and two upper side plates located on both sides of the cover plate 2011 and perpendicular to the cover plate 2011. The two upper side plates are combined with the two lower side plates 2022 to cover the upper housing 201 on the lower housing 202.
[0077] The direction of the line connecting the two openings 204 and 205 may be consistent with the length direction of the optical module 200 or may not be consistent with the length direction of the optical module 200. For example, the opening 204 is located at the end of the optical module 200 ( Figure 3 the right end), and the opening 205 is also located at the end of the optical module 200 ( Figure 3 the left end). Alternatively, the opening 204 is located at the end of the optical module 200, while the opening 205 is located on the side of the optical module 200. The opening 204 is an electrical port, and the gold fingers 301 of the circuit board 300 extend from the electrical port and are inserted into the electrical connector of the host computer 100; the opening 205 is an optical port and is configured to access an external optical fiber 101 so that the optical fiber 101 connects the optical transmitting component 400 and the optical receiving component 500 in the optical module 200.
[0078] The assembly method of combining the upper housing 201 and the lower housing 202 facilitates the installation of the circuit board 300, the optical transmitting component 400, the optical receiving component 500, etc. into the above-mentioned housing, and the upper housing 201 and the lower housing 202 can encapsulate and protect the above-mentioned devices. In addition, when assembling the circuit board 300, the optical transmitting component 400, the optical receiving component 500, etc., it is convenient to deploy the positioning components, heat dissipation components, and electromagnetic shielding components of these devices, which is conducive to the automated implementation of production.
[0079] In some embodiments, the upper housing 201 and the lower housing 202 are made of a metal material, which is beneficial to achieve electromagnetic shielding and heat dissipation.
[0080] In some embodiments, the optical module 200 further includes an unlocking component 600 located outside its housing. The unlocking component 600 is configured to achieve a fixed connection between the optical module 200 and the host computer or to release the fixed connection between the optical module 200 and the host computer.
[0081] For example, the unlocking component 600 is located outside the two lower side plates 2022 of the lower housing 202 and includes an engaging component that matches the cage 106 of the host computer 100. When the optical module 200 is inserted into the cage 106, the engaging component of the unlocking component 600 fixes the optical module 200 in the cage 106; when the unlocking component 600 is pulled, the engaging component of the unlocking component 600 moves accordingly, thereby changing the connection relationship between the engaging component and the host computer to release the fixation of the optical module 200 to the host computer, so that the optical module 200 can be withdrawn from the cage 106.
[0082] The circuit board 300 includes circuit traces, electronic components, and chips, etc. The electronic components and chips are connected according to the circuit design through the circuit traces to achieve functions such as power supply, electrical signal transmission, and grounding. The electronic components can include, for example, capacitors, resistors, triodes, metal-oxide-semiconductor field-effect transistors (MOSFETs). The chips can include, for example, microcontroller units (MCUs), laser driver chips, transimpedance amplifiers (TIAs), limiting amplifiers (LIAs), clock and data recovery chips (CDRs), power management chips, and digital signal processing (DSP) chips.
[0083] The circuit board 300 is generally a rigid circuit board. Due to its relatively hard material, the rigid circuit board can also achieve a bearing function. For example, the rigid circuit board can stably bear the above-mentioned electronic components and chips; the rigid circuit board can also be inserted into the electrical connectors in the cage 106 of the host computer 100.
[0084] The circuit board 300 also includes a gold finger 301 formed on its end surface. The gold finger 301 is composed of a plurality of independent pins. When the circuit board 300 is inserted into the cage 106, the gold finger 301 conducts with the electrical connector in the cage 106. The gold finger 301 can be provided only on the surface of one side of the circuit board 300 (for example Figure 4The upper surface shown) can also be provided on the upper and lower surfaces of the circuit board 300 to provide a larger number of pins, so as to adapt to occasions with a large demand for the number of pins. The gold finger 301 is configured to establish an electrical connection with the host computer to achieve power supply, grounding, two-wire synchronous serial (Inter-Integrated Circuit, I2C) signal transmission, data signal transmission, etc. Of course, flexible circuit boards are also used in some optical modules. Flexible circuit boards are generally used in cooperation with rigid circuit boards as a supplement to rigid circuit boards.
[0085] At least one of the optical transmitting component 400 or the optical receiving component 500 is located on the side of the circuit board 300 away from the gold finger 301.
[0086] In some embodiments, the optical transmitting component 400 and the optical receiving component 500 are physically separated from the circuit board 300 respectively, and then electrically connected to the circuit board 300 through corresponding flexible circuit boards or electrical connectors respectively.
[0087] In some embodiments, at least one of the optical transmitting component or the optical receiving component can be directly provided on the circuit board 300. For example, at least one of the optical transmitting component or the optical receiving component can be provided on the surface of the circuit board 300 or on the side of the circuit board 300.
[0088] Figure 5 It is a schematic diagram of a partial structure of a circuit board in an optical module provided according to some embodiments of the present application. As Figure 5 shown, in some embodiments of the present application, a first temperature sensor 302 and an MCU 303 are provided on the circuit board 300, and a second temperature sensor 3031 is built in the MCU 303. The first temperature sensor 302 can be connected to an analog-to-digital converter 304 (abbreviation: ADC) on the circuit board 300. For example, the first temperature sensor 302 can be connected in series with the analog-to-digital converter 304, and the analog-to-digital converter 304 is connected to the MCU 303, so as to convert the analog signal collected by the first temperature sensor 302 into a digital signal for the MCU 303 to recognize.
[0089] The first temperature sensor 302 is configured to collect the operating temperature of the optical module. Within the normal operating temperature range of the optical module (e.g., 0°C to 70°C), the first temperature sensor 302 can provide accurate temperature measurements; in some examples, the optical module may operate within the full temperature range of -40°C to 120°C. When the ADC 304 operates, it requires an external reference voltage to be provided. In actual operation, the reference voltage fluctuates within a preset range (e.g., in some examples, the reference voltage is between 2.0V and 2.044V); when the temperature decreases, the resistance value of the first temperature sensor 302 increases, causing the voltage division across the first temperature sensor 302 to increase; at this time, there is a large error in the data obtained by the ADC 304 based on the collected value of the first temperature sensor 302 to reflect the operating temperature of the optical module. For example, in some examples, the first temperature sensor 302 can be a thermistor, and when the temperature decreases, the voltage division across the thermistor increases, which has a certain impact on the voltage division of the ADC 304.
[0090] In some examples of the embodiments of the present application, the first temperature sensor 302 and the second temperature sensor 303 can simultaneously collect the operating temperature of the optical module; among them, the MCU 303 can determine the current operating temperature of the optical module based on the first collected data of the first temperature sensor 302 or the second collected data of the second temperature sensor 303 according to the actual current operating situation; or, in some examples, when the first temperature sensor 302 collects the operating temperature of the optical module, the second temperature sensor 303 can also not operate; when the MCU 303 switches to the second temperature sensor 303 to collect the operating temperature of the optical module, the MCU 303 can stop the operation of the first temperature sensor 302, that is, the first temperature sensor 302 pauses operation. In other examples, when the MCU 303 determines the current operating temperature of the optical module based on the first collected data of the first temperature sensor 302, the collection accuracy of the first temperature sensor 302 is greater than that of the second temperature sensor 303.
[0091] Figure 6 FIG. is a schematic flowchart of the operation of the MCU in the optical module according to some embodiments of the present application. Figure 7 FIG. is a change diagram of the microcontroller unit in the optical module determining the current operating temperature of the optical module according to the temperature change according to some embodiments of the present application. As Figure 6 and Figure 7 shown, in some embodiments of the present application, the MCU on the circuit board is configured to at least perform the following steps:
[0092] S61, determine the data source for collecting the current operating temperature of the optical module, and obtain the third sampling data corresponding to the current operating temperature of the optical module.
[0093] In some embodiments of the present application, there may be no sequence requirement for the MCU to determine the data source of the collected data for the current working temperature of the optical module and to obtain the third sampling data corresponding to the current working temperature of the optical module. It may first determine the data source of the collected data for the current working temperature of the optical module, or it may first obtain the third sampling data corresponding to the current working temperature of the optical module. Alternatively, in some examples, it may also be that determining the data source of the collected data for the current working temperature of the optical module and obtaining the third sampling data corresponding to the current working temperature of the optical module are carried out simultaneously. The embodiments of the present application do not limit this. Among them, the third sampling data may be data that can be recognized by the MCU to identify the current working temperature of the optical module. For example, it may be the magnitude of the current, and in some examples, it may also be the magnitude of the voltage, etc.
[0094] In some examples, during the operation of the optical module, for example, after power-on and stable operation, since the collected data for determining the working temperature of the optical module may be the first collected data from the first temperature sensor or the second collected data from the second temperature sensor, when determining the working temperature of the optical module, the MCU can determine the current working temperature according to the first collected data or according to the second collected data.
[0095] In some examples, the optical module may also be powered on for the first time after being connected to the host computer, or powered on again after power-off. At this time, the MCU can default to confirm the current working temperature of the optical module with the first collected data from the first temperature sensor. That is to say, when the optical module is powered on for the first time or powered on again after power-off, the MCU receives the first collected data from the first temperature sensor and determines the current working temperature of the optical module according to the first sampling data.
[0096] Refer to Figure 7 As shown, in the embodiments of the present application, the MCU can determine the current working temperature of the optical module according to the first collected data or according to the second collected data. In some cases, the data source of the MCU can be switched from the first temperature sensor to the second temperature sensor, or from the second temperature sensor to the first temperature sensor. For the convenience of description, in some embodiments of the present application, first, the case where the first temperature sensor is switched to the second temperature sensor is taken as an example for description.
[0097] S62, when the data source of the collected data for the current working temperature is the first temperature sensor, determine the magnitude relationship between the third sampling data and the first preset threshold.
[0098] In some embodiments of the present application, in some examples, the MCU may compare the third sampling data corresponding to the obtained current operating temperature (for example, the third sampling data determined according to the first acquisition data) with the first preset threshold, so as to determine whether to switch the data source for determining the current operating temperature of the optical module to the second temperature sensor. Among them, the first preset threshold may be the current value corresponding to the first preset temperature threshold. In some examples, the first preset threshold may also be the voltage value corresponding to the first preset temperature threshold, etc.
[0099] S63, in the case where the third sampling data is greater than or equal to the first preset threshold, refer to Figure 7 As shown, use the first temperature sensor as the data source for collecting the operating temperature of the optical module, receive the first acquisition data of the first temperature sensor, and update the third sampling data with the first sampling data to determine the current operating temperature of the optical module; in the case where the third sampling data is less than the first preset threshold, use the second temperature sensor as the data source for collecting the operating temperature of the optical module.
[0100] That is to say, in the case where the MCU obtains in real time that the third sampling data is greater than or equal to the first preset threshold, the accuracy of the first temperature sensor is greater than that of the second temperature sensor, and it can be confirmed that the temperature corresponding to the first acquisition data can accurately reflect the current operating temperature of the optical module. At this time, the MCU can confirm that the data source for the current operating temperature of the optical module remains the first temperature sensor; the MCU can use the first acquisition data collected by the first temperature sensor to update the third sampling data of the optical module, so as to obtain the sampling data corresponding to the real-time operating temperature of the optical module.
[0101] In some examples, the third sampling data corresponding to the current operating temperature of the optical module may be stored in a register; among them, the register may be set on the circuit board. In some other examples, the register may also be built into the MCU; the MCU stores the third sampling data corresponding to the operating temperature of the optical module in the register for the upper computer to read and determine the operating state of the optical module.
[0102] In some embodiments of the present application, refer to Figure 7 As shown, in the case where the third sampling data is less than the first preset threshold, the MCU will determine the current operating temperature with the second sampling data; that is, the MCU will switch the sampling data source of the operating temperature of the optical module from the first temperature sensor to the second temperature sensor. That is to say, in some embodiments of the present application, the first preset threshold may be used as a critical point for dividing the full temperature range of the optical module.
[0103] In some examples, the full temperature range in which the optical module operates can be -40°C to 120°C. The first preset threshold can divide the full temperature range in which the optical module operates into a first temperature range and a second temperature range. Among them, the sampling data source of the first temperature range can correspond to a first temperature sensor, and the sampling data source of the second temperature range can correspond to a second temperature sensor. That is to say, when the current operating temperature corresponding to the third sampling data of the optical module is within the first temperature range, the MCU can determine the third sampling data corresponding to the current operating temperature of the optical module according to the first sampling data. When the current operating temperature corresponding to the third sampling data of the optical module is within the second temperature range, the MCU can determine the third sampling data corresponding to the current operating temperature of the optical module according to the second sampling data collected by the second temperature sensor, so as to obtain the current operating temperature of the optical module.
[0104] In some examples, the first temperature range can be greater than the second temperature range; in some alternative examples, the first temperature range can be set to 4 - 5.5 times that of the second temperature range. In this way, the temperature range that the first temperature sensor can accurately collect can be fully utilized, and the collection range of the second temperature sensor can be reduced, thereby improving the accuracy of collecting the operating temperature of the optical module.
[0105] In some embodiments of the embodiments of the present application, the temperature corresponding to the first preset threshold can be -15°C. That is to say, in some examples, the first temperature range can be -15°C to 120°C, and the second temperature range is -40°C to -15°C; that is, the first temperature range is 5.4 times that of the second temperature range. As some alternative examples, referring to Figure 7 As shown, the first preset threshold can be the temperature critical value when the data collection source of the MCU switches from the first temperature sensor to the second temperature sensor; that is, the first preset threshold can be the switching critical value when the temperature decreases.
[0106] Figure 8 is a test curve graph of the optical module collecting the operating temperature according to some embodiments of the present application. As Figure 8 shown, in some embodiments of the present application, the first preset threshold can be obtained through tests. For example, in Figure 8 , at -15°C, the temperature difference between the temperature corresponding to the first sampling data of the first temperature sensor and the temperature corresponding to the second sampling data of the second temperature sensor is the smallest, that is, the measurement error of the first temperature sensor is within the allowable error range at this time. Among them, Figure 8 the abscissa in is the test time, and the ordinate is the test temperature; Figure 8 in, curve a is the temperature curve corresponding to the first sampling data of the first temperature sensor, curve b is the operating temperature of the optical module; curve c is the temperature curve corresponding to the second sampling data of the second temperature sensor. From Figure 8It can be seen that at -15°C, the temperature corresponding to the first acquisition data of the first temperature sensor is within the allowable error range. The difference between the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor can be used as a compensation value to compensate the second acquisition data of the second temperature sensor.
[0107] S64. When the source of the current working temperature sampling data of the optical module is the second temperature sensor, obtain the compensation value and the second acquisition data of the second temperature sensor.
[0108] S65. Calibrate the second acquisition data based on the compensation value to obtain the current third acquisition data, so as to determine the current working temperature of the optical module; the compensation value is the difference between the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor when at the first preset threshold.
[0109] In some embodiments of the present application, there is a certain distance between the position of the MCU on the circuit board and the optical emission chip. In addition, there is a certain measurement error in the second temperature sensor built in the MCU. Therefore, when at the first preset threshold (the measurement error of the first temperature sensor is still within the allowable error range), the MCU can determine the compensation value through the first acquisition data collected by the first temperature sensor and the second acquisition data of the second temperature sensor. For example, the MCU can subtract the second acquisition data from the first acquisition data to obtain the compensation value. That is to say, the MCU can calculate the difference between the first acquisition data and the second acquisition data when at the first preset threshold, and then use the difference to compensate and calibrate the second acquisition data to obtain the accurate current working temperature.
[0110] In some examples, when the source of the acquisition data switches from the first temperature sensor to the second temperature sensor, the MCU can calculate the difference between the first acquisition data and the second acquisition data when at the first preset threshold; after obtaining the compensation value, when the working temperature acquisition data of the optical module comes from the second temperature sensor, the second acquisition data can always be compensated and calibrated with this compensation value to obtain the current third acquisition data; that is, after the source of the working temperature acquisition data of the optical module switches from the first temperature sensor to the second temperature sensor and does not switch from the second temperature sensor to the first temperature sensor; the compensation value can always remain fixed.
[0111] In other examples, it can also be that each time the switch is made from the first temperature sensor to the second temperature sensor, the compensation value is calculated once when at the first preset threshold.
[0112] In some other examples, the compensation value can also be the difference between the first acquisition data and the second acquisition data obtained through experiments at the first preset threshold after the production of the optical module is completed, and this difference is stored in the register of the MCU or in the register on the circuit board; when the acquisition data source of the working temperature of the optical module is switched from the first temperature sensor to the second temperature sensor, the MCU can call the stored compensation value. That is, the compensation value can also be a preset value.
[0113] Figure 9 Another schematic diagram of the process executed by the MCU in the optical module according to some embodiments of the present application. As Figure 7 and Figure 9 shown, in some other embodiments of the present application, taking the acquisition data source of the working temperature of the optical module being switched from the second temperature sensor to the first temperature sensor as an example for illustration, the MCU is further configured to execute the following steps:
[0114] S66, when the acquisition data source of the current working temperature is the second temperature sensor, determine the magnitude relationship between the third acquisition data and the second preset threshold; the second preset threshold is greater than the first preset temperature threshold.
[0115] In some embodiments, it can be that the MCU determines the acquisition data source of the current working temperature. For example, after the optical module is powered on, the MCU determines that the acquisition data of the current working temperature comes from the second temperature sensor; in some other examples, it can also be that the MCU switches the acquisition data source of the current working temperature from the first temperature sensor to the second temperature sensor; at this time, the third acquisition data corresponding to the current working temperature can be obtained by the MCU compensating the second acquisition data collected by the second temperature sensor through the compensation value. In some examples, the comparison circuit in the MCU can compare the calculated third acquisition data corresponding to the current working temperature with the second preset threshold to determine whether to switch the acquisition data source of the working temperature of the optical module to the first temperature sensor.
[0116] In some examples of the embodiments of the present application, the second preset threshold is greater than the first preset threshold. For example, in some embodiments of the present application, the temperature corresponding to the first preset threshold can be -15°C, and the temperature corresponding to the second preset threshold can be -10°C. That is to say, in some embodiments of the present application, when the acquisition data source of the working temperature of the optical module is switched from the second temperature sensor to the first temperature sensor, the first temperature range is -10°C to 120°C, and the second temperature range is -40°C to -10°C. That is, the first temperature range can be 4.3 times the second temperature range.
[0117] It can be understood that in some embodiments of the present application, the specific values of the temperatures corresponding to the first preset threshold and the second preset threshold are only shown as some specific examples, and do not limit the first preset threshold and the second preset threshold.
[0118] S67, when the current third acquisition data is less than the second preset threshold, refer to Figure 7 As shown, using the second temperature sensor as the data source for the sampling data of the optical module operating temperature, receiving the second sampling data of the second temperature sensor, and updating the current third sampling data with the calibrated second acquisition data to determine the current operating temperature of the optical module; when the current third sampling data is greater than or equal to the second preset threshold, using the first temperature sensor as the data source for the acquisition data of the optical module operating temperature.
[0119] In some examples of the embodiments of the present application, after the data source of the sampling data of the optical module operating temperature is switched from the second temperature sensor to the first temperature sensor, the current acquisition data of the optical module operating temperature can be obtained according to the detailed description of the foregoing embodiments of the present application, so as to determine the current operating temperature of the optical module. The embodiments of the present application will not elaborate on this.
[0120] In some embodiments of the present application, when using the first temperature sensor as the data source for the acquisition data of the optical module operating temperature, the MCU can update the current third acquisition data of the optical module with the first acquisition data collected by the first temperature sensor, so as to determine the current operating temperature of the optical module; that is to say, when the first acquisition data is used as the data source for the acquisition data of the optical module operating temperature, there is no need to compensate the first acquisition data. Therefore, before switching the data source from the second temperature sensor to the first temperature sensor, the MCU can clear the compensation value. Here, clearing the compensation value can mean clearing the compensation value obtained by the MCU, or not adding the compensation value on the basis of the first acquisition data. In some examples, when the compensation value is a preset compensation value, the compensation value stored in the register can remain unchanged. In other examples, when the compensation value is calculated by the MCU from the first acquisition data and the second acquisition data at the first preset threshold, the compensation value can be temporarily stored in the register, or the compensation value can also be cleared, waiting for the next time the first temperature sensor switches to the second temperature sensor, and the MCU calculates the compensation value again according to the first acquisition data and the second acquisition data.
[0121] In some embodiments of the present application, the second preset threshold and the first preset threshold have a preset difference, and the preset difference is greater than the fluctuation value of the instantaneous acquisition data when the optical module is in a stable working state. Generally, when the optical module is in a stable working state, with the fluctuations of the transmitted optical power, transmitted signal frequency, etc., the working temperature of the optical module fluctuates within a certain temperature range; in some embodiments of the present application, the critical temperature for switching the data source of the working temperature acquisition data of the optical module from the first temperature sensor to the second temperature sensor is set as the first preset threshold, and the critical temperature for switching from the second temperature sensor to the first temperature sensor is set as the second preset threshold; and the second preset threshold is set to be greater than the first preset threshold. In this way, after switching the data source of the working temperature acquisition data of the optical module from the first temperature sensor to the second temperature sensor, the data source can be stably maintained at the second temperature sensor. In some examples, taking the temperature corresponding to the first preset threshold as -15 °C and the temperature corresponding to the second preset threshold as -10 °C as an example, for example, when the working temperature corresponding to the current third acquisition data of the optical module is -16 °C, at this time, the current third acquisition data of the optical module is less than the temperature -15 °C corresponding to the first preset threshold, and the MCU switches the data source of the working temperature acquisition data of the optical module to the second temperature sensor, and determines the current third acquisition data of the optical module according to the second acquisition data collected by the second temperature sensor; due to the change of the working state during the working process of the optical module, there is a certain fluctuation in the working temperature of the optical module. At this time, the actual working temperature corresponding to the current third acquisition data of the optical module determined by the MCU may be -14 °C. At this time, although the working temperature corresponding to the current third acquisition data of the optical module is greater than the temperature corresponding to the first preset threshold; but less than the temperature -10 °C corresponding to the second preset threshold, therefore, the MCU will not switch the data source of the working temperature acquisition data of the optical module to the first temperature sensor, but keep it at the second temperature sensor; or, after switching the data source of the working temperature acquisition data of the optical module from the second temperature sensor to the first temperature sensor, it can be stably maintained at the first temperature sensor as the data source of the working temperature acquisition data of the optical module; in this way, it is possible to avoid the situation that the data source is repeatedly and frequently switched due to the fluctuation of the working temperature of the optical module after the data source of the working temperature acquisition data of the optical module is switched, improving the stability of the MCU to obtain the acquisition data of the working temperature of the optical module, making the working temperature of the optical module obtained by the MCU smoother, and avoiding misjudgment of the working state of the optical module by the host computer.
[0122] In the optical module provided by the embodiment of the present application, the sources of the data collected on the operating temperature of the optical module are divided into a first temperature sensor and a second temperature sensor built in the MCU. In this way, the advantages of the first temperature sensor and the second temperature sensor built in the MCU can be fully utilized, thereby improving the accuracy of collecting the temperature of the optical module. For example, when the current third collected data of the optical module is greater than or equal to the first preset threshold, the first temperature sensor with higher accuracy is used as the data source for collecting data, and the first collected data collected by the first temperature sensor is used to update the third collected data of the optical module, so as to determine the current operating temperature of the optical module. When the current third collected data of the optical module is less than the first preset threshold, since the resistance value of the first temperature sensor increases and the voltage division increases, resulting in an increase in the error of the first temperature sensor, the data source can be switched to the second temperature sensor at this time. In addition, the difference between the first collected data of the first temperature sensor and the second collected data of the second temperature sensor at the first preset threshold is used as a compensation value, and the compensation value is used to compensate and calibrate the second collected data collected by the second temperature sensor. In this way, the collected data difference (compensation value) between the accurate first collected data of the first temperature sensor within the allowable error range and the second temperature sensor is used to compensate and calibrate the second collected data, and the current third collected data of the optical module is obtained, which improves the accuracy of using the second temperature sensor in the MCU as the data source for collecting the operating temperature of the optical module, eliminates the problem of large errors of the first temperature sensor after the operating temperature corresponding to the first collected data is less than the temperature corresponding to the first preset threshold, and improves the accuracy of collecting the temperature in the full temperature range of the optical module.
[0123] In addition, the second collected data is compensated and calibrated by the compensation value. In this way, when the data source is switched from the first temperature sensor to the second temperature sensor, or from the second temperature sensor to the first temperature sensor, the change range of the data collected on the operating temperature of the optical module is reduced, so that the third collected data of the operating temperature of the optical module collected can smoothly transition, avoiding misjudgment of the operating state of the optical module by the host computer.
[0124] In some other examples of the embodiment of the present application, an optical module is further provided, including:
[0125] A circuit board, on which a first temperature sensor and an MCU are provided, and a second temperature sensor is built in the MCU; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the collection accuracy of the first temperature sensor is greater than that of the second temperature sensor;
[0126] The MCU is configured to:
[0127] Determine the data source for collecting the current operating temperature of the optical module, and obtain the third collected data corresponding to the current operating temperature of the optical module;
[0128] When the data source for collecting the current operating temperature is the first temperature sensor, determine the magnitude relationship between the third sampled data and the first preset threshold;
[0129] When the third sampled data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting the operating temperature of the optical module, receive the first collected data of the first temperature sensor, and update the third sampled data with the first collected data to determine the current operating temperature of the optical module; when the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting the operating temperature of the optical module;
[0130] Obtain the compensation value and the second collected data of the second temperature sensor;
[0131] Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; the first preset threshold is the value with the smallest difference between the first collected data and the collected data;
[0132] When the current data source is the second temperature sensor, determine the magnitude relationship between the current third collected data and the second preset threshold; the second preset threshold is greater than the first preset threshold;
[0133] When the current third collected data is less than the second preset threshold, use the second temperature sensor as the data source for collecting the operating temperature of the optical module; and update the current third collected data with the calibrated second collected data; when the current third collected data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting the operating temperature of the optical module.
[0134] It can be understood that another optical module provided by some embodiments of the present application has the same or similar technical effects as the optical module provided by the foregoing embodiments of the present application. For specific details, reference may be made to the detailed description of the foregoing embodiments of the present application, and the embodiments of the present application will not be elaborated herein.
[0135] Figure 10 It is a flowchart of the optical module temperature acquisition method provided by some embodiments of the present application. As Figure 10 shown, some embodiments of the present application also provide a method for collecting the temperature of an optical module, where the optical module includes:
[0136] A circuit board is provided with a first temperature sensor and an MCU on it, and a second temperature sensor is built in the MCU; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the acquisition accuracy of the first temperature sensor is greater than that of the second temperature sensor;
[0137] The temperature acquisition method of the optical module includes the following steps:
[0138] S91, determine the acquisition data source of the current working temperature of the optical module, and obtain the third acquisition data corresponding to the current working temperature of the optical module;
[0139] S92, when the acquisition data source of the current working temperature is the first temperature sensor, judge the magnitude relationship between the current third sampling data and the first preset threshold;
[0140] S93, when the current third sampling data is greater than or equal to the first preset threshold, use the first acquisition data of the first temperature sensor and update the current third sampling data with the first acquisition data to determine the current working temperature of the optical module; when the current third acquisition data is less than the first preset threshold, use the second temperature sensor as the data source of the acquisition data of the working temperature of the optical module;
[0141] S94, obtain the compensation value and the second acquisition data of the second temperature sensor;
[0142] S95, calibrate the second acquisition data based on the compensation value, and update the third acquisition data with the calibrated second acquisition temperature data to determine the current working temperature of the optical module; the compensation value is the difference between the first acquisition data and the second acquisition data when the first preset threshold is reached; the first preset threshold is the value with the smallest difference between the first acquisition data and the acquisition data.
[0143] In some optional examples of the embodiments of the present application, the temperature acquisition method of the optical module further includes:
[0144] When the current data source is the second temperature sensor, judge the magnitude relationship between the current third acquisition data and the second preset threshold; the second preset threshold is greater than the first preset threshold;
[0145] When the current third acquisition data is less than the second preset threshold, use the second temperature sensor as the data source of the acquisition data of the working temperature of the optical module; and update the current third acquisition data with the calibrated second acquisition data; when the current third acquisition data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source of the acquisition data of the working temperature of the optical module;
[0146] Obtain the first acquisition data of the first temperature sensor, and update the current third acquisition data with the first acquisition data.
[0147] In some alternative examples of the embodiments of the present application, when the current third acquisition data is greater than or equal to the second preset threshold and before the data source is switched to the first temperature sensor, the temperature acquisition method of the optical module further includes: clearing the compensation value.
[0148] In some alternative examples of the embodiments of the present application, the second preset threshold and the first preset threshold have a preset difference, and the preset difference is greater than the fluctuation value of the instantaneous acquisition data when the optical module is in a stable operating state.
[0149] In some alternative examples of the embodiments of the present application, the full operating temperature range of the optical module is -40°C to 120°C, the first acquisition data of the first temperature sensor corresponds to a first temperature range, and the second acquisition data of the second temperature sensor corresponds to a second temperature range; the first temperature range is greater than the second temperature range; and the first temperature range is 4 to 5.5 times the second temperature range.
[0150] In some alternative examples of the embodiments of the present application, the temperature corresponding to the first preset threshold is -15°C, and the temperature corresponding to the second preset threshold is -10°C; when the data source is switched from the first temperature sensor to the second temperature sensor, the first temperature range is -15°C to 120°C, and the second temperature range is -40°C to -15°C; when the data source is switched from the second temperature sensor to the first temperature sensor, the first temperature range is -10°C to 120°C, and the second temperature range is -40°C to -10°C.
[0151] In some alternative examples of the embodiments of the present application, before the data source is switched to the second temperature sensor, the acquisition method of the optical module further includes:
[0152] When the current third acquisition data is equal to the first preset threshold, acquiring the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor;
[0153] Determining a compensation value according to the first acquisition data and the second acquisition data;
[0154] And / or
[0155] The compensation value is a preset compensation value. Before the data source is switched to the second temperature sensor, the microcontroller unit is further configured to:
[0156] Acquire the preset compensation value.
[0157] It should be noted that the temperature acquisition method of an optical module provided by the embodiments of the present invention is the same as all the process steps executed by the MCU of an optical module in the above embodiments, and the working principles and beneficial effects of the two correspond one by one, so they will not be elaborated here.
[0158] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.
[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A optical module, characterized in that, it includes: A circuit board, on which a first temperature sensor and a micro - control unit are provided, and a second temperature sensor is built in the micro - control unit; the first temperature sensor is connected in series with an analog - to - digital converter on the circuit board, and the reference voltage of the analog - to - digital converter fluctuates within a preset range; the acquisition accuracy of the first temperature sensor is greater than that of the second temperature sensor; The micro - control unit is configured to: Determine the acquisition data source of the current operating temperature of the optical module, and obtain the third acquisition data corresponding to the current operating temperature of the optical module; When the acquisition data source of the current operating temperature is the first temperature sensor, judge the magnitude relationship between the current third sampling data and a first preset threshold; When the current third sampling data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting the operating temperature acquisition data of the optical module, receive the first acquisition data of the first temperature sensor, and update the current third sampling data with the first acquisition data to determine the current operating temperature of the optical module; When the current third acquisition data is less than the first preset threshold, use the second temperature sensor as the data source for collecting the operating temperature acquisition data of the optical module; Obtain a compensation value and the second acquisition data of the second temperature sensor; Calibrate the second acquisition data based on the compensation value, and update the third acquisition data with the calibrated second acquisition temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first acquisition data and the second acquisition data when the first preset threshold is reached; The first preset threshold is the value with the smallest difference between the first acquisition data and the acquisition data.
2. The optical module according to claim 1, characterized in that, The micro - control unit is further configured to: When the current data source is the second temperature sensor, judge the magnitude relationship between the current third acquisition data and a second preset threshold; the second preset threshold is greater than the first preset threshold; When the current third acquisition data is less than the second preset threshold, use the second temperature sensor as the data source for collecting the operating temperature acquisition data of the optical module; And update the current third acquisition data with the calibrated second acquisition data; When the current third acquisition data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting the operating temperature acquisition data of the optical module; Obtain the first acquisition data of the first temperature sensor, and update the current third acquisition data with the first acquisition data.
3. The optical module according to claim 2, characterized in that, When the current third acquisition data is greater than or equal to the second preset threshold, and before the data source is switched to the first temperature sensor, the micro - control unit is further configured to: Clear the compensation value.
4. The optical module according to claim 2, characterized in that, The second preset threshold and the first preset threshold have a preset difference, and the preset difference is greater than the fluctuation value of the instantaneous acquisition data when the optical module is in a stable working state.
5. The optical module according to claim 2, wherein, the full operating temperature range of the optical module is -40°C to 120°C, the first acquisition data of the first temperature sensor corresponds to a first temperature range, and the second acquisition data of the second temperature sensor corresponds to a second temperature range; the first temperature range is greater than the second temperature range; and the first temperature range is 4 to 5.5 times the second temperature range.
6. The optical module according to claim 5, wherein, the temperature corresponding to the first preset threshold is -15°C, and the temperature corresponding to the second preset threshold is -10°C; when the data source switches from the first temperature sensor to the second temperature sensor, the first temperature range is -15°C to 120°C, and the second temperature range is -40°C to -15°C; when the data source switches from the second temperature sensor to the first temperature sensor, the first temperature range is -10°C to 120°C, and the second temperature range is -40°C to -10°C.
7. The optical module according to claim 1, wherein, before the data source is switched to the second temperature sensor, the micro control unit is further configured to: when the current third acquisition data is equal to the first preset threshold, acquire the first acquisition data of the first temperature sensor and the second acquisition data of the second temperature sensor; determine the compensation value according to the first acquisition data and the second acquisition data; and / or, the compensation value is a preset compensation value, and before the data source is switched to the second temperature sensor, the micro control unit is further configured to: acquire the preset compensation value.
8. An optical module, wherein, it includes: a circuit board, on which a first temperature sensor and a micro control unit are provided, and a second temperature sensor is built in the micro control unit; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the acquisition accuracy of the first temperature sensor is greater than that of the second temperature sensor; the micro control unit is configured to: determine the acquisition data source of the current working temperature of the optical module and acquire the third acquisition data corresponding to the current working temperature of the optical module; when the acquisition data source of the current working temperature is the first temperature sensor, judge the magnitude relationship between the third sampling data and the first preset threshold; when the third sampling data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source of the acquisition data of the working temperature of the optical module, receive the first acquisition data of the first temperature sensor, and update the third sampling data with the first acquisition data to determine the current working temperature of the optical module; When the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting the operating temperature data of the optical module; Obtain the compensation value and the second collected data of the second temperature sensor; Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; The first preset threshold is the value with the smallest difference between the first collected data and the collected data; When the current data source is the second temperature sensor, determine the magnitude relationship between the current third collected data and the second preset threshold; The second preset threshold is greater than the first preset threshold; When the current third collected data is less than the second preset threshold, use the second temperature sensor as the data source for collecting the operating temperature data of the optical module; And update the current third collected data with the calibrated second collected data; When the current third collected data is greater than or equal to the second preset threshold, use the first temperature sensor as the data source for collecting the operating temperature data of the optical module.
9. A method for collecting the temperature of an optical module, Characterized in that, The optical module includes: A circuit board, on which a first temperature sensor and a micro control unit are provided, and a second temperature sensor is built in the micro control unit; the first temperature sensor is connected in series with an analog-to-digital converter on the circuit board, and the reference voltage of the analog-to-digital converter fluctuates within a preset range; the collection accuracy of the first temperature sensor is greater than that of the second temperature sensor; The method includes: Determine the data source for collecting the current operating temperature of the optical module, and obtain the third collected data corresponding to the current operating temperature of the optical module; When the data source for collecting the current operating temperature is the first temperature sensor, determine the magnitude relationship between the third sampled data and the first preset threshold; When the third sampled data is greater than or equal to the first preset threshold, use the first temperature sensor as the data source for collecting the operating temperature data of the optical module, receive the first collected data of the first temperature sensor, and update the third sampled data with the first collected data to determine the current operating temperature of the optical module; when the third collected data is less than the first preset threshold, use the second temperature sensor as the data source for collecting the operating temperature data of the optical module; Obtain the compensation value and the second collected data of the second temperature sensor; Calibrate the second collected data based on the compensation value, and update the third collected data with the calibrated second collected temperature data to determine the current operating temperature of the optical module; the compensation value is the difference between the first collected data and the second collected data when at the first preset threshold; the first preset threshold is the value with the smallest difference between the first collected data and the collected data.
10. The method according to claim 9, wherein, the method further comprises: when the current data source is the second temperature sensor, determining the magnitude relationship between the current third acquisition data and a second preset threshold; the second preset threshold is greater than the first preset threshold; when the current third acquisition data is less than the second preset threshold, using the second temperature sensor as the data source for collecting the working temperature acquisition data of the optical module; and updating the current third acquisition data with the calibrated second acquisition data; when the current third acquisition data is greater than or equal to the second preset threshold, using the first temperature sensor as the data source for collecting the working temperature acquisition data of the optical module; acquiring the first acquisition data of the first temperature sensor, and updating the current third acquisition data with the first acquisition data.