Comprehensive test method and device for agricultural machine microcontroller and storage medium

By establishing a closed-loop process for bidirectional data transmission links, data acquisition, and anomaly correction, the fragmentation and inefficient anomaly handling issues in microcontroller testing are resolved, enabling efficient, accurate, and integrated testing of agricultural machinery microcontrollers.

CN121806799APending Publication Date: 2026-04-07LOVOL HEAVY IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-23
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing microcontroller testing technologies suffer from fragmented tools, inconsistent data processing, and inefficient anomaly handling, failing to meet the high-efficiency, accurate, and integrated testing requirements of intelligent agricultural machinery microcontrollers.

Method used

This invention provides a comprehensive testing method and apparatus that, by establishing a two-way data transmission link, transforms user requirements into test instructions, performs data acquisition, standardized processing, and anomaly correction, thereby achieving fully automated and integrated testing.

Benefits of technology

It achieves full automation of agricultural machinery microcontroller testing, significantly improves testing efficiency, ensures the continuity and reliability of the testing process, simplifies operation steps, and provides an efficient and stable testing solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121806799A_ABST
    Figure CN121806799A_ABST
Patent Text Reader

Abstract

The invention provides a comprehensive testing method and device for an agricultural machine microcontroller and a storage medium, and relates to the technical field of microcontroller testing. The method comprises the steps of firstly building a bidirectional data transmission link with a microcontroller to be tested, then converting a user test demand into a corresponding test instruction, issuing the test instruction, collecting original test data after a test is executed, carrying out standardization processing on the original data, evaluating a test state, if a result is abnormal, creating a correction response flow according to an abnormal type, and if the result is abnormal, completing the test. Re-establishing a link or evaluating to obtain a new result; according to the invention, automation and integration of the whole testing process are realized through a closed-loop process, a splitting link is not needed, manual equipment switching is not needed, comprehensive testing is completed in a one-stop manner, operation is greatly simplified, and efficiency is improved; the abnormality correction mechanism can optimize the process automatically, avoids test interruption, guarantees test continuity and reliability, and provides an efficient and stable solution for factory detection and regular maintenance of the agricultural machine microcontroller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of microcontroller testing technology, specifically to a comprehensive testing method, device, and storage medium for agricultural machinery microcontrollers. Background Technology

[0002] With the deep integration of mechanization and intelligence in modern agriculture, intelligent agricultural machinery has widely integrated complex electronic control modules such as intelligent cockpits, intelligent driving systems, and precision operation systems. Its core control relies on high-performance microcontrollers (such as the GD32H7 series). These microcontrollers integrate Ethernet interfaces, CAN bus controllers, and various storage devices such as SRAM, EEPROM, Flash, and EMMC. They require comprehensive factory testing and regular maintenance testing to ensure reliable operation of the agricultural machinery in complex operating environments. The testing covers key dimensions such as communication link connectivity, data transmission performance, and storage device read / write stability.

[0003] However, existing microcontroller testing technologies have significant drawbacks: First, testing tools are fragmented, requiring independent testing equipment for different hardware modules such as CAN bus, Ethernet, and storage devices. This results in cumbersome testing processes, high switching costs, and low testing efficiency. Second, there is a lack of a unified mechanism for standardizing raw data processing. Test data from different modules has heterogeneous formats and different dimensions, making it difficult to integrate and analyze. Furthermore, there is a lack of real-time visualization and monitoring functions, preventing testers from intuitively grasping test progress and core performance indicators (such as Ethernet large file transfer rate and CAN bus load rate fluctuations). Third, the anomaly handling mechanism is inadequate. When problems such as link interruption, data packet loss, or storage read / write errors occur during testing, manual troubleshooting and location are required, which is complex and costly to maintain, making it impossible to quickly respond to the specific testing needs of agricultural machinery microcontrollers.

[0004] In summary, existing testing technologies can no longer meet the needs of intelligent agricultural machinery microcontrollers for efficient, accurate, and integrated testing. There is an urgent need for an integrated, automated, and standardized comprehensive testing solution to address technical pain points such as fragmented testing tools, chaotic data processing, and inefficient anomaly handling. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a comprehensive testing method, device and storage medium for agricultural machinery microcontrollers, addressing the shortcomings of the prior art.

[0006] The technical solution of this invention to solve the above-mentioned technical problems is as follows: A comprehensive testing method for agricultural machinery microcontrollers, comprising the following steps: Establish a bidirectional data transmission link with the microcontroller under test; The user's testing requirements are converted into test instructions, which are then sent to the microcontroller under test via a bidirectional data transmission link to execute the corresponding test operations, thereby obtaining the raw test data generated during the test operations. The system receives the raw test data returned by the microcontroller under test, performs standardization processing on the raw test data, and evaluates the test status of the standardized test data to obtain the test status evaluation result. When the test status assessment result is a test anomaly, a corresponding correction response process is created based on the anomaly type of the anomaly data, and the bidirectional data transmission link is rebuilt based on the correction response process, or the test status assessment is re-performed to obtain a new test status assessment result.

[0007] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: A comprehensive testing device for agricultural machinery microcontrollers, applied to the comprehensive testing method for agricultural machinery microcontrollers as described above, comprising: The link establishment module is used to establish a bidirectional data transmission link with the microcontroller under test; The test instruction distribution module is used to convert the user's test requirements into test instructions, and distribute the test instructions to the microcontroller under test through the established bidirectional data transmission link to execute the corresponding test operations and obtain the raw test data generated in the test operations. The test status evaluation module is used to receive the raw test data returned by the microcontroller under test, standardize the raw test data, and evaluate the test status of the standardized test data to obtain the test status evaluation result. The anomaly correction module is used to create a corresponding correction response process based on the anomaly type of the anomaly data when the test status evaluation result is a test anomaly, and to rebuild the bidirectional data transmission link based on the correction response process, or to re-evaluate the test status to obtain a new test status evaluation result.

[0008] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: a comprehensive testing device for agricultural machinery microcontrollers, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the comprehensive testing method for agricultural machinery microcontrollers as described above.

[0009] Another technical solution of the present invention to solve the above-mentioned technical problems is as follows: a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the comprehensive testing method for agricultural machinery microcontrollers as described above.

[0010] The beneficial effects of this invention are as follows: Through a closed-loop testing process encompassing link establishment, command issuance and data acquisition, data processing and evaluation, and anomaly correction, the entire testing process for agricultural machinery microcontrollers is automated and integrated. Compared to the fragmented testing tools and the need for manual switching between multiple devices in existing technologies, this invention eliminates the need to break down testing steps, enabling comprehensive testing of the microcontroller's core functions in a single step. This significantly simplifies testing procedures and greatly improves testing efficiency. Simultaneously, the anomaly correction mechanism enables self-optimization of the testing process, preventing test interruptions due to single anomalies and ensuring the continuity and reliability of the testing process. This provides an efficient and stable testing solution for the factory inspection and periodic maintenance of agricultural machinery microcontrollers. Attached Figure Description

[0011] Figure 1 A flowchart illustrating the comprehensive testing method for agricultural machinery microcontrollers provided in this embodiment of the invention; Figure 2 A schematic diagram of the test instruction distribution process provided in an embodiment of the present invention; Figure 3 A block diagram of a comprehensive testing device for agricultural machinery microcontrollers provided in an embodiment of the present invention. Detailed Implementation

[0012] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0013] Example 1: As Figure 1 As shown, this embodiment of the invention provides a comprehensive testing method for agricultural machinery microcontrollers, including the following steps: S1. Establish a bidirectional data transmission link with the microcontroller under test; S2. The user's test requirements are converted into test instructions, and the test instructions are sent to the microcontroller under test through the established bidirectional data transmission link to execute the corresponding test operations, thereby obtaining the raw test data generated in the test operations. S3. Receive the raw test data returned by the microcontroller under test, standardize the raw test data, and evaluate the test status of the standardized test data to obtain the test status evaluation result. S4. When the test status assessment result is a test anomaly, a corresponding correction response process is created based on the anomaly type of the anomaly data, and the bidirectional data transmission link is rebuilt based on the correction response process, or the test status assessment is re-performed to obtain a new test status assessment result.

[0014] Specifically, the microcontroller under test can be a microcontroller from the agricultural machinery GD32H7 series.

[0015] In the above embodiments, a closed-loop testing process—including link establishment, command issuance and data acquisition, data processing and evaluation, and anomaly correction—achieves full automation and integration of agricultural machinery microcontroller testing. Compared to the fragmented testing tools and manual switching between multiple devices required in existing technologies, this process eliminates the need to break down testing stages, enabling comprehensive testing of the microcontroller's core functions in a one-stop manner. This significantly simplifies testing operations and improves testing efficiency. Furthermore, the anomaly correction mechanism enables self-optimization of the testing process, preventing test interruptions due to single anomalies and ensuring the continuity and reliability of the testing process. This provides an efficient and stable testing solution for the factory inspection and periodic maintenance of agricultural machinery microcontrollers.

[0016] Preferably, establishing a bidirectional data transmission link with the microcontroller under test includes: The matching communication protocol is determined based on the communication interface specifications of the microcontroller under test, and the network parameters are configured based on the IP address and corresponding port number of the microcontroller under test. Based on the communication protocol and network parameters, a connection request is sent to the microcontroller under test. When a connection success status signal is received from the microcontroller under test, the bidirectional data transmission link is established.

[0017] The above embodiments clearly define a link establishment method based on matching communication protocols with communication interface specifications and accurately configuring network parameters, ensuring the compatibility and stability of data transmission between the test system and the microcontroller under test. Through a standardized process of protocol matching, parameter configuration, and connection verification, problems such as link interruptions and data transmission packet loss caused by incompatible communication parameters and configuration errors in existing technologies are effectively solved. The status signal feedback mechanism after successful connection allows testers to intuitively confirm the link establishment result, reducing link fault troubleshooting time and laying a solid foundation for the accurate issuance of subsequent test commands and the stable return of raw test data, thus improving the startup efficiency and reliability of the entire test process.

[0018] like Figure 2 As shown, preferably, the step of converting the user's test requirements into test instructions, and sending the test instructions to the microcontroller under test through the established bidirectional data transmission link to execute the corresponding test operations, thereby obtaining the raw test data generated during the test operations, includes: The system receives user test requests, which are generated by the user selecting the required test items in the test item selection area of ​​the pre-built system graphical interface. The system then generates corresponding test instructions based on the user's test requests, including CAN bus test instructions, Ethernet performance test instructions, and hardware storage test instructions. When the test command is a CAN bus test command, the CAN bus test command is executed on the microcontroller under test based on the bidirectional data transmission link. The CAN bus test command is used to start the CAN bus module of the microcontroller under test and test the CAN communication load rate and the number of received frames respectively. Raw test data is collected during the test operation, including the load rate and the number of received frames. This can verify the communication connectivity and stability of the vehicle body control system.

[0019] When the test command is an Ethernet performance test command, the Ethernet performance test command is executed on the microcontroller under test based on the bidirectional data transmission link. The Ethernet performance test command is used to verify the performance of the communication protocol. After the verification is passed, file packets and / or simulated camera video streams are transmitted to the microcontroller under test, and raw test data is collected during the test operation. The raw test data also includes transmission rate, latency rate and packet loss rate. This can ensure the information transmission quality of devices such as smart cockpit remote control and intelligent driving. The collected raw data is synchronously transmitted back through the communication link.

[0020] When the test command is a hardware storage test command, the hardware storage test command is executed on the microcontroller under test based on the bidirectional data transmission link. The hardware storage test command is used to send test commands for deletion, reading, writing, file transfer and file overwriting to the storage device of the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes read speed, write speed, read and write latency, file transfer time and storage capacity information.

[0021] Specifically, storage devices include SRAM, EEPROM, Flash, EMMC, and other devices.

[0022] In the above embodiments, by transforming user requirements into three targeted test commands—CAN bus, Ethernet performance, and hardware storage—full-coverage testing of the core functional modules of the agricultural machinery microcontroller is achieved, accurately matching the actual application scenarios of the intelligent agricultural machinery electronic control system. Dedicated data acquisition schemes are designed for different test commands to ensure the relevance and completeness of the original test data, solving the problems of limited data acquisition and disconnection from the actual operating conditions of agricultural machinery microcontrollers in existing testing tools. Simultaneously, efficient interaction between commands and data is achieved through a bidirectional data transmission link. The acquired data covers key indicators such as load rate, transmission rate, and read / write speed, providing a comprehensive and reliable data source for subsequent test status evaluation and ensuring the accuracy of the evaluation results.

[0023] Preferably, the original test data is standardized, and the standardized test data is then used for test status evaluation to obtain test status evaluation results, including: The format of the original test data is validated for legality. Invalid data that fails the validation is removed to obtain valid original test data. The validity validation includes whether the format of the original test data is correct, whether it exceeds the numerical range, and whether there is duplicate data. Based on the pre-defined unified data specifications, the valid original test data is sequentially processed for format regularization, dimension unification, and data classification and archiving to obtain standardized test data. Specifically, based on a pre-defined unified data standard, the format and dimensions of the preprocessed valid raw test data are standardized, including: Format standardization: Heterogeneous raw data corresponding to different test items (such as integer frame count data for CAN bus tests, floating-point rate data for Ethernet tests, and time-based latency data for hardware storage tests) are converted into a preset standard data format (such as floating-point data with two decimal places). Dimensional standardization: Raw data with different dimensions are normalized, mapping each type of data to a standard 0-1 dimension to eliminate the impact of dimension differences on the evaluation results. The normalization formula is: Standardized data = (Raw data - Minimum value of this type of data) / (Maximum value of this type of data - Minimum value of this type of data). Data classification and archiving: The standardized data is classified and stored according to the test item type (CAN bus test, Ethernet performance test, hardware storage test), generating a standardized test dataset with timestamps and test item identifiers.

[0024] The test status evaluation indicators are determined, including CAN bus test evaluation indicators, Ethernet performance test evaluation indicators, and hardware storage test evaluation indicators. The CAN bus test evaluation indicators include load rate stability, received frame continuity, and error frame ratio. The Ethernet performance test evaluation indicators include transmission rate compliance rate, latency compliance rate, and packet loss rate compliance rate. The hardware storage test evaluation indicators include read / write speed compliance rate, data consistency, error operation rate, and storage capacity matching degree. Specifically, an evaluation index system corresponding to each test item is preset, including: ① CAN bus test evaluation indexes include load rate stability (fluctuation amplitude ≤5%), received frame continuity (no three consecutive sampling cycles with zero counts), and error frame ratio (≤0.5%); ② Ethernet performance test evaluation indexes include transmission rate compliance rate (≥80% of the theoretical maximum rate), latency compliance rate (≤preset threshold), and packet loss rate compliance rate (≤1%); ③ Hardware storage test evaluation indexes include read / write speed compliance rate (≥80% of the theoretical maximum speed of the corresponding storage module), data consistency (read and write data verification is consistent), error operation rate (≤0.1%), and storage capacity matching degree (actual usable capacity deviation from nominal capacity ≤5%).

[0025] The standardized test data is compared one by one with the preset threshold of the corresponding evaluation indicators to determine whether the single indicator meets the standard. Based on the standard meeting result, the single indicator standard meeting score is determined. The single indicator standard meeting score and the corresponding weight are comprehensively scored and calculated based on the weighted scoring method to obtain the comprehensive evaluation score. The comprehensive evaluation score is judged based on the set scoring value. If the comprehensive evaluation score is greater than or equal to the first scoring standard value, the evaluation result of normal test is obtained. If the comprehensive evaluation score is within the range of the first scoring standard value and the second scoring standard value, the evaluation result of potential risk is obtained. If the comprehensive evaluation score is less than the second scoring standard value, the evaluation result of abnormal test is obtained.

[0026] Specifically, the test status assessment results are generated including: The test status is determined based on the comprehensive evaluation score. The preset score is ≥90 points for "test normal", 60 points ≤ score <90 points for "test warning (i.e., potential risk exists)" and a score <60 points for "test abnormal (i.e., serious problem exists)". At the same time, an evaluation report is generated, which clearly records the standardized data of each evaluation indicator, the comparison results, the details of the non-compliant indicators and the corresponding test items, as the comprehensive test status evaluation result.

[0027] In the above embodiments, through data verification, standardization, multi-dimensional evaluation, and graded judgment, the effective transformation of raw test data and accurate evaluation of test status are achieved. The legality verification step eliminates invalid data, preventing abnormal data from interfering with the evaluation results; standardization processing, such as format regularization and dimension unification, eliminates the problems of dimensional differences and format chaos in heterogeneous data, solving the pain point of data integration and analysis difficulties in existing technologies; the multi-dimensional evaluation index system covers the key performance parameters of each core function of the microcontroller, and the weighted scoring method and graded judgment rules make the evaluation results more objective and valuable, not only clarifying whether the test is normal but also identifying potential risks, helping testers to predict potential problems in microcontroller operation in advance, and providing a scientific basis for the quality control of agricultural machinery microcontrollers.

[0028] Example 5: Preferably, when the test status assessment result is a test anomaly, a corresponding corrective response process is created based on the anomaly type of the anomaly data, and the bidirectional data transmission link is rebuilt based on the corrective response process, or the test status assessment is re-performed to obtain a new test status assessment result, including: When the test status evaluation result is a test anomaly, anomaly data is obtained from the test anomaly evaluation result, and the anomaly type is determined based on the anomaly data. The anomaly types include communication link anomalies, CAN bus test anomalies, Ethernet performance test anomalies, and hardware storage test anomalies. If the exception type is a communication link exception, a corrective response procedure for rebuilding the bidirectional data transmission link is created. The corrective response procedure for rebuilding the bidirectional data transmission link includes: Troubleshoot the link interruption and reconfigure the network parameters or switch to a matching communication protocol (such as TCP or UDP) based on the troubleshooting results. Then, resend the connection request to the microcontroller under test based on the reconfigured parameters. When a status signal is received from the microcontroller under test, verify whether the bidirectional data transmission link has been successfully rebuilt. If the exception type is a CAN bus test exception, a corrective response procedure for re-evaluating the CAN bus test status is created. This corrective response procedure for re-evaluating the test status includes: Adjust the CAN bus test parameters (such as reducing test load pressure, optimizing frame transmission interval, and reconfiguring bus bit rate), reissue CAN bus test commands to the microcontroller under test through the established bidirectional data transmission link, collect new raw test data and complete standardization processing, and re-execute test status evaluation based on the new standardized test data; If the exception type is an Ethernet performance test exception, a corrective response process for re-evaluating the Ethernet performance test status is created. This corrective response process for re-evaluating the Ethernet performance test status includes: Optimize transmission conditions, adjust test scenarios based on abnormal situations, reissue Ethernet performance test instructions, collect new raw test data and complete standardization processing, and re-execute test status evaluation based on the new standardized test data; If the exception type is a hardware storage test exception, a corrective response process for re-evaluating the hardware storage test status is created. This corrective response process for re-evaluating the hardware storage test status includes: Investigate whether there are physical faults or logical errors in the storage medium, optimize the hardware storage test instructions (such as adjusting the read / write block size, reducing the number of concurrent operations, and extending the test response timeout), reissue the optimized hardware storage test instructions, collect new raw test data and complete the standardization process, and re-execute the test status assessment based on the new standardized test data. If the new test status evaluation result is still an abnormal test, then n correction response processes will be performed based on the set number of corrections n, and an alarm message indicating that the microcontroller under test may have a hardware fault will be generated.

[0029] Specifically, the identification of abnormal data and abnormal types involves: extracting the details of non-compliant indicators marked in the test status evaluation results, the corresponding standardized test data, and related test items; combining the transmission records and command issuance logs of the original test data; determining the source module of the abnormal data (CAN bus module, Ethernet module, storage module, or communication link); and classifying the abnormal types, which include: communication link abnormalities (such as connection interruption, data transmission packet loss / out-of-order delivery, command issuance failure); CAN bus test abnormalities (such as excessive load rate fluctuation, interrupted received frames, excessively high percentage of erroneous frames); Ethernet performance test abnormalities (such as transmission rate not meeting standards, latency exceeding limits, excessive packet loss rate); and hardware storage test abnormalities (such as excessively low read / write speed, data consistency verification failure, excessive error operation rate, excessive storage capacity deviation).

[0030] In the above embodiments, dedicated correction and response processes are designed for different anomaly types, enabling precise location and efficient resolution of test anomalies. This overcomes the limitations of existing testing technologies, which often involve blind anomaly handling and require manual intervention. Targeted parameter adjustments and link reconstruction schemes for communication link anomalies can quickly restore data transmission channels. Strategies for parameter optimization and instruction adjustment for anomalies in various test modules can accurately resolve functional problems during testing. Multiple correction mechanisms and hardware fault alarm functions ensure maximum closure of the testing process and timely alerts to deep-seated hardware faults, avoiding unnecessary testing. The overall technical effect is: significantly reducing the time cost and professional threshold for handling test anomalies, improving the effectiveness and reliability of test results, and ensuring the testing quality and subsequent operational stability of agricultural machinery microcontrollers.

[0031] Preferably, the method further includes a data visualization step: It continuously receives and parses multi-source test data returned by the microcontroller, and dynamically displays the test status, key indicators and error information through a unified graphical interface.

[0032] It adopts a layout of MainWindow + multiple functional areas (CAN area, storage area, network area, etc.). Each area receives data update signals through slot functions and refreshes the corresponding controls or charts in real time. Various test data, including key indicators such as the number of bytes sent / received, frame error rate, read / write speed, transmission rate, latency, and packet loss rate, are dynamically and uniformly displayed in different areas of the same graphical user interface.

[0033] Example 2: As Figure 3 As shown, this embodiment of the invention also provides a comprehensive testing device for agricultural machinery microcontrollers, applied to the comprehensive testing method for agricultural machinery microcontrollers as described above, including: The link establishment module is used to establish a bidirectional data transmission link with the microcontroller under test; The test instruction distribution module is used to convert the user's test requirements into test instructions, and distribute the test instructions to the microcontroller under test through the established bidirectional data transmission link to execute the corresponding test operations and obtain the raw test data generated in the test operations. The test status evaluation module is used to receive the raw test data returned by the microcontroller under test, standardize the raw test data, and evaluate the test status of the standardized test data to obtain the test status evaluation result. The anomaly correction module is used to create a corresponding correction response process based on the anomaly type of the anomaly data when the test status evaluation result is a test anomaly, and to rebuild the bidirectional data transmission link based on the correction response process, or to re-evaluate the test status to obtain a new test status evaluation result.

[0034] Preferably, establishing a bidirectional data transmission link with the microcontroller under test includes: The matching communication protocol is determined based on the communication interface specifications of the microcontroller under test, and the network parameters are configured based on the IP address and corresponding port number of the microcontroller under test. Based on the communication protocol and network parameters, a connection request is sent to the microcontroller under test. When a connection success status signal is received from the microcontroller under test, the bidirectional data transmission link is established.

[0035] Preferably, the step of converting user test requirements into test instructions, and sending the test instructions to the microcontroller under test via a bidirectional data transmission link to execute corresponding test operations, thereby obtaining raw test data generated during the test operations, includes: The system receives user test requests, which are generated by the user selecting the required test items in the test item selection area of ​​the pre-built system graphical interface. The system then generates corresponding test instructions based on the user's test requests, including CAN bus test instructions, Ethernet performance test instructions, and hardware storage test instructions. When the test command is a CAN bus test command, the CAN bus test command is executed on the microcontroller under test based on the bidirectional data transmission link. The CAN bus test command is used to start the CAN bus module of the microcontroller under test and test the CAN communication load rate and the number of received frames respectively. The raw test data is collected during the test operation, and the raw test data includes the load rate and the number of received frames. When the test command is an Ethernet performance test command, the Ethernet performance test command is executed on the microcontroller under test based on the bidirectional data transmission link. The Ethernet performance test command is used to transmit file packets and / or simulated camera video streams to the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes transmission rate, latency rate and packet loss rate. When the test command is a hardware storage test command, the hardware storage test command is executed on the microcontroller under test based on the bidirectional data transmission link. The hardware storage test command is used to send test commands for deletion, reading, writing, file transfer and file overwriting to the storage device of the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes read speed, write speed, read and write latency, file transfer time and storage capacity information.

[0036] Example 3: This embodiment of the invention also provides a comprehensive testing device for agricultural machinery microcontrollers, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the comprehensive testing method for agricultural machinery microcontrollers as described above.

[0037] Example 4: This embodiment of the invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the comprehensive testing method for agricultural machinery microcontrollers as described above.

[0038] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0039] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0040] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0041] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.

[0042] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0043] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A comprehensive testing method for agricultural machinery microcontrollers, characterized in that, Includes the following steps: Establish a bidirectional data transmission link with the microcontroller under test; The user's testing requirements are converted into test instructions, which are then sent to the microcontroller under test via a bidirectional data transmission link to execute the corresponding test operations, thereby obtaining the raw test data generated during the test operations. The system receives the raw test data returned by the microcontroller under test, performs standardization processing on the raw test data, and evaluates the test status of the standardized test data to obtain the test status evaluation result. When the test status assessment result is a test anomaly, a corresponding correction response process is created based on the anomaly type of the anomaly data, and the bidirectional data transmission link is rebuilt based on the correction response process, or the test status assessment is re-performed to obtain a new test status assessment result.

2. The comprehensive testing method for agricultural machinery microcontrollers according to claim 1, characterized in that, The establishment of a bidirectional data transmission link between the microcontroller under test and the microcontroller includes: The matching communication protocol is determined based on the communication interface specifications of the microcontroller under test, and the network parameters are configured based on the IP address and corresponding port number of the microcontroller under test. Based on the communication protocol and network parameters, a connection request is sent to the microcontroller under test. When a connection success status signal is received from the microcontroller under test, the bidirectional data transmission link is established.

3. The comprehensive testing method for agricultural machinery microcontrollers according to claim 2, characterized in that, The process involves converting user test requirements into test instructions, sending these instructions to the microcontroller under test via a bidirectional data transmission link to execute corresponding test operations, and obtaining raw test data generated during the test operations, including: The system receives user test requests, which are generated by the user selecting the required test items in the test item selection area of ​​the pre-built system graphical interface. The system then generates corresponding test instructions based on the user's test requests, including CAN bus test instructions, Ethernet performance test instructions, and hardware storage test instructions. When the test command is a CAN bus test command, the CAN bus test command is executed on the microcontroller under test based on the bidirectional data transmission link. The CAN bus test command is used to start the CAN bus module of the microcontroller under test and test the CAN communication load rate and the number of received frames respectively. The raw test data is collected during the test operation, and the raw test data includes the load rate and the number of received frames. When the test command is an Ethernet performance test command, the Ethernet performance test command is executed on the microcontroller under test based on the bidirectional data transmission link. The Ethernet performance test command is used to transmit file packets and / or simulated camera video streams to the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes transmission rate, latency rate and packet loss rate. When the test command is a hardware storage test command, the hardware storage test command is executed on the microcontroller under test based on the bidirectional data transmission link. The hardware storage test command is used to send test commands for deletion, reading, writing, file transfer and file overwriting to the storage device of the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes read speed, write speed, read and write latency, file transfer time and storage capacity information.

4. The comprehensive testing method for agricultural machinery microcontrollers according to claim 3, characterized in that, The original test data is standardized, and the standardized test data is then used for test status evaluation to obtain test status evaluation results, including: The format of the original test data is validated for legality. Invalid data that fails the validation is removed to obtain valid original test data. The validity validation includes whether the format of the original test data is correct, whether it exceeds the numerical range, and whether there is duplicate data. Based on the pre-defined unified data specifications, the valid original test data is sequentially processed for format regularization, dimension unification, and data classification and archiving to obtain standardized test data. The test status evaluation indicators are determined, including CAN bus test evaluation indicators, Ethernet performance test evaluation indicators, and hardware storage test evaluation indicators. The CAN bus test evaluation indicators include load rate stability, received frame continuity, and error frame ratio. The Ethernet performance test evaluation indicators include transmission rate compliance rate, latency compliance rate, and packet loss rate compliance rate. The hardware storage test evaluation indicators include read / write speed compliance rate, data consistency, error operation rate, and storage capacity matching degree. The standardized test data is compared one by one with the preset threshold of the corresponding evaluation indicators to determine whether the single indicator meets the standard. Based on the standard meeting result, the single indicator standard meeting score is determined. The single indicator standard meeting score and the corresponding weight are comprehensively scored and calculated based on the weighted scoring method to obtain the comprehensive evaluation score. The comprehensive evaluation score is judged based on the set scoring value. If the comprehensive evaluation score is greater than or equal to the first scoring standard value, the evaluation result of normal test is obtained. If the comprehensive evaluation score is within the range of the first scoring standard value and the second scoring standard value, the evaluation result of potential risk is obtained. If the comprehensive evaluation score is less than the second scoring standard value, the evaluation result of abnormal test is obtained.

5. The comprehensive testing method for agricultural machinery microcontrollers according to claim 4, characterized in that, When the test status assessment result is a test anomaly, a corresponding corrective response process is created based on the anomaly type of the anomaly data. Based on this corrective response process, the bidirectional data transmission link is re-established, or the test status assessment is re-performed to obtain a new test status assessment result, including: When the test status evaluation result is a test anomaly, anomaly data is obtained from the test anomaly evaluation result, and the anomaly type is determined based on the anomaly data. The anomaly types include communication link anomalies, CAN bus test anomalies, Ethernet performance test anomalies, and hardware storage test anomalies. If the exception type is a communication link exception, a corrective response procedure for rebuilding the bidirectional data transmission link is created. The corrective response procedure for rebuilding the bidirectional data transmission link includes: Troubleshoot the link interruption, and reconfigure the network parameters or switch to a matching communication protocol based on the troubleshooting results. Then, resend the connection request to the microcontroller under test based on the reconfigured parameters. When a status signal is received from the microcontroller under test, verify whether the bidirectional data transmission link has been successfully rebuilt. If the exception type is a CAN bus test exception, a corrective response procedure for re-evaluating the CAN bus test status is created. This corrective response procedure for re-evaluating the test status includes: Adjust the CAN bus test parameters, resend the CAN bus test command to the microcontroller under test through the established bidirectional data transmission link, collect new raw test data and complete the standardization process, and re-execute the test status evaluation based on the new standardized test data; If the exception type is an Ethernet performance test exception, a corrective response process for re-evaluating the Ethernet performance test status is created. This corrective response process for re-evaluating the Ethernet performance test status includes: Optimize transmission conditions, adjust test scenarios based on abnormal situations, reissue Ethernet performance test instructions, collect new raw test data and complete standardization processing, and re-execute test status evaluation based on the new standardized test data; If the exception type is a hardware storage test exception, a corrective response process for re-evaluating the hardware storage test status is created. This corrective response process for re-evaluating the hardware storage test status includes: Investigate whether there are physical faults or logical errors in the storage medium, optimize the hardware storage test instructions, reissue the optimized hardware storage test instructions, collect new raw test data and complete the standardization process, and re-execute the test status assessment based on the new standardized test data; If the new test status evaluation result is still an abnormal test, then n correction response processes will be performed based on the set number of corrections n, and an alarm message indicating that the microcontroller under test may have a hardware fault will be generated.

6. A comprehensive testing device for agricultural machinery microcontrollers, applied to the comprehensive testing method for agricultural machinery microcontrollers as described in any one of claims 1 to 5, characterized in that, include: The link establishment module is used to establish a bidirectional data transmission link with the microcontroller under test; The test instruction distribution module is used to convert the user's test requirements into test instructions, and distribute the test instructions to the microcontroller under test through the established bidirectional data transmission link to execute the corresponding test operations and obtain the raw test data generated in the test operations. The test status evaluation module is used to receive the raw test data returned by the microcontroller under test, standardize the raw test data, and evaluate the test status of the standardized test data to obtain the test status evaluation result. The anomaly correction module is used to create a corresponding correction response process based on the anomaly type of the anomaly data when the test status evaluation result is a test anomaly, and to rebuild the bidirectional data transmission link based on the correction response process, or to re-evaluate the test status to obtain a new test status evaluation result.

7. The comprehensive testing device for agricultural machinery microcontrollers according to claim 6, characterized in that, The establishment of a bidirectional data transmission link between the microcontroller under test and the microcontroller includes: The matching communication protocol is determined based on the communication interface specifications of the microcontroller under test, and the network parameters are configured based on the IP address and corresponding port number of the microcontroller under test. Based on the communication protocol and network parameters, a connection request is sent to the microcontroller under test. When a connection success status signal is received from the microcontroller under test, the bidirectional data transmission link is established.

8. The comprehensive testing device for agricultural machinery microcontrollers according to claim 7, characterized in that, The process involves converting user test requirements into test instructions, sending these instructions to the microcontroller under test via a bidirectional data transmission link to execute corresponding test operations, and obtaining raw test data generated during the test operations, including: The system receives user test requests, which are generated by the user selecting the required test items in the test item selection area of ​​the pre-built system graphical interface. The system then generates corresponding test instructions based on the user's test requests, including CAN bus test instructions, Ethernet performance test instructions, and hardware storage test instructions. When the test command is a CAN bus test command, the CAN bus test command is executed on the microcontroller under test based on the bidirectional data transmission link. The CAN bus test command is used to start the CAN bus module of the microcontroller under test and test the CAN communication load rate and the number of received frames respectively. The raw test data is collected during the test operation, and the raw test data includes the load rate and the number of received frames. When the test command is an Ethernet performance test command, the Ethernet performance test command is executed on the microcontroller under test based on the bidirectional data transmission link. The Ethernet performance test command is used to verify the performance of the communication protocol. After the verification is passed, file packets and / or simulated camera video streams are transmitted to the microcontroller under test, and raw test data is collected during the test operation. The raw test data also includes transmission rate, latency rate and packet loss rate. When the test command is a hardware storage test command, the hardware storage test command is executed on the microcontroller under test based on the bidirectional data transmission link. The hardware storage test command is used to send test commands for deletion, reading, writing, file transfer and file overwriting to the storage device of the microcontroller under test, and to collect raw test data during the test operation. The raw test data also includes read speed, write speed, read and write latency, file transfer time and storage capacity information.

9. A comprehensive testing device for agricultural machinery microcontrollers, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the comprehensive testing method for an agricultural machinery microcontroller as described in any one of claims 1 to 5.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the comprehensive testing method for agricultural machinery microcontrollers as described in any one of claims 1 to 5.