System and method for realizing automatic measurement of optical power based on installation and maintenance terminal
Through the collaboration between the core board and the microcontroller unit, the automatic and low-power operation of optical power measurement of handheld terminals is realized, which solves the problems of cumbersome operation and high power consumption in the existing technology, improves detection efficiency and battery life, and is suitable for complex network maintenance scenarios.
Patent Information
- Application Number
- CN202510074981.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-17
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-01-17
AI Technical Summary
The existing handheld installation terminals have cumbersome operation in optical power measurement functions and imperfect power consumption management, resulting in low detection efficiency and short battery life, making it difficult to meet the needs of efficient and long-term maintenance.
Through the task division between the core board and the microcontroller unit, the automatic acquisition and processing of optical power data can be realized, and the user can complete the measurement in just one operation. The core board enters a low-power sleep mode, the microcontroller unit monitors tasks and wakes up the core board in case of abnormalities, and combines historical data to generate graphical trends to optimize the user experience.
It significantly improves the convenience and accuracy of optical power measurement, extends the battery life of the equipment, is suitable for long-term and high-frequency network maintenance, and improves the reliability and practicality of the equipment.
Smart Images

Figure CN120074658A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of broadband installation and maintenance terminals of communication operators, and particularly relates to a system and method for automatically measuring optical power based on a maintenance terminal. Background Art
[0002] With the continuous development and popularization of communication technologies, communication operators widely use handheld maintenance terminals (PDAs, Personal Digital Assistants) during the installation and maintenance of broadband networks. These terminal devices integrate multiple test functions, including gigabit wired speed measurement, wireless signal testing, optical power testing, and fault troubleshooting, etc., which can significantly improve the intelligence 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 its stability of fiber optic interfaces, helping maintenance personnel quickly diagnose network faults. However, although the current handheld maintenance terminals are fully functional, there is still much room for improvement in terms of user operation convenience and power consumption management.
[0003] Most of the existing maintenance terminals in the prior art use a manual startup method for optical power measurement. Specifically, maintenance personnel need to first turn on the device screen, enter the optical power test interface, and gradually click on multi-layer menu options to start the measurement. This operation process is complex and time-consuming. Especially in scenarios where frequent detection or processing of multiple fiber optic interfaces is required, it significantly reduces the on-site operation efficiency. In addition, when the device is not working, its display screen often remains lit, resulting in increased power consumption and shortened battery life of the device, which is not conducive to long-term field operations.
[0004] The prior art has the following deficiencies:
[0005] The current handheld maintenance terminals mainly have the following deficiencies in the optical power measurement function: First, the user operation process is too cumbersome. Manually operating the options layer by layer not only wastes time but also increases the work burden, which does not meet the requirements of high-efficiency operations; especially in emergency maintenance scenarios, it is unable to quickly respond to optical power changes or fault information, affecting the efficiency of problem troubleshooting. Second, the power consumption management mechanism of the existing terminals is not perfect. In the non-use state, the device display screen and core modules still maintain high energy consumption, and low-power technologies are not effectively utilized, resulting in insufficient battery life and further restricting the actual application scenarios of the maintenance terminals.
[0006] In addition, the prior art has a low level of intelligence in data processing and display effects. 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 design of the display interface for measurement results is relatively basic, and the user interaction experience has not been optimized, making it difficult to meet the user's needs 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 urgently needed to solve the above problems in the prior art.
[0007] The above information disclosed in the background art section is only used to strengthen the understanding of the background of the present disclosure. Therefore, it may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0008] The object of the present invention is to provide a system and method for realizing automatic optical power measurement based on a maintenance terminal. Through the task division between the core board and the micro-control unit, the system realizes the acquisition and automatic processing of optical power data, and the user only needs to perform one operation to complete the measurement. The core board goes into sleep mode to reduce energy consumption, and the micro-control unit monitors tasks and wakes up the core board to display the results when an abnormality occurs, and generates a graphical trend in combination with historical data to optimize the user experience. The low-power and intelligent response design extends the battery life, is suitable for long-term and high-frequency maintenance, and improves the reliability and practicality of the device to solve the problems in the above background art.
[0009] In order to achieve the above object, the present invention provides the following technical solution: An optical power automatic measurement method based on a maintenance terminal, including 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 turn off, and at the same time switches the core board to the low-power sleep mode to reduce the energy consumption of the core board;
[0011] The micro-control unit polls and monitors the optical fiber interface through the analog-to-digital converter, collects optical power data, and temporarily stores the collected data in the internal cache;
[0012] The micro-control unit judges the collected optical power data. 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 the wake-up pin, 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;
[0013] After receiving the optical power data transmitted by the micro-control 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;
[0014] The core board conducts trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm, predicts the optical power change in advance, and calls the graphics rendering algorithm to optimize the display effect of the measurement results. The optical power data and trend prediction are graphically displayed on the display module of the core board, providing users with intuitive measurement results and trend information.
[0015] Preferably, the core board sends an instruction to poll the optical power data to the micro-control unit through the communication module and controls the display module of the core board to turn off, reducing the power consumption of the core board. The specific steps are as follows:
[0016] The core board receives the operation instruction through the user interface and generates a task instruction containing polling parameters, laying the foundation for the optical power measurement task;
[0017] The core board uses the communication module to reliably transmit the polling instruction to the micro-control unit through the standard communication protocol, ensuring the integrity and transmission reliability of the instruction;
[0018] After the instruction is sent, the core board turns off the display module and switches to the low-power mode, effectively reducing the overall power consumption of the device and extending the battery life;
[0019] After the core board enters the sleep state, it monitors the wake-up signal of the micro-control unit through the hardware interrupt mechanism to ensure the real-time response ability of the task in the low-power state.
[0020] Preferably, the micro-control unit conducts polling monitoring on 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. The specific steps are as follows:
[0021] After receiving the polling instruction from the core board, the micro-control unit parses the task parameters and initializes the analog-to-digital converter and related modules to prepare for the collection of optical power data;
[0022] The analog-to-digital converter conducts polling monitoring on 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 is temporarily stored in the internal cache of the micro-control unit, and preliminary processing is carried out simultaneously 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. When an abnormality is detected, it transmits the optical fiber status information to the core board through the wake-up signal and the communication module to trigger subsequent processing.
[0025] Preferably, the microcontroller unit judges the collected optical power data. When it detects that the optical power data exceeds a 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:
[0026] The microcontroller unit reads the optical power data from the cache and preprocesses the data through a filtering algorithm to improve the data accuracy;
[0027] The microcontroller unit compares the preprocessed optical power data with the preset threshold in real time to identify potential anomalies;
[0028] When it detects that the optical power data exceeds the threshold, the microcontroller unit sends a pulse signal through the wake-up pin to wake up the core board from the low-power sleep mode;
[0029] The microcontroller unit transmits the optical fiber status information to the core board through the communication module to provide data support for subsequent processing.
[0030] Preferably, after receiving the optical power data transmitted by the microcontroller unit, the core board uses a filtering algorithm to preprocess the data to eliminate the noise interference during the acquisition process, thereby improving the accuracy of the optical power measurement. The specific steps are as follows:
[0031] After receiving the optical power data transmitted by the microcontroller unit, the core board first extracts the original sampling value sequence of the optical power, denoted as , where is the optical power value of the th sampling, is the total number of samplings, is the original optical power sampling value sequence. In order to eliminate the data deviation caused by different power ranges of different optical fiber interfaces, the sampling values are normalized and converted into power values. The normalization formula is as follows: , where is the optical power value of the th sampling after normalization, is the minimum optical power value in the original sampling data, is the maximum optical power value in the original sampling 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 optical power value of the th sampling after filtering, is the optical power value of the The sub-sampled optical power value is the weighting coefficient within the sliding window, indicating the weight of the th sampled data point within the sliding window, and is the half-width of the sliding window;
[0034] Preferably, after obtaining the filtered optical power sequence , the core board dynamically calculates the threshold of the optical power to achieve real-time anomaly detection. The calculation expression is as follows: , where in the formula, is the dynamic optical power threshold for the th sub-sampling, is the sensitivity coefficient for anomaly detection, is the sliding mean centered on the th sub-sampling. The calculation formula is as follows: , where in the formula, is the filtered optical power value for the th sub-sampling, is the sliding standard deviation centered on the th sub-sampling. The calculation formula is as follows: .
[0035] Preferably, the core board performs trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm, and graphically displays the optical power data and trend prediction on the display module of the core board. The specific steps to provide users with intuitive measurement results and trend information are as follows:
[0036] After the core board receives the optical power data transmitted by the micro-control unit, it first preprocesses the currently collected optical power data and the set of historical optical power data, and at the same time extracts the key features of the optical power change. The algorithms used include weighted moving average filtering and time window feature extraction. The calculation formula for the filtered optical power data is as follows:
[0037] , where in the formula, is the currently preprocessed optical power data, is the optical power data collected at the th time point, is the weighting coefficient at the qth time point, satisfying , is the size of the sliding time window;
[0038] The core board uses the built-in time series prediction model to perform trend analysis on the current and historical optical power data, predicts the optical power value for a period of time in the future, and the prediction algorithm generates the prediction result by dynamically learning the time-dependent relationship of the optical power change. The generation formula is as follows:
[0039] , where is the predicted optical power value at the -th time point, is the prediction function based on , is the historical optical power feature sequence within the previous time window, is the prediction time step, is the parameter set of the model;
[0040] The core board calls the graphics rendering algorithm to graphically display the current optical power value , the historical optical power features and the prediction trend to generate a comprehensive optical power change chart. The optimized graphics rendering formula is as follows:
[0041] , where is the display curve generated by the graphics rendering algorithm, represents the time point, is the current and historical optical power data curve, is the future predicted optical power data curve, is the smoothing correction term, is the current and historical optical power data weight in the final display curve, is the future predicted optical power data curve weight in the final display curve, is the smoothing correction term weight in the final display curve.
[0042] An optical power automatic measurement system implemented based on the 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] Low-power task initialization module: 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 turn off, and at the same time switches the core board to the low-power sleep mode to reduce the energy consumption of the core board;
[0044] Optical power data acquisition module: The micro-control unit polls and monitors the optical fiber interface through the analog-to-digital converter, acquires optical power data, and temporarily stores the acquired data in the internal cache;
[0045] Optical power anomaly detection and wake-up module. The microcontroller unit judges the collected optical power data. When it detects that 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;
[0046] Data filtering and preprocessing module. After the core board receives the optical power data transmitted by the microcontroller unit, it uses a filtering algorithm to preprocess the data to eliminate noise interference during the acquisition process, thereby improving the accuracy of optical power measurement;
[0047] Optical power prediction and visualization display module. The core board performs trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm, predicts the change of optical power in advance, and calls the graphics rendering algorithm to optimize the display effect of the measurement results, and graphically displays the optical power data and trend prediction on the display module of the core board to provide users with intuitive measurement results and trend information.
[0048] In the above technical solution, the technical effects and advantages provided by the present invention:
[0049] Through the task division and cooperation between the core board and the microcontroller unit (MCU), the system realizes the automation of optical power data acquisition and processing. Users only need to perform one operation to complete the entire measurement process, avoiding the cumbersome traditional manual multi-step operations; at the same time, the core board enters the low-power sleep mode, and the MCU is responsible for monitoring tasks. When an optical power anomaly is detected, the core board is automatically woken up 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 enables users to intuitively grasp the change of the optical fiber status, but also further optimizes the user experience through designs such as color warning and sound reminder, comprehensively improving the on-site application efficiency and interaction convenience of the installation and maintenance terminal.
[0050] Through the sleep mechanism of the core board and the independent task execution of the MCU, the present invention significantly reduces the system energy consumption and realizes the low-power operation of the optical power detection task; the core board is only woken up by the MCU when necessary, avoiding resource waste and prolonging the battery life of the device. At the same time, the MCU quickly responds to optical power anomalies through real-time data judgment and hardware interruption mechanism, and transmits the detection results to the core board, thus realizing intelligent response in the low-power state, meeting the needs of long-term and high-frequency network maintenance, especially suitable for field environments or emergency maintenance scenarios, and improving the reliability and practicality of the device. Description of the Drawings
[0051] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments recorded in the present invention. For those of ordinary skill in the art, other accompanying drawings can also be obtained based on these drawings.
[0052] Figure 1 This is the method flowchart of a method for automatically measuring optical power based on an installation and maintenance terminal in the present invention.
[0053] Figure 2 This is the module schematic diagram of a system for automatically measuring optical power based on an installation and maintenance terminal in the present invention. Detailed implementation manners
[0054] Now, the exemplary embodiments will be described more comprehensively with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these examples are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.
[0055] The present invention provides a method for automatically measuring optical power based on an installation and maintenance terminal as shown in Figure 1 and includes the following steps:
[0056] The core board sends an instruction to poll optical power data to the microcontroller unit (MCU) through the communication module, controls the display module of the core board to turn off, and at the same time switches the core board to the low-power sleep mode to reduce the energy consumption of the core board;
[0057] The specific steps for the core board to send an instruction to poll optical power data to the microcontroller unit (MCU) through the communication module and control the display module of the core board to turn off to reduce the energy consumption of the core board are as follows:
[0058] The core board receives an operation instruction through the user interface and generates a task instruction containing polling parameters, laying the foundation for the optical power measurement task;
[0059] The core board first receives the user's operation instruction through the user interface of the display module. For example, when the user selects the "optical power measurement" function option, the core board generates an instruction to poll optical power data through its embedded program. This instruction contains clear task parameters, such as the polling frequency, data acquisition time window, and optical power threshold, etc. These parameters will be embedded in the instruction data packet and sent to the MCU through the communication module of the core board. The design of this step ensures that the user's operation can be converted into an effective control command through the core board, enabling the device to accurately execute the measurement task and laying the foundation for subsequent automated measurement.
[0060] The core board uses a communication module to reliably transmit polling instructions to the microcontroller unit (MCU) through a standard communication protocol, ensuring the integrity and transmission reliability of the instructions;
[0061] After generating the polling instruction, the communication module of the core board is activated, and the instruction is encapsulated 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 a communication channel connected to the MCU (such as a serial port or a bus). During the transmission process, the communication module performs verification to ensure data integrity and avoid data loss or errors caused by noise or interference. This design of data transmission through a standardized communication protocol can ensure the transmission reliability of instruction data between the core board and the MCU, thus avoiding measurement interruptions or misoperations caused by data loss or incorrect transmission.
[0062] After sending the instruction, the core board turns off the display module and switches to the low-power mode, effectively reducing the overall power consumption of the device and extending the battery life;
[0063] After the instruction is sent, the main control unit of the core board immediately triggers the energy-saving program to turn off the display module. The display module is one of the high-power-consuming components in the installation and maintenance terminal. Turning off its lit state can significantly reduce the overall power consumption of the device. At the same time, the core board enters the low-power mode, pausing most non-essential functions and only retaining basic communication and standby functions. The implementation of the low-power mode relies on the low-power design of the hardware, such as reducing the operating frequency of the main control chip and turning off some peripheral power supply channels. This design not only reduces battery energy consumption but also extends the battery life of the device, thus improving the applicability of the installation and maintenance terminal in the field or long-term use scenarios.
[0064] After the core board enters the sleep state, it monitors the wake-up signal of the microcontroller unit (MCU) through a hardware interrupt mechanism to ensure the real-time response ability of tasks in the low-power state;
[0065] After entering the low-power mode, the core board remains in the sleep state and monitors the wake-up signal from the MCU through a wake-up pin (such as GPIO). This wake-up mechanism adopts a hardware interrupt design. When the MCU detects that the optical power exceeds the set threshold, it triggers the core board to resume normal operation from the sleep state by sending a pulse signal. The core board does not perform active tasks during the sleep period, further reducing the power consumption. At the same time, through the hardware interrupt design, it can quickly respond to the wake-up requirements of the MCU even in the low-power state. This design not only improves the power management level of the device but also ensures the real-time performance and efficiency of the optical power measurement task.
[0066] The microcontroller unit polls and monitors the optical fiber interface through the analog-to-digital converter (ADC), collects optical power data, and temporarily stores the collected data in the internal cache;
[0067] The specific steps for the microcontroller unit to poll and monitor the optical fiber interface through the analog-to-digital converter (ADC), collect optical power data, and temporarily store the collected data in the internal cache are as follows:
[0068] After receiving the polling instruction from the core board, the microcontroller unit (MCU) parses the task parameters and initializes the analog-to-digital converter (ADC) and related modules to prepare for the collection of optical power data;
[0069] When the core board sends an instruction to poll the optical power data to the MCU through the communication module, the MCU receives the instruction through the built-in communication interface and parses the instruction content. The parsed instruction initializes the analog-to-digital converter (ADC) module inside the MCU according to the task parameters (such as polling frequency, sampling time, etc.), and at the same time sets the optical power threshold and the storage structure of the buffer area to ensure the accuracy of the collection task and the efficiency of data processing. In this process, the MCU completes the role transformation from passive standby to active task execution and provides basic support for the subsequent collection of optical power data. The key point of this step is to parse the polling task parameters issued by the core board and start the relevant modules to make the whole task execution smooth.
[0070] The analog-to-digital converter (ADC) polls and monitors 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 microcontroller unit (MCU);
[0071] After initialization, the MCU enables the analog-to-digital converter (ADC) module to poll and monitor 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 a digital signal and transmits the converted data to the processing unit of the MCU in real time. The data collection during the ADC polling process follows the time window and accuracy requirements set by the user on the core board to ensure accurate optical power information can be obtained in the shortest possible time. This polling mechanism can not only capture the dynamic changes of the optical fiber interface signal in real time, but also provide high-frequency and low-latency monitoring capabilities, thus laying the foundation for the rapid detection of optical fiber state changes.
[0072] The collected optical power data is temporarily stored in the internal cache of the microcontroller unit (MCU), and at the same time, preliminary processing is performed 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 preliminarily processes the cached data according to the preset task requirements (such as time stamping or simple data denoising). The design of the internal cache can not only carry the data of multiple samplings, but also provide a buffer for subsequent data judgment and transmission. Through this phased mechanism of "collection - cache - processing", the MCU can still maintain the stability of the task when the optical power data volume 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 cleared according to the set strategy to maintain the availability of the cache capacity and ensure the continuity of long - term collection.
[0074] The micro - control unit (MCU) compares the collected optical power data with the set threshold in real time. When an anomaly is detected, it transmits the optical fiber status information to the core board through the wake - up signal and the communication module to trigger subsequent processing;
[0075] While collecting and caching the optical power data, the MCU makes real - time comparison and judgment on each group of sampled data with the preset optical power threshold of the core board. When it detects that the optical power data exceeds the threshold (such as optical fiber insertion or abnormal optical power), the MCU immediately sends a signal through the wake - up pin to wake up the core board, and at the same time transmits the relevant optical fiber status information (such as optical fiber insertion status or optical power anomaly information) to the core board through the communication module. This design ensures that the device can quickly respond to the state changes of the optical 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 poll and monitor the optical fiber interface, and accumulate and store the collected optical power data in the cache to provide complete historical data for further analysis.
[0076] The micro - control unit judges the collected optical power data. When it detects that the optical power data exceeds the preset threshold, the micro - control 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;
[0077] The specific steps for the micro - control unit to judge the collected optical power data, wake up the core board from the low - power sleep mode when it detects that the optical power data exceeds the preset threshold, and transmit the optical fiber status information to the core board 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 the optical power data is collected by the analog-to-digital converter (ADC) and temporarily stored in the internal cache, the microcontroller unit will extract the latest collected data from the cache for analysis according to the task requirements. The extracted data may contain certain random noise or environmental interference. Therefore, the microcontroller unit will perform preliminary preprocessing on the data. For example, the data fluctuations are smoothed 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 microcontroller unit demonstrates its powerful data processing ability and reduces the possibility of false alarms through algorithm optimization.
[0080] The microcontroller unit compares the preprocessed optical power data with the preset threshold in real time to identify potential anomalies;
[0081] After completing the data preprocessing, the microcontroller unit will compare the optical power data with the optical power threshold set by the core board one by one to determine whether there is an abnormal situation. The optical power threshold is usually preset by the core board according to the specific optical fiber network environment, and may include the normal operating 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 microcontroller unit immediately determines the state of fiber insertion or abnormal optical power and records the corresponding timestamp and status identifier. The real-time nature of this comparison process is crucial, as it can quickly capture changes in the fiber interface state and provide guarantee for the device to respond promptly in an abnormal state.
[0082] When it detects that the optical power data exceeds the threshold, the microcontroller unit sends a pulse signal through the wake-up pin to wake up the core board from the low-power sleep mode;
[0083] When the microcontroller unit detects that the optical power data exceeds the threshold, it will trigger a wake-up signal through the hardware interrupt mechanism. Specifically, the microcontroller unit sends a pulse signal of low level or high level 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 and restore it from the low-power sleep mode to the normal operating mode. At the same time, the transmission of the wake-up signal adopts the debounce technology in the hardware circuit design to ensure the stability and reliability of the signal and avoid unnecessary wake-up caused by noise or false triggering. This mechanism enables the device to maintain high-efficiency task response ability in the low-power operating state and greatly improves the intelligence level of the system.
[0084] The microcontroller 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] While waking up the core board, the microcontroller unit transmits the optical fiber status information to the core board through a communication module (such as I2C, SPI, or UART, etc.). The optical fiber status information includes details such as the current value of the optical power, the type exceeding the threshold (such as "fiber insertion" or "abnormal optical power"), and the acquisition timestamp. These data are transmitted to the core board through a standardized data packet structure so that the core board can accurately analyze the current optical fiber status after receiving it and start the display module to display the detection results or perform further data processing as needed. This step not only completes the effective transmission of the status information but also realizes the efficient cooperation between the core board and the microcontroller 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 microcontroller unit, it preprocesses the data using a filtering algorithm to eliminate the noise interference during the acquisition process, thereby improving the accuracy of the optical power measurement;
[0087] After the core board receives the optical power data transmitted by the microcontroller unit, the specific steps to preprocess the data using a filtering algorithm to eliminate the noise interference during the acquisition process and improve the accuracy of the optical power measurement are as follows:
[0088] After the core board receives the optical power data transmitted by the microcontroller unit (MCU), it first extracts the original sampling value sequence of the optical power, denoted as , where is the optical power value of the th sampling, with the unit of microwatt (μW), is the total number of samplings, is the original optical power sampling value sequence. To eliminate the data deviation caused by different power ranges of different optical fiber interfaces, the sampling values are normalized and converted into power values. The normalization formula is as follows: , where in the formula, is the optical power value of the th sampling after normalization, is the minimum optical power value in the original sampling data, is the maximum optical power value in the original sampling data;
[0089] Through the normalization process, it is ensured that all optical power data are mapped to the same range, thereby providing a consistent scale for the subsequent filtering calculation and eliminating the influence of the power change amplitude on data analysis. The result of the normalization process will be used as the input for the next 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] , where is the optical power value of the th sampling after filtering, is the optical power value of the th sampling after normalization, is the weighting coefficient within the sliding window, representing the weight of the th sampling data point within the sliding window, which determines the influence of this 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 and suppresses the influence of random noise by performing weighted averaging on adjacent sampling points. The filtered result has higher smoothness and accuracy and will be used for the next dynamic threshold judgment.
[0093] The half-width of the sliding window refers to the range of expansion to the left and right when calculating the filtered value of a certain data point during the sliding window filtering process, that is, the number of adjacent data points included around the center point of the window (the current data point). Specifically, the half-width is denoted as , indicating that the window expands data points forward (to the left) and backward (to the right) from the current position, and a total of data points are included, and these data points jointly participate in the filtering calculation of the current point. For example, if , then the window size is , indicating that the optical power values of the current point and its two adjacent points on the left and right are included in the calculation range. The selection of the 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 has a poorer effect on suppressing random noise. Therefore, the half-width of the sliding window needs to be set according to the specific scenario 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 achieve real-time anomaly detection. The dynamic threshold is calculated based on the sliding mean and standard deviation of the filtered data, and the calculation expression is as follows: , where is the dynamic optical power threshold of the th sampling, is the sensitivity coefficient of anomaly detection, which is set by the user and is usually adjusted within the range of 1.5 to 3 to balance the detection sensitivity and false alarm rate, is the The sliding mean centered on sub-sampling has the following calculation formula: , where is the filtered optical power value at the -th sub-sampling, is the -th sliding standard deviation centered on sub-sampling, and its calculation formula is as follows: .
[0095] Through the calculation of the dynamic threshold , the core board can judge in real time whether the optical power data is abnormal. When the filtered optical power value exceeds the threshold , the core board will mark it as an abnormal state and trigger the subsequent response process (such as displaying an alarm message or storing an abnormal record).
[0096] The core board performs trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm, predicts the change of optical power in advance, and calls the graphics rendering algorithm to optimize the display effect of the measurement results. The optical power data and trend prediction are graphically displayed on the display module of the core board, providing users with intuitive measurement results and trend information;
[0097] The specific steps for the core board to perform trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm and graphically display the optical power data and trend prediction on the display module of the core board to provide users with intuitive measurement results and trend information are as follows:
[0098] After receiving the optical power data transmitted by the microcontroller unit (MCU), the core board first preprocesses the currently collected optical power data and the set of historical optical power data. The purpose of preprocessing is to eliminate noise and outliers in the data and extract the key features of the optical power change. The algorithms used include weighted sliding average filtering and time window feature extraction. The calculation formula for the filtered optical power data is as follows:
[0099] , where is the currently preprocessed optical power data, is the optical power data collected at the -th time point, is the weighting coefficient at the q-th time point, satisfying , is the size of the sliding time window;
[0100] This process can not only smooth the data fluctuations but also extract the trend features of the optical power for subsequent predictive analysis. The output parameter represents the currently filtered optical power value and combines the historical features Used as input for the next step.
[0101] The core board uses a built-in time series prediction model (such as a prediction algorithm based on a long short-term memory network to perform trend analysis on current and historical optical power data, predict the optical power value for a period of time in the future. The prediction algorithm generates a prediction result by dynamically learning the time-dependent relationship of optical power changes. The generation formula is as follows:
[0102] , where is the optical power value at the th time point of the prediction, is the prediction function based on , is the historical optical power feature sequence within the previous time window, is the prediction time step, that is, the time interval from the current time point to the future prediction, is the parameter set of the model, including weights and biases, obtained through model training and optimization;
[0103] Through this model, the core board can predict the possible future change trend of the optical power . These prediction data not only provide users with trend analysis of fiber optic performance, but also assist in diagnosing potential fault hazards. The prediction result will be used for the next step of visualization optimization.
[0104] The core board calls the graphics rendering algorithm to graphically display the current optical power value , historical optical power features prediction trend to generate a comprehensive optical power change chart. The optimized graphics rendering formula is as follows:
[0105] , where is the display curve generated by the graphics rendering algorithm, represents the time point, is the curve of current and historical optical power data, representing the preprocessed current optical power data , including the collected optical power data and the historical optical power data set, is the curve of future predicted optical power data, representing the set of predicted optical power values, is the smoothing correction term, used to correct the smoothing term of the display curve, and its purpose is to eliminate possible jaggedness or data jitter during the graphics rendering process, is the current and historical optical power data in the weight of the final display curve, is the curve of future predicted optical power data The weight in the final display curve is the smoothing correction term The weight in the final display curve
[0106] The generated optical power change trend chart is displayed on the display module of the core board, including historical data, real-time measurement values, and prediction curves. Through dynamic rendering and interactive graphic display, users can intuitively understand the change of optical power, discover potential fault trends in advance, and improve decision-making efficiency and user experience.
[0107] Embodiment 1: This embodiment aims to achieve automatic monitoring and processing of optical power data through the efficient cooperation of the core board and the microcontroller unit (MCU), thereby overcoming the problems of cumbersome operation, high power consumption, and slow response speed existing in the prior art. Specifically, this method makes full use of the respective functional characteristics of the core board and the MCU, reasonably divides tasks, and improves the operation efficiency and data processing ability of the device.
[0108] During the user operation, the core board first receives the user instruction and generates optical power polling task parameters according to the "optical power measurement" function selected by the user. These parameters include the sampling frequency of polling, the data acquisition window, the optical power threshold range, etc. Subsequently, the core board sends the generated task instruction to the MCU through its communication module. At the same time, the core board enters the low-power sleep mode. The sleep design of the core board is achieved by turning off the display module and reducing the working frequency of the main control chip. This mechanism significantly reduces the overall power consumption of the device and provides battery life support for subsequent long-term measurement tasks.
[0109] After receiving the instruction sent by the core board, the MCU starts to take over the main execution process of the task. Through the analog-to-digital converter (ADC), the MCU real-time collects the analog optical power signal of the optical fiber interface, converts the analog signal into a digital signal, and temporarily stores the collected data in the internal cache. To ensure the accuracy and reliability of the data, the MCU uses a filtering algorithm to preprocess the optical power data during the data acquisition process. For example, using a moving average filter or a weighted average filter 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 basis for subsequent threshold judgment and information transmission.
[0110] After the MCU completes data acquisition and preprocessing, it will compare the optical power data with the thresholds preset on 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 the hardware interrupt mechanism, send a pulse signal to the core board through the wake-up pin, and 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, including detailed information such as the current value of the optical power data, the reason for exceeding the threshold, and the acquisition timestamp. This design ensures that the system can still respond quickly to changes in optical power in the low-power mode, thus improving the task processing ability of the device.
[0111] After the core board is awakened, it quickly starts relevant modules according to the fiber status information transmitted by the MCU, including lighting up the display module, calling the measurement result analysis program, etc. Through real-time communication with the MCU, the core board further confirms the specific type of abnormal optical power 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 method transfers the high-power-consuming tasks of the core board to the MCU through the division of labor and cooperation between the core board and the MCU, and quickly restores the function of the core board in critical states, taking into account the requirements of low-power operation and efficient response.
[0112] In summary, this implementation method takes the division of labor and cooperation between the core board and the MCU as the core, and solves the problems of high energy consumption, complex operation, and slow response in optical power measurement of existing installation and maintenance terminals through mechanisms such as low-power design, real-time monitoring, hardware interrupt wake-up, and efficient information transmission, providing users with an efficient and convenient optical power measurement solution.
[0113] Embodiment 2: This embodiment further improves the adaptability and judgment accuracy of the installation and 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 making the device show a stronger intelligent level in complex fiber environments.
[0114] In the device initialization stage, the core board will dynamically generate an optical power threshold range for the current task according to the task parameters set by the user and historical measurement data. The setting of the dynamic threshold takes into account various factors, including the complexity of the fiber environment (such as signal noise level), historical optical power fluctuations, and the detection sensitivity expected by the user. The core board uses the built-in dynamic threshold algorithm (such as an adaptive adjustment algorithm) to calculate and set the adaptive threshold range in real time according to these parameters, and then transmits the 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 detection tolerance rate, thus avoiding false alarms caused by noise interference.
[0115] When the MCU executes 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 activate the warning mechanism and send a prompt message of "optical power approaching the critical value" to the core board through the communication module, enabling the core board to 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 in the optical fiber environment, thereby improving the flexibility and accuracy of judgment.
[0116] When the optical power data exceeds the dynamic threshold range, the MCU will immediately trigger the hardware interruption 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 exceeding the threshold, the data fluctuation trend, etc. After receiving the wake-up signal, the core board quickly resumes the operating state and further analyzes and processes the abnormal situation according to the detailed information transmitted by the MCU, such as judging whether it is an optical fiber insertion or other optical power abnormalities.
[0117] By dynamically adjusting the optical power threshold, this embodiment overcomes the limitations of the traditional static threshold, enables the device to have higher judgment sensitivity and adaptability in a complex optical fiber environment, and at the same time greatly reduces the possibility of false alarms or missed alarms. Combined with the intelligent detection response mechanism, the system achieves the dual goals of fast response and flexible adaptation while ensuring the detection accuracy.
[0118] Embodiment 3: In this embodiment, the installation and maintenance terminal not only detects the optical power data in real time, but also further analyzes and displays the change trend of the optical power by using a prediction algorithm, provides more comprehensive decision-making support for users, and improves the user interaction experience by optimizing the display interface.
[0119] After the core board is woken up from the sleep state and receives the optical fiber status 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 the currently collected data, and predict the future change trend of the optical power. This 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 it will reach the critical value, helping users take maintenance measures in advance.
[0120] The core board then calls the graphics rendering algorithm to present the measurement results, historical data, and predicted trends in a graphical manner. For example, the measurement data can be displayed in the form of a dynamic line chart, with the normal range and situations exceeding the threshold marked by colors. The predicted data is represented by a dashed line or a shaded area, along with corresponding text prompts for explanation. To enhance the user's intuitive experience, the interface design also introduces an alarm mechanism. For instance, when the predicted trend shows that the optical power will exceed the threshold within a short time, the system will remind the user with a highlighted color and sound.
[0121] In this way, users can not only obtain the current optical power detection information but also understand the trend of the fiber optic interface status change through historical data and predictive analysis, providing a reliable basis for the next step of network maintenance. This embodiment extends the traditional detection function to the prediction and decision support level, and at the same time improves the user experience through the optimized graphical interface design, making the intelligent level of the installation and maintenance terminal reach a new level.
[0122] Through the task division and cooperation between the core board and the microcontroller unit (MCU) in the present invention, the system realizes the automation of optical power data acquisition and processing. Users only need to perform one operation to complete the entire measurement process, avoiding the cumbersome traditional manual multi-step operations. At the same time, the core board enters the low-power sleep mode, and the MCU is responsible for the monitoring task. When an optical power anomaly 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 enables users to intuitively grasp the fiber optic status change but also further optimizes the user experience through design features such as color warnings and sound reminders, comprehensively improving the on-site application efficiency and interaction convenience of the installation and maintenance terminal.
[0123] Through the sleep mechanism of the core board and the independent task execution of the MCU in the present invention, the system energy consumption is significantly reduced, 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 extending the device's battery life. At the same time, the MCU quickly responds to optical power anomalies through real-time data judgment and the hardware interrupt mechanism, and transmits the detection results to the core board, thus achieving intelligent response in the low-power state, meeting the requirements of long-term and high-frequency network maintenance, especially suitable for field environments or emergency maintenance scenarios, and improving the reliability and practicality of the device.
[0124] The present invention provides an optical power automatic measurement system implemented based on an installation and maintenance terminal as shown in Figure 2 which 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:
[0125] Low-power task initialization module. The core board sends an instruction to the microcontroller unit to poll optical power data through the communication module, controls the display module of the core board to turn off, and at the same time switches the core board to the low-power sleep mode to reduce the power consumption of the core board;
[0126] Optical power data acquisition module. The microcontroller unit polls and monitors the fiber optic interface through the analog-to-digital converter, acquires optical power data, and temporarily stores the acquired data in the internal cache;
[0127] Optical power anomaly detection and wake-up module. The microcontroller unit judges the acquired optical power data. When it detects that the optical power data exceeds the preset threshold, the microcontroller 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 optic status information to the core board through the communication module;
[0128] Data filtering and preprocessing module. After the core board receives the optical power data transmitted by the microcontroller unit, it uses a filtering algorithm to preprocess the data to eliminate noise interference during the acquisition process, thereby improving the accuracy of optical power measurement;
[0129] Optical power prediction and visualization display module. The core board performs trend analysis on the current optical power data combined with historical data through the built-in optical power prediction algorithm, predicts the optical power change in advance, and calls the graphics rendering algorithm to optimize the display effect of the measurement results, and graphically displays the optical power data and trend prediction on the display module of the core board to provide users with intuitive measurement results and trend information.
[0130] A method for automatically measuring optical power based on an installation and maintenance terminal provided by an embodiment of the present invention is implemented through the above-mentioned system for automatically measuring optical power based on an installation and maintenance terminal. The specific method and process of the system for automatically measuring optical power based on an installation and maintenance terminal are detailed in the embodiments of the above-mentioned method for automatically measuring optical power based on an installation and maintenance terminal, and will not be elaborated here.
[0131] The above formulas are all dimensionless and take their numerical values for calculation. The formulas are obtained by software simulation of a large amount of collected data to get a formula closest to the real situation. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0132] Only some exemplary embodiments of the present invention have been described by way of illustration above. Without doubt, for those of ordinary skill in the art, the described embodiments can be modified in various different ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the protection scope of the claims of the present invention.
[0133] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0134] It should be understood that in various embodiments of the present application, the magnitude of the serial numbers of the above processes does not imply the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0135] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. A professional technician can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0136] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0138] In addition, in various embodiments of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0139] As described above, it is only the specific implementation manner of the present application. However, the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims described above.
[0140] Only some exemplary embodiments of the present invention have been described by way of illustration above. Undoubtedly, for those of ordinary skill in the art, the described embodiments can be modified in various different ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and description are illustrative in nature and should not be construed as limiting the protection scope of the claims of the present invention.
Claims
1. A method for automatically measuring optical power based on an installation and maintenance terminal, characterized in that: The following steps are involved: The core board sends a command to poll the optical power data to the microcontroller unit through the communication module, and controls the display module of the core board to turn off, and at the same time 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 optical fiber 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 it detects that 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; After the core board receives the optical power data transmitted by the microcontroller unit, it uses a filtering algorithm to pre-process the data to eliminate noise interference during the acquisition process, thereby improving the accuracy of optical power measurement; The core board uses the built-in optical power prediction algorithm to perform trend analysis on the current optical power data combined with historical data, predict optical power changes in advance, and call the graphics rendering algorithm to optimize the display effect of the measurement results. The optical power data and trend prediction are graphically displayed on the display module of the core board, providing users with intuitive measurement results and trend information.
2. According to claim 1, a method for automatically measuring optical power based on an installation and maintenance terminal is characterized in that: The core board sends a command to poll the optical power data to the microcontroller unit through the communication module, and controls the display module of the core board to turn off. The specific steps to reduce the energy consumption of the core board are as follows: The core board receives operation instructions through the user interaction interface and generates task instructions containing polling parameters, laying the foundation for the optical power measurement task; The core board uses the communication module to reliably transmit the polling instructions to the microcontroller unit through the standard communication protocol to ensure the integrity of the instructions and the reliability of transmission; After the command is sent, the core board turns off 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 the sleep state, the wake-up signal of the microcontroller unit is monitored through the hardware interrupt mechanism to ensure the real-time response capability of the task in the low-power state.
3. According to claim 1, a method for automatically measuring optical power based on an installation and maintenance terminal is characterized in that: The specific steps of the microcontroller unit polling and monitoring the optical fiber interface through the analog-to-digital converter, collecting optical power data, and temporarily storing the collected data in the internal cache are as follows: After receiving the polling instruction from the core board, the microcontroller unit analyzes the task parameters and initializes the analog-to-digital converter and related modules to prepare for the collection of optical power data; The analog-to-digital converter performs polling monitoring on 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 microcontroller unit; The collected optical power data is temporarily stored in the internal cache of the microcontroller unit and is preliminarily processed to ensure data integrity and task continuity; The microcontroller unit compares the collected optical power data with the set threshold in real time. When an abnormality is detected, it transmits the optical fiber status information to the core board through the wake-up signal and communication module to trigger subsequent processing.
4. According to claim 1, a method for automatically measuring optical power based on an installation and maintenance terminal is characterized in that: The microcontroller unit judges the collected optical power data. 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 status information to the core board through the communication module. The specific steps are as follows: The microcontroller unit reads the optical power data from the cache and pre-processes the data through a filtering algorithm to improve data accuracy; The microcontroller unit compares the pre-processed optical power data with the preset threshold in real time to identify potential anomalies; When it is detected that 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 the optical fiber status information to the core board through the communication module, providing data support for subsequent processing.
5. According to claim 1, a method for automatically measuring optical power based on an installation and maintenance terminal is characterized in that: After the core board receives the optical power data transmitted by the microcontroller unit, it uses a filtering algorithm to pre-process the data 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 sampling value sequence of the optical power, which is recorded as ,in It is The optical power value of the subsample, is the total number of sampling times, is the original optical power sampling value sequence. In order to eliminate the data deviation caused by different power ranges of different optical fiber interfaces, the sampling values are normalized and converted into power values. The normalization formula is as follows: , where is the normalized The optical power value of the subsample, is the minimum optical power value in the original sampling data, is the maximum optical power value in the original sampling data; The optical power value of the sample after normalization 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: , where After filtering, The optical power value of the subsample, is the normalized The optical power value of the subsample, is the weight coefficient in the sliding window, indicating the The weight of the sampled data points, is the half-width of the sliding window.
6. According to claim 5, a method for automatically measuring optical power based on an installation and maintenance terminal is characterized in that: After obtaining the optical power sequence after filtering After that, the core board will dynamically calculate the optical power threshold to achieve real-time anomaly detection. The calculation expression is as follows: , where It is The dynamic optical power threshold of the sub-sample, is the sensitivity coefficient of anomaly detection, It is The sliding mean centered on the sampling time is calculated as follows: , where It is The filtered optical power value after sampling, It is The sliding standard deviation centered on the sampling is calculated as follows: .
7. The method for automatically measuring optical power based on an installation and maintenance terminal according to claim 1 is characterized in that: The core board uses the built-in optical power prediction algorithm to perform trend analysis on the current optical power data combined with historical data, and displays the optical power data and trend prediction graphically on the display module of the core board to provide users with intuitive measurement results and trend information. The specific steps are as follows: After the core board receives the optical power data transmitted by the microcontroller unit, it first preprocesses the currently collected optical power data and the historical optical power data set, and extracts the key features of the optical power change. The algorithms used include weighted sliding average filtering and time window feature extraction. The calculation formula for the filtered optical power data is as follows: , where is the current optical power data after preprocessing, It is The optical power data collected at each time point is is the weighting coefficient at the qth time point, satisfying , is the size of the sliding time window; The core board uses the built-in time series prediction model to perform trend analysis on current and historical optical power data and predict the optical power value for a period of time in the future. The prediction algorithm generates prediction results by dynamically learning the time dependency of optical power changes. The generation formula is as follows: , where It is the predicted The optical power value at a time point, is based on The prediction function of is the historical optical power characteristic sequence in the previous time window, is the prediction time step, is the set of parameters of the model; The core board calls the graphics rendering algorithm to convert the current optical power value , Historical optical power characteristics Predicting trends Perform graphical display and generate a comprehensive optical power change chart. The optimized graphic rendering formula is as follows: , where is the display curve generated by the graphics rendering algorithm. Indicates a point in time, is the current and historical optical power data curve, is the future predicted optical power data curve, is the smoothing correction term, Current and historical optical power data The weight in the final displayed curve, This is the future predicted optical power data curve The weight in the final displayed curve, is the smoothing correction term The weight in the final displayed curve.
8. A system for automatically measuring optical power based on an installation and maintenance terminal, used to implement a method for automatically measuring optical power based on an installation and maintenance terminal as described in any one of claims 1 to 7, characterized in that: It includes low-power task initialization module, optical power data acquisition module, optical power anomaly detection and wake-up module, data filtering preprocessing module and optical power prediction and visualization display module: Low-power task initialization module: the core board sends a command to poll the optical power data to the microcontroller unit through the communication module, and 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 optical power data acquisition module, the microcontroller unit polls and monitors 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; Optical power anomaly detection and wake-up module: The microcontroller unit judges the collected optical power data. When it detects that 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; Data filtering preprocessing module: After the core board receives the optical power data transmitted by the microcontroller unit, it uses the filtering algorithm to preprocess the data to eliminate noise interference during the acquisition process, thereby improving the accuracy of optical power measurement; Optical power prediction and visualization display module: The core board uses the built-in optical power prediction algorithm to perform trend analysis on the current optical power data combined with historical data, predicts optical power changes in advance, and calls the graphics rendering algorithm to optimize the display effect of the measurement results. The optical power data and trend prediction are graphically displayed 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
Optical network health monitoring method, management unit, system and storage medium
CN117376085A
Fiber channel measuring circuit and system
CN117674981A
Optical power monitoring system and method applied to optical fiber
CN118890092A