Test system and method
By deploying the simulator and the development board on the computing device, realistic simulation of peripheral devices is achieved, which solves the problem in the existing technology that the simulator cannot effectively simulate the interactive operation of multiple peripheral devices, improves development efficiency and reduces costs.
Patent Information
- Application Number
- CN202010298952.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-04-16
AI Technical Summary
When the existing technology has high testing requirements, the simulator cannot effectively simulate the interactive operation of multiple peripheral devices, and it is expensive to realize the actual functions and operating behaviors of all peripheral devices, and cannot meet the needs of efficient development.
A test system is provided. By deploying a simulator and a development board on a computing device, the simulator builds a data package and sends it to the development board. The processing unit parses and instructs the peripheral device to execute instructions. The development board feeds back the execution results to the simulator to realize peripheral Realistic simulation of equipment.
It improves development efficiency and reduces development costs. By realistically simulating the behavior of peripheral devices, test results closer to actual execution are obtained, and it is suitable for testing various peripheral devices.
Smart Images

Figure CN113535487B_ABST
Abstract
Description
Technical Field
[0001] The disclosed embodiments belong to the field of embedded testing, and in particular to a testing system and method. Background Art
[0002] Usually, programs that are to be run on embedded processors (including system-on-chip) (also called embedded programs) are tested on simulators before being burned into embedded systems. A simulator is a software program that simulates the functions and behaviors of an embedded processor. Through the simulator, the embedded program can be simulated on a traditional computer or other multimedia platform (PDA, mobile phone) to achieve the same execution results on an embedded processor.
[0003] like Figure 1 As shown, the computing device 10 is, for example, a computer system, on which a simulator 11 is deployed. Since the embedded program 12 needs to be parsed and processed by the embedded processor, it cannot be directly run on the computing device 250, but must use the simulator 11 to simulate the execution result of the embedded program 12, and the execution result can be output to the display screen or file system of the computing device 250. In this process, for the program instructions contained in the embedded program 12 for instructing the peripheral device to work, since the peripheral device needs to be adapted to the embedded processor, it is generally impossible to install it on the computing device 10. Therefore, the simulation method of the simulator 11 is to determine the execution result of the peripheral device for the program instruction according to the actual function of the peripheral device, and directly output the execution result to the display screen or file system. For example, when a program instruction of the embedded program 12 instructs the UART (Universal Asynchronous Receiver / Transmitter) to send the data "AAA", the simulation method of the simulator 11 is to send "AAA" to the display screen for output, so the output "AAA" can be seen on the display screen. However, this simulation method works well when the test requirements are low, but when the test requirements are high, the test results are not so effective because the peripherals are not actually executed. In particular, the interaction of multiple peripherals cannot be achieved through this simulation method, for example, sending a message from one peripheral to another. At the same time, if you want to implement all the actual functions and operating behaviors of all peripherals in the simulator, the cost is extremely expensive. Summary of the invention
[0004] In view of this, an embodiment of the present disclosure provides a testing system to solve the problems existing in the prior art.
[0005] In a first aspect, an embodiment of the present disclosure provides a testing system, including:
[0006] The simulator may be deployed on a computing device, and is used to simulate the execution result of the program under test on the processor under test, and for a first program instruction included in the program under test and to be executed by a first peripheral device, construct a first data packet according to the first program instruction, and send the first data packet via a communication interface of the computing device;
[0007] Development board, including:
[0008] one or more peripheral devices, including at least the first peripheral device;
[0009] a communication interface, configured to receive the first data packet sent by the communication interface of the computing device;
[0010] The processing unit is used to parse the first data packet and send the first program instruction to the first peripheral device according to the parsing result to instruct the first peripheral device to execute the first program instruction.
[0011] Optionally, the processing unit further includes:
[0012] constructing a second data packet according to the execution result of the first peripheral device, and sending the second data packet to the simulator via the communication interface of the development board and the communication interface of the computing device,
[0013] Then the simulator also includes:
[0014] The second data packet is parsed to obtain an execution result of the first peripheral device.
[0015] Optionally, the processing unit further includes:
[0016] Sending the configuration information of the first peripheral device to the simulator via the communication interface of the development board and the communication interface of the computing device,
[0017] The simulator also includes:
[0018] Test analysis is performed based on the configuration information and the execution result of the first peripheral device.
[0019] Optionally, the one or more peripheral devices further include a second peripheral device, and the first program instruction instructs the first peripheral device to send a message to the second peripheral device.
[0020] Optionally, the first program instructions instruct the first peripheral device to send a message.
[0021] Optionally, the first data packet includes the following data items: identification of one or more peripheral devices, instruction information, and data information.
[0022] Optionally, the communication interface of the computing device and the communication interface of the development board are both one of the following:
[0023] USB interface, serial interface, parallel interface, network interface.
[0024] Optionally, the program to be tested is an embedded program, and the processor to be tested is an embedded processor.
[0025] In a second aspect, an embodiment of the present disclosure provides a testing method, including:
[0026] Deploy a simulator on the computing device, the simulator simulating the execution result of the program under test on the processor under test, and for a first program instruction included in the program under test that needs to be executed by a first peripheral device, construct a first data packet according to the first program instruction, and send the first data packet via a communication interface of the computing device;
[0027] Configure a development board, the development board comprising:
[0028] one or more peripheral devices, including at least the first peripheral device;
[0029] a communication interface, configured to receive the first data packet sent by the communication interface of the computing device;
[0030] The processing unit is used to parse the first data packet and send the first program instruction to the first peripheral device according to the parsing result to instruct the first peripheral device to execute the first program instruction.
[0031] Optionally, the program to be tested is an embedded program, and the processor to be tested is an embedded processor.
[0032] The test system of the disclosed embodiment achieves realistic simulation of the peripheral devices by transferring the behavior of the peripheral devices to a real development board, and the development board can be set up with various peripheral devices, without the need to simulate each peripheral device separately, thereby improving development efficiency and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and other objects, features and advantages of the present disclosure will become more apparent through the description of the embodiments of the present disclosure with reference to the following drawings, in which:
[0034] Figure 1 It is a schematic diagram of using a simulator to test an embedded program in the prior art;
[0035] Figure 2 It is a system architecture diagram of an embedded system;
[0036] Figure 3It is a block diagram of an embedded processor;
[0037] Figure 4 It is a structural diagram of a test system according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0038] The present disclosure is described below based on embodiments, but the present disclosure is not limited to these embodiments. In the detailed description of the present disclosure below, some specific details are described in detail. It is possible for a person skilled in the art to fully understand the present disclosure without the description of these details. In order to avoid confusing the essence of the present disclosure, well-known methods, processes, and procedures are not described in detail. In addition, the drawings are not necessarily drawn to scale.
[0039] The following terms are used in this article.
[0040] Emulator: A program that simulates the functions and instruction system of a hardware processor through software, enabling a computer or other multimedia platform (handheld computer, mobile phone) to run software on other platforms.
[0041] Peripheral devices: peripheral devices connected to the processor, including input and output devices (including external memory). Peripheral devices play the role of transmitting, transferring and storing data and information, and are an important part of the system. For example, UART is one of the peripheral devices.
[0042] UART: Universal Asynchronous Receiver / Transmitter, commonly known as UART. It converts the data to be transmitted between serial communication and parallel communication. It takes the parallel input signal as the input signal.
[0043] Embedded system overall architecture
[0044] An embedded system is a dedicated computer system that is completely embedded in a controlled device and designed for a specific application. According to the definition of the UK Institution of Electrical Engineers, an embedded system is a device that controls, monitors or assists equipment, machines or factory operations. Unlike general-purpose computer systems such as personal computers, embedded systems usually perform pre-defined tasks with specific requirements. Since embedded systems are only targeted at one specific task, designers can optimize it, reduce size and reduce costs. Embedded systems are usually mass-produced, so the cost savings of a single unit can be scaled up by hundreds or thousands as production increases.
[0045] Figure 2is a system architecture diagram of an embedded system 100 .
[0046] Although the functions, appearance interfaces, operations, etc. of various specific embedded systems are different, or even vary greatly, the basic hardware structure is similar, and has a high degree of similarity with the hardware system of general-purpose computers. However, the characteristics of embedded system applications cause the embedded system to be quite different from general-purpose computer systems in terms of hardware composition and implementation.
[0047] First, in order to meet the requirements of the embedded system 100 in terms of speed, volume and power consumption, the operating system, application software, special data and other data that need to be stored for a long time usually do not use storage media with large capacity and slow speed such as disks, but mostly use random access memory 102 or flash memory 103, such as Figure 2 shown.
[0048] In addition, in the embedded system 100, an A / D (analog / digital conversion) interface 105 and a serial interface 106 are required for the needs of measurement and control, which are rarely used in general-purpose computers. The A / D interface 105 mainly completes the conversion of analog signals to digital signals and the conversion of digital signals to analog signals required in the test. When the embedded system 100 is applied to industrial production, it often needs to be tested. Since the single-chip microcomputer generates digital signals, it needs to be converted into analog signals for testing during testing. Therefore, unlike general-purpose computers, an A / D (analog / digital conversion) interface 105 is required to complete the relevant conversion. In addition, in industry, multiple embedded systems are often required to be connected in series to complete relevant functions, so a serial interface 106 is required for connecting multiple embedded systems in series, which is mostly not required in general-purpose computers.
[0049] In addition, as a basic processing unit, the embedded system 100 often needs to connect multiple embedded systems 100 into a network in industrial design, so it is necessary to connect the embedded system 100 to the network interface 107. This is also not required in general-purpose computers. In addition, according to the actual application and scale, some embedded systems 100 need to use external buses 104. With the rapid expansion of the application field of embedded systems 100, embedded systems 100 are becoming more and more personalized, and the types of buses used according to their own characteristics are also increasing. In addition, in order to test the internal circuits of the embedded processor 101, the processor chip generally adopts boundary scan test technology. In order to adapt to this test, a debug interface 108 is adopted.
[0050] The processing core of the embedded system 100 is an embedded processor 101 . Figure 32 is a block diagram of an embedded processor 101. The embedded processor 101 includes an arithmetic logic unit (ALU) 201, a register 202, and a control unit 203. The arithmetic logic unit 201 performs actual operation processing. The register 202 is used to store instructions and intermediate results in the operation processing. The control unit 203 controls access to the external RAM 102 and flash memory 103.
[0051] When executing the instruction to be executed, ALU 201 moves the instruction to be executed from RAM 102 or flash memory 103 to register 202, and receives the next instruction fetch address or calculates the next instruction fetch address according to the instruction fetch algorithm. The instruction fetch algorithm includes, for example: increasing or decreasing the address according to the instruction length.
[0052] After fetching the instruction, ALU 201 enters the instruction decoding stage, in which it decodes the fetched instruction according to a predetermined instruction format to obtain operand acquisition information required by the fetched instruction, thereby preparing for the execution of the instruction. The operand acquisition information, for example, points to an address in RAM 102 or flash memory 103. After decoding, ALU obtains the operand stored in RAM 102 or flash memory 103 according to the operand acquisition information and performs processing.
[0053] When executing certain instructions (such as memory access instructions), the ALU 201 needs to access the RAM 102 or the flash memory 103 to obtain information stored therein or provide data that needs to be written into the RAM 102 or the flash memory 103 .
[0054] After the memory access instruction is obtained by the ALU 201, the ALU 201 can decode the memory access instruction so that the source operand of the memory access instruction can be obtained. The ALU 201 can perform corresponding operations on the source operand of the memory access instruction (for example, the arithmetic logic unit performs operations on the source operand stored in the register) to obtain the address information corresponding to the memory access instruction, and initiate corresponding requests according to the address information, such as address translation requests, write access requests, etc.
[0055] With the rapid development of very large scale integration (VLSI) and semiconductor technology, part or all of the above embedded systems can be implemented on a silicon chip, namely, an embedded system on chip (SoC).
[0056] Technical solutions of the disclosed embodiments
[0057] In industrial practice, embedded processors like the one shown in the figure and embedded programs executed by the embedded processors are often developed and designed simultaneously, and the embedded programs cannot be tested until the embedded processors are fully finalized and commercialized. Figure 4 The test system shown is used to simulate the functions and behaviors of the processor to be tested to test the program to be tested, and solves the problem in the prior art that the simulator cannot simulate the functions and behaviors of all peripheral devices. It should be understood that the test system provided by the embodiment of the present disclosure can be scalably applied to the testing of all programs, so the program to be tested in this article can be either an embedded program or other types of programs, and the processor to be tested can be either an embedded processor or other types of processors.
[0058] Figure 4 4 is a block diagram of a test system of an embodiment of the present disclosure. Referring to the figure, the computing device 40 is a computer system. The computer system includes at least a processor (not shown in the figure) and a memory (not shown in the figure). The processor generally has a data processing capability known in the art. It can be a processor of a complex instruction set (CISC) architecture, a reduced instruction set (RISC) architecture, a very long instruction set (VLIW) architecture, or a processor that implements the above instruction set combination, or any processor device built for a dedicated purpose. The memory can be a main memory (referred to as main memory or internal memory) for storing instruction information and / or data information represented by a data signal. The memory can also be an auxiliary memory or an external memory for storing various static program instructions and data, and the auxiliary memory or external memory is, for example, a hard disk, an optical disk, and a flash memory device coupled to the bus through a corresponding interface. The computer system is also equipped with various drivers, operating systems, and application software, and the driver is a memory driver, an input and output driver, etc. The operating system is, for example, a WINDOWSTM operating system, a UNIX operating system, a Linux operating system, and an RTOS operating system, and the application software is, for example, a browser, a video player software, a communication software, and various research and development tools.
[0059] Both the simulator 401 and the program to be tested 402 can be stored in the memory. The simulator 401 can be parsed and executed by the processor of the computing device 40. However, since the processor to be tested used to execute the program to be tested and the processor of the computing device 40 have different instruction set architectures, the processor of the computing device 40 cannot directly parse and execute the program to be tested 402, and needs to simulate the behavior and function of the processor to be tested through the simulator 401 to parse and execute the program instructions of the program to be tested 402. In other words, the simulator 401 is used to convert the program instructions of the program to be tested from a language that can be understood by the instruction set architecture of the processor to be tested into a language that can be understood by the instruction set architecture of the processor of the computing device 40 before execution.
[0060] The development board (demo board) 30 is a circuit board used for embedded system development and testing. Embedded developers can purchase productized development boards from the market, or they can customize or purchase components according to their own development needs and design and assemble them by themselves. There are various types of development boards, such as development boards for ARM processors, FPGAs, and DSPs. Generally, the development board includes not only hardware but also software. For example, some productized development boards provide software resources such as basic integrated development environments and software source codes. In this embodiment, it is assumed that the development board 30 has the necessary software resources to enable the peripheral devices and processors to work normally. For the convenience of explanation, the development board 30 in the figure only lists the communication interface 303, memory 302, peripheral device 303 and peripheral device 304 coupled to the processor 301. The processor 301 can be an embedded processor, a system on chip, a digital signal processor, an FPGA, and the like. The processor 301 is generally different from the processor to be tested simulated by the simulator 401 (for example, the design and manufacture of the processor has not yet been completed). For example, it has a different instruction set architecture and / or microarchitecture from the processor to be tested simulated by the simulator 401. Peripheral devices 303 and 304 can be assembled in the same system with the processor to be tested simulated by simulator 401. Although 303 and 304 are used to mark peripheral devices in the figure, the specific number of peripheral devices can be one or more, and peripheral devices of different models and specifications need to be set on the development board 30 according to the test requirements. For example, the universal asynchronous receiver-transmitter is set as peripheral device 303, and the device ESP8266 is used as peripheral device 304. In addition, it should be emphasized that the peripheral devices 303 and 304 on the development board should be peripheral devices that cannot be installed and used on the computing device 40, so it is necessary to use the development board 30 for switching.
[0061] The communication interface 303 matches the communication interface 403 on the computing device 40, and is used to transmit data packets between the computing device 40 and the development board 30. The communication interface 403 and the communication interface 303 include but are not limited to the following interface types: I2C bus, serial peripheral interface (SPI), universal serial bus (USB), general-purpose input / output (GPIO), parallel interface, network card interface and Bluetooth UART.
[0062] The workflow of the above test system is as follows: First, the processor of the computing device 40 uses the simulator 401 to parse and execute the program to be tested 402. For the program instructions contained in the program to be tested 402 that need to be executed by the peripheral device 303, a data packet is constructed according to the program instructions, and the data packet is sent to the communication interface 303 via the communication interface 403. Although not shown, the development board 30 stores a software program. The processor 301 executes the program instructions of the software program to receive the data packet from the communication interface 303, parses the data packet, and sends instructions to the peripheral device 303. After receiving the instructions, the peripheral device 303 performs corresponding operations. For example, or, the processor 301 executes the program instructions of the software program to receive the data packet from the communication interface 303, and then sends the data packet to the peripheral device 303. After receiving the data packet, the peripheral device 303 parses and performs corresponding operations. For example. If the program instruction in the program to be tested requires the UART device to send data "AAA" to the WIFI device, the data packet packet may include: a start flag, a UART device number, a device number of the WIFI device, data "AAA", and an end flag. The processor 301 may parse the data packet, take out the data "AAA", and call the interface of the UART device to instruct the UART device to send data "AAA" to the WIFI device, or the processor 301 may directly transmit the data packet to the UART device, and the UART device parses the data packet, obtains the data "AAA" therefrom, and sends the data "AAA" to the WIFI device. Of course, the premise of this example is that both the UART device and the WIFI device are provided on the development board 30.
[0063] In summary, by transferring the behavior of peripheral devices to a real development board, the peripheral devices can be realistically simulated, and the test results obtained will be closer to the actual execution of the program under test. Moreover, since the development board can be set up with various peripheral devices, the test system can obtain the real behavior of various peripheral devices for simulation testing of the program under test.
[0064] In a further embodiment, in order to be able to more flexibly support various peripheral devices, a more complex data specification can be defined for the data packet, for example, including one or more peripheral device identifiers, instruction information, data information, etc. The instruction information is used to instruct the peripheral device what operation to perform. The instruction information may correspond to a calling interface of the peripheral device. There may be multiple calling interfaces of the peripheral device. The processor 301 selects one of the calling interfaces of the multiple peripheral devices for calling according to the instruction information.
[0065] In a further embodiment, as shown in the figure, the data transmission between the computing device 40 and the development board 30 is bidirectional. For example, after the peripheral device 303 or 304 performs the corresponding operation, it constructs a data packet containing the execution result and sends the data packet to the processor 301. The processor 301 sends the data packet to the simulator 401 via the communication interfaces 303 and 403, and the simulator 401 obtains the execution result from the data packet. The data packet may also contain the configuration information of the peripheral device that performs the corresponding operation, such as the product type of the peripheral device, the model and type of the components included, etc. The simulator 401 may perform test analysis based on the configuration information and the execution result of the peripheral device. The simulator 401 may also output the configuration information, the execution result and the test analysis result to the console correspondingly for the developer's reference.
[0066] Corresponding to the above-mentioned test system, the embodiment of the present disclosure provides a test method for a program to be tested. The simulation test method is used to implement the test of the program to be tested. During the test process, a real development board is used to receive test instructions for peripheral devices, thereby realizing realistic peripheral device behavior in the system. Specifically, the method includes:
[0067] A simulator is deployed on the computing device to simulate the behavior of the processor to be tested to test the program to be tested, wherein the simulator is a software program, and during the process of executing the program instructions of the program to be tested, if the simulator determines that the current program instructions are program instructions that need to be executed by the specified peripheral device, a data packet is constructed according to the program instructions, and the data packet is sent to the development board using the communication interface of the computing device;
[0068] The development board is configured, and the development board includes a peripheral device, a communication interface and a processing unit. The communication interface receives a data packet, and the processing unit executes a software program to implement the following operations: parsing the data packet, and sending a program instruction to the peripheral device according to the parsed result to instruct the peripheral device to execute the program instruction.
[0069] The commercial value of the disclosed embodiments
[0070] Before the processor to be tested is developed, the simulator and development board are used to test the program to be tested, so that the program to be tested can be developed in advance, and it can effectively help developers to advance the development progress, thereby improving development efficiency and reducing development costs. Therefore, the test system of the disclosed embodiment has high use value and application prospects.
[0071] Those skilled in the art will appreciate that the present disclosure may be implemented as systems, methods, and computer program products. Therefore, the present disclosure may be specifically implemented in the following forms, namely complete hardware, complete software (including firmware, resident software, microcode), and may also be implemented in the form of a combination of software and hardware. In addition, in some embodiments, the present disclosure may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0072] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media include: an electrical connection of one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this article, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by a processing unit, a device or a device, or used in combination with the program.
[0073] Computer readable signal media may include data signals propagated in baseband or as part of a chopped wave, which carry computer readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any other suitable combination. Computer readable signal media may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction system, apparatus, or device.
[0074] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., and any suitable combination of the foregoing.
[0075] The computer program code for executing the disclosed embodiments may be written in one or more programming languages or combinations. The programming languages include object-oriented programming languages, such as JAVA, C++, and may also include conventional procedural programming languages, such as C. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0076] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A test system comprising: The simulator may be deployed on a computing device, and is used to simulate the execution result of the program under test on the processor under test, and for a first program instruction included in the program under test and to be executed by a first peripheral device, construct a first data packet according to the first program instruction, and send the first data packet via a communication interface of the computing device, wherein the first program instruction instructs the first peripheral device to send a message to a second peripheral device; Development board, including: one or more peripheral devices, including at least the first peripheral device, the one or more peripheral devices also including the second peripheral device; a communication interface, configured to receive the first data packet sent by the communication interface of the computing device; a processing unit, configured to parse the first data packet, and send the first program instruction to the first peripheral device according to the parsing result to instruct the first peripheral device to execute the first program instruction, and to construct a second data packet according to the execution result of the first peripheral device, and send the second data packet to the simulator via the communication interface of the development board and the communication interface of the computing device, Then the simulator also includes: The second data packet is parsed to obtain an execution result of the first peripheral device.
2. The test system according to claim 1, wherein: The processing unit also includes: Sending the configuration information of the first peripheral device to the simulator via the communication interface of the development board and the communication interface of the computing device, The simulator also includes: Test analysis is performed based on the configuration information and the execution result of the first peripheral device.
3. The test system according to claim 1, wherein: The first data packet includes the following data items: Identification, instruction information, and data information of one or more peripheral devices.
4. The test system according to claim 1, wherein: The communication interface of the computing device and the communication interface of the development board are both one of the following: USB interface, serial interface, parallel interface, network interface.
5. The test system according to claim 1, wherein: The program to be tested is an embedded program, and the processor to be tested is an embedded processor.
6. A testing method comprising: A simulator is deployed on a computing device, the simulator simulates the execution result of the program under test on the processor under test, and for a first program instruction included in the program under test and to be executed by a first peripheral device, a first data packet is constructed according to the first program instruction, and the first data packet is sent via a communication interface of the computing device, wherein the first program instruction instructs the first peripheral device to send a message to a second peripheral device; Configure a development board, the development board comprising: one or more peripheral devices, including at least the first peripheral device, the one or more peripheral devices also including the second peripheral device; a communication interface, configured to receive the first data packet sent by the communication interface of the computing device; a processing unit, configured to parse the first data packet, and send the first program instruction to the first peripheral device according to the parsing result to instruct the first peripheral device to execute the first program instruction, and to construct a second data packet according to the execution result of the first peripheral device, and send the second data packet to the simulator via the communication interface of the development board and the communication interface of the computing device; The second data packet is parsed by the simulator to obtain an execution result of the first peripheral device.
7. The testing method according to claim 6, wherein: The program to be tested is an embedded program, and the processor to be tested is an embedded processor.
