A system and method for implementing automatic measurement of optical power based on a device terminal

Through the collaboration of the core board and the microcontroller unit, the optical power measurement of the installation and maintenance terminal is automated and designed with low power consumption, solving the problems of cumbersome operation and high power consumption, and improving detection efficiency and user experience.

CN120074658BActive Publication Date: 2026-01-20QINGDAO LUOBIN COMM CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510074981.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2026-01-20
Estimated Expiration
2045-01-17

AI Technical Summary

Technical Problem

Existing optical power measurement terminals are cumbersome to operate, consume a lot of power, cannot respond quickly to changes in optical power, and lack measurement accuracy and user interaction experience.

Method used

By dividing tasks between the core board and the microcontroller unit, the automatic acquisition and processing of optical power data is achieved. The core board enters a low-power sleep mode, and the microcontroller unit monitors the tasks and wakes up the core board to display the results in case of an anomaly. Combined with historical data, a graphical trend is generated to optimize the user experience.

Benefits of technology

It achieves automation and high efficiency in optical power measurement, reduces power consumption, extends equipment battery life, and improves detection efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120074658B_ABST
    Figure CN120074658B_ABST
Patent Text Reader

Abstract

The application discloses a kind of system and method for realizing optical power automatic measurement based on installation and maintenance terminal, it is related to the technical field of communication operator broadband installation and maintenance terminal, including the following steps: core board sends the instruction of polling optical power data to micro control unit by communication module, and controls the display module of core board to extinguish, simultaneously, core board is switched to low-power hibernation mode, reduce the energy consumption of core board.The application realizes optical power data acquisition and automatic processing by the task division of core board and micro control unit, and the user can complete measurement by only one operation.Core board hibernation reduces energy consumption, micro control unit monitors task and wakes up core board to display result when abnormal, generates graphical trend by combining historical data to optimize user experience.Low power consumption and intelligent response design prolong the endurance time, suitable for long time, high frequency maintenance, improve equipment reliability and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication operator broadband installation and maintenance terminal, and particularly relates to a system and method for realizing automatic optical power measurement based on an installation and maintenance terminal. BACKGROUND

[0002] With the continuous development and popularization of communication technology, communication operators widely use handheld installation and maintenance terminals (PDA, Personal Digital Assistant) in the process of installing and maintaining broadband networks. These terminal devices integrate multiple testing functions, including gigabit wired speed testing, wireless signal testing, optical power testing, and fault troubleshooting, which can significantly improve the intelligent level of network maintenance work. Optical power testing, as an important part of broadband network installation and maintenance, is mainly used to evaluate the signal strength and stability of the fiber interface, helping maintenance personnel quickly diagnose network faults. However, although the current handheld installation and maintenance terminal has complete functions, there is still much room for improvement in user operation convenience and power consumption management.

[0003] The installation and maintenance terminal in the prior art mainly uses a manual start mode for optical power measurement. Specifically, the maintenance personnel need to first turn on the device screen, enter the optical power test interface, and gradually click on multiple menu options to start measurement. This operation process is complex and time-consuming, especially in scenarios that require frequent detection or handling of multiple fiber interfaces, which significantly reduces the efficiency of field work. In addition, when the device is not working, its display screen is often kept on, resulting in increased power consumption and shortened device battery life, which is not conducive to long-term field work.

[0004] The prior art has the following deficiencies:

[0005] The current handheld installation and maintenance terminal mainly has the following deficiencies in optical power measurement function: first, the user operation process is too cumbersome, and manual layer-by-layer operation of options not only wastes time but also increases the workload, which does not meet the requirements of efficient work; especially in emergency maintenance scenarios, it cannot quickly respond to optical power changes or fault information, affecting the efficiency of problem troubleshooting. Second, the power consumption management mechanism of the existing terminal is not perfect. In the non-use state, the device display screen and core module still maintain a high energy consumption, and the low-power consumption technology is not effectively utilized, resulting in insufficient battery life and further limiting the actual application scenarios of the installation and maintenance terminal.

[0006] In addition, the prior art has low intelligence in data processing and display effect. For example, the measurement accuracy and stability of optical power data are easily affected by environmental noise, and high-precision detection results cannot be provided; at the same time, the display interface design of the measurement results is relatively basic, and the user interaction experience cannot be optimized, and it is difficult to meet the user's demand for intuitive presentation of measurement results and data prediction analysis. Therefore, in order to improve the convenience, accuracy and intelligence level of the optical power measurement function, an improved optical power automatic measurement method and system are needed to solve the above problems in the prior art.

[0007] The above information disclosed in the background section is only for the purpose of enhancing the understanding of the background of the present disclosure, and therefore it can include information that does not constitute the prior art known to those of ordinary skill in the art. SUMMARY

[0008] The purpose of the present application is to provide a system and method for realizing optical power automatic measurement based on a maintenance terminal, which realizes optical power data acquisition and automatic processing through the task division of the core board and the micro control unit. The user only needs to operate once to complete the measurement. The core board hibernates to reduce energy consumption, the micro control unit monitors the task and wakes up the core board to display the result when an exception occurs, and generates a graphical trend based on historical data to optimize the user experience. The design of low power consumption and intelligent response prolongs the battery life, is suitable for long-time and high-frequency maintenance, and improves the reliability and practicality of the equipment to solve the problems in the background technology.

[0009] In order to achieve the above purpose, the present application provides the following technical scheme: a method for realizing optical power automatic measurement based on a maintenance terminal, comprising the following steps:

[0010] The core board sends an instruction to poll optical power data to the micro control unit through the communication module, controls the display module of the core board to be turned off, and at the same time switches the core board to a low-power hibernation mode to reduce the energy consumption of the core board;

[0011] The micro control unit polls and monitors the optical fiber interface through an analog-to-digital converter, acquires optical power data, and temporarily stores the acquired data in an internal cache;

[0012] The micro control unit judges the acquired optical power data, and when it detects that the optical power data exceeds a preset threshold, the micro control unit sends a pulse signal to the core board through a wake-up pin to wake up the core board from the low-power hibernation mode, and transmits the optical fiber state information to the core board through the communication module;

[0013] After the core board receives the optical power data transmitted by the micro control unit, the data is preprocessed using a filtering algorithm to eliminate noise interference in the acquisition process, thereby improving the accuracy of optical power measurement;

[0014] The core board predicts the change of optical power in advance by analyzing the trend of current optical power data combined with historical data through the built-in optical power prediction algorithm, and calls the graphic rendering algorithm to optimize the display effect of the measurement results, and displays the optical power data and trend prediction in the form of graphics on the display module of the core board, so as to provide the user with intuitive measurement results and trend information.

[0015] Preferably, the core board sends an instruction to poll optical power data to the micro control unit through the communication module, and controls the display module of the core board to be turned off, and the specific steps of reducing the energy consumption of the core board are as follows:

[0016] The core board receives operation instructions through the user interaction interface and generates task instructions containing polling parameters, laying a foundation for the optical power measurement task;

[0017] The core board transmits the polling instruction to the micro control unit through the standard communication protocol by using the communication module, so as to ensure the integrity of the instruction and the reliability of the transmission;

[0018] The core board turns off the display module and switches to the low-power mode after sending the instruction, so as to effectively reduce the overall power consumption of the device and prolong the endurance time;

[0019] After the core board enters the sleep state, the wake-up signal of the micro control unit is monitored through the hardware interrupt mechanism, so as to ensure the real-time response ability of the task in the low-power state.

[0020] Preferably, the micro control unit polls the optical fiber interface through the analog-to-digital converter, collects the optical power data, and temporarily stores the collected data in the internal cache in the following specific steps:

[0021] After receiving the polling instruction of the core board, the micro control unit analyzes the task parameters and initializes the analog-to-digital converter and related modules, so as to prepare for the collection of optical power data;

[0022] The analog-to-digital converter polls the optical fiber interface signal according to the set sampling frequency, and converts the analog signal into a digital signal and transmits it to the processing unit of the micro control unit;

[0023] The collected optical power data are temporarily stored in the internal cache of the micro control unit, and are preliminarily processed to ensure the integrity of the data and the continuity of the task;

[0024] The micro control unit compares the collected optical power data with the set threshold in real time, and when an abnormality is detected, transmits the optical fiber state information to the core board through the wake-up signal and the communication module to trigger the subsequent processing.

[0025] Preferably, the micro control unit judges the collected optical power data, and when it detects that the optical power data exceeds the preset threshold, it wakes up the core board from the low-power sleep mode, and transmits the optical fiber state information to the core board through the communication module. The specific steps are as follows:

[0026] The micro control unit reads the optical power data from the cache and pre-processes the data through a filtering algorithm to improve data accuracy.

[0027] The micro control unit compares the pre-processed optical power data with the preset threshold in real time to identify potential abnormalities.

[0028] When the micro control unit detects that the optical power data exceeds the threshold, it sends a pulse signal through the wake-up pin to wake up the core board from the low-power sleep mode.

[0029] The micro control unit transmits the optical fiber state information to the core board through the communication module to provide data support for subsequent processing.

[0030] Preferably, after the core board receives the optical power data transmitted by the micro control unit, it pre-processes the data using a filtering algorithm to eliminate noise interference during the collection process, thereby improving the accuracy of optical power measurement. The specific steps are as follows:

[0031] After receiving the optical power data transmitted by the micro control unit, the core board first extracts the original sample value sequence of the optical power, denoted as , where is the optical power value of the th sample, is the total number of samples, is the original optical power sample value sequence. In order to eliminate the data deviation caused by different power ranges of different optical fiber interfaces, the sample value is normalized to convert it to a power value. The normalization formula is as follows: , where is the normalized optical power value of the th sample, is the minimum optical power value in the original sample data, is the maximum optical power value in the original sample data.

[0032] Based on the normalized sampled optical power value , the core board applies a sliding window filtering algorithm to smooth the optical power data sequence. The sliding window filtering formula is as follows:

[0033] , where is the filtered optical power value of the th sample, is the normalized optical power value of the The optical power value of the next sample. These are the weighting coefficients within the sliding window, representing the weighting coefficients within the sliding window. The weight of each sampled data point It is half the width of the sliding window;

[0034] Preferably, after obtaining the filtered optical power sequence Then, the core board dynamically calculates the optical power threshold to achieve real-time anomaly detection. The calculation expression is as follows: In the formula, It is the first Dynamic optical power threshold for each sample. It is the sensitivity coefficient for anomaly detection. It is the first The moving average centered at the second sample is calculated using the following formula: In the formula, It is the first The filtered optical power value after the second sampling. It is the first The moving standard deviation centered on the sampling point is calculated using the following formula: .

[0035] Preferably, the core board uses a built-in optical power prediction algorithm to perform trend analysis on the current optical power data combined with historical data, and then graphically displays the optical power data and trend prediction on the core board's display module, providing users with intuitive measurement results and trend information. The specific steps are as follows:

[0036] After receiving the optical power data from the microcontroller unit, the core board first preprocesses the currently acquired optical power data and the historical optical power data set, and extracts key features of optical power changes. The algorithms used include weighted moving average filtering and time window feature extraction. The formula for calculating the filtered optical power data is as follows:

[0037] In the formula, This is the preprocessed current optical power data. It is the first Optical power data collected at each time point It is the weighting coefficient at the q-th time point, satisfying , It is the size of the sliding time window;

[0038] The core board uses a built-in time series prediction model to perform trend analysis on current and historical optical power data, predicting the optical power value for a future period. The prediction algorithm generates the prediction result by dynamically learning the time dependency of optical power changes. The generation formula is as follows:

[0039] In the formula, It is the predicted number Optical power values ​​at each time point Based on The prediction function, It is a sequence of historical optical power characteristics within the previous time window. It predicts the time step. It is the set of parameters of the model;

[0040] The core board calls the graphics rendering algorithm to display the current optical power value. Historical optical power characteristics Predicting trends A graphical representation is generated, producing a comprehensive chart of optical power changes. The optimized graphical rendering formula is as follows:

[0041] In the formula, It is a display curve generated by a graphics rendering algorithm. Indicates a point in time. These are current and historical optical power data curves. This is a future predicted optical power data curve. It is a smoothing correction term. It is current and historical optical power data. The weights in the final displayed curve, This is a future predicted optical power data curve. The weights in the final displayed curve, It is a smoothing correction term Weights in the final displayed curve.

[0042] An automatic optical power measurement system based on an installation and maintenance terminal includes a low-power task initialization module, an optical power data acquisition module, an optical power anomaly detection and wake-up module, a data filtering and preprocessing module, and an optical power prediction and visualization display module.

[0043] The low-power task initialization module sends a polling command for optical power data to the microcontroller unit through the communication module, controls the display module of the core board to turn off, and switches the core board to a low-power sleep mode to reduce the power consumption of the core board.

[0044] The optical power data acquisition module uses a microcontroller unit to poll and monitor the optical fiber interface through an analog-to-digital converter, acquire optical power data, and temporarily store the acquired data in an internal cache.

[0045] The light power abnormality detection and wake-up module, the micro control unit judges the collected light power data, when detecting that the light power data exceeds a preset threshold, the micro control unit sends a pulse signal to the core board through the wake-up pin, wakes up the core board from the low-power sleep mode, and transmits the fiber state information to the core board through the communication module;

[0046] The data filtering preprocessing module, after the core board receives the light power data transmitted by the micro control unit, the data is preprocessed by using a filtering algorithm, the noise interference in the collection process is eliminated, and the accuracy of the light power measurement is improved.

[0047] The light power prediction and visual display module, the core board analyzes the trend of the current light power data combined with historical data by using a built-in light power prediction algorithm, predicts the light power change in advance, and calls a graphic rendering algorithm to optimize the display effect of the measurement result, and displays the light power data and the trend prediction in a graphical form on the display module of the core board, so as to provide the user with intuitive measurement results and trend information.

[0048] In the above technical solution, the technical effects and advantages provided by the application are as follows:

[0049] The application realizes the automation of light power data collection and processing through the task division and cooperation of the core board and the micro control unit (MCU), the user only needs to operate once to complete the entire measurement process, avoiding the tediousness of traditional manual multi-step operation; at the same time, the core board enters a low-power sleep mode, the MCU is responsible for monitoring tasks, and when an abnormal light power is detected, the core board is automatically woken up and the result is displayed, which significantly improves the detection efficiency. In addition, the graphical trend prediction generated by combining historical data and real-time measurement results not only enables the user to intuitively grasp the fiber state change, but also further optimizes the user experience through color warning and sound reminder designs, and comprehensively improves the efficiency and convenience of the on-site application of the maintenance terminal.

[0050] The application significantly reduces the system energy consumption through the sleep mechanism of the core board and the independent task execution of the MCU, realizes the low-power operation of the light power detection task, and the core board is only woken up by the MCU when necessary, avoiding resource waste and prolonging the device's endurance time. At the same time, the MCU quickly responds to abnormal light power conditions through real-time data judgment and hardware interrupt mechanism, and transmits the detection result to the core board, thereby realizing intelligent response in a low-power state, meeting the long-time and high-frequency network maintenance requirements, especially suitable for outdoor environments or emergency maintenance scenes, and improving the reliability and practicality of the device. BRIEF DESCRIPTION OF DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description only represent some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained based on these drawings.

[0052] Figure 1 A method flowchart of a method for realizing automatic optical power measurement based on a maintenance terminal.

[0053] Figure 2 A module schematic diagram of a system for realizing automatic optical power measurement based on a maintenance terminal. DETAILED DESCRIPTION

[0054] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations may, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these example implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art.

[0055] The present application provides a method for realizing automatic optical power measurement based on a maintenance terminal, as shown in Figure 1 The method comprises the following steps:

[0056] The core board sends an instruction for polling optical power data to a micro control unit (MCU) through a communication module, controls a display module of the core board to be turned off, switches the core board to a low-power sleep mode, and reduces energy consumption of the core board;

[0057] The core board sends an instruction for polling optical power data to a micro control unit (MCU) through a communication module, controls a display module of the core board to be turned off, and reduces energy consumption of the core board. The specific steps are as follows:

[0058] The core board receives an operation instruction through a user interaction interface and generates a task instruction containing polling parameters, thereby laying a foundation for optical power measurement tasks;

[0059] The core board first receives an operation instruction of a user through a user interaction interface of a display module. For example, when the user selects an optical power measurement function option, the core board generates an instruction for polling optical power data through an embedded program thereof. The instruction contains specific task parameters, such as a polling frequency, a data acquisition time window, and an optical power threshold value. These parameters are embedded into a data packet of the instruction and are sent to the MCU through a communication module of the core board. The design of this step ensures that the operation of the user can be converted into an effective control command through the core board, so that the device can accurately perform a measurement task, and lays a foundation for subsequent automatic measurement.

[0060] The core board transmits the polling instruction to the micro control unit (MCU) through the communication module by standard communication protocol, ensuring the integrity of the instruction and the reliability of the transmission;

[0061] After generating the polling instruction, the communication module of the core board starts and encapsulates the instruction into a standard communication protocol data packet suitable for transmission (such as UART, SPI or I2C protocol). The communication module sends the instruction to the MCU through the communication channel connected to the MCU, such as a serial port or a bus. During transmission, the communication module will perform a check to ensure data integrity and avoid data loss or errors caused by noise or interference. This design of data transmission through standardized communication protocol can ensure the reliability of instruction data transmission between the core board and the MCU, thereby avoiding measurement interruption or misoperation caused by data loss or error transmission.

[0062] The core board turns off the display module and switches to low power consumption mode after sending the instruction, effectively reducing the overall power consumption of the device and prolonging the battery life;

[0063] After the instruction is sent, the main control unit of the core board will immediately trigger the energy saving program to turn off the display module. The display module is one of the high energy consumption components in the installation and maintenance terminal, and turning off its lighting state can significantly reduce the overall power consumption of the device. At the same time, the core board enters low power consumption mode, suspending most unnecessary functions and only retaining basic communication and standby functions. The implementation of low power consumption mode relies on the low power consumption design of hardware, such as reducing the working frequency of the main control chip, turning off the power supply channel of some peripherals, etc. This design not only reduces the battery energy consumption, but also prolongs the battery life of the device, thereby improving the applicability of the installation and maintenance terminal in the field or long time use scenarios.

[0064] After the core board enters the sleep state, it monitors the wake-up signal of the micro control unit (MCU) through the hardware interrupt mechanism, ensuring the real-time response capability of the task in the low power consumption state;

[0065] After entering the low power consumption mode, the core board remains in the sleep state and monitors the wake-up signal from the MCU through the wake-up pin (such as GPIO). This wake-up mechanism uses hardware interrupt design, when the MCU detects that the optical power exceeds the set threshold, it will trigger the core board to recover from the sleep state to the normal working state by sending a pulse signal. The core board does not perform active tasks during sleep, further reducing power consumption, and through the hardware interrupt design, it can quickly respond to the wake-up demand of the MCU even in low power consumption state. This design not only improves the power management level of the device, but also ensures the real-time and efficiency of the optical power measurement task.

[0066] The micro control unit polls the optical fiber interface through an analog-to-digital converter (ADC), collects optical power data, and temporarily stores the collected data in an internal cache.

[0067] The specific steps for the micro control unit to poll the optical fiber interface through an analog-to-digital converter (ADC), collect optical power data, and temporarily store the collected data in an internal cache are as follows:

[0068] After the micro control unit (MCU) receives the polling instruction from the core board, it analyzes the task parameters and initializes the analog-to-digital converter (ADC) and related modules, preparing for the collection of optical power data.

[0069] When the core board sends a polling optical power data instruction to the MCU through the communication module, the MCU receives the instruction through the built-in communication interface and analyzes the content of the instruction. The analyzed instruction initializes the MCU's internal analog-to-digital converter (ADC) module according to the task parameters (such as polling frequency, sampling time, etc.), and sets the optical power threshold and the storage structure of the cache area, ensuring the accuracy of the collection task and the efficiency of data processing. In this process, the MCU completes the role conversion from passive standby to active task execution, and provides basic support for subsequent optical power data collection. The key of this step is to analyze the polling task parameters issued by the core board and start the related modules to make the entire task execution smooth.

[0070] The analog-to-digital converter (ADC) polls the optical fiber interface signal according to the set sampling frequency and converts the analog signal to digital signal for transmission to the processing unit of the micro control unit (MCU);

[0071] After initialization is completed, the MCU enables the analog-to-digital converter (ADC) module and polls the signal level of the optical fiber interface according to the set sampling frequency. The ADC converts the analog optical power signal (such as current, voltage) in the optical fiber interface into digital signal and transmits the converted data to the processing unit of the MCU in real time. The data collection in the ADC polling process follows the time window and accuracy requirements set by the user in the core board, ensuring accurate optical power information in the shortest possible time. This polling mechanism not only captures the dynamic changes of the optical fiber interface signal in real time, but also provides high-frequency and low-latency monitoring capabilities, laying a foundation for rapid detection of optical fiber state changes.

[0072] The collected optical power data is temporarily stored in the internal cache of the micro control unit (MCU) and is preliminarily processed to ensure the integrity of the data and the continuity of the task;

[0073] After the collected optical power data is converted into digital signals by the ADC, the MCU temporarily stores the data in the internal cache and performs preliminary processing on the cached data (such as time tagging or simple data denoising) according to the pre-set task requirements. The design of the internal cache not only can carry multiple sampling data, but also can provide a buffer for subsequent data judgment and transmission. Through this "collection-caching-processing" phased mechanism, the MCU can still maintain the stability of the task when the optical power data is large, avoiding task interruption or errors caused by data backlog or overflow. At the same time, the data in the cache will be regularly cleaned according to the set strategy to maintain the availability of the cache capacity and ensure the continuity of long-time collection.

[0074] The micro control unit (MCU) compares the collected optical power data with the set threshold in real time, and when an anomaly is detected, it transmits the optical fiber state information to the core board through the wake-up signal and the communication module to trigger subsequent processing;

[0075] The MCU compares each set of sampling data with the pre-set optical power threshold of the core board in real time while collecting and caching the optical power data. When it detects that the optical power data exceeds the threshold (such as fiber insertion or optical power anomaly), the MCU immediately sends a signal through the wake-up pin to wake up the core board, and at the same time transmits the related optical fiber state information (such as fiber insertion state or optical power anomaly information) to the core board through the communication module. This design ensures that the device can quickly respond to changes in the state of the fiber interface, providing timely feedback and alerts to the user. In addition, when the optical power data does not exceed the threshold, the MCU will continue to monitor the fiber interface and accumulate the collected optical power data in the cache, providing complete historical data for further analysis.

[0076] The micro control unit judges the collected optical power data, and when it detects that the optical power data exceeds the pre-set threshold, it sends a pulse signal to the core board through the wake-up pin to wake up the core board from low-power sleep mode, and transmits the optical fiber state information to the core board through the communication module;

[0077] The micro control unit judges the collected optical power data, and when it detects that the optical power data exceeds the pre-set threshold, it wakes up the core board from low-power sleep mode and transmits the optical fiber state information to the core board through the communication module. The specific steps are as follows:

[0078] The micro control unit reads the optical power data from the cache and pre-processes the data through a filtering algorithm to remove noise interference and improve data accuracy;

[0079] After collecting the optical power data through the analog-to-digital converter (ADC) and temporarily storing it in the internal buffer, the micro control unit will extract the latest collected data from the buffer for analysis according to the task requirements. The extracted data may contain certain random noise or environmental interference, so the micro control unit will perform preliminary preprocessing on the data, such as smoothing the data fluctuations through filtering algorithms (such as weighted average filtering or moving average filtering) to remove unnecessary interference signals. This step ensures the accuracy of data judgment and provides a reliable basis for subsequent threshold judgment. In this process, the micro control unit demonstrates its powerful data processing capabilities, reducing the possibility of false positives through algorithm optimization.

[0080] The micro control unit compares the preprocessed optical power data with the preset threshold in real time to identify potential abnormalities.

[0081] After completing data preprocessing, the micro control unit will compare the optical power data with the optical power threshold set by the core board one by one to determine whether there are abnormal conditions. The optical power threshold is usually set by the core board according to the specific fiber network environment in advance, which may include the normal working optical power range and the critical value that triggers an alarm when it exceeds the normal range. When the optical power data exceeds the preset threshold, the micro control unit immediately determines that the fiber is inserted or the optical power is abnormal, and records the corresponding timestamp and state identifier. The real-time nature of this comparison process is crucial, as it can quickly capture changes in fiber interface status and provide a guarantee for the device to respond promptly in abnormal conditions.

[0082] When detecting that the optical power data exceeds the threshold, the micro control unit sends a pulse signal through the wake-up pin to wake up the core board from low-power sleep mode.

[0083] When the micro control unit detects that the optical power data exceeds the threshold, it will trigger a wake-up signal through the hardware interrupt mechanism. Specifically, the micro control unit sends a low-level or high-level pulse signal to the wake-up pin of the core board. According to the design of the hardware circuit, this signal can quickly wake up the core board, making it recover from low-power sleep mode to normal working mode. At the same time, the transmission of the wake-up signal adopts the de-bouncing technology in the hardware circuit design to ensure the stability and reliability of the signal, avoiding unnecessary wake-up caused by noise or false triggering. This mechanism enables the device to maintain efficient task response capability in low-power running state, greatly improving the intelligent level of the system.

[0084] The micro control unit transmits the fiber status information (such as optical power value, abnormal type and timestamp) to the core board through the communication module to provide data support for subsequent processing.

[0085] At the same time of waking up the core board, the micro control unit transmits the fiber status information to the core board through the communication module (such as I2C, SPI or UART, etc.). The fiber status information includes the current value of the optical power, the type of exceeding the threshold (such as "fiber insertion" or "abnormal optical power"), the collection timestamp and other details. These data are transmitted to the core board through a standardized data packet structure, so that the core board can accurately analyze the current fiber status after receiving, and start the display module to display the test results or perform further data processing as needed. This step not only completes the effective transmission of status information, but also realizes the efficient cooperation between the core board and the micro control unit, ensuring that the system can quickly and accurately respond to network status changes.

[0086] After the core board receives the optical power data transmitted by the micro control unit, a filtering algorithm is used to preprocess the data to eliminate noise interference in the collection process, thereby improving the accuracy of optical power measurement.

[0087] After the core board receives the optical power data transmitted by the micro control unit, a filtering algorithm is used to preprocess the data to eliminate noise interference in the collection process, thereby improving the accuracy of optical power measurement. The specific steps are as follows:

[0088] After the core board receives the optical power data transmitted by the micro control unit (MCU), it first extracts the original sample value sequence of the optical power, denoted as , where is the optical power value of the th sample, with the unit of microwatt (μW), is the total number of samples, is the original optical power sample value sequence. In order to eliminate the data deviation caused by different power ranges of different fiber interfaces, the sample value is normalized to convert it to a power value. The normalization formula is as follows: , where is the normalized optical power value of the th sample, is the minimum optical power value in the original sample data, is the maximum optical power value in the original sample data.

[0089] Through normalization processing, all optical power data are mapped to the same range, thereby providing a consistent scale for subsequent filtering calculations and eliminating the influence of power variation amplitude on data analysis. The result of normalization processing will be used as the input for the next step of filtering calculation.

[0090] Based on the normalized sampled optical power value , the core board applies a sliding window filtering algorithm to smooth the optical power data sequence to eliminate short-term fluctuations and noise interference. The sliding window filtering formula is as follows:

[0091] , wherein, is the filtered optical power value of the th sampling, is the normalized optical power value of the th sampling, is the weighting coefficient in the sliding window, representing the weight of the th sampling data point in the sliding window, determining the influence of the data point on the final result in the filtering calculation, is the half-width of the sliding window;

[0092] The sliding window of the filtering algorithm enhances the smoothness of the data by weighted averaging of adjacent sampling points, suppressing the influence of random noise. The filtered result has higher smoothness and accuracy, and will be used for the next step of dynamic threshold judgment.

[0093] The half-width of the sliding window refers to the range of expansion to the left and right during the sliding window filtering process when calculating the filtered value of a certain data point, i.e., the number of adjacent data points included around the center point (current data point) of the window. Specifically, the half-width is denoted as , indicating that the window expands data points forward (left) and backward (right) from the current position, a total of data points, which jointly participate in the filtering calculation of the current point. For example, if , the window size is , indicating that the optical power values of the current point and its left and right 2 points are included in the calculation range. The choice of half-width will directly affect the filtering effect: a larger half-width will result in a smoother filtering process, but may lose details; a smaller half-width will retain more local details, but the suppression effect on random noise is poorer. Therefore, the half-width of the sliding window needs to be balanced according to the specific scene to achieve the best balance between noise smoothing and detail retention.

[0094] After obtaining the filtered optical power sequence , the core board will dynamically calculate the threshold of the optical power to realize real-time anomaly detection. The dynamic threshold is calculated according to the sliding mean and standard deviation of the filtered data, and the calculation expression is as follows: , wherein, is the dynamic optical power threshold of the th sampling, is the sensitivity coefficient of anomaly detection, set by the user, usually adjusted in the range of 1.5 to 3 to balance the sensitivity and false alarm rate of detection, is the The moving average centered at the second sample is calculated using the following formula: In the formula, It is the first The filtered optical power value after the second sampling. It is the first The moving standard deviation centered on the sampling point is calculated using the following formula: .

[0095] By dynamic threshold The core board can calculate and determine in real time whether the optical power data is abnormal. When the filtered optical power value... Exceeding the threshold When this happens, the core board will mark it as an abnormal state and trigger subsequent response processes (such as displaying alarm information or storing abnormal records).

[0096] The core board uses a built-in optical power prediction algorithm to perform trend analysis on current optical power data and historical data, predicting changes in optical power in advance. It also calls a graphics rendering algorithm to optimize the display effect of the measurement results, displaying the optical power data and trend prediction graphically on the display module of the core board, providing users with intuitive measurement results and trend information.

[0097] The core board uses a built-in optical power prediction algorithm to perform trend analysis on current optical power data combined with historical data. The optical power data and trend predictions are then graphically displayed on the core board's display module, providing users with intuitive measurement results and trend information. The specific steps are as follows:

[0098] After receiving the optical power data transmitted by the microcontroller unit (MCU), the core board first preprocesses the currently acquired optical power data and the historical optical power data set. The purpose of preprocessing is to eliminate noise and outliers in the data, and at the same time extract key features of optical power changes. The algorithms used include weighted moving average filtering and time window feature extraction. The formula for calculating the filtered optical power data is as follows:

[0099] In the formula, This is the preprocessed current optical power data. It is the first Optical power data collected at each time point It is the weighting coefficient at the q-th time point, satisfying , It is the size of the sliding time window;

[0100] This process not only smooths out data fluctuations but also extracts trend characteristics of optical power for subsequent predictive analysis. Output parameters This represents the current optical power value after filtering, combined with historical characteristics. As input for the next step.

[0101] The core board uses the built-in time series prediction model (such as the prediction algorithm based on long short-term memory network ) to analyze the trend of current and historical optical power data, predict the optical power value in the future period of time, and generate the prediction result by dynamically learning the time-dependent relationship of optical power change. The generation formula is as follows:

[0102] , wherein, is the predicted optical power value at the th time point, is the prediction function based on , is the historical optical power feature sequence in the previous time window, is the prediction time step, i.e., the time interval from the current time point to the future, is the parameter set of the model, including weights and biases, which is obtained by model training and optimization; Through the model, the core board can predict the possible trend of future optical power change

[0103] . These prediction data not only provide trend analysis of optical fiber performance for users, but also assist in diagnosing potential fault risks. The prediction result will be used for visualization optimization in the next step.

[0104] The core board calls the graphic rendering algorithm to display the current optical power value , historical optical power features prediction trend in a graphical manner, and generates a comprehensive optical power change chart. The optimized graphic rendering formula is as follows:

[0105] , wherein, is the display curve generated by the graphic rendering algorithm, represents the time point, is the current and historical optical power data curve, representing the preprocessed current optical power data , including the collected optical power data and the historical optical power data set, is the future predicted optical power data curve, representing the set of predicted optical power values, is the smoothing correction term, used to correct the smoothing term of the display curve, which aims to eliminate the possible sawtooth or data jump in the graphic rendering process, is the weight of the current and historical optical power data in the final display curve, is the future predicted optical power data curve ​the weight in the final display curve, is a smoothing correction term the weight in the final display curve.

[0106] The generated light power change trend chart is displayed on the display module of the core board, containing historical data, real-time measurement values and prediction curves. Through dynamic rendering and interactive graphical display, users can intuitively understand the changes of light power and discover possible fault trends in advance, improving decision-making efficiency and user experience.

[0107] Embodiment 1: This embodiment aims to realize the automatic monitoring and processing of light power data through the efficient cooperation of the core board and the micro control unit (MCU), so as to overcome the problems of complicated operation, high power consumption and slow response speed in the prior art. Specifically, this mode makes full use of the respective functional characteristics of the core board and the MCU, reasonably divides the tasks, and improves the operation efficiency and data processing capacity of the equipment.

[0108] During user operation, the core board first receives user instructions and generates light power polling task parameters according to the "light power measurement" function selected by the user. These parameters include the polling sampling frequency, data acquisition window, light power threshold range, etc., and then the core board sends the generated task instructions to the MCU through its communication module. At the same time, the core board enters a low-power sleep mode. The sleep design of the core board is realized by turning off the display module and reducing the working frequency of the main control chip, which significantly reduces the overall power consumption of the device and provides battery endurance support for subsequent long-time measurement tasks.

[0109] After receiving the instructions issued by the core board, the MCU starts to take over the main execution process of the task. Through an analog-to-digital converter (ADC), the MCU collects the analog light power signal of the fiber interface in real time, converts the analog signal into a digital signal, and temporarily stores the collected data in the internal cache. In order to ensure the accuracy and reliability of the data, the MCU will use filtering algorithms to preprocess the light power data during data collection. For example, using sliding average filtering or weighted average filtering algorithm can smooth the fluctuations in the signal and reduce the influence of environmental noise. This design makes the data more accurate and provides a reliable foundation for subsequent threshold judgment and information transmission.

[0110] When the MCU completes data collection and preprocessing, it will compare the optical power data with the threshold value set by the core board in real time. If it detects that the optical power data exceeds the set threshold range (such as fiber insertion or abnormal optical power), the MCU will immediately trigger a hardware interrupt mechanism and send a pulse signal to the core board through the wake-up pin to wake up the core board from the sleep state. At the same time, the MCU transmits the fiber status information to the core board through the communication module, which includes the current value of the optical power data, the reason for exceeding the threshold, the collection timestamp, and other detailed information. This design ensures that the system can still respond quickly to changes in optical power in low-power mode, thereby improving the device's task processing capability.

[0111] After the core board is awakened, it quickly starts relevant modules according to the fiber status information transmitted by the MCU, including lighting the display module and calling the measurement result analysis program. Through real-time communication with the MCU, the core board further confirms the specific type of optical power anomaly and presents the detection results in an intuitive way on the display screen, such as displaying the value of the optical power, the reason for exceeding the threshold, and the corresponding time point. This implementation mode shifts the high-power task of the core board to the MCU through the task division and cooperation of the core board and the MCU, while quickly restoring the function of the core board in critical states, balancing the needs of low-power operation and efficient response.

[0112] In summary, this implementation mode takes the division and cooperation of the core board and the MCU as the core, solves the problems of high energy consumption, complex operation, and slow response in optical power measurement of existing maintenance terminals through low-power design, real-time monitoring, hardware interrupt wake-up, and efficient information transmission mechanisms, and provides a high-efficiency and convenient optical power measurement scheme for users.

[0113] Implementation Mode 2: This implementation mode further improves the adaptability and accuracy of the maintenance terminal in optical power measurement by introducing a dynamic optical power threshold adjustment mechanism and intelligent detection response technology, effectively solving the false alarm or missed alarm problems caused by traditional static thresholds, and enabling the device to exhibit stronger intelligent level in complex fiber environments.

[0114] During the device initialization phase, the core board dynamically generates an optical power threshold range for the current task based on user-set task parameters and historical measurement data. The dynamic threshold setting considers various factors, including the complexity of the fiber environment (such as signal noise level), historical optical power fluctuation, user's expected detection sensitivity, etc. The core board uses a built-in dynamic threshold algorithm (such as an adaptive adjustment algorithm) to calculate and set an adaptive threshold range in real time based on these parameters, and then transmits this range information to the MCU for storage through the communication module. For example, in the case of high environmental noise, the core board can automatically adjust the upper and lower limits of the threshold range to increase the fault tolerance of the detection, thereby avoiding false alarms caused by noise interference.

[0115] When the MCU performs the polling task, it makes real-time judgments on the collected optical power data according to the dynamic threshold range provided by the core board. When the optical power data approaches the threshold critical point, the MCU will start the early warning mechanism and send a "optical power approaching critical value" prompt information to the core board through the communication module, so that the core board can further optimize the threshold range or adjust the task parameters according to the current situation. This two-way communication mechanism enables the system to continuously adjust the detection strategy according to the real-time changes of the optical fiber environment, thereby improving the flexibility and accuracy of the judgment.

[0116] When the optical power data exceeds the dynamic threshold range, the MCU will immediately trigger the hardware interrupt mechanism and wake up the core board from the low-power mode through the wake-up signal. At the same time, the MCU transmits detailed detection information through the communication module, including the current value of the optical power data, the type of threshold exceeded, the data fluctuation trend, etc. After receiving the wake-up signal, the core board quickly recovers to the running state and further analyzes and processes the abnormal situation according to the detailed information transmitted by the MCU, such as judging whether it is a fiber insertion or other optical power abnormality.

[0117] By dynamically adjusting the optical power threshold, the embodiment overcomes the limitations of traditional static thresholds, making the device have higher judgment sensitivity and adaptability in complex optical fiber environments, while greatly reducing the possibility of false positives or false negatives. Combined with the intelligent detection response mechanism, the system not only ensures the accuracy of detection, but also realizes the dual goals of fast response and flexible adaptation.

[0118] In this embodiment, the installation and maintenance terminal not only performs real-time detection on the optical power data, but also further analyzes and displays the trend of the optical power change using a prediction algorithm, providing more comprehensive decision support for users, and improving the user's interaction experience through the optimization of the display interface.

[0119] When the core board is woken up from the sleep state and receives the optical fiber state information transmitted by the MCU, it will start the analysis program of the optical power data. In addition to displaying the current optical power data, the core board will call the built-in optical power prediction model (such as a regression algorithm based on time series analysis), combine historical data and currently collected data, and predict the future trend of optical power change. The prediction model can construct a trend curve according to the fluctuation characteristics of the data and output the possible change range of the optical power in the future. For example, when the optical power is gradually decreasing, the prediction model can give the time point when the critical value will be reached, helping users to take maintenance measures in advance.

[0120] The core board then calls a graphic rendering algorithm to present the measurement results, historical data and prediction trends in a graphical manner. For example, the measurement data can be displayed in the form of a dynamic line chart, while the normal range and cases exceeding the threshold are marked with colors. The prediction data is represented by a dashed line or a shaded area, with corresponding textual prompts. To enhance the user's intuitive experience, the interface design also introduces an alarm mechanism, such as when the prediction trend shows that the optical power will exceed the threshold in a short time, the system will alert the user with highlighted colors and sounds.

[0121] In this way, the user not only obtains the current optical power detection information, but also understands the trend of the fiber interface state change through historical data and prediction analysis, providing a reliable basis for the next step of network maintenance. The embodiment extends the traditional detection function to the prediction and decision support level, while optimizing the graphical interface design to improve the user experience, making the intelligent level of the installation and maintenance terminal a new step.

[0122] The present application realizes the automation of optical power data acquisition and processing through the task division and cooperation of the core board and the micro control unit (MCU), and the user can complete the entire measurement process with only one operation, avoiding the tediousness of traditional manual multi-step operation. At the same time, the core board enters a low-power sleep mode, and the MCU is responsible for monitoring tasks. When an abnormal optical power is detected, the core board is automatically awakened and the result is displayed, significantly improving the detection efficiency. In addition, the graphical trend prediction generated by combining historical data and real-time measurement results not only allows the user to intuitively understand the fiber state change, but also further optimizes the user experience through color warning and sound reminder design, and improves the efficiency and convenience of the installation and maintenance terminal in the field.

[0123] The present application significantly reduces the system energy consumption through the sleep mechanism of the core board and the independent task execution of the MCU, realizing the low-power operation of the optical power detection task. The core board is only awakened by the MCU when necessary, avoiding resource waste and prolonging the device's endurance time. At the same time, the MCU quickly responds to abnormal optical power conditions through real-time data judgment and hardware interrupt mechanism, and transmits the detection results to the core board, thereby realizing intelligent response in a low-power state, meeting the long-time and high-frequency network maintenance needs, especially suitable for field environment or emergency maintenance scenarios, improving the reliability and practicality of the device.

[0124] The present application provides a kind of optical power automatic measurement system based on installation and maintenance terminal as shown in Figure 2 including low-power task initialization module, optical power data acquisition module, optical power abnormality detection and awakening module, data filtering pre-processing module and optical power prediction and visualization display module:

[0125] The low-power task initialization module sends an instruction of polling optical power data to the micro control unit through the communication module, controls the display module of the core board to be turned off, switches the core board to a low-power sleep mode, and reduces the energy consumption of the core board;

[0126] The optical power data acquisition module polls and monitors the optical fiber interface through an analog-to-digital converter, acquires optical power data, and temporarily stores the acquired data in an internal cache;

[0127] The optical power abnormality detection and wake-up module judges the acquired optical power data, sends a pulse signal to the core board through a wake-up pin to wake up the core board from the low-power sleep mode when detecting that the optical power data exceeds a preset threshold, and transmits fiber state information to the core board through the communication module;

[0128] The data filtering and preprocessing module pre-processes the optical power data received by the core board from the micro control unit using a filtering algorithm, eliminates noise interference in the acquisition process, and improves the accuracy of optical power measurement;

[0129] The optical power prediction and visual display module analyzes the trend of the current optical power data combined with historical data using a built-in optical power prediction algorithm, predicts the change of the optical power in advance, calls a graphic rendering algorithm to optimize the display effect of the measurement result, and displays the optical power data and trend prediction in a graphical form on the display module of the core board, thereby providing users with intuitive measurement results and trend information.

[0130] The embodiment of the application provides an optical power automatic measurement method based on a maintenance terminal, which is realized by the above-mentioned optical power automatic measurement system based on a maintenance terminal.

[0131] The above formulas are dimensionless values calculated, the formulas are obtained by collecting a large amount of data to simulate a formula of the nearest real situation, and the preset parameters in the formulas are set by a person skilled in the art according to actual conditions.

[0132] The above only describes some exemplary embodiments of the application by way of illustration, and it is needless to say that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the application. Therefore, the above drawings and descriptions are illustrative in nature and should not be understood as limiting the scope of protection of the claims of the application.

[0133] It should be noted that, in the present document, relational terms are used to convey a relationship of one entity or action to another entity or action. For example, without necessarily implying any actual relationship or order between entities or actions, the terms "first," "second," "top" and "bottom" are used to name different entities and actions, and are used to distinguish one entity or action from another entity or action, without necessarily conveying any actual relationship or order between such entities or actions. Furthermore, the terms "comprise," "include," and "have," and variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises, includes, or has a list of elements is not necessarily limited to those elements, but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises... a," "includes... a," or "has... a" does not, without more constraints, foreclose the existence of additional identical elements other than the one listed or other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0134] It should be understood that the sequence numbers of the processes described above do not mean execution sequence in various embodiments of the present application, and the execution sequence of the processes should be determined according to their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0135] Those skilled in the art can clearly understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the present document can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0137] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0138] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.

[0139] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0140] The foregoing merely describes certain exemplary embodiments of this application by way of illustration. Obviously, modifications and alterations can be made by those skilled in the art without departing from the spirit and scope of the application. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of the claims of the present application.

Claims

1. A method for automatic optical power measurement based on an installation and maintenance terminal, characterized in that, Includes the following steps: The core board sends a polling command for optical power data to the microcontroller unit through the communication module, controls the display module of the core board to turn off, and switches the core board to a low-power sleep mode to reduce the energy consumption of the core board. The microcontroller unit polls and monitors the fiber optic interface through an analog-to-digital converter, collects optical power data, and temporarily stores the collected data in an internal cache. The microcontroller unit judges the collected optical power data. When the optical power data exceeds the preset threshold, the microcontroller unit sends a pulse signal to the core board through the wake-up pin to wake up the core board from the low-power sleep mode, and transmits the optical fiber status information to the core board through the communication module. After receiving the optical power data transmitted by the microcontroller unit, the core board uses a filtering algorithm to preprocess the data, eliminating noise interference during the acquisition process, thereby improving the accuracy of optical power measurement. The core board uses a built-in optical power prediction algorithm to perform trend analysis on current optical power data and historical data, predicting changes in optical power in advance. It also calls a graphics rendering algorithm to optimize the display effect of the measurement results, displaying the optical power data and trend prediction graphically on the display module of the core board, providing users with intuitive measurement results and trend information. The core board uses a built-in optical power prediction algorithm to perform trend analysis on current optical power data combined with historical data. The optical power data and trend predictions are then graphically displayed on the core board's display module, providing users with intuitive measurement results and trend information. The specific steps are as follows: After receiving the optical power data from the microcontroller unit, the core board first preprocesses the currently acquired optical power data and the historical optical power data set, and extracts key features of optical power changes. The algorithms used include weighted moving average filtering and time window feature extraction. The formula for calculating the filtered optical power data is as follows: In the formula, This is the preprocessed current optical power data. It is the first Optical power data collected at each time point It is the first The weighting coefficients at each time point satisfy the following conditions: , It is the size of the sliding time window; The core board uses a built-in time series prediction model to perform trend analysis on current and historical optical power data, predicting the optical power value for a future period. The prediction algorithm generates the prediction result by dynamically learning the time dependency of optical power changes. The generation formula is as follows: In the formula, It is the predicted number Optical power values ​​at each time point Based on The prediction function, It is a sequence of historical optical power characteristics within the previous time window. It predicts the time step. It is the set of parameters of the model; The core board calls the graphics rendering algorithm to display the current optical power value. Historical optical power characteristics Predicting trends A graphical representation is generated, producing a comprehensive chart of optical power changes. The optimized graphical rendering formula is as follows: In the formula, It is a display curve generated by a graphics rendering algorithm. Indicates a point in time. These are current and historical optical power data curves. This is a future predicted optical power data curve. It is a smoothing correction term. It is current and historical optical power data. The weights in the final displayed curve, This is a future predicted optical power data curve. The weights in the final displayed curve, It is a smoothing correction term Weights in the final displayed curve.

2. The method for automatic optical power measurement based on an installation and maintenance terminal according to claim 1, characterized in that, The core board sends instructions to the microcontroller unit to poll for optical power data via the communication module, and controls the core board's display module to turn off. The specific steps to reduce the core board's power consumption are as follows: The core board receives operation instructions through the user interface and generates task instructions containing polling parameters, laying the foundation for optical power measurement tasks. The core board uses a communication module to reliably transmit polling commands to the microcontroller unit via a standard communication protocol, ensuring command integrity and transmission reliability. After sending the command, the core board shuts down the display module and switches to low-power mode, effectively reducing the overall power consumption of the device and extending the battery life. After the core board enters sleep mode, it monitors the wake-up signal of the microcontroller unit through a hardware interrupt mechanism to ensure the real-time response capability of tasks in low-power mode.

3. The method for automatic optical power measurement based on an installation and maintenance terminal according to claim 1, characterized in that, The microcontroller unit polls and monitors the fiber optic interface via an analog-to-digital converter, collects optical power data, and temporarily stores the collected data in an internal cache. The specific steps are as follows: After receiving the polling command from the core board, the microcontroller unit parses the task parameters and initializes the analog-to-digital converter and related modules to prepare for the acquisition of optical power data. The analog-to-digital converter polls and monitors the fiber optic interface signal according to the set sampling frequency, and converts the analog signal into a digital signal and transmits it to the processing unit of the microcontroller. The acquired optical power data is temporarily stored in the internal cache of the microcontroller unit and undergoes preliminary processing to ensure data integrity and task continuity. The microcontroller compares the collected optical power data with the set threshold in real time. When an anomaly is detected, it transmits fiber status information to the core board through a wake-up signal and communication module to trigger subsequent processing.

4. The method for automatic optical power measurement based on an installation and maintenance terminal according to claim 1, characterized in that, The microcontroller unit judges the collected optical power data. When the optical power data exceeds the preset threshold, it wakes up the core board from the low-power sleep mode and transmits the optical fiber status information to the core board through the communication module. The specific steps are as follows: The microcontroller reads optical power data from the cache and preprocesses the data using a filtering algorithm to improve data accuracy; The microcontroller compares the preprocessed optical power data with a preset threshold in real time to identify potential anomalies; When the optical power data exceeds the threshold, the microcontroller sends a pulse signal through the wake-up pin to wake up the core board from the low-power sleep mode. The microcontroller unit transmits fiber optic status information to the core board via a communication module, providing data support for subsequent processing.

5. The method for automatic optical power measurement based on an installation and maintenance terminal according to claim 1, characterized in that, After receiving the optical power data transmitted by the microcontroller unit, the core board preprocesses the data using a filtering algorithm to eliminate noise interference during the acquisition process, thereby improving the accuracy of optical power measurement. The specific steps are as follows: After receiving the optical power data transmitted by the microcontroller unit, the core board first extracts the original sampled value sequence of the optical power, denoted as... ,in It is the first The optical power value of the next sample. It is the total number of samples. This is the original sequence of optical power samples. To eliminate data deviations caused by different power ranges across different fiber optic interfaces, the sampled values ​​are normalized and converted into power values. The normalization formula is as follows: In the formula, It is the normalized first The optical power value of the next sample. It is the minimum optical power value in the original sampled data. It is the maximum optical power value in the original sampled data; Normalized sampled optical power value Based on this, the core board applies a sliding window filtering algorithm to smooth the optical power data sequence. The sliding window filtering formula is as follows: In the formula, It is the filtered first The optical power value of the next sample. It is the normalized first The optical power value of the next sample. These are the weighting coefficients within the sliding window, representing the weighting coefficients within the sliding window. The weight of each sampled data point It is half the width of the sliding window.

6. The method for automatic optical power measurement based on an installation and maintenance terminal according to claim 5, characterized in that, Obtain the filtered optical power sequence Then, the core board dynamically calculates the optical power threshold to achieve real-time anomaly detection. The calculation expression is as follows: In the formula, It is the first Dynamic optical power threshold for each sample. It is the sensitivity coefficient for anomaly detection. It is the first The moving average centered at the second sample is calculated using the following formula: In the formula, It is the first The filtered optical power value after the second sampling. It is the first The moving standard deviation centered on the sampling point is calculated using the following formula: .

7. A system for automatically measuring optical power based on an installation and maintenance terminal, used to implement the method for automatically measuring optical power based on an installation and maintenance terminal as described in any one of claims 1-6, characterized in that, It includes a low-power task initialization module, an optical power data acquisition module, an optical power anomaly detection and wake-up module, a data filtering and preprocessing module, and an optical power prediction and visualization display module. The low-power task initialization module sends a polling command for optical power data to the microcontroller unit through the communication module, controls the display module of the core board to turn off, and switches the core board to a low-power sleep mode to reduce the power consumption of the core board. The optical power data acquisition module uses a microcontroller unit to poll and monitor the optical fiber interface through an analog-to-digital converter, acquire optical power data, and temporarily store the acquired data in an internal cache. The optical power anomaly detection and wake-up module uses a microcontroller unit to judge the collected optical power data. When the optical power data exceeds a preset threshold, the microcontroller unit sends a pulse signal to the core board through the wake-up pin to wake up the core board from the low-power sleep mode and transmits the optical fiber status information to the core board through the communication module. The data filtering and preprocessing module, after the core board receives the optical power data transmitted by the microcontroller unit, uses a filtering algorithm to preprocess the data, eliminate noise interference during the acquisition process, and thus improve the accuracy of optical power measurement. The optical power prediction and visualization module uses a built-in optical power prediction algorithm to analyze the current optical power data in combination with historical data to predict changes in optical power in advance. It also calls a graphics rendering algorithm to optimize the display effect of the measurement results, and displays the optical power data and trend prediction graphically on the display module of the core board, providing users with intuitive measurement results and trend information.

Citation Information

Patent Citations

  • Low-power-consumption overhead line type fault indicator and control method thereof

    CN106291232A

  • Abnormal prediction method and device of optical power, electronic equipment and storage medium

    CN115549781A

  • Defect detection method and device for steel wire rope, storage medium, equipment and system

    CN119291015A