PON product multi-machine multi-service test method and system and storage medium

Through multi-machine servers and automated testing programs, the PON product multi-machine multi-business testing methods and systems are implemented, solving the problems of low efficiency and error-prone existing testing methods, improving the testing efficiency and reliability of results, and adapting to PON product testing of different scales and types.

CN119537117APending Publication Date: 2025-02-28TAICANG T&W ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411641223.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing PON product testing methods are inefficient and error-prone, the test results are poorly repeatable, and the coverage is not comprehensive, so they cannot meet the automation testing needs of multiple machines and multiple services.

Method used

It provides a multi-machine multi-service testing method and system for PON products. Through multi-machine servers and automated testing programs, it configures the up-and-down timing of AC Source, performs multi-machine multi-service configuration, performs voice and traffic testing, and monitors the status of the equipment in real time, generates test reports, and automatically sends them to designated mailboxes and cloud storage.

Benefits of technology

It improves product testing efficiency and number of random tests, realizes real-time monitoring and problem solving, provides a comprehensive testing solution, adapts to PON product testing of different scales and types, and has good scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537117A_ABST
    Figure CN119537117A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of optical communication, in particular to a PON product multi-machine multi-service testing method and system and a storage medium. The testing method comprises the steps that a device to be tested and a testing environment are prepared, the device to be tested comprises a plurality of PON products, and the testing environment comprises a multi-machine server, an OLT, an AC Source and a network simulation device; configuring a power-on and power-off time sequence of the AC Source, and dynamically adjusting the power-on and power-off time sequence according to the power consumption characteristic of the to-be-tested equipment; and carrying out multi-machine multi-service configuration, including WAN interface, voice interface and VI D distribution. According to the test method, the multi-machine server and the automatic test program are used, so that the test efficiency and the spot test number of the product are greatly improved. Meanwhile, various parameters in the testing process can be monitored in real time through the testing system, and problems can be found and solved in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical communication technology, and in particular to a PON product multi-machine multi-service testing method, system and storage medium. Background Art

[0002] Currently in the field of optical communication technology, PON (Passive Optical Network) is a widely used fiber optic access technology. It uses optical splitters to distribute optical signals to various user terminals. It has the advantages of low cost, high bandwidth, and easy maintenance. In the field of automated testing technology, with the continuous increase in testing needs, automated testing systems have gradually become an important tool in the testing field. It can realize the automation and intelligence of the testing process and improve testing efficiency and accuracy. Due to concerns about various problems with PON products in the use of existing networks, major PON product manufacturers are more concerned about the testing of finished products. These tests are often completed by the quality department of the production line.

[0003] Existing solutions: The production line quality department mainly tests PON products through manual operations, such as manually connecting test equipment and manually configuring test parameters. Although this method can complete the test task, it is inefficient, prone to errors, has poor repeatability of test results, and is not comprehensive. It is impossible to achieve the number and effect of random testing in a short period of time. On the other hand, the production line's automated testing system mainly tests a single device or a single service, and cannot meet the automated testing needs of multiple machines and multiple services. Summary of the invention

[0004] The present invention provides a PON product multi-machine multi-service testing method, system and storage medium to solve the technical problems of low PON product testing efficiency, easy errors, poor repeatability of test results and incomplete coverage.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] On the one hand, a PON product multi-machine multi-service testing method is provided for production line sampling, and the steps of the testing method include:

[0007] Prepare a device to be tested and a test environment, wherein the device to be tested includes multiple PON products, and the test environment includes a multi-machine server, OLT, AC Source, and a network simulation device;

[0008] Configure the power-on and power-off timing of the AC Source, and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test;

[0009] Perform multi-machine and multi-service configuration, including WAN interface, voice interface and VID allocation;

[0010] Perform multi-service tests, including voice tests and traffic tests, and monitor the status of the device under test in real time;

[0011] Generate test reports based on test results and dynamically adjust test parameters to optimize the test process;

[0012] Provides graphical data reports and automatically sends them to designated email addresses and cloud storage.

[0013] On the other hand, a PON product multi-machine multi-service test system is provided for production line sampling, the system comprising:

[0014] A test environment configuration module is used to prepare a device to be tested and a test environment, wherein the device to be tested includes multiple PON products, and the test environment includes a multi-machine server, OLT, AC Source, and a network simulation device;

[0015] The parameter configuration module is used to configure the power-on and power-off timing of the AC Source and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test;

[0016] Service configuration module, used for multi-machine and multi-service configuration, including WAN interface, voice interface and VID allocation;

[0017] Test execution module, used to perform multi-service tests, including voice and traffic tests, and monitor device status in real time;

[0018] Report generation module, used to generate test reports based on test results and dynamically adjust test parameters to optimize the test process;

[0019] The report sending module is used to provide graphical and data reports and automatically send them to designated email addresses and cloud storage.

[0020] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed on an electronic device, it enables the electronic device to execute the multi-machine multi-service testing method for PON products as described above.

[0021] The beneficial effects of the present invention are:

[0022] The testing method of the present invention greatly improves the testing efficiency and the number of random tests of products by using a multi-machine server and an automated testing program. At the same time, the testing system of the present invention can also monitor various parameters in the testing process in real time, and timely discover and solve problems.

[0023] The present invention proposes a multi-machine and multi-service testing method and system for PON products used for production line sampling. By using test computers, multi-machine servers, switches, high and low temperature boxes, AC Source, OLT, flow testers Bigtao, Abacus and other testing instruments, as well as tool software required for PC installation, a system-level test environment is built, which can be solidified in the first time, greatly saving manpower and time costs.

[0024] The test method of the present invention not only performs tests by simulating different working environments and network loads, but also combines the actual working environment and usage scenarios, thereby improving the accuracy and reliability of the test results. At the same time, the test method of the present invention not only tests traffic, voice, etc., but also involves stability, scalability, etc., providing a comprehensive test solution.

[0025] The test method and technical system of the present invention can adapt to the testing of PON products of different scales and types. If there is a need for wifi testing in the future, the control of wifi instruments can also be increased, and it has good scalability. At the same time, the test system of the present invention can also be customized according to the needs to meet the needs of different customers. The present invention encapsulates the API of each instrument through an automated test program. The tester only needs to configure the test requirements to complete the test. The tester is easier to get started with the test and avoids the adverse consequences of human errors on the test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a flow chart of a PON product multi-machine multi-service testing method and system used for production line sampling in one embodiment of the present invention;

[0027] Figure 2 A topological diagram of a PON product multi-machine multi-service testing method and system used for production line sampling inspection in one embodiment of the present invention;

[0028] Figure 3 The figure is a schematic diagram of generating a graphical report based on test results in one embodiment of the present invention. DETAILED DESCRIPTION

[0029] like Figures 1 to 3 As shown, the present invention provides the following preferred embodiments:

[0030] Embodiment 1

[0031] In order to solve the efficiency and accuracy issues of multi-machine multi-service testing of PON products during production line sampling, this embodiment proposes a multi-machine multi-service testing method for PON products for production line sampling to ensure the reliability of the equipment under various test conditions. Specifically, this embodiment provides a detailed description of various links such as preparing the equipment to be tested and the test environment, configuring the power-on and power-off timing of the AC Source, configuring multi-machine multi-service, executing multi-service testing, generating test reports, and providing graphical data reports.

[0032] In this embodiment, the steps of the testing method include:

[0033] S100, prepare the equipment to be tested and the test environment. The equipment to be tested includes multiple PON products, and the test environment includes multiple servers, OLT, AC Source, and network simulation equipment;

[0034] S200, configure the power-on and power-off timing of the AC Source, and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test;

[0035] S300, perform multi-machine multi-service configuration, including WAN interface, voice interface and VID allocation;

[0036] S400, perform multi-service tests, including voice tests and traffic tests, and monitor the status of the device under test in real time;

[0037] S500, generating a test report according to the test results, and dynamically adjusting the test parameters to optimize the test process;

[0038] S600 provides graphical data reports and automatically sends them to designated email addresses and cloud storage.

[0039] In this embodiment, the specific implementation of each step is as follows.

[0040] Prepare the device to be tested and the test environment:

[0041] Specifically, the devices under test include multiple PON products, and the test environment consists of a multi-machine server, OLT (Optical Line Terminal), AC Source (AC power supply) and network simulation equipment. The multi-machine server is used to simultaneously manage and control the test tasks of multiple devices under test to ensure the efficiency of the test process. OLT connects the devices under test through optical fiber, simulates the actual network environment, and verifies the network access capability of the PON product. AC Source is responsible for powering the devices under test and dynamically adjusting the power-on and power-off timing to simulate the power changes in the actual working environment. The network simulation equipment is used to generate and simulate different network traffic and voice calls to verify the performance of PON products under network load and voice services.

[0042] It is important to understand that the selection and configuration of the multi-machine server, OLT, AC Source, and network simulation equipment should be based on the specific requirements of the PON product to be tested. For example, the multi-machine server should have high performance and high concurrency, and be able to handle multiple test tasks at the same time; the OLT should support multi-port access and be able to provide optical signals stably; the AC Source should have a wide voltage and current adjustment range, and be able to adapt to the power consumption requirements of different models of PON products; the network simulation equipment should support a variety of network protocols and voice encoding methods to ensure the comprehensiveness of the test.

[0043] Configure the power-on and power-off sequence of the AC Source:

[0044] Specifically, when configuring the power-on and power-off timing of the AC Source, this embodiment makes dynamic adjustments based on the power consumption characteristics of the device under test. The power consumption characteristic data can be obtained through the technical manual of the device or preliminary testing. By dynamically adjusting the power-on and power-off timing, the stability and reliability of the PON product in different power environments can be ensured. Specifically, the power-on and power-off timing of the AC Source can be set to the following modes: plug-and-play mode, timing mode, and custom mode.

[0045] Furthermore, the plug-and-play mode is used for quick startup testing and is suitable for PON products with relatively stable power consumption characteristics; the timing mode is used to perform power-on and power-off operations according to preset time intervals and is suitable for test scenarios that need to simulate long-term stable operation; the custom mode allows testers to manually adjust the power-on and power-off timing according to actual needs and is suitable for special test scenarios. It should be understood that these three modes can be flexibly switched to meet different test requirements.

[0046] To configure multiple machines and multiple services:

[0047] In this embodiment, the multi-machine multi-service configuration includes WAN interface, voice interface and VID (VLAN ID) allocation. WAN interface configuration is implemented through an automated script, which automatically logs in to each device under test and configures the IP address, subnet mask and gateway information of its WAN interface. Voice interface configuration is also implemented through an automated script to set the parameters required for voice calls, such as SIP server address, registered account, etc. VID allocation allocates a unique VLANID to each device under test according to preset rules, ensuring that each device can be uniquely identified and tested in the network.

[0048] Furthermore, the configuration parameters of the WAN interface and the voice interface need to be adjusted according to the actual network environment to ensure the accuracy of the test results. For example, the IP address of the WAN interface can be set to be dynamically acquired to simulate the DHCP environment in the actual network. The encoding method of the voice interface can select standard encoding formats such as G.711 and G.729 according to the actual usage scenario. It should be understood that the design of the automation script should fully consider the diversity and compatibility of the equipment to ensure the efficiency and accuracy of the configuration process.

[0049] To perform multi-service testing:

[0050] When performing multi-service testing, this embodiment realizes the simultaneous implementation of voice testing and traffic testing through multi-threaded design, thereby improving the testing efficiency. Voice testing mainly verifies the voice call quality of PON products, including parameters such as call clarity, delay, and jitter. Traffic testing mainly verifies the data transmission rate and stability, including parameters such as upstream and downstream bandwidth, packet loss rate, and delay.

[0051] Furthermore, during the test, the system monitors the operating status and test data of each device under test in real time, and dynamically adjusts the test parameters based on the monitoring results. For example, if a device performs poorly under high load, the system can automatically reduce its test duration or number of tests to avoid overheating or damage to the device. It should be understood that the real-time monitoring and dynamic adjustment mechanism can ensure the accuracy and reliability of the test results, while also protecting the safety of the device under test.

[0052] Generate a test report based on the test results:

[0053] In this embodiment, the generation of the test report includes two parts: a detailed test report and a comprehensive score. The detailed test report contains information such as the device ID, test time, and test results of each device under test to ensure the traceability of the test process. The comprehensive score is weighted based on the performance of the device in different test items to ensure the comprehensiveness and objectivity of the score.

[0054] Furthermore, the system automatically calculates the comprehensive score based on the test results and generates a graphical report. The graphical report includes a bar chart, a pie chart, and a line chart, which intuitively displays the test pass status of each device and the overall pass rate. It should be understood that the calculation method of the comprehensive score can use a variety of data analysis techniques to ensure the scientificity and accuracy of the score.

[0055] Provides graphical data reports:

[0056] In this embodiment, the provision and automatic sending mechanism of graphical data reports ensures convenient access and long-term storage of test results. The graphical reports generated by the system include detailed bar charts, pie charts, and line charts, showing the test results of each device and the overall pass rate. These graphical reports are not only intuitive and easy to understand, but also convenient for testers to analyze and summarize.

[0057] Furthermore, the system automatically sends the report and log data to the preset email address and uploads it to the designated cloud storage. It should be understood that this step not only improves the efficiency of report distribution, but also ensures the security and accessibility of the data. It is understandable that the choice of cloud storage should take into account its stability and security to ensure that data will not be lost or leaked.

[0058] The benefits of this embodiment are:

[0059] Through the optimization of this embodiment, the multi-machine multi-service testing method of PON products can significantly improve the test efficiency and accuracy during the production line sampling process. The multi-machine server and customized test script design ensure the simultaneous testing of multiple devices, and the dynamic adjustment mechanism of AC Source ensures the stable operation of the equipment in different power environments. The real-time monitoring and data recording mechanism of multi-service testing ensures the reliability and traceability of the test results. The generated graphical report and automatic sending mechanism improve the distribution efficiency of the test results and the convenience of data management.

[0060] Through this embodiment, testers can more efficiently complete the production line sampling of PON products with multiple machines and multiple services to ensure that product quality meets standard requirements. At the same time, the system's automated design and real-time monitoring mechanism greatly reduce human errors and improve the standardization and normalization level of the test process.

[0061] Embodiment 2

[0062] In order to solve the problem of stability testing of PON products in different power environments during production line sampling, this embodiment further optimizes the steps of configuring the power-on and power-off timing of the AC Source to ensure that the power fluctuations in the actual working environment can be accurately simulated during the test. Specifically, this embodiment improves the comprehensiveness and accuracy of the test by dynamically adjusting the power-on and power-off timing of the AC Source and periodically adjusting the power parameters using a specific formula.

[0063] In this embodiment, when configuring the power-on and power-off timing of the AC Source, first, dynamically adjust the power-on and power-off timing of the AC Source according to the power consumption characteristics and test requirements of the device to be tested. The power consumption characteristic data can be obtained through the technical manual of the device or preliminary testing, and the test requirements are determined according to the requirements of the actual production line sampling. For example, some PON products may be more prone to problems in a high power consumption state, so long-term testing is required in a high power consumption mode. Other devices may perform poorly in a low power consumption state, so multiple power-on and power-off tests are required in a low power consumption mode.

[0064] Furthermore, the specific steps of dynamically adjusting the power-on and power-off timing include: reading the power consumption data of the device under test through an automated test script, and generating the corresponding power-on and power-off timing according to the data. The automated test script can communicate with the AC Source through a network interface to adjust the power-on and power-off timing in real time. It should be understood that this dynamic adjustment mechanism can adapt to different models and batches of PON products, ensuring that each device is tested under its most likely actual usage conditions.

[0065] In this embodiment, in order to more accurately simulate the power fluctuation in the actual working environment, the following expression is used to periodically adjust the power parameter:

[0066] P cycle =P base ×(1+δ×cos(2πf×t+φ)) (1)

[0067] In expression (1), P cycle is the periodically adjusted power parameter, P base is the basic power, δ is the power fluctuation coefficient, f is the fluctuation frequency, t is the fluctuation time, and φ is the initial phase.

[0068] Furthermore, the specific steps of using the above formula to perform periodic adjustment include: first, determining the basic power P base . The basic power can be set according to the average power consumption or maximum power consumption of the device under test. Secondly, determine the power fluctuation coefficient δ, fluctuation frequency f, and initial phase φ. These parameters can be adjusted according to the fluctuations in the actual power environment. For example, if the power fluctuations in the actual environment are large, the power fluctuation coefficient δ can be set larger; if the fluctuation frequency is high, the fluctuation frequency f can be set higher. It should be understood that the selection of these parameters should be based on the actual test requirements and equipment characteristics to ensure the reliability and accuracy of the test results.

[0069] In the specific implementation, AC Source needs to have the ability to receive and execute periodic power adjustment instructions. This can be achieved through hardware design and software programming. In terms of hardware design, AC Source should have a high-precision power adjustment module that can accurately output the required power value. In terms of software programming, a special power adjustment script can be written to communicate with AC Source through a network interface to adjust power parameters in real time. It should be understood that the power adjustment script should have strong robustness and flexibility to adapt to different test scenarios and equipment characteristics.

[0070] Furthermore, the power adjustment script can be written in programming languages ​​such as Python, using its powerful mathematical library for formula calculation. For example, the NumPy library can be used to calculate trigonometric functions to ensure high accuracy of the calculation results. At the same time, the script can integrate logging functions to record the parameters and time of each power adjustment in real time for subsequent analysis and debugging. It can be understood that this integrated design not only improves the degree of test automation, but also ensures the integrity and traceability of test data.

[0071] During the test, the system monitors the operating status and power parameters of each device under test in real time. The real-time monitoring data includes the power consumption, temperature, voltage and current of the device. These data can be obtained from the device and ACSource through the network interface and stored in the multi-machine server. It should be understood that the real-time monitoring mechanism can promptly detect abnormal conditions of the device under power fluctuations to ensure the smooth progress of the test process.

[0072] Furthermore, if a device is detected to perform poorly under specific power fluctuation conditions, the system can automatically adjust its power-on and power-off timing or power parameters to optimize the test process. For example, if a device frequently restarts or experiences other failures under high power fluctuation conditions, the system can reduce the power fluctuation coefficient δ to reduce the fluctuation amplitude. It should be understood that this dynamic adjustment mechanism can ensure that each device is tested under optimal test conditions, improving the accuracy and reliability of the test results.

[0073] During the test, the system not only records the operating status of each device under test, but also records the specific parameters and time of each power adjustment. These data are stored in the database of the multi-machine server for subsequent analysis and debugging. It should be understood that the detailed data recording mechanism can provide testers with rich test data to help them more comprehensively evaluate the performance and stability of the equipment.

[0074] Furthermore, the data logging mechanism can be integrated with the graphical report generation module to automatically generate detailed reports containing the results of each power adjustment. These reports not only contain the operating status and test results of the equipment, but also show the adjustment process and effect of the power parameters. It can be understood that this integrated design makes the test results more intuitive and comprehensive, which helps testers to conduct in-depth analysis and optimization.

[0075] The benefits of this embodiment are:

[0076] Through the optimization of this embodiment, the steps of configuring the power-on and power-off timing of the AC Source can more accurately simulate the power fluctuations in the actual working environment, improving the comprehensiveness and accuracy of the multi-machine and multi-service testing of PON products. The dynamic adjustment mechanism ensures that each device is tested under its most likely actual use conditions, and the periodic power adjustment formula provides a scientific method to simulate power fluctuations. The benefit of this embodiment is that testers can complete the production line sampling of PON products more efficiently and ensure the stability and reliability of the equipment in various power environments. At the same time, the real-time monitoring and dynamic adjustment mechanism of the system greatly reduces human errors and improves the standardization and normalization level of the testing process. Through this embodiment, the test results of the production line sampling are more reliable and the product quality is effectively guaranteed.

[0077] Embodiment 3

[0078] In order to solve the efficiency and accuracy issues of multi-machine and multi-service configuration of PON products during production line sampling, this embodiment further optimizes the steps of multi-machine and multi-service configuration to ensure that each device under test can be uniquely identified and normally connected to the network during the configuration process. Specifically, this embodiment uses the Robot script to automatically log in and configure the WAN interface and voice interface of each device under test, and automatically allocates VID according to the preset VID rules, and automatically registers each device under test on the OLT and configures the corresponding service VID.

[0079] In this embodiment, the step of performing multi-machine multi-service configuration first includes using a Robot script to automatically log in to each device under test. A Robot script is an automated test script that completes complex configuration tasks by simulating human operations. Specifically, the Robot script establishes a connection with the device under test through the Telnet or SSH protocol, and then executes a preset configuration command.

[0080] Furthermore, the configuration of the WAN interface includes the settings of the IP address, subnet mask, and gateway. The IP address is used to uniquely identify the device in the network, the subnet mask is used to define the subnet range where the device is located, and the gateway is used to specify the path for the device to access the external network. It should be understood that these configuration parameters should be adjusted according to the actual network environment and test requirements. For example, the IP address can be set to dynamically obtain to simulate the DHCP environment in the actual network; the gateway can be set to a multi-machine server in the test environment to centrally manage and monitor the network connection status of the device.

[0081] In order to ensure the efficiency and accuracy of the configuration process, the Robot script needs to have the following functions: First, the script can automatically select the appropriate configuration command according to the model and version of the device; second, the script can monitor the response of the device in real time during the configuration process to ensure that each configuration step can be successfully executed. It is understandable that the writing and debugging of the script should fully consider the compatibility and diversity of the device to avoid configuration failures due to the particularity of individual devices.

[0082] After completing the WAN interface configuration, this embodiment automatically assigns a VID to each device under test according to the preset VID rule to ensure that each device can be uniquely identified and tested in the network. VID (VLAN ID) is an identifier used to divide virtual local area networks. By assigning different VIDs, multiple devices under test can be isolated in different virtual networks to avoid mutual interference.

[0083] Furthermore, the preset VID rules can be set according to the device model, batch or test group. For example, continuous VIDs can be assigned to devices of the same model to simplify test configuration; different VID ranges can also be assigned to devices in different test groups to centrally manage and analyze test results. It should be understood that the allocation of VIDs should ensure the uniqueness of each device in the network to avoid test failures due to VID conflicts.

[0084] To achieve automatic VID assignment, the system can use a central management database to store and manage VID information. The database can record the VID assignment of each device so that an unused VID can be automatically selected when a new device is added to the test. It is understood that the database should be designed with efficient data access and management capabilities to ensure that the VID assignment process is fast and accurate.

[0085] In this embodiment, after the WAN interface and VID of the device under test are assigned, each device under test is automatically registered on the OLT and the corresponding service VID is configured. OLT (Optical Line Terminal) is a terminal device in the optical network, which is used to manage and control the optical fiber access network. By registering the device on the OLT and configuring the service VID, it can be ensured that each device under test can access the network normally and perform service testing.

[0086] Furthermore, the specific steps of automatically registering and configuring the service VID include: first, establishing a connection with the OLT through the SNMP protocol, and then executing a preset registration command. The registration command contains the MAC address, IP address and VID information of the device under test. It should be understood that this information should be consistent with the previously configured WAN interface and VID information to ensure that the device can be successfully registered with the OLT.

[0087] When configuring a service VID, you can set it according to the service requirements of the device. For example, if a device is mainly used for voice service testing, you can configure a specific voice service VID for it on the OLT; if a device is mainly used for data transmission testing, you can configure a data transmission service VID for it. It should be understood that the configuration of the service VID should ensure that each device can correctly receive and send the corresponding service data in the network to avoid service confusion or loss.

[0088] In order to ensure the efficiency and accuracy of the registration and configuration process, the system can use a dedicated automation script to interact with the OLT. The script can define the registration and configuration process and parameters, communicate with the OLT through the network interface, and monitor the registration and configuration results in real time. It can be understood that this automated design not only improves configuration efficiency, but also reduces human errors and ensures the normal operation of each device.

[0089] Monitoring and adjustment during implementation

[0090] During the multi-machine multi-service configuration process, the system monitors the status of each device under test and OLT in real time to ensure the smooth progress of the configuration process. The monitored data includes the login status of the device, the execution results of the configuration command, the registration status of the OLT and the status of the service VID configuration. These data are transmitted to the multi-machine server in real time through the network interface and stored in the database.

[0091] Furthermore, if a device or OLT is detected to be abnormal during the configuration process, the system can automatically perform troubleshooting and adjustments. For example, if a device fails to log in successfully, the system can retry the login or check the network connection; if a device fails to register with the OLT successfully, the system can check whether the configuration parameters are correct or re-execute the registration command. It should be understood that this real-time monitoring and adjustment mechanism can promptly discover and solve problems in the configuration process to ensure the smooth progress of the test.

[0092] In order to further improve the efficiency and accuracy of the test, the multi-machine multi-service configuration steps in this embodiment can be integrated with other test steps. For example, the parallel configuration of multiple devices can be realized through multi-threaded design to improve the configuration speed; the test task can also be started immediately after the configuration is completed to reduce manual intervention. It should be understood that this integrated design not only simplifies the test process, but also improves the overall efficiency of the test.

[0093] Furthermore, the system can be scalable to support new device models and business types. For example, new device models and test parameters can be dynamically loaded through configuration files to ensure that the system can adapt to changing test requirements. It is understandable that this scalability design allows the system to continue to be used in the future without requiring extensive redevelopment and debugging.

[0094] The benefits of this embodiment are:

[0095] Through the optimization of this embodiment, the steps of multi-machine and multi-service configuration of PON products can significantly improve the efficiency and accuracy of testing during the production line sampling process. Use Robot scripts to automatically log in and configure the WAN interface and voice interface to ensure that the configuration steps of each device can be completed efficiently and accurately; automatically assign VIDs according to preset VID rules to ensure that each device can be uniquely identified and tested in the network; automatically register each device on the OLT and configure the corresponding service VID to ensure that each device can access the network normally and perform service testing. The benefit of this embodiment is that testers can complete the configuration work more efficiently, ensure that each device is tested in the optimal network environment, and improve the reliability and consistency of the test results. Through this embodiment, the test process of production line sampling is more automated and standardized, effectively ensuring product quality.

[0096] Embodiment 4

[0097] In order to solve the problem of efficiency and accuracy of multi-machine and multi-service testing of PON products during production line sampling, this embodiment further optimizes the steps of performing multi-service testing. Specifically, this embodiment performs voice testing and traffic testing simultaneously through multi-threaded design according to the preset test duration and test times, monitors the test status of each device under test in real time, records the test results, and calculates the comprehensive score of each device according to the weighted algorithm, and dynamically adjusts the test duration and test times according to the real-time monitored device status and environmental parameters.

[0098] In this embodiment, voice test and traffic test are performed simultaneously through multi-thread design, which significantly improves the test efficiency. Multi-thread design allows multiple test tasks to be executed in parallel, making full use of the computing resources of multi-machine servers. Specifically, the test task of each device under test is assigned to an independent thread, and each thread is responsible for executing a specific type of test task, such as voice test or traffic test.

[0099] Furthermore, multi-threaded design not only improves test efficiency, but also ensures the isolation and stability of test tasks. Each thread independently manages its resources and data when executing test tasks, avoiding resource competition and data conflicts. It should be understood that the design of multi-threading should take into account the safety and synchronization mechanisms of threads to ensure the accuracy and reliability of test results. For example, mutex locks and conditional variables can be used to manage synchronization between threads to ensure that each thread can correctly execute its test tasks.

[0100] During the multi-service test, the system monitors the test status of each device under test in real time to ensure the smooth progress of the test task. The monitored data includes the device's power consumption, temperature, network connection status, voice call quality, and data transmission rate. These data are obtained from the device and the test environment through the network interface and transmitted to the multi-machine server in real time for processing and storage.

[0101] Furthermore, the real-time monitoring mechanism can promptly detect abnormal conditions of the device during the test process and take corresponding measures. For example, if the power consumption of a device increases abnormally, the system can suspend its test task and conduct troubleshooting; if there is a problem with the network connection of a device, the system can automatically try to reconnect or adjust the network parameters. It should be understood that real-time monitoring can not only improve the reliability of the test, but also protect the physical safety of the device and avoid damage to the device due to overheating or other problems.

[0102] During the test, the system records the test results of each device under test in real time, including the specific data of voice test and traffic test. The recorded data is stored in the database of the multi-machine server for subsequent analysis and report generation. Specifically, the voice test data includes parameters such as call clarity, delay, and jitter; the traffic test data includes parameters such as uplink and downlink bandwidth, packet loss rate, and delay.

[0103] Furthermore, the recorded test results contain not only the specific test data, but also information such as the timestamp of the test, the ID of the test task, and the ID of the device. This information ensures the traceability and reliability of the test results. It should be understood that the design of the database should consider efficient storage and fast access to data to ensure the integrity and accuracy of the test data. For example, a relational database (such as MySQL) can be used to store test results, and data access speed can be improved through indexing and query optimization.

[0104] Calculate the overall score for each device based on a weighted algorithm

[0105] Based on the recorded test results, the system calculates the comprehensive score of each device under test through a weighted algorithm. The weighted algorithm assigns corresponding weight values ​​according to the importance of different test items and test data, and then calculates the comprehensive score. Specifically, you can set weight values ​​for voice test and traffic test separately, for example, the weight value of voice test is 0.6, and the weight value of traffic test is 0.4.

[0106] Furthermore, the calculation formula of the comprehensive score can be expressed as:

[0107] Comprehensive score = (voice test score × voice test weight) + (traffic test score × traffic test weight) Comprehensive score = (voice test score × voice test weight) + (traffic test score × traffic test weight)

[0108] Among them, the voice test score and traffic test score can be scored based on the specific test results. For example, the call clarity score can be evaluated based on the standard of voice call quality; the data transmission rate score can be evaluated based on the standard of network bandwidth. It should be understood that the calculation method of the comprehensive score should be adjusted according to the actual test requirements and equipment characteristics to ensure the scientificity and accuracy of the score.

[0109] In this embodiment, the system dynamically adjusts the test duration and number of tests based on the real-time monitored device status and environmental parameters. Specifically, if a device is detected to perform poorly under specific test conditions, the system will automatically extend its test duration or increase the number of tests to ensure the accuracy of the test results. For example, if a device frequently loses packets or restarts under high load, the system can double the duration of its traffic test or increase the number of tests by one.

[0110] Furthermore, the dynamic adjustment mechanism can be divided into two parts: one is the adjustment of test duration, and the other is the adjustment of test times. The adjustment of test duration can be achieved by adjusting the execution time of multi-threaded tasks; the adjustment of test times can be achieved by adjusting the execution frequency of the task scheduler. It should be understood that this dynamic adjustment mechanism can adapt to different test scenarios and device characteristics, ensuring that each device can be tested under the most appropriate conditions.

[0111] In order to achieve dynamic adjustment, the system can set up a decision module, which makes judgments based on real-time monitoring data and preset thresholds. For example, if the packet loss rate of the device exceeds the preset threshold, the decision module will automatically extend its test time; if the temperature of the device exceeds the preset safety range, the decision module will suspend its test task and wait for the temperature to drop before resuming the test. It is understandable that the design of the decision module should be highly intelligent and flexible, and be able to make reasonable adjustment decisions based on different monitoring data.

[0112] During the test, the system not only monitors the operating status of the equipment in real time, but also monitors the parameters of the test environment, such as network load, power fluctuations, etc. These environmental parameters are also obtained from the test environment through the network interface and transmitted to the multi-machine server in real time for processing and storage.

[0113] Furthermore, the monitoring of environmental parameters can provide more references for the analysis of test results. For example, if the network load is high during a certain period of time, the system can record the test data of this period of time and mark it when generating the test report so that the tester can understand the background information of the test results. It should be understood that the monitoring and recording mechanism of environmental parameters can improve the comprehensiveness and reliability of test results and help testers more accurately evaluate the performance of equipment.

[0114] The benefits of this embodiment are:

[0115] Through the optimization of this embodiment, the multi-machine multi-service testing method of PON products can significantly improve the test efficiency and accuracy during the production line sampling process. The multi-threaded design enables voice testing and traffic testing to be performed simultaneously, making full use of the computing resources of multi-machine servers and improving the parallelism of test tasks. The real-time monitoring mechanism can promptly detect and handle abnormal conditions of the equipment during the test process to ensure the smooth progress of the test. The weighted algorithm of the comprehensive score provides a scientific method to evaluate the performance of the equipment and ensure the accuracy and objectivity of the score. The mechanism for dynamically adjusting the test duration and the number of tests can be reasonably adjusted according to the equipment status and environmental parameters to ensure that each device can be tested under the most appropriate conditions.

[0116] Through this embodiment, testers can complete the production line sampling inspection of PON products more efficiently to ensure that the product quality meets the standard requirements. At the same time, the automated design and real-time monitoring mechanism of the system greatly reduce human errors and improve the standardization and normalization level of the testing process. Through this embodiment, the test results of the production line sampling inspection are more accurate and reliable, effectively ensuring the stability and reliability of the product.

[0117] Embodiment 5

[0118] In order to solve the problem of managing and analyzing the test results of multiple machines and multiple services of PON products during the production line sampling process, this embodiment further optimizes the steps of generating test reports based on the test results. Specifically, this embodiment automatically generates a test report for each device under test, including the device ID, test time, test results and comprehensive score information; calculates the overall pass rate according to expression (2) and evaluates the test results of all devices under test; generates a graphical report, using bar charts, pie charts and line charts to display the test results and overall pass rate of each test device; automatically sends the report and log data to the specified mailbox, and uploads it to the cloud storage to ensure the security and accessibility of the test report.

[0119] In this embodiment, the step of generating a test report according to the test results first includes automatically generating a test report for each device under test. The data source of the test report is a database in a multi-machine server, which stores detailed test information of each device, including device ID, test time, test results, and comprehensive scores. Specifically, the system reads the data in the database through an automated script and generates a test report according to a preset template.

[0120] Furthermore, automation scripts can be written in programming languages ​​such as Python, using its rich library functions and template engines (such as Jinja2) to generate test reports in a standardized format. It should be understood that the template of the test report should be designed according to the actual test requirements and corporate standards to ensure that the information in the report is comprehensive and easy to understand. For example, the test report can be divided into four parts: device information, test environment, test results, and comprehensive score, each with detailed instructions and data display.

[0121] In order to evaluate the test results of all devices under test, this embodiment uses the following expression to calculate the overall pass rate:

[0122]

[0123] In expression (2), R overall is the overall passing rate, N pass is the number of devices that passed the test, S device,i is the comprehensive score of the i-th device, N total is the total number of tested devices.

[0124] Furthermore, the steps of calculating the overall pass rate include: first, reading the test results and comprehensive scores of all devices from the database; second, calculating the overall pass rate according to the formula. It should be understood that the calculation method of the overall pass rate takes into account the test results and comprehensive scores of the devices, and can more comprehensively evaluate the overall performance and stability of the product. For example, the more devices that pass the test, the higher the comprehensive score, and the higher the overall pass rate.

[0125] In order to improve the accuracy and efficiency of calculations, the system can use high-performance computing modules (such as multi-threading or distributed computing) to process large amounts of test data. It is understood that high-performance computing modules can significantly reduce calculation time and ensure that accurate overall pass rates are generated in a short time.

[0126] In the process of generating the test report, the system also generates a graphical report, using a variety of charts such as bar charts, pie charts and line charts to display the test results and overall pass rate of each test device. Specifically, the bar chart is used to display the comprehensive score of each device, the pie chart is used to display the ratio of devices that passed and failed the test, and the line chart is used to display the change trend of the overall pass rate over time.

[0127] Furthermore, the steps of generating a graphical report include: first, reading the required data from the database, such as device ID, comprehensive score, test time, and test results; second, using data visualization tools (such as Matplotlib or Plotly) to generate various charts; and finally, embedding the charts into the test report. It should be understood that the design of the chart should be clear and intuitive, and be able to quickly convey the key information of the test results. For example, different colors can be used in bar charts to distinguish between passed and failed devices, specific percentages can be marked in pie charts, and key time nodes can be displayed in line charts.

[0128] In order to ensure the professionalism and usability of graphical reports, the system can provide a variety of chart styles and layout options. For example, testers can choose vertical or horizontal bar charts as needed, and choose different color schemes and label styles. It is understandable that this flexible design can meet the preferences and needs of different testers and improve the readability and user experience of the report.

[0129] In order to improve the security and accessibility of the test report, this embodiment automatically sends the generated test report and log data to a designated mailbox and uploads them to cloud storage. Specifically, after the test report and log data are generated, they are automatically sent to relevant personnel via an email service and uploaded to a cloud storage server via FTP or SFTP protocol.

[0130] Furthermore, the steps of automatically sending reports and log data include: first, the system generates test reports and log data files; second, the email service is called through the API to send the files to the designated recipient; finally, the files are uploaded to the cloud storage through the network interface. It should be understood that the selection of email services and cloud storage should be based on the actual needs and security standards of the enterprise. For example, an enterprise-level email service (such as Exchange or Outlook) can be used to ensure timely delivery and secure transmission of emails; a cloud storage service with high reliability and security (such as Amazon S3 or Azure Blob Storage) can be used to ensure secure storage and access to data.

[0131] In order to improve data security, the system can also adopt data encryption and access control mechanisms. For example, use SSL / TLS protocol to encrypt data transmission to ensure the security of data during transmission; use access keys and permission management to ensure that only authorized personnel can access data stored in the cloud. It is understandable that these security measures can effectively protect the privacy and integrity of test data and avoid data leakage and tampering.

[0132] The benefits of this embodiment are:

[0133] Through the optimization of this embodiment, the multi-machine multi-service testing method for PON products can significantly improve the management and analysis capabilities of test results during the production line sampling process. Automatically generate test reports for each device under test to ensure the integrity and standardization of test information; use specific formulas to calculate the overall pass rate, comprehensively evaluate the test results of all devices, and provide a more comprehensive performance evaluation; generate graphical reports, use a variety of charts to display test results and overall pass rates, and improve the readability and intuitiveness of reports; automatically send reports and log data to a designated mailbox and upload them to cloud storage to ensure the security and accessibility of test data.

[0134] Through this embodiment, testers can more efficiently complete the generation and distribution of test reports, ensuring that the test results of each device can be recorded in detail and accurately evaluated. At the same time, the design of the graphical report makes the test results more intuitive, which is convenient for testers and related personnel to quickly understand and analyze. Cloud storage and data encryption mechanisms ensure the security and integrity of test data and avoid the risk of data leakage and loss. Through this embodiment, the test process of production line sampling is more automated and standardized, effectively improving the reliability and consistency of test results.

[0135] Embodiment 6

[0136] In order to improve the test efficiency and data accuracy during the multi-machine and multi-service testing of PON products, this embodiment further optimizes the steps of performing multi-service testing. Specifically, this embodiment starts the voice service test through an automated script to verify the voice call quality; at the same time, it starts the traffic service test to verify the data transmission rate; during the test, it records the operating status and test data of each PON product in real time; analyzes these data and dynamically adjusts the test parameters.

[0137] In this embodiment, the voice service test is started by an automated script to verify the voice call quality of the PON product. Specifically, the automated script establishes a connection with the device under test through the Telnet or SSH protocol, and then executes preset voice test commands. These commands may include making a test call, transmitting a voice file, and recording call quality parameters.

[0138] Furthermore, the test parameters of voice call quality include but are not limited to call clarity, delay, jitter and packet loss rate. It should be understood that these parameters can comprehensively evaluate the quality of voice calls and ensure that the device can provide stable and reliable voice services in actual use. For example, call clarity can be evaluated by MOS (Mean Opinion Score), and delay and jitter can be measured by network transmission time.

[0139] To ensure the efficiency and accuracy of voice service testing, the script can be designed to automatically select the appropriate test command according to the model and version of the device. For example, for different models of PON equipment, the script can call different voice test tools and parameters. It can be understood that this adaptive design can adapt to the testing needs of different devices, reducing test time and human errors.

[0140] While starting the voice service test, this embodiment also starts the traffic service test through an automated script to verify the data transmission rate of the PON product. Specifically, the steps of the traffic service test include generating test traffic, transmitting data files, and recording the transmission rate.

[0141] Furthermore, the test parameters of data transmission rate include uplink bandwidth, downlink bandwidth, packet loss rate and latency. It should be understood that these parameters can comprehensively evaluate the quality and efficiency of data transmission and ensure that the device can provide high-speed and stable data transmission services in actual use. For example, uplink and downlink bandwidth can be measured by transferring large files, and packet loss rate and latency can be evaluated by network performance testing tools (such as iperf).

[0142] In order to ensure the efficiency and accuracy of traffic business testing, the script can be designed to dynamically adjust the size and type of test traffic according to the status of the device. For example, if the device performs poorly under high load, the script can reduce the test traffic to avoid overheating or damage to the device. It can be understood that this dynamic adjustment mechanism can adapt to different test environments and device characteristics, ensuring the reliability and consistency of test results.

[0143] During the multi-service test, the system records the operating status and test data of each PON product in real time to ensure the transparency of the test process and the integrity of the data. Specifically, the real-time recorded data includes the device's power consumption, temperature, network connection status, voice call quality, and data transmission rate.

[0144] Furthermore, the real-time recorded data is obtained from the device under test and the test environment through the network interface, and is transmitted to the multi-machine server in real time for processing and storage. It should be understood that the real-time recording of these data can help testers to promptly discover and handle abnormal conditions of the device during the test. For example, if the temperature of a device exceeds the preset safety range, the system can automatically pause its test task and wait for the temperature to drop before resuming the test.

[0145] In order to improve the efficiency and accuracy of data recording, the system can use an efficient database management system (such as MongoDB or InfluxDB) to store real-time data. These database management systems have fast data insertion and query capabilities and can handle large amounts of real-time data streams. It is understandable that an efficient data management system is the key to achieving real-time recording, ensuring the timeliness and integrity of the data.

[0146] The system analyzes the recorded data during the test and dynamically adjusts the test parameters based on the analysis results to improve the accuracy of the test results. Specifically, the system can set up a decision module that makes judgments based on the operating status of the device and the test data and adjusts the corresponding test parameters. For example, if a device is detected to frequently experience packet loss under high load, the system can reduce its test traffic or extend the test duration to more accurately evaluate its performance.

[0147] Furthermore, the analysis method of the decision module can be based on a machine learning algorithm or a statistical analysis method. For example, a decision tree algorithm can be used to generate an adjustment strategy based on the device's state parameters (such as power consumption, temperature) and test data (such as packet loss rate, delay); or a statistical analysis method can be used to dynamically adjust the test parameters based on the changing trends of historical test data and current data. It should be understood that the design of the decision module should be flexible and adaptable to different test scenarios and device characteristics.

[0148] In order to ensure the rationality and scientificity of the test parameter adjustment, the system can set a set of preset thresholds and adjustment rules. For example, if the packet loss rate of the device exceeds 5%, the system can reduce its test traffic by 20%; if the temperature of the device exceeds 70°C, the system can suspend its test task and wait for the temperature to drop before resuming the test. It is understandable that these thresholds and adjustment rules should be set according to the actual test requirements and device characteristics to ensure that the adjustment of test parameters can improve the accuracy of test results.

[0149] The benefits of this embodiment are:

[0150] Through the optimization of this embodiment, the multi-machine multi-service testing method of PON products can significantly improve the efficiency and accuracy of testing during the production line sampling process. The automated script starts the voice service test and the traffic service test to ensure the efficient execution of the test tasks; the operating status and test data of each PON product are recorded in real time to ensure the transparency of the test process and the integrity of the data; the data are analyzed and the test parameters are dynamically adjusted to ensure that each device can be tested under the most appropriate conditions.

[0151] The benefit of this embodiment is that testers can complete test tasks more efficiently and ensure that the test results of each device can be recorded in detail and accurately evaluated. At the same time, the real-time recording and dynamic adjustment mechanism can promptly detect and handle abnormal conditions of the device during the test process, avoiding the failure of the entire test due to the failure of individual devices. Through this embodiment, the test results of the production line sampling are more accurate and reliable, effectively ensuring the stability and performance of the product. In addition, the automated scripts and efficient data management system make the test process more standardized, reduce human intervention, and improve the standardization level of the test.

[0152] Embodiment 7

[0153] In order to solve the problem of test result display and data management during the multi-machine and multi-service testing of PON products, this embodiment further optimizes the steps of providing graphical data reports. Specifically, this embodiment generates a graphical report containing a summary of the test results, uses a bar chart to display the test pass status of each PON product, and uses a pie chart to display the overall pass rate; provides a test data report, including the test log, error information and comprehensive score of each PON product; automatically sends the test data report to a preset email address and uploads it to a specified cloud storage to ensure the traceability of the test data report.

[0154] In this embodiment, the system generates a graphical report containing a summary of the test results, which displays the test results in an intuitive and efficient manner. Specifically, the graphical report is divided into two main parts: one is to use a bar chart to display the test pass status of each PON product, and the other is to use a pie chart to display the overall pass rate.

[0155] Furthermore, the bar chart is designed to show the test pass status of each PON product, where each column represents a device to be tested, and the height of the column represents the comprehensive score of the device. The color of the column can be different to distinguish between the passed and failed devices, for example, the passed device is represented by green and the failed device is represented by red. It should be understood that this design makes the test results clear at a glance, which is convenient for testers to quickly understand the test status of each device. The device ID and specific test time can also be added to the bar chart to ensure the integrity and traceability of the information.

[0156] The pie chart is used to show the overall pass rate, where each part of the pie chart represents the proportion of devices that passed and failed. Specifically, the proportion of devices that passed can be represented by green, and the proportion of devices that failed can be represented by red. It can be understood that the pie chart can intuitively display the overall test results and help testers quickly evaluate the overall quality of the product. The pie chart can also mark the specific pass rate value, for example, the proportion of devices that passed is 75%, and the proportion of devices that failed is 25%.

[0157] In order to generate accurate and beautiful graphical reports, the system can use professional data visualization tools such as Matplotlib or Plotly. These tools provide a rich selection of chart styles and layouts to meet the preferences and needs of different testers. It should be understood that choosing the right data visualization tool is crucial to improving the professionalism and readability of the report. For example, Matplotlib supports the generation of high-quality static charts, while Plotly supports the generation of interactive dynamic charts, and users can click on the chart to view detailed information.

[0158] In this embodiment, the system generates a detailed test data report, including the test log, error information and comprehensive score of each PON product. Specifically, the content of the test data report includes basic information of the device (such as device ID, model, version number), test environment (such as network load and power supply during the test), detailed test results (such as voice call quality parameters, data transmission rate parameters) and comprehensive score.

[0159] Furthermore, the test log records the detailed operation and status changes of each device during the test, including the start time, end time, test command execution status, and network connection status. Error information records any abnormal conditions that occur during the test, such as device restarts, network interruptions, and data errors. It should be understood that detailed test logs and error information can help testers understand the test process more comprehensively and discover and solve problems in a timely manner. For example, the test log can record the execution time and return results of each test command, and the error information can record the specific error code and description.

[0160] In order to ensure the standardization and readability of the test data report, the system can use a special data report template. For example, the report template can be divided into four parts: equipment information, test environment, test results, and comprehensive score, each of which has detailed information display and description. It is understandable that a standardized report template can improve the professionalism and consistency of the report and reduce human errors.

[0161] In order to ensure the timeliness and traceability of the test data report, this embodiment automatically sends the test data report to a preset email address and uploads it to the designated cloud storage. Specifically, after the system generates the test report, it calls the API of the email service to send the report to the preset recipient email address. At the same time, the system uploads the report and related test log data to the designated cloud storage service through the network interface.

[0162] Furthermore, the choice of email service should be based on the actual needs and security standards of the enterprise. For example, you can use enterprise-level email services (such as Exchange or Outlook) to ensure timely delivery and secure transmission of emails. The choice of cloud storage services should also consider their reliability and security. For example, you can use Amazon S3 or Azure BlobStorage, which provide high reliability and data encryption functions to ensure secure storage and access to data.

[0163] In order to improve data security, the system can also use data encryption and access control mechanisms. For example, use SSL / TLS protocol to encrypt data transmission to ensure the security of data during transmission; use access keys and permission management to ensure that only authorized personnel can access data stored in the cloud. It should be understood that these security measures can effectively protect the privacy and integrity of test data and avoid the risk of data leakage and tampering.

[0164] In addition, the system can set up a regular backup mechanism to regularly back up the data stored in the cloud to different storage media or locations to ensure the long-term preservation and recovery capabilities of the data. It is understandable that regular backup can further improve the security and reliability of data and reduce the risk of data loss.

[0165] The benefits of this embodiment are:

[0166] Through the optimization of this embodiment, the multi-machine multi-service testing method for PON products can significantly improve the display and management capabilities of test results during the production line sampling process. Generate a graphical report containing a summary of the test results, and use bar charts and pie charts to intuitively display the test pass status and overall pass rate of each device, helping testers and related personnel to quickly understand the key information of the test results. Provide a detailed test data report, including the test log, error information and comprehensive score of each PON product, to ensure the integrity and traceability of the test information. Automatically send reports and upload to cloud storage to ensure the security and timeliness of test data, and facilitate subsequent analysis and report generation.

[0167] The benefit of this embodiment is that testers can complete the generation and distribution of test reports more efficiently, ensuring that the test results of each device can be recorded in detail and accurately evaluated. At the same time, the design of the graphical report makes the test results more intuitive, which is convenient for relevant personnel to quickly understand and analyze. The automated sending and cloud storage mechanism ensures the security and long-term preservation of the test data, avoiding the risk of data loss. Through this embodiment, the test process of production line sampling is more automated and standardized, effectively improving the reliability and consistency of the test results. In addition, the design and implementation of the system take into account various technical details and safety measures to ensure the efficiency and scientificity of the test method.

[0168] Embodiment 8

[0169] In order to solve the problem of stable operation of the device under test in different environments during the multi-machine and multi-service testing of PON products, this embodiment further optimizes the steps of configuring the power-on and power-off timing of the AC Source. Specifically, this embodiment dynamically adjusts the voltage and current output of the AC Source according to the power consumption characteristics and ambient temperature of the device under test to ensure the stable operation of the device under test in different environments; monitors the output status of the AC Source in real time, and automatically adjusts the power-on and power-off timing according to the monitoring results to ensure the safety and accuracy of the test process.

[0170] In this embodiment, the steps of configuring the power-on and power-off timing of the AC Source include not only fixed voltage and current output settings, but also dynamically adjusting the voltage and current output of the AC Source according to the power consumption characteristics and ambient temperature of the device under test. Specifically, before the test, the system obtains the power consumption characteristics and ambient temperature information of the device under test through preset sensors and monitoring modules, and adjusts the output parameters of the AC Source according to this information.

[0171] Furthermore, the acquisition of power consumption characteristics can be achieved through the device's built-in current and voltage sensors, and the ambient temperature information can be obtained through ambient temperature and humidity sensors or other external monitoring devices. It should be understood that power consumption characteristics and ambient temperature are important factors affecting the stable operation of the device. By dynamically adjusting the output parameters of the AC Source, it can be ensured that the device can work normally under various environmental conditions. For example, if the power consumption characteristics of the device indicate that it requires a higher current under high load, the system can appropriately increase the current output; if the ambient temperature is high, the system can appropriately reduce the voltage output to avoid overheating of the device.

[0172] In order to achieve this dynamic adjustment, the system can adopt a closed-loop control mechanism. Specifically, the closed-loop control mechanism includes three links: sensor data acquisition, data processing, and parameter adjustment. The sensor collects the current, voltage, and temperature data of the device in real time. The data processing module calculates the appropriate voltage and current output parameters based on these data, and the parameter adjustment module adjusts the output of the AC Source based on the calculation results. It can be understood that the closed-loop control mechanism can provide real-time feedback and adjustments to ensure that the device always operates under optimal conditions.

[0173] During the test, the system monitors the output status of the AC Source in real time and automatically adjusts the power-on and power-off sequence based on the monitoring results to ensure the safety and accuracy of the test process. Specifically, the real-time monitoring includes the AC Source's voltage output, current output, and the operating status of the device.

[0174] Furthermore, the real-time monitoring data is transmitted to the monitoring module of the multi-machine server through the network interface, and the monitoring module determines the operating status of the device according to the preset thresholds and rules. It should be understood that real-time monitoring can promptly detect abnormal conditions of the device during the test process. For example, if the voltage output of the AC Source suddenly drops, the monitoring module can immediately suspend the test to avoid damage to the device due to power problems. If the device restarts or shuts down abnormally during the startup process, the monitoring module can also record these events and adjust the power-on and power-off timing as needed.

[0175] In order to improve the efficiency and accuracy of real-time monitoring, the system can use efficient monitoring software and hardware equipment. For example, high-performance data acquisition cards (such as NI data acquisition cards) and real-time monitoring software (such as LabVIEW) can be used to achieve high-speed data acquisition and processing. It is understandable that the selection of these software and hardware equipment should be based on test requirements and equipment characteristics to ensure the reliability and stability of real-time monitoring.

[0176] According to the real-time monitoring results, the system automatically adjusts the power-on and power-off sequence of the AC Source to ensure the safety and accuracy of the test process. Specifically, the adjustment of the power-on and power-off sequence includes the startup time, duration, and shutdown time of the device.

[0177] Furthermore, the system can set a set of preset adjustment rules and strategies to dynamically adjust the power-on and power-off timing according to the operating status and test data of the device. For example, if it is detected that the power consumption of the device is too high during the startup process, the system can extend the startup time to ensure that the device can be fully preheated; if the temperature of the device is too high during high-load testing, the system can appropriately shorten the test time to avoid overheating of the device; if the device has an abnormality during the shutdown process, the system can increase the shutdown time to ensure that the device can be shut down safely. It should be understood that these adjustment rules and strategies should be set according to the actual test requirements and device characteristics to ensure the flexibility and safety of the test process.

[0178] In order to achieve automatic adjustment of power-on and power-off timing, the system can use a rule-based decision module. Specifically, the decision module generates adjustment commands based on real-time monitoring data and preset adjustment rules and sends them to the control module of the AC Source. The control module performs corresponding power-on and power-off operations based on these commands. It can be understood that the rule-based decision module can flexibly respond to various test situations and ensure that the adjustment of the power-on and power-off timing is timely and accurate.

[0179] The benefits of this embodiment are:

[0180] Through the optimization of this embodiment, the multi-machine multi-service test method of PON products can significantly improve the stable operation capability of the equipment in different environments and the safety of the test process during the production line sampling process. The voltage and current output of the AC Source are dynamically adjusted according to the power consumption characteristics and ambient temperature of the device under test to ensure that the device can work normally under various conditions. The output status of the AC Source is monitored in real time, and the power-on and power-off timing is automatically adjusted according to the monitoring results to ensure the safety and accuracy of the test process.

[0181] The benefit of this embodiment is that testers can complete test tasks more efficiently and ensure that the test results of each device can be obtained under optimal conditions. The dynamic adjustment mechanism enables the device to maintain stable operation under different load and temperature conditions, avoiding test failures due to power supply problems. The real-time monitoring and automatic adjustment mechanism can promptly detect and handle abnormal conditions of the device during the test process to ensure the safety and reliability of the test. Through this embodiment, the test process of production line sampling is more automated and standardized, which effectively improves the accuracy and consistency of the test results. In addition, the design and implementation of the system take into account various technical details and safety measures to ensure the scientificity and efficiency of the test method.

[0182] Embodiment 9

[0183] In order to solve the problems of equipment preparation, parameter configuration, service configuration, test execution and report generation in the process of multi-machine multi-service testing of PON products, this embodiment proposes a multi-machine multi-service testing system for PON products. Specifically, the system includes a test environment configuration module, a parameter configuration module, a service configuration module, a test execution module, a report generation module and a report sending module, aiming to comprehensively and efficiently complete the multi-machine multi-service testing of PON products.

[0184] Specifically, the test environment configuration module of this embodiment is used to prepare the device to be tested and the test environment to ensure the smooth progress of the test process. The device to be tested includes multiple PON products, and the test environment consists of multiple servers, OLT (Optical Line Terminal), AC Source (AC power supply) and network simulation equipment.

[0185] Furthermore, the test environment configuration module establishes connections with the multi-machine server, OLT, AC Source, and network simulation equipment through the network interface, and performs necessary initialization and configuration. The multi-machine server is responsible for data processing and storage. The OLT, as the central device of the optical fiber network, is used to simulate the actual optical fiber network environment. The AC Source is used to provide a stable power supply for the device under test, and the network simulation device is used to simulate different network loads and transmission conditions. It should be understood that the comprehensiveness and accuracy of the test environment are the basis for ensuring the reliability of the test results. Through reasonable configuration and initialization, a solid foundation can be provided for subsequent test steps.

[0186] The parameter configuration module is used to configure the power-on and power-off timing of the AC Source, and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test. Specifically, the parameter configuration module sets parameters through the communication interface with the AC Source, including the startup voltage, startup current, startup time, duration, and shutdown time.

[0187] Furthermore, the parameter configuration module integrates a set of dynamic adjustment mechanisms to adjust the output parameters of the AC Source in real time according to the power consumption characteristics of the device and the ambient temperature. For example, if the power consumption of the device under test is large when it starts, the system can automatically increase the startup current to ensure that the device starts smoothly; if the ambient temperature is high, the system can appropriately reduce the current output during the duration to avoid overheating of the device. It can be understood that this dynamic adjustment mechanism can ensure that the device can operate stably in various environments and improve the reliability of the test results.

[0188] In order to achieve fine adjustment of parameters, the parameter configuration module can use closed-loop control technology. Specifically, the closed-loop control system includes three links: data acquisition, data analysis, and parameter adjustment. The data acquisition module obtains the current, voltage, and temperature data of the device in real time through sensors. The data analysis module calculates the appropriate adjustment parameters based on these data, and the parameter adjustment module controls the output of the AC Source based on the calculation results. It should be understood that closed-loop control technology can provide real-time feedback and adjustments to ensure that the device always operates under optimal conditions.

[0189] The service configuration module is used for multi-machine multi-service configuration, including WAN interface, voice interface and VID (VLAN ID) allocation. Specifically, the service configuration module establishes a connection with the multi-machine server and OLT through the network interface, configures the WAN interface and voice interface, and allocates a suitable VLAN ID to each PON product to ensure the isolation and security of data transmission.

[0190] Furthermore, the business configuration module can support multiple configuration methods, such as manual configuration and automatic configuration. The manual configuration method allows testers to set detailed parameters through a graphical interface, which is suitable for specific test requirements and complex scenarios; the automatic configuration method automatically completes the configuration of the device through preset configuration scripts and templates, which is suitable for standardized and large-scale test tasks. It can be understood that the combination of manual and automatic configuration can meet the needs of different test scenarios and improve the flexibility and efficiency of configuration.

[0191] In order to ensure the accuracy of the configuration, the business configuration module can adopt a configuration verification mechanism. Specifically, after the configuration is completed, the configuration verification mechanism automatically detects the configuration status of the device to ensure the correctness of all configuration parameters. If a configuration error is found, the system will automatically prompt the tester to correct it. It can be understood that this mechanism can effectively avoid human errors and improve the reliability of configuration.

[0192] The test execution module is used to perform multi-service tests, including voice tests and traffic tests, and monitor the device status in real time. Specifically, the test execution module starts the voice service test through an automated script to verify the voice call quality; it also starts the traffic service test to verify the data transmission rate; during the test, it records the operating status and test data of each PON product in real time.

[0193] Furthermore, the test execution module can support a variety of test scripts and test tools to meet different test requirements. For example, voice testing can use open source communication platforms such as Asterisk or FreeSWITCH, and traffic testing can use network performance testing tools such as i perf or Jperf. It should be understood that choosing appropriate test tools and scripts can improve the accuracy and efficiency of the test and ensure the reliability of the test results.

[0194] In order to monitor the status of the device in real time, the test execution module integrates the device status monitoring module. Specifically, the device status monitoring module obtains information such as the device's power consumption, temperature, network connection status, and test data in real time through the network interface, and displays this information in real time on the monitoring interface. If an abnormal condition of the device is detected, such as excessive temperature or network interruption, the system will automatically pause the test task to avoid damage to the device. It can be understood that the real-time monitoring and automatic pause mechanism can detect and handle abnormal conditions of the device in a timely manner, ensuring the safety and stability of the test process.

[0195] The report generation module is used to generate a test report based on the test results and dynamically adjust the test parameters to optimize the test process. Specifically, the report generation module summarizes the test results into a graphical report containing a summary of the test results, uses a bar chart to show the test pass status of each PON product, and uses a pie chart to show the overall pass rate; at the same time, it generates a detailed test data report, including the test log, error information and comprehensive score of each PON product.

[0196] Furthermore, the report generation module can dynamically adjust the test parameters based on the test results. Specifically, the system analyzes the test data through the built-in analysis module and generates new test parameters based on the analysis results. For example, if a device is detected to have frequent packet loss under high load, the system can automatically reduce its test traffic or extend the test time to more accurately evaluate its performance. It should be understood that dynamically adjusting the test parameters can optimize the test process and improve the accuracy of the test results.

[0197] In order to ensure the standardization and readability of the report, the report generation module can use professional data report templates. For example, the report template can be divided into four parts: device information, test environment, test results, and comprehensive score, each of which has detailed information display and description. It is understandable that standardized report templates can improve the professionalism and consistency of reports and reduce human errors.

[0198] The report sending module is used to provide graphical and data reports, and automatically send them to the specified email address and cloud storage to ensure the traceability of the test data report. Specifically, the report sending module sends the generated test report to the preset recipient email address through the API of the email service, and uploads it to the specified cloud storage service through the network interface.

[0199] Furthermore, the report sending module can support multiple sending methods, including scheduled sending and instant sending. The scheduled sending method can automatically send reports according to a preset time interval, which is suitable for regular test tasks; the instant sending method sends reports immediately after the test is completed, which is suitable for urgent test needs. It can be understood that the diverse sending methods can meet the needs of different test scenarios and improve the timeliness and reliability of reports.

[0200] In order to ensure the security of test data, the report sending module can also adopt data encryption and access control mechanisms. For example, use SSL / TLS protocol to encrypt data transmission to ensure the security of data during transmission; use access keys and permission management to ensure that only authorized personnel can access data stored in the cloud. It should be understood that these security measures can effectively protect the privacy and integrity of test data and avoid the risk of data leakage and tampering.

[0201] In addition, the report sending module can set up a regular backup mechanism to regularly back up the data stored in the cloud to different storage media or locations to ensure the long-term preservation and recovery capabilities of the data. It is understandable that regular backup can further improve the security and reliability of data and reduce the risk of data loss.

[0202] The benefits of this embodiment are:

[0203] Through the optimization of this embodiment, the PON product multi-machine multi-service test system can fully and efficiently complete the test tasks during the production line sampling process. The test environment configuration module ensures the accurate preparation of the equipment and environment. The parameter configuration module dynamically adjusts the power-on and power-off timing of the AC Source according to the power consumption characteristics and ambient temperature of the equipment to ensure the stable operation of the equipment under various conditions; the service configuration module supports multiple configuration methods and verification mechanisms to improve the flexibility and accuracy of the configuration; the test execution module ensures the efficiency and safety of the test process through automated scripts and real-time monitoring mechanisms; the report generation module generates a test report containing summary and detailed data based on the test results, and dynamically adjusts the test parameters to optimize the test process; the report sending module automatically sends the test report to the specified mailbox and cloud storage to ensure the traceability and security of the data.

[0204] Through this embodiment, testers can complete test tasks more efficiently and ensure that the test results of each device can be recorded in detail and accurately evaluated. The dynamic adjustment mechanism and real-time monitoring mechanism enable the device to operate stably in different environments, avoiding test failures caused by power supply or environmental problems. The diversified configuration methods and sending mechanisms ensure the flexibility of test configuration and the timeliness of reports. Through this embodiment, the test process of production line sampling is more automated and standardized, effectively improving the accuracy and consistency of test results. In addition, the design and implementation of the system take into account various technical details and safety measures to ensure the scientificity and efficiency of the test system.

[0205] Embodiment 10

[0206] In order to solve the problem of software implementation and system integration in the process of multi-machine multi-service testing of PON products, this embodiment further optimizes a computer-readable storage medium on which a computer program is stored. When the computer program is executed on an electronic device, the multi-machine multi-service testing method of PON products described in the above embodiments can be implemented.

[0207] In this embodiment, the computer-readable storage medium can select various types of storage devices, including but not limited to solid-state drives (SSDs), mechanical hard disks (HDDs), USB flash drives, or network storage devices (such as NAS). These storage devices all have high-speed read and write capabilities and large-capacity storage space, which can meet the needs of storing complex test programs and large amounts of test data. Specifically, solid-state drives perform well in read and write speeds and data reliability, and are suitable for scenarios that require high-performance computing and real-time data processing; mechanical hard disks have advantages in large-capacity storage, and are suitable for scenarios that require storage of large amounts of test logs and reports.

[0208] Furthermore, the computer program in the storage medium can be implemented in a variety of programming languages ​​and frameworks, including C++, Python or Java. It should be understood that the choice of programming language should be based on the specific test requirements and system performance requirements. For example, C++ is suitable for high-performance computing and real-time data processing, Python is suitable for rapid development and data science applications, and Java is suitable for cross-platform application development. It is understandable that choosing the right programming language and framework can improve the development efficiency and operating performance of the system while ensuring functional integrity.

[0209] When the computer program is executed on an electronic device, it can implement the various steps of the multi-machine multi-service test method for PON products. Specifically, the program first prepares the device to be tested and the test environment through the test environment configuration module to ensure that the initial state of all devices and environments meets the test requirements. Furthermore, the program configures the power-on and power-off timing of the AC Source through the parameter configuration module, and dynamically adjusts the power-on and power-off timing according to the power consumption characteristics and ambient temperature of the device to be tested to ensure the stable operation of the device in different environments. The service configuration module is used for multi-machine multi-service configuration, including WAN interface, voice interface and VID allocation, to ensure that the device can perform multi-service testing normally.

[0210] During the test execution phase, the program executes multi-service tests, including voice and traffic tests, and monitors the device status in real time through the test execution module. Furthermore, the test execution module starts the test task through the automated script, records the device's operating status and test data in real time, and automatically pauses the test when an abnormal situation is detected to avoid device damage. It can be understood that the automated script and real-time monitoring mechanism can significantly improve the efficiency and safety of the test process.

[0211] After the test is completed, the program generates a test report based on the test results through the report generation module, and dynamically adjusts the test parameters to optimize the test process. Furthermore, the report generation module summarizes the test results into a graphical report containing a summary of the test results and a detailed test data report to ensure the integrity and readability of the test information. At the same time, the system can generate new test parameters based on the test results to optimize the subsequent test process. It can be understood that dynamically adjusting the test parameters can improve the accuracy and consistency of the test results.

[0212] Finally, the program provides graphical and data reports through the report sending module, and automatically sends them to the specified email address and cloud storage. Furthermore, the report sending module supports multiple sending methods, including scheduled sending and instant sending, to ensure the timeliness and traceability of the test report. At the same time, the report sending module adopts data encryption and access control mechanisms to ensure the security and privacy of test data. It is understandable that diversified sending methods and security measures can effectively improve the management and protection capabilities of test data.

[0213] The benefits of this embodiment are:

[0214] Through the optimization of this embodiment, the multi-machine multi-service test method of PON products can be run efficiently and reliably on electronic devices. The selection and configuration of computer-readable storage media ensures high-speed reading and writing and large-capacity storage of the program, meeting various requirements in the test process. The functional implementation of the computer program covers all steps from test environment preparation to report generation, and through dynamic adjustment and real-time monitoring mechanisms, it ensures the stable operation of the equipment in different environments and the safety of the test process.

[0215] The embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.

Claims

1. A PON product multi-machine multi-service testing method for production line sampling, characterized in that: The steps of the test method include: Prepare a device to be tested and a test environment, wherein the device to be tested includes multiple PON products, and the test environment includes a multi-machine server, OLT, AC Source, and a network simulation device; Configure the power-on and power-off timing of the AC Source, and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test; Perform multi-machine and multi-service configuration, including WAN interface, voice interface and VID allocation; Perform multi-service tests, including voice tests and traffic tests, and monitor the status of the device under test in real time; Generate test reports based on test results and dynamically adjust test parameters to optimize the test process; Provides graphical data reports and automatically sends them to designated email addresses and cloud storage.

2. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The steps of configuring the power-on and power-off timing of the AC Source include: Dynamically adjust the power-on and power-off timing of the AC Source according to the power consumption characteristics and test requirements of the device under test; Use the following expression to periodically adjust the power parameters to simulate power fluctuations in a real working environment: P cycle =P base ×(1+δ×cos(2πf×t+φ)), where P cycle is the periodically adjusted power parameter, P base is the basic power, δ is the power fluctuation coefficient, f is the fluctuation frequency, t is the fluctuation time, and φ is the initial phase.

3. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The steps of performing multi-machine multi-service configuration include: Automatically log in to each device under test through the Robot script, configure the WAN interface and voice interface, and the WAN interface configuration includes the IP address, subnet mask and gateway; According to the preset VID rules, the VID of each device under test is automatically assigned to ensure that each device under test is uniquely identified and tested; Each of the devices under test is automatically registered on the OLT, and a corresponding service VID is configured to ensure that each of the devices under test is normally connected to the network and performs service testing.

4. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The step of performing the multi-service test comprises: According to the preset test duration and test times, voice test and traffic test are executed simultaneously through multi-threaded design to improve test efficiency; Monitor the test status of each device under test in real time, record the test results, and calculate the comprehensive score of each device according to a weighted algorithm; Based on the real-time monitoring of equipment status and environmental parameters, the test duration and number of tests are dynamically adjusted to improve the accuracy of the test results.

5. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The step of generating a test report according to the test results comprises: Automatically generate a test report for each of the devices under test, wherein the test report includes device ID, test time, test results and comprehensive score information; The overall pass rate is calculated according to the following expression, which is used to evaluate the test results of all the devices under test: Among them, R overall is the overall passing rate, N pass is the number of devices that passed the test, S device,i is the comprehensive score of the ith device, N total is the total number of test devices; Generate graphical reports, including bar charts, pie charts and line charts, for displaying the test results and overall pass rate of each of the test devices; Reports and log data are automatically sent to a designated email address and uploaded to cloud storage to improve the security of test reports.

6. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The step of performing the multi-service test comprises: Start voice service testing through automated scripts to verify voice call quality; At the same time, start the traffic service test to verify the data transmission rate; In the process of performing the multi-service test, recording the operating status and test data of each of the PON products in real time; The operating status and test data are analyzed, and test parameters are dynamically adjusted.

7. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The step of providing a graphical data report comprises: Generate a graphical report containing a summary of the test results, using a bar chart to show the test pass status of each of the PON products, and using a pie chart to show the overall pass rate; Provide a test data report, including test logs, error information and comprehensive scores for each of the PON products; The test data report is automatically sent to a preset email address and uploaded to a designated cloud storage to ensure the traceability of the test data report.

8. The PON product multi-machine multi-service testing method according to claim 1, characterized in that: The step of configuring the power-on and power-off timing of the AC Source further includes: Dynamically adjust the voltage and current output of the AC Source according to the power consumption characteristics and ambient temperature of the device under test to ensure that the device under test operates stably in different environments; The output status of the AC Source is monitored in real time, and the power-on and power-off timing is automatically adjusted according to the monitoring results to ensure the safety and accuracy of the test process.

9. A PON product multi-machine multi-service test system for production line sampling, characterized in that: The system comprises: A test environment configuration module is used to prepare a device to be tested and a test environment, wherein the device to be tested includes multiple PON products, and the test environment includes a multi-machine server, OLT, AC Source, and a network simulation device; The parameter configuration module is used to configure the power-on and power-off timing of the AC Source and dynamically adjust the power-on and power-off timing according to the power consumption characteristics of the device under test; Service configuration module, used for multi-machine and multi-service configuration, including WAN interface, voice interface and VID allocation; Test execution module, used to perform multi-service tests, including voice and traffic tests, and monitor device status in real time; Report generation module, used to generate test reports based on test results and dynamically adjust test parameters to optimize the test process; The report sending module is used to provide graphical and data reports and automatically send them to designated email addresses and cloud storage.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on an electronic device, it executes the PON product multi-machine multi-service testing method as claimed in any one of claims 1 to 8.