CN116662159A - Automobile BootLoader abnormal downloading file testing system and testing method - Google Patents
Automobile BootLoader abnormal downloading file testing system and testing method Download PDFInfo
- Publication number
- CN116662159A CN116662159A CN202310500167.3A CN202310500167A CN116662159A CN 116662159 A CN116662159 A CN 116662159A CN 202310500167 A CN202310500167 A CN 202310500167A CN 116662159 A CN116662159 A CN 116662159A
- Authority
- CN
- China
- Prior art keywords
- file
- abnormal
- module
- test
- bootloader
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 132
- 238000012360 testing method Methods 0.000 title claims abstract description 115
- 238000002347 injection Methods 0.000 claims abstract description 20
- 239000007924 injection Substances 0.000 claims abstract description 20
- 238000012795 verification Methods 0.000 claims abstract description 19
- 238000004891 communication Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 5
- 238000010998 test method Methods 0.000 claims description 4
- 238000003745 diagnosis Methods 0.000 description 3
- 230000004075 alteration Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a testing system and a testing method for an automobile Bootloader abnormal download file, wherein the testing system comprises an abnormal file injection module, a download file verification module, an abnormal file report module and an automatic test execution unit; the abnormal file injection module is used for randomly generating an abnormal file according to the proportion set by a user and sending the generated abnormal file and a normal file to the ECU; the download file verification module is used for detecting whether the file downloaded by the Bootloader is abnormal or not, and if the abnormal file is found, the file is sent to the abnormal file report module; the abnormal file report module is used for recording the abnormal file found by the file verification module and generating a test result from the recorded data; the automatic test execution unit is respectively in communication connection with the abnormal file injection module, the downloaded file verification module and the abnormal file report module and is used for controlling the modules to obtain test results and automatic index test results.
Description
Technical Field
The invention belongs to the technical field of automobile BootLoader testing, and particularly relates to an automobile BootLoader abnormal downloading file testing system and an automobile BootLoader abnormal downloading file testing method.
Background
Bootloader is a key component responsible for starting an on-board Electronic Control Unit (ECU) in an automotive electronic system. To ensure proper operation of the ECU, bootloader needs to update downloads and verify various software files. However, sometimes, the Bootloader downloads an erroneous file due to a network environment, interference in the file transfer process, and the like, thereby causing the ECU to fail to operate normally.
At present, most host factories have own Bootloader testing methods and systems. CN113934582a discloses a BOOTLOADER test method: loading APP Hex and Flashdriver Hex files; when a BOOTLOADER test instruction is received, the upper computer invokes a diagnosis service to realize CAN message interaction with the tested part; judging whether the tested part is responding to the diagnosis service or not; if yes, prompting the user to input a secret key; if the key input by the user is correct, judging whether the tested part is responding to the diagnosis service or not again; if yes, prompting that the refreshing is completed successfully, and ending the refreshing.
However, these methods and systems are mainly based on normal files, and when downloading error files, the files need to be manually changed, and it is difficult to detect the fault tolerance of Bootloader due to the difference of the test capability of testers.
Therefore, there is a need for a reliable testing method and system to detect if Bootloader can download files correctly, and to discover and resolve download errors in time.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a testing system and a testing method for an abnormal download file of an automobile BootLoader.
The invention aims at realizing the following technical scheme:
an automobile Bootloader abnormal download file test system comprises an abnormal file injection module, a download file verification module, an abnormal file report module and an automatic test execution unit;
the abnormal file injection module is used for randomly generating an abnormal file according to the proportion set by a user and sending the generated abnormal file and a normal file to the ECU;
the download file verification module is used for detecting whether the file downloaded by the Bootloader is abnormal or not, and if the abnormal file is found, the file is sent to the abnormal file report module;
the abnormal file report module is used for recording the abnormal file found by the file verification module and generating a test result from the recorded data;
the automatic test execution unit is respectively in communication connection with the abnormal file injection module, the downloaded file verification module and the abnormal file report module and is used for controlling the modules to obtain test results and automatic index test results.
Further, the abnormal files generated by the abnormal file injection module comprise Flash abnormal files, APP abnormal files, CAL and CALlib abnormal files.
Further, the abnormal file reporting module performs data processing on the recorded abnormal file to generate a test result.
Further, the abnormal file report module further generates a test report according to the generated test result.
Preferably, the abnormal file report module further generates a test result index according to the generated test result.
Further, the test system also comprises a power supply control module, wherein the power supply control module is used for performing high-low voltage control and voltage on-off control of the test system.
Preferably, the voltage on-off control of the power supply control module comprises the following working conditions: the power is cut off in the erasing and writing process; powering off before erasing is completed but data is written; power is turned off during the writing of data.
The invention also provides a test method of the test system for the file abnormally downloaded by the Bootloader of the automobile, which comprises the following steps:
step one, establishing the test system;
step two, setting test conditions including CAN network state, transmission speed and data to be transmitted;
step three, setting an abnormal working condition according to the test requirement;
step four, testing and downloading process: randomly generating an abnormal file through the abnormal file injection module, and sending the abnormal file and the normal file to the ECU; testing a Bootloader downloaded file, verifying whether the downloaded file is transmitted correctly or not, and recording a test result;
step five, analyzing test data: and D, processing and analyzing the test result in the step four by the abnormal file report module, extracting key information and generating an automatic test report.
The invention has the following advantages:
the invention provides a system and a method for testing an abnormal download file of an automobile BootLoader.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the drawings to be used in the description of the embodiments of the present invention, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the contents of the embodiments of the present invention and these drawings without inventive effort for those skilled in the art.
Fig. 1 is a schematic structural diagram of an abnormal downloading file testing system of an automobile Bootloader according to embodiment 1 of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
An automobile Bootloader abnormal download file test system comprises an abnormal file injection module, a download file verification module, an abnormal file report module and an automatic test execution unit;
the abnormal file injection module is used for randomly generating an abnormal file according to the proportion set by a user and sending the generated abnormal file and a normal file to the ECU;
the download file verification module is used for detecting whether the file downloaded by the Bootloader is abnormal or not, and if the abnormal file is found, the file is sent to the abnormal file report module.
The abnormal file report module is used for recording the abnormal file found by the file verification module and generating a test result from the recorded data;
the automatic test execution unit is respectively in communication connection with the abnormal file injection module, the downloaded file verification module and the abnormal file report module and is used for controlling the modules to obtain test results and automatic index test results.
Further, the abnormal files generated by the abnormal file injection module comprise Flash abnormal files, APP abnormal files, CAL and CALlib abnormal files.
Further, the abnormal file reporting module performs data processing on the recorded abnormal file to generate a test result.
Further, the abnormal file report module further generates a test report according to the generated test result.
Preferably, the abnormal file report module further generates a test result index according to the generated test result.
Further, the test system also comprises a power supply control module, wherein the power supply control module is used for performing high-low voltage control and voltage on-off control of the test system.
Preferably, the voltage on-off control of the power supply control module comprises the following working conditions: the power is cut off in the erasing and writing process; powering off before erasing is completed but data is written; power is turned off during the writing of data.
A test method of an automobile Bootloader abnormal download file test system comprises the following steps:
step one, establishing the test system;
step two, setting test conditions including CAN network state, transmission speed and data to be transmitted;
step three, setting an abnormal working condition according to the test requirement;
step four, testing and downloading process: randomly generating an abnormal file through the abnormal file injection module, and sending the abnormal file and the normal file to the ECU; testing a Bootloader downloaded file, verifying whether the downloaded file is transmitted correctly or not, and recording a test result;
step five, analyzing test data: and D, processing and analyzing the test result in the step four by the abnormal file report module, extracting key information and generating an automatic test report.
Example 1
As shown in FIG. 1, an automobile Bootloader abnormal download file test system comprises a power supply control module, an abnormal file injection module, a download file verification module, an abnormal file report module and an automatic test execution unit;
the power supply control module integrates the regulation functions of high-low voltage control and voltage on-off control, and relates to various working conditions such as power off in the erasing process, power off before the erasing is completed but data is written, power off in the data writing process and the like.
The abnormal file injection module is used for randomly generating abnormal files according to the proportion set by a user, including Flash abnormal files, APP abnormal files, CAL, CALlib abnormal files and the like, simulating abnormal data such as abnormal LiveCounter, CHECKSUM and the like in the abnormal checksum, and sending the generated abnormal files and the normal files to the ECU.
The download file verification module is used for detecting whether the file downloaded by the Bootloader meets the specification or not, and if the abnormal file is found, the file is sent to the abnormal file report module.
The abnormal file report module is used for recording the abnormal file found by the file verification module and generating a test result index from the recorded data.
The automatic test execution unit is in communication connection with the modules and is used for calling the related equipment to realize automatic test execution, and meanwhile, an automatic test result can be obtained and can be automatically indexed.
Example 2
A testing method for an automobile Bootloader abnormal downloaded file comprises the following steps:
1. establishing a test system: the test system according to embodiment 1 is constructed and has the function of simulating abnormal conditions, including hardware devices and software programs.
2. Configuring test conditions: and setting test conditions including parameters such as CAN network state, transmission speed, data to be transmitted and the like.
3. Setting an abnormal working condition: setting various abnormal working conditions such as power interruption, transmission of Flash abnormal files, APP abnormal files, CAL, CALlib abnormal files, abnormal LiveCounter, CHECKSUM and other abnormal data.
4. The test downloading process comprises the following steps: and randomly generating an abnormal file, transmitting the abnormal file and the normal file to the ECU, testing a Bootloader downloaded file by using a testing system, verifying whether the downloaded file is transmitted correctly or not, and recording a testing result.
5. Analyzing the test data: analyzing the automatic test result, extracting key information and generating an automatic test report.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (8)
1. The automobile Bootloader abnormal download file testing system is characterized by comprising an abnormal file injection module, a download file verification module, an abnormal file report module and an automatic test execution unit;
the abnormal file injection module is used for randomly generating an abnormal file according to the proportion set by a user and sending the generated abnormal file and a normal file to the ECU;
the download file verification module is used for detecting whether the file downloaded by the Bootloader is abnormal or not, and if the abnormal file is found, the file is sent to the abnormal file report module;
the abnormal file report module is used for recording the abnormal file found by the file verification module and generating a test result from the recorded data;
the automatic test execution unit is respectively in communication connection with the abnormal file injection module, the downloaded file verification module and the abnormal file report module and is used for controlling the modules to obtain test results and automatic index test results.
2. The system for testing the file under the abnormal download of the Bootloader of the automobile according to claim 1, wherein the abnormal file generated by the abnormal file injection module comprises a Flash abnormal file, an APP abnormal file, a CAL, and a CALlib abnormal file.
3. The system for testing the file under the abnormal download of the Bootloader of the automobile according to claim 1, wherein the abnormal file reporting module processes the recorded abnormal file to generate a test result.
4. An automobile Bootloader exception download file test system as in claim 3, wherein said exception file report module further generates a test report based on the generated test results.
5. An automobile Bootloader exception download file test system as in claim 3, wherein said exception file reporting module further generates a test result index based on the generated test results.
6. The system for testing an abnormal download file of an automobile Bootloader according to claim 1, further comprising a power control module, wherein the power control module is used for performing high-low voltage control and voltage on-off control of the testing system.
7. The system for testing an abnormal download file of an automobile Bootloader as set forth in claim 6, wherein the voltage on-off control of the power control module comprises the following conditions: the power is cut off in the erasing and writing process; powering off before erasing is completed but data is written; power is turned off during the writing of data.
8. The test method of the automobile Bootloader abnormal download file test system according to claim 1, comprising the following steps:
step one, establishing the test system;
step two, setting test conditions including CAN network state, transmission speed and data to be transmitted;
step three, setting an abnormal working condition according to the test requirement;
step four, testing and downloading process: randomly generating an abnormal file through the abnormal file injection module, and sending the abnormal file and the normal file to the ECU; testing a Bootloader downloaded file, verifying whether the downloaded file is transmitted correctly or not, and recording a test result;
step five, analyzing test data: and D, processing and analyzing the test result in the step four by the abnormal file report module, extracting key information and generating an automatic test report.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310500167.3A CN116662159A (en) | 2023-05-06 | 2023-05-06 | Automobile BootLoader abnormal downloading file testing system and testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310500167.3A CN116662159A (en) | 2023-05-06 | 2023-05-06 | Automobile BootLoader abnormal downloading file testing system and testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116662159A true CN116662159A (en) | 2023-08-29 |
Family
ID=87723260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310500167.3A Pending CN116662159A (en) | 2023-05-06 | 2023-05-06 | Automobile BootLoader abnormal downloading file testing system and testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116662159A (en) |
-
2023
- 2023-05-06 CN CN202310500167.3A patent/CN116662159A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110888414B (en) | Test method for upgrading vehicle controller | |
US20030051235A1 (en) | Method and apparatus for verifying and analyzing computer software installation | |
CN110703726B (en) | Automatic upgrading test method applied to locomotive | |
CN110687888B (en) | Automatic upgrading test device and system applied to locomotive | |
KR102141287B1 (en) | Fault injection test method and system for vehicle software based on autosar | |
CN110928556A (en) | Automatic program burning method and device for railway vehicle, and testing method and system | |
CN105120259A (en) | Detection method and apparatus for digital television | |
CN105045671A (en) | Method and device for upgrading systems of intelligent terminals | |
CN110198222B (en) | Plug-and-play test method and test master station for power distribution automation terminal | |
CN116662159A (en) | Automobile BootLoader abnormal downloading file testing system and testing method | |
CN115495129A (en) | Firmware upgrading method, device, equipment, medium and product | |
CN114880972A (en) | Verification method supporting error injection verification test and computer readable medium | |
CN106528248B (en) | Downloading method and system of mobile terminal based on software integrity | |
CN115348200A (en) | CAN communication function test method and test system | |
CN114496053A (en) | Data anomaly detection method, device and equipment and computer readable storage medium | |
CN109428936B (en) | APP upgrading method, device, system, electronic equipment and storage medium | |
CN117910401B (en) | Method, apparatus, device, storage medium and program product for configuring operation mode | |
CN117743059B (en) | Processor testing method and device, electronic equipment and readable storage medium | |
CN110794282B (en) | dSPACE-HIL system based method and apparatus for communicating with electronic devices | |
CN114911531B (en) | Hardware environment simulation method and hardware environment simulation system | |
CN112560035A (en) | Application detection method, device, equipment and storage medium | |
CN117857405A (en) | Protocol fuzzy test method and device based on socket hook and computer equipment | |
CN118151977A (en) | Firmware upgrading method and system of controller chip | |
CN115687149A (en) | Automatic testing method, device, terminal equipment and system for automobile central control | |
CN117472756A (en) | Application system testing method and device, storage medium and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |