Embedded DSP (Digital Signal Processor) system fault injection test method, system, equipment and medium

By programming faulty machine codes into the embedded DSP system and simulating faults using a fault injection platform, the testing challenges of embedded DSP systems are solved, and the reliability and availability of the system are improved.

CN119003254APending Publication Date: 2024-11-22GUOKE FOUNDATION STONE (CHONGQING) SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411061605.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing technologies are insufficient for effectively testing faults in embedded DSP systems, resulting in inadequate system reliability and availability.

Method used

The fault machine code is burned into the embedded DSP system, and the fault parameters are sent to the system using a fault injection platform and serial communication to simulate the fault for testing.

Benefits of technology

This technology enables fault injection and testing of embedded DSP systems, identifies system weaknesses, and improves system reliability and availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003254A_ABST
    Figure CN119003254A_ABST
Patent Text Reader

Abstract

The invention relates to an embedded DSP system fault injection test method, system and device and a medium. The method comprises the steps that a fault machine code is burnt to an embedded DSP system; receiving fault parameters input by the fault injection platform, converting the fault parameters into serial port commands, sending the serial port commands to the embedded DSP system through a serial port, executing fault machine code simulation faults, and achieving fault testing of the embedded DSP system; according to the fault test result, determining the influence of the fault on the embedded DSP system; according to the method, the fault is injected into the embedded DSP system, one or more faults are appointed or randomly injected in a fault simulation mode by means of an external platform according to test requirements, the test result of the system is checked to determine the weak point of the system, and therefore the system is reinforced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of embedded hardware testing, and in particular to an embedded DSP system fault injection testing method, system, device and medium. Background Art

[0002] Hardware fault testing is an important means to improve hardware quality and stability. Fault testing is mostly implemented in software testing, while hardware testing basically treats it as a test environment and determines problems in the current hardware development process based on the test results. Problems that may be caused by the hardware operation process cannot be tested.

[0003] Embedded DSP (Digital Signal Processor) processor is an embedded DSP processor that is very good at implementing various digital signal processing operations at high speed. As the application field of embedded DSP systems becomes more and more extensive, the types of faults, the probability of occurrence and randomness become greater, and the demand for improving system reliability, high availability, robustness, etc. becomes more urgent.

[0004] Therefore, there is an urgent need for an embedded hardware fault injection method that can flexibly carry out embedded hardware testing. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides an embedded DSP system fault injection test method, system, device and medium.

[0006] According to a first aspect of an embodiment of the present disclosure, a method for fault injection testing of an embedded DSP system is provided, comprising:

[0007] Burn the faulty machine code into the embedded DSP system;

[0008] Receive the fault parameters input by the fault injection platform, convert the fault parameters into serial port commands and send them to the embedded DSP system through the serial port, execute the fault machine code to simulate the fault, and realize fault testing of the embedded DSP system.

[0009] Furthermore, the step of burning the faulty machine code into the embedded DSP system comprises the following steps:

[0010] The faulty machine code and the burning instruction are received through the serial port, the burning instruction is responded to, and the faulty machine code is burned into the embedded DSP program memory based on the embedded DSP system configuration.

[0011] Furthermore, the step of burning the faulty machine code into the embedded DSP system comprises the following steps:

[0012] The fault code and the proxy service program code corresponding to the fault are integrated into the application code, and the integrated application is compiled into the fault machine code and burned into the embedded DSP system.

[0013] Furthermore, the step of burning the faulty machine code to be burned to the designated burning position includes the following steps:

[0014] Integrate and insert at least one code block corresponding to the fault machine type into the location corresponding to the main function of the application;

[0015] The integrated application is compiled to generate a binary target file, and the binary target file is burned into the embedded DSP system.

[0016] Furthermore, the receiving fault parameters input by the fault injection platform, converting the fault parameters into serial port commands and sending them to the embedded DSP system through the serial port, and the fault proxy service generating corresponding simulated faults according to the fault parameters to perform fault testing on the embedded DSP system include the following steps:

[0017] After receiving the fault parameters input by the fault injection platform, the lower-level agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system through the serial port;

[0018] The fault proxy service executes the fault machine code to simulate the fault according to the serial port request parameters, and implements the specified fault test on the embedded DSP system.

[0019] Furthermore, the lower machine agent service determines whether there is any fault parameter information input through a monitoring program, wherein the fault parameter information includes a unique identifier of the embedded DSP system.

[0020] Further, when receiving the RAM leakage fault parameters input by the fault injection platform, the following steps are performed:

[0021] The lower computer agent service converts the RAM leakage fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system;

[0022] The fault proxy service calls the execute method to perform fault simulation operations according to the parameter information, and triggers the exception method to start RAM leakage for fault testing.

[0023] According to a second aspect of the embodiment of the present disclosure, there is provided an embedded DSP system fault injection test system, comprising:

[0024] Fault burning module, used to burn fault machine code into embedded DSP system;

[0025] Fault proxy service, which is used to receive fault parameters input by the fault injection platform, convert the fault parameters into serial port commands and send them to the embedded DSP system through the serial port, execute the fault machine code to simulate the fault, so as to realize fault testing of the embedded DSP system, and transmit the test results to the fault injection platform;

[0026] Fault injection platform for managing faulty machine code in embedded DSP systems.

[0027] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the embedded DSP system fault injection test method provided in the first aspect of the present disclosure.

[0028] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the embedded DSP system fault injection test method provided in the first aspect of the present disclosure are implemented.

[0029] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: first, the faults that may be generated during the operation of the DSP system are selectively burned into the system. For the fault test of the DSP system, the fault parameters are input through the fault injection platform, and then the fault parameters are sent to the embedded DSP system using the lower machine agent and the communication protocol. The fault agent service triggers and runs the corresponding faults according to the fault parameters to implement the fault test of the embedded DSP system. With such a setting, faults are injected into the embedded DSP system. With the help of an external platform, one or more faults are specified or randomly injected by simulating faults according to the test requirements. The test results can determine the weak points of the system and the impact of the faults on the embedded DSP system, thereby strengthening the system.

[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0032] Figure 1 The present invention is a flowchart of a fault injection test method for an embedded DSP system according to an exemplary embodiment.

[0033] Figure 2 is a schematic diagram of an atomic fault platform according to an exemplary embodiment.

[0034] Figure 3 It is a schematic diagram of a system architecture according to an exemplary embodiment.

[0035] Figure 4 It is a flowchart of the specific execution of step S2 according to an exemplary embodiment.

[0036] Figure 5 The present invention is a flowchart showing a fault proxy service starting a corresponding fault simulation operation according to a fault parameter according to an exemplary embodiment.

[0037] Figure 6 The figure is a block diagram of a fault simulation operation process according to an exemplary embodiment.

[0038] Figure 7 The present invention is a block diagram of a fault injection test system for an embedded DSP system according to an exemplary embodiment.

[0039] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail below with reference to the accompanying drawings.

[0041] It should be pointed out that the relevant embodiments and drawings are only for describing exemplary embodiments provided by the present disclosure, rather than all embodiments of the present disclosure, and it should not be understood that the present disclosure is limited to the relevant exemplary embodiments.

[0042] It should be noted that the terms "first", "second", etc. used in the present disclosure are only used to distinguish different steps, devices or modules, etc. The related terms neither represent any specific technical meanings nor indicate the order or interdependence between them.

[0043] It should be noted that the modifications of the terms "one", "multiple", and "at least one" used in the present disclosure are illustrative rather than restrictive. Unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0044] It should be noted that the term "and / or" used in this disclosure is used to describe the association relationship between associated objects, and generally indicates that there are at least three association relationships. For example, A and / or B can at least indicate the existence of three association relationships: A exists alone, A and B exist at the same time, and B exists alone.

[0045] It should be noted that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Unless otherwise specified, the scope of the present disclosure is not limited by the order of description of the steps in the relevant embodiments.

[0046] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0047] Exemplary Methods

[0048] Figure 1 FIG. 1 is a flow chart of a fault injection test method for an embedded DSP system according to an exemplary embodiment. Figure 1 As shown, the following steps are included.

[0049] In step S1, the faulty machine code is burned into the embedded DSP system;

[0050] In step S2, the fault parameters input by the fault injection platform are received, the fault parameters are converted into serial port commands and then sent to the embedded DSP system through the serial port, the fault machine code is executed to simulate the fault, and the fault test of the embedded DSP system is realized.

[0051] According to the fault test results, determine the impact of the fault on the embedded DSP system.

[0052] The embedded DSP system fault injection test method provided in this embodiment first selectively burns the faults that may be generated during the operation of the DSP system into the system. For the fault test of the DSP system, the fault parameters are input through the fault injection platform, and then the fault parameters are sent to the embedded DSP system using the lower machine agent and the communication protocol. The fault agent service triggers and runs the corresponding fault according to the fault parameters to implement the fault test of the embedded DSP system. With this setting, the fault is injected into the embedded DSP system, and one or more faults are specified or randomly injected by simulating faults according to the test requirements with the help of an external platform.

[0053] In this embodiment, a fault test is performed on the embedded DSP system, and based on the fault test results and the system response, the weak points of the system are determined, and the impact of the fault on the embedded DSP system is determined so as to reinforce the system.

[0054] In this embodiment, in order to facilitate the creation of faults, specific faults are selectively injected into the embedded DSP system. The fault injection platform integrates an atomic fault library of multiple fault models. Figure 2As shown, it is a schematic diagram of the atomic fault platform provided in this embodiment. A parameter model is set corresponding to each fault in the atomic fault library. When a fault is created, a corresponding json type string is generated according to the selected fault, which makes it easy to change the configuration and increase the fault instance according to the test requirements; for example, the atomic fault library includes fault models such as software fault, security fault, real-time fault, power fault, communication fault, and timer fault.

[0055] Based on the setting of the atomic fault library of the above fault injection platform, the implementation steps of step S1 are as follows:

[0056] Step S11, receiving the faulty machine code and the burning instruction through the serial port, responding to the burning instruction, and burning the faulty machine code into the embedded DSP program memory based on the embedded DSP system configuration.

[0057] In a specific embodiment, step S11 includes the following steps:

[0058] The fault platform selects fault parameters that can convey and simulate corresponding faults. It is necessary to burn the corresponding fault machine codes in all fault atomic libraries into the DSP system in advance. Therefore, the fault code and proxy service program code corresponding to the fault are integrated into the application code, and the integrated application code is compiled into the fault machine code and burned into the embedded DSP system.

[0059] In this embodiment, the burning instruction is used to instruct the embedded DSP system startup code to burn according to the received burning data packet, and the burning data packet is a faulty machine code packet to be burned into the embedded DSP system program memory.

[0060] In this embodiment, burning the faulty machine code to be burned to the designated burning location may include the following implementation steps:

[0061] Step 1: Integrate at least one code block corresponding to the fault type and the code block corresponding to the proxy service program into the location corresponding to the main function of the application program, such as inserting the code block before or after the main function (main method) of the program startup;

[0062] Step 2: Compile the integrated application to generate fault machine code in the form of binary target file, and burn the binary target file into the embedded DSP system.

[0063] This embodiment realizes bidirectional communication between the platform and the embedded DSP chip through the serial port supported by the embedded DSP system, supports the functions of downloading and burning codes of multiple fault machines, is not restricted by specific standard interfaces, devices and software, and improves flexibility.

[0064] In this embodiment, reference Figure 3As shown, it is a schematic diagram of the system architecture provided by this embodiment, a fault injection platform and multiple embedded DSP systems deployed, each embedded DSP system is provided with a fault burning agent service and a fault proxy service, so as to realize the simultaneous burning of fault machine codes, agent service programs and fault startup services for multiple embedded DSP systems.

[0065] After the DSP system communication interface receives the burning instruction and the burning fault machine code sent by the terminal, it parses the received burning instruction, and based on the parsed chip continuous address read and write function, and then according to the burning fault machine code, the chip continuous address read and write storage space operation is performed to realize the download of the burning proxy service program and the burning fault machine code. The download address can be the DRAM (dynamic random access memory) of the DSP system, and the burning address is the program memory of the DSP system, which can be the FLASH (flash memory, non-volatile memory) of the DSP system.

[0066] In this embodiment, the fault machine code package can be set as a fault combination according to the test requirements, and the fault combination includes one or more fault groups, and one fault group includes one fault task or multiple fault tasks; multiple fault tasks can be multiple tasks with associated / unassociated execution results and specified / unspecified execution order. The fault task can be used to detect the degree of impact of the fault on the embedded DSP system, or to determine the ability of the embedded DSP system to repair / process the fault based on the injection of the fault, etc. It can be set according to the test requirements and is not specifically limited here.

[0067] In one embodiment, the following steps are also included:

[0068] After the embedded DSP system completes the burning of the data packet, it sends a response signal to the fault injection platform, wherein the response signal may be an ACK response data packet.

[0069] In this embodiment, reference Figure 4 As shown, it is a specific execution flow chart of step S2 provided in this embodiment. In step S2, the fault parameters input by the fault injection platform are received, and the fault parameters are sent to the embedded DSP system through the serial port. The fault proxy service generates corresponding simulated faults according to the fault parameters, so as to perform fault testing on the embedded DSP system, which specifically includes the following steps:

[0070] Step S21, receiving the fault parameters input by the fault injection platform, the lower machine agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system through the serial port.

[0071] Step S22, the fault proxy service executes the fault machine code to simulate the fault according to the serial port request parameters, so as to implement the specified fault test on the embedded DSP system.

[0072] According to the test requirements, a certain number of fault codes required for the test can be burned into the embedded DSP system. In this embodiment, the tester inputs fault parameters through the fault injection platform to distinguish and determine the faults to be started, so as to realize the test functions of different faults.

[0073] In one embodiment, the fault injection platform displays each fault and corresponding parameters in a page-based manner, and the fault agent generates simulated faults based on the parameters; for example, a RAM leak of a security fault type is injected into the embedded system through the fault injection platform, and when the fault is injected, the lower machine agent is called to enable the fault agent program to generate a corresponding simulated fault.

[0074] In a specific embodiment, reference Figure 5 As shown, the fault proxy service provided by the embodiment starts a corresponding fault simulation operation flow chart according to the fault parameters. The fault proxy service starts a corresponding fault simulation operation according to the fault parameters and specifically includes the following steps:

[0075] Step S221, the embedded DSP system enables the embedded DSP system to run normally according to the startup instruction;

[0076] Step S222, when receiving the fault parameters input by the fault injection platform, the lower computer agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system;

[0077] Step S223, the fault proxy service forcibly starts the code program of the fault function according to the serial port request parameters, and performs fault simulation operations to implement the specified fault test.

[0078] In another specific embodiment, referring to Figure 6 As shown, it is a block diagram of the fault simulation operation process provided by this embodiment. The lower machine agent service converts the fault parameters into serial port request parameters according to the preset communication protocol. The specific implementation method is as follows:

[0079] Receive the fault parameters input by the fault injection platform, call the lower computer agent service, convert the fault parameter information into serial port request parameters, and send the serial port request parameters to the embedded DSP system according to the RS232 communication protocol.

[0080] For example, in order to implement the RAM leakage fault of the above-mentioned security fault class, receive the corresponding fault parameters input by the fault injection platform (DspChaosEventObject(success=true,msg=null,requestParam=DspChaosAgentTool.CommandParam(dspChaosAgentExecuteDto=DspChaosAgentExecuteDto(communicationType=2,toolIp=10.10.57.39,serialPort=COM5,baud=9600,dataBits=8,stopBits=1,experimentParams={}),action=9))), call the lower computer agent service, convert the fault parameter information into serial port request parameters, and the serial port request parameters reach the embedded DSP system through the RS232 / RS422 / RS485 protocol serial port line. The fault agent service calls the command_execute() method to perform the fault simulation operation according to the parameter information, action=9, triggers the chaos_mem_leak_exception() method, and starts the memory leakage fault test.

[0081] In this embodiment, the lower machine agent service determines whether there is fault parameter information input through the monitoring program, wherein the fault parameter information includes the unique identifier of the embedded DSP system;

[0082] When receiving the http request from the fault injection platform, the locally available serial port is monitored, the fault parameter information is converted into serial port request parameters, and according to the unique identifier of the embedded DSP system, the serial port request parameters are sent to the corresponding embedded DSP system through the available serial port and RS232 communication protocol.

[0083] The method of this embodiment utilizes a fault injection platform to uniformly manage the test requirements of the faulty machine code and the embedded DSP system, selects the fault to be burned into the target embedded DSP system with the fault proxy service, and then sends the fault injection instruction to the target embedded DSP system. The fault parameters are input according to the fault injection platform, and the fault injection instruction is executed through the fault proxy service. This method can not only realize the fault simulation of multiple embedded DSP systems, but also simulate the fault scenarios and quantities of the embedded DSP system. The operation is simple, and the fault simulation efficiency of the embedded DSP system is improved.

[0084] Exemplary Systems

[0085] Figure 7 FIG. 1 is a block diagram of a fault injection test system for an embedded DSP system according to an exemplary embodiment. Figure 7 The system 200 includes a fault burning module 210 and a fault proxy service 220 deployed in an embedded DSP system, and a fault injection platform 230.

[0086] The fault burning module 210 is used to burn the fault machine code into the embedded DSP system;

[0087] The fault proxy service 220 is used to receive the fault parameters input by the fault injection platform, convert the fault parameters into serial port commands and send them to the embedded DSP system through the serial port, execute the fault machine code to simulate the fault, so as to perform fault testing on the embedded DSP system, and transmit the test results to the fault injection platform 230;

[0088] The fault injection platform 230 is used to manage faulty machine codes of the embedded DSP system.

[0089] In the embedded DSP system fault injection test system provided in this embodiment, the fault burning module 210 first selectively burns the faults that may be generated during the operation of the DSP system into the DSP system. For the fault test of the DSP system, the fault parameters are input through the fault injection platform, and then the fault parameters are sent to the embedded DSP system using the lower machine agent and the communication protocol. The fault proxy service 220 triggers and runs the corresponding fault according to the fault parameters to implement the fault test of the embedded DSP system. With this setting, the fault is injected into the embedded DSP system. With the help of an external platform, one or more faults are specified or randomly injected by simulating faults according to the test requirements. The test results of the system are viewed through the fault injection platform 230, and the weak points of the system are determined through the system response, so as to strengthen the system.

[0090] In this embodiment, the fault burning module 210 is configured to perform the following steps:

[0091] Integrate the fault code and proxy service program code corresponding to the fault into the application code, compile the integrated application code into the fault machine code and burn it into the embedded DSP system

[0092] In this embodiment, burning the faulty machine code to be burned into the designated burning position of the embedded DSP system may include the following implementation steps:

[0093] Step 1: Integrate and insert the code block corresponding to at least one fault type and the code block corresponding to the proxy service program into the corresponding position of the main function of the application program according to the specified burning position, such as before or after the main method of the main function;

[0094] Step 2: Compile the integrated application to generate fault machine code in the form of binary target file, and burn the binary target file into the embedded DSP system.

[0095] In this embodiment, a lower-level machine proxy service is also included, which is specifically used for:

[0096] Receiving the fault parameters input by the fault injection platform 230, the lower computer agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system;

[0097] The fault proxy service 220 executes the fault machine code to simulate the fault according to the serial port request parameters, thereby implementing a specified fault test on the embedded DSP system.

[0098] In this embodiment, the fault injection platform 230, the embedded DSP system, the lower machine proxy service and the fault proxy service 220 are configured to cooperate to perform the following steps to implement the fault simulation operation:

[0099] Step A221, the embedded DSP system makes the embedded DSP system run normally according to the startup instruction;

[0100] Step A222, when receiving the fault parameters input by the fault injection platform, the lower computer agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system;

[0101] Step A223, the embedded DSP system forcibly starts the code program of the fault function according to the serial port request parameters, and performs fault simulation operations to implement the specified fault test.

[0102] In this embodiment, the lower machine agent service determines whether there is fault parameter information input through the monitoring program, wherein the parameter information includes the unique identifier of the embedded DSP system;

[0103] When receiving the http request from the fault injection platform, the locally available serial port is monitored, the fault parameter information is converted into serial port request parameters, and the serial port request parameters are sent to the corresponding embedded DSP system through the available serial port and RS232 communication protocol.

[0104] The system embodiment of the present disclosure corresponds to the technical solution of the above method embodiment. The specific operation of each module can be understood by referring to the description in the method embodiment. Figure 1-3 Understood, no further elaboration here.

[0105] Exemplary Electronic Devices

[0106] Figure 88 is a block diagram of an electronic device 800 according to an exemplary embodiment. The electronic device 500 may be a vehicle controller, a vehicle terminal, a vehicle computer or other types of electronic devices.

[0107] Reference Figure 8 , the electronic device 800 may include at least one processor 810 and a memory 820. The processor 810 may execute instructions stored in the memory 820. The processor 810 is communicatively connected to the memory 820 via a data bus. In addition to the memory 820, the processor 810 may also be communicatively connected to an input device 830, an output device 840, and a communication device 850 via a data bus.

[0108] The processor 810 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0109] The memory 820 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0110] In the embodiment of the present disclosure, executable instructions are stored in the memory 820, and the processor 810 can read the executable instructions from the memory 820 and execute the instructions to implement all or part of the steps of the embedded DSP system fault injection test method described in any of the above exemplary embodiments.

[0111] Exemplary computer-readable storage media

[0112] In addition to the above methods and devices, the exemplary embodiments of the present disclosure may also be a computer program product or a computer-readable storage medium storing the computer program product. The computer product includes computer program instructions that can be executed by a processor to implement all or part of the steps described in any method in the above exemplary embodiments.

[0113] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and also conventional procedural programming languages, such as "C" language or similar programming languages ​​and scripting languages ​​(e.g., Python). The program code may be executed entirely on the user computing device, partially on the user computing device, as an independent software package, partially on the user computing device and partially on the remote computing device, or entirely on the remote computing device or server.

[0114] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of readable storage media include: a static random access memory (SRAM) with one or more wires electrically connected, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk or an optical disk, or any suitable combination of the above.

[0115] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0116] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A fault injection test method for an embedded DSP system, characterized in that: include: Burn the faulty machine code into the embedded DSP system; Receive the fault parameters input by the fault injection platform, convert the fault parameters into serial port commands and send them to the embedded DSP system through the serial port, execute the fault machine code to simulate the fault, and realize the fault test of the embedded DSP system.

2. The embedded DSP system fault injection test method according to claim 1, characterized in that: The method of burning the faulty machine code into the embedded DSP system comprises the following steps: The faulty machine code and the burning instruction are received through the serial port, the burning instruction is responded to, and the faulty machine code is burned into the embedded DSP program memory based on the embedded DSP system configuration.

3. The embedded DSP system fault injection test method according to claim 1 or 2, characterized in that: The method of burning the faulty machine code into the embedded DSP system comprises the following steps: The fault code and the proxy service program code corresponding to the fault are integrated into the application code, and the integrated application code is compiled into the fault machine code and burned into the embedded DSP system.

4. The embedded DSP system fault injection test method according to claim 3, characterized in that: The method of burning the faulty machine code to be burned to the designated burning position comprises the following steps: Integrate and insert a code block corresponding to at least one fault type and a code block corresponding to the proxy service program into a position corresponding to the main function of the application program; The integrated application is compiled to generate fault machine code in the form of a binary target file, and the binary target file is burned into the embedded DSP system.

5. The embedded DSP system fault injection test method according to claim 1, characterized in that: The receiving fault parameters input by the fault injection platform, converting the fault parameters into serial port commands and sending them to the embedded DSP system through the serial port, and the fault proxy service generating corresponding simulated faults according to the fault parameters to perform fault testing on the embedded DSP system include the following steps: After receiving the fault parameters input by the fault injection platform, the lower-level agent service converts the fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system through the serial port; The fault proxy service executes the fault machine code to simulate the fault according to the serial port request parameters, and implements the specified fault test on the embedded DSP system.

6. The embedded DSP system fault injection test method according to claim 5, characterized in that: The lower machine agent service determines whether there is fault parameter information input through a monitoring program, wherein the fault parameter information includes a unique identifier of the embedded DSP system.

7. The embedded DSP system fault injection test method according to claim 5, characterized in that: When receiving the RAM leakage fault parameters input by the fault injection platform, the following steps are performed: The lower computer agent service converts the RAM leakage fault parameters into serial port request parameters according to the preset communication protocol and sends them to the embedded DSP system; The fault proxy service calls the execute method to perform fault simulation operations according to the parameter information, and triggers the exception method to start RAM leakage for fault testing.

8. An embedded DSP system fault injection test system, characterized in that: Includes fault burning module and fault proxy service deployed in embedded DSP system, as well as fault injection platform; Fault burning module, used to burn fault machine code into embedded DSP system; Fault proxy service, which is used to receive fault parameters input by the fault injection platform, convert the fault parameters into serial port commands and send them to the embedded DSP system through the serial port, execute the fault machine code to simulate the fault, so as to realize fault testing of the embedded DSP system, and transmit the test results to the fault injection platform; Fault injection platform for managing faulty machine code in embedded DSP systems.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the embedded DSP system fault injection test method described in any one of claims 1-7.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the embedded DSP system fault injection test method described in any one of claims 1-7 are implemented.