A test system instruction transfer timing method and device
By integrating the timing signal circuit board and the software design of DSP and FPGA in the test system, the problem that the existing test system cannot conduct guidance and control combination-level product integration testing is solved, and the system-level rudder system performance index testing is realized, which improves the performance of the system. Test efficiency and flexibility.
Patent Information
- Application Number
- CN202410622196.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-20
AI Technical Summary
The existing test system cannot conduct integrated testing of guidance and control combination-level products, resulting in low system joint debugging and testing efficiency, high dependence on sub-system test equipment and personnel support, and inconvenient transportation of test transition equipment.
A test system instruction transfer timing method and device is designed. FPGA and DSP are used for initialization and communication protocol handshake, and timing instructions are generated and sent to meet the requirements for rudder system performance testing. The timing signal circuit board is integrated for data transfer to meet the system requirements. Performance index testing of grade products.
It realizes integrated testing of guidance and control combination-level products, improves testing efficiency, reduces dependence on equipment and personnel, simplifies the test process, and meets users' system-level assessment requirements for performance indicators.
Smart Images

Figure CN118192394B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of transfer timing circuit design, and in particular relates to a test system instruction transfer timing method and device. Background Art
[0002] As the core of the control system, the guidance and control combination usually includes an onboard computer, an inertial group, and a rudder system. When the traditional test system is testing the performance indicators of the guidance and control combination products, it does not have the function of sending rudder system instructions on a regular basis. Therefore, the rudder system indicators are usually evaluated and verified at the subsystem level. The test system also needs to use a test bench dedicated to the rudder system (it needs to have the function of simulating the flight control software to send regular working instructions to the rudder system). With the development of miniaturization and integration of the system, the user's requirements for system-level evaluation and acceptance of the performance indicators of the guidance and control combination products are constantly changing. At present, for a series of products represented by a Φ40mm project, users clearly need to test the rudder system step response rise time, overshoot, zero position error, and rudder surface clearance at the electronic equipment combination level. The traditional separate test solution can no longer meet the product development and delivery requirements. It is urgent to restructure and upgrade the existing integrated test system to achieve integrated integrated testing.
[0003] At present, there is no integrated universal testing equipment for guidance and control combination-level products. Relevant indicators can only be assessed at the subsystem level through separate testing. There are problems such as low efficiency of system joint debugging and testing, high dependence on subsystem testing equipment and personnel support, and inconvenient transportation of test transfer equipment.
[0004] Therefore, there is currently a problem of being unable to conduct integration testing on guidance and control combination-level products. Summary of the invention
[0005] The purpose of the present invention is to provide a test system instruction transfer timing method and device to solve the current problem that it is impossible to perform integrated testing on guidance and control combination-level products.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] In one aspect, the present specification provides a test system instruction transfer timing method, comprising:
[0008] Step 102, after the DSP is initialized by the FPGA, the DSP configures an interrupt function and clears the data receiving address FIFO of the first port and the second port of the FPGA; the first port is connected to the industrial computer; the second port is connected to the test product;
[0009] Step 104, the DSP completes the handshake between the industrial computer and the test product based on the communication protocol between the industrial computer and the test product, and obtains a 51-byte test instruction;
[0010] Step 106, DSP determines whether the 51-byte test instruction is correct. If not, data transfer between the industrial computer and the test product is performed only through the asynchronous serial port transceiver module of the FPGA; if so, the timing instruction corresponding to the rudder system performance test requirement is generated based on the instruction corresponding to the 23rd byte of the 51-byte test instruction, or data transfer between the industrial computer and the test product is performed through the asynchronous serial port transceiver module of the FPGA.
[0011] On the other hand, the present specification provides a test system instruction transfer timing device, including:
[0012] It includes: a transit timing circuit and a power supply configuration circuit; the transit timing circuit includes a DSP, an FPGA, a first power chip, a second power chip, a first JTAG emulator, a second JTAG emulator and a 12V DC power supply; the DSP is connected with the first JTAG emulator, the first power chip and the FPGA; the FPGA is connected with the second JTAG emulator and the second power chip; the FPGA includes a first port and a second port; the first port is connected with an industrial computer through an RS422 communication interface; the second port is connected with a test product through an RS422 communication interface; the 12V DC power supply is respectively connected with the first power chip and the second power chip, for respectively powering the DSP and the FPGA; the DSP communicates and interacts with the industrial computer and the test product by controlling the FPGA.
[0013] Based on the above technical solution, this specification can achieve the following technical effects:
[0014] The method integrates a timing signal circuit board in the test system, and then designs software for DSP and FPGA to complete the real-time transfer of handshake, instructions and product test data during the test process of the original host computer test software and the product monitoring software. According to different rudder system performance test requirements, corresponding timing instructions are generated and sent to the product, meeting the need for performance index testing of the rudder system in system-level products, thereby solving the existing problem that it is impossible to perform integrated testing on guidance and control combination-level products. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The figure is a flow chart of a method for transferring timing of test system instructions in one embodiment of the present invention.
[0016] Figure 2 It is a schematic diagram of a test system instruction transfer timing device in one embodiment of the present invention.
[0017] Figure 3 Schematic diagram of the structure of a transfer timing circuit in one embodiment of the present invention.
[0018] Figure 4 The figure is a block diagram of the software design principle of DSP in one embodiment of the present invention.
[0019] Figure 5 The figure is a principle block diagram of the interface software of FPGA in one embodiment of the present invention. DETAILED DESCRIPTION
[0020] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims. It should be noted that the drawings are all in very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0021] It should be noted that, in order to clearly explain the content of the present invention, the present invention specifically cites multiple embodiments to further illustrate different implementations of the present invention, wherein the multiple embodiments are enumerated rather than exhaustive. In addition, for the sake of brevity of explanation, the contents mentioned in the previous embodiments are often omitted in the subsequent embodiments. Therefore, the contents not mentioned in the subsequent embodiments can refer to the previous embodiments accordingly. Example 1
[0022] Please refer to Figure 1 , Figure 1 The figure is a flow chart of a method for transferring timing of a test system instruction provided in this embodiment. In this embodiment, the method includes:
[0023] Step 102, after the DSP is initialized by the FPGA, the DSP configures an interrupt function and clears the data receiving address FIFO of the first port and the second port of the FPGA; the first port is connected to the industrial computer; the second port is connected to the test product;
[0024] Step 104, the DSP completes the handshake between the industrial computer and the test product based on the communication protocol between the industrial computer and the test product, and obtains a 51-byte test instruction;
[0025] In this embodiment, one implementation of step 104 is:
[0026] Step 202, according to the communication protocol between the industrial computer and the test product, the test product sends a 4-byte query command to the industrial computer;
[0027] Step 204, receiving a 51-byte test instruction through the first port and determining whether the second port receives a response instruction corresponding to the query instruction, and if so, controlling the FPGA through the DSP to forward the 51-byte test instruction to the test product through the second port;
[0028] Step 206, receiving the working status word of the test product through the second port and forwarding it to the ground, completing the handshake between the industrial computer and the test product.
[0029] Step 106, DSP determines whether the 51-byte test instruction is correct. If not, data transfer between the industrial computer and the test product is performed only through the asynchronous serial port transceiver module of the FPGA; if so, the timing instruction corresponding to the rudder system performance test requirement is generated based on the instruction corresponding to the 23rd byte of the 51-byte test instruction, or data transfer between the industrial computer and the test product is performed through the asynchronous serial port transceiver module of the FPGA.
[0030] In this embodiment, one implementation of step 106 is:
[0031] Step 302, determine whether the frame header and checksum of the 51-byte test instruction are correct. If not, receive the data of the first port through the asynchronous serial port transceiver module of the FPGA and forward it to the test product, and receive the data fed back by the test product and forward it to the industrial computer; if so, determine whether the instruction corresponding to the 23rd byte of the 51-byte test instruction is a measurement and control instruction, a software upload instruction, or other instructions;
[0032] Step 304, if the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the interrupt signal of the interrupt generation module and triggers the interrupt function, generates the corresponding timing instruction and then sends it to the test product through the Xintf interface module and the asynchronous serial port transceiver module of the FPGA in sequence;
[0033] In this embodiment, one implementation of step 304 is:
[0034] Step 402, if the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the 6-byte first steering gear test instruction sent by the industrial computer through the first port;
[0035] Step 404, determining whether the instruction corresponding to the third byte of the 6-byte first servo test instruction is a servo test instruction, if so, the DSP enters the servo test, the DSP receives the interrupt signal of the interrupt generation module and triggers the interrupt function, and at the same time forwards the 6-byte first servo instruction to the test product;
[0036] Step 406, receiving the 6-byte second steering gear test instruction through the first port and determining the instruction type corresponding to the third byte of the 6-byte second steering gear test instruction, and generating a corresponding timing instruction;
[0037] In this embodiment, the instruction types include square wave generation instructions and triangle wave generation instructions; the timing instructions include 2.5ms timing square wave test instructions and 2.5ms timing triangle wave test instructions.
[0038] Step 408, sending the generated timing instruction to the test product through the Xintf interface module and the asynchronous serial port transceiver module of the FPGA in sequence, and receiving the data fed back by the test product and forwarding it to the industrial computer.
[0039] Step 306, if the instruction corresponding to the 23rd byte is a software upload instruction, the DSP enters the maintenance download state and receives the data from the first port and forwards it to the test product, and receives the data fed back by the test product and forwards it to the industrial computer;
[0040] Step 308: If the instruction corresponding to the 23rd byte is an instruction other than the measurement and control instruction and the software upload instruction, the data received from the first port is forwarded to the test product, and the data fed back by the test product is forwarded to the industrial computer.
[0041] In summary, this method completes the real-time transfer of handshakes, instructions and product test data during the test process of the original host computer test software and the product monitoring software through software design for DSP and FPGA, generates corresponding timing instructions according to different rudder system performance test requirements and sends them to the product, meets the need for performance index testing of the rudder system at the system level, and thus solves the current problem of being unable to perform integrated testing on guidance and control combination-level products. Example 2
[0042] Please refer to Figure 2-Figure 3 , Figure 2 The figure shows a schematic diagram of a test system instruction transfer timing device provided in this embodiment. In this embodiment, the device includes: a transfer timing circuit and a power supply configuration circuit; the transfer timing circuit includes a DSP, an FPGA, a first power chip, a second power chip, a first JTAG emulator, a second JTAG emulator and a 12V DC power supply; the DSP is connected to the first JTAG emulator, the first power chip and the FPGA; the FPGA is connected to the second JTAG emulator and the second power chip; the FPGA includes a first port and a second port; the first port is connected to the industrial computer through an RS422 communication interface; the second port is connected to the test product through an RS422 communication interface; the 12V DC power supply is respectively connected to the first power chip and the second power chip, for respectively powering the DSP and the FPGA; the DSP communicates and interacts with the industrial computer and the test product by controlling the FPGA;
[0043] Specifically, refer to Figure 3The hardware circuit uses a mainstream missile-borne computer design architecture of DSP+FPGA. FPGA is used to share the interface task of DSP. The test system instruction transfer timing circuit uses 1 RS422 communication interface to communicate with the test system end (industrial computer) and 1 RS422 communication interface to communicate with the product end (test product). The communication baud rate configuration is realized through the FPGA program and a 2.5ms timing interrupt is generated.
[0044] The DSP includes:
[0045] A DSP initialization module, used for initializing the DSP, configuring interrupt functions, and clearing the data receiving address FIFOs of the first port and the second port;
[0046] The device handshake module is used to complete the handshake between the industrial computer and the test product according to the communication protocol between the industrial computer and the test product;
[0047] In this embodiment, the device handshake module includes:
[0048] The inquiry instruction sending unit is used for sending the 4-byte inquiry instruction to the industrial computer through the asynchronous serial port transceiver module of the FPGA according to the communication protocol between the industrial computer and the test product;
[0049] An inquiry instruction forwarding unit, used for the DSP to receive a 51-byte test instruction sent by the industrial computer through the first port and determine whether the second port has received a response instruction corresponding to the inquiry instruction. If so, the DSP controls the asynchronous serial port transceiver module of the FPGA to forward the 51-byte test instruction to the test product through the second port;
[0050] The product working status sending unit is used for the DSP to receive the working status word of the tested product through the second port and forward it to the host computer through the first port to complete the handshake between the industrial computer and the tested product.
[0051] The instruction execution module is used by the DSP to determine whether the 51-byte test instruction is correct. If not, the data between the industrial computer and the test product is transferred only through the asynchronous serial port transceiver module of the FPGA; if so, the timing instruction corresponding to the rudder system performance test requirement is generated based on the instruction corresponding to the 23rd byte of the 51-byte test instruction, or the data between the industrial computer and the test product is transferred through the asynchronous serial port transceiver module of the FPGA.
[0052] In this embodiment, the instruction execution module includes:
[0053] The instruction judgment unit is used for the DSP to judge whether the frame header and check code of the 51-byte test instruction are correct. If not, the data received from the first port is forwarded to the test product through the asynchronous serial port transceiver module of the FPGA, and the data fed back by the test product is forwarded to the industrial computer; if so, it is judged whether the instruction corresponding to the 23rd byte of the 51-byte test instruction is a measurement and control instruction or a software upload instruction;
[0054] The measurement and control instruction execution unit is used for, if the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the interrupt signal of the interrupt generation module and triggers the interrupt function, generates the corresponding timing instruction and then sends it to the test product through the Xintf interface module of the FPGA and the asynchronous serial port transceiver module in sequence;
[0055] The software upload instruction unit is used to, if the instruction corresponding to the 23rd byte is a software upload instruction, the DSP enters the maintenance download state and receives the data of the first port through the asynchronous serial port transceiver module of the FPGA and forwards it to the test product, and receives the data fed back by the test product and forwards it to the industrial computer;
[0056] Other instruction execution units are used to receive data from the first port through the FPGA's asynchronous serial port transceiver module and forward it to the test product if the instruction corresponding to the 23rd byte is an instruction other than the measurement and control instruction and the software upload instruction, and receive data fed back by the test product and forward it to the industrial computer.
[0057] In this embodiment, the measurement and control instruction execution unit includes:
[0058] A first steering gear test instruction receiving subunit, used for the DSP to receive a 6-byte first steering gear test instruction sent by the industrial computer through the first port;
[0059] The first servo test instruction judging subunit is used to judge whether the instruction corresponding to the third byte of the 6-byte first servo test instruction is a servo test instruction. If so, the DSP enters the servo test, the DSP receives the interrupt signal of the interrupt generating module and triggers the interrupt function, and at the same time forwards the 6-byte first servo instruction to the test product;
[0060] A second steering gear test instruction receiving subunit, used for receiving a 6-byte second steering gear test instruction through the first port;
[0061] The second servo test instruction judging subunit is used to judge the instruction type corresponding to the third byte of the 6-byte second servo test instruction and generate a final test instruction corresponding to the waveform;
[0062] The final test instruction sending subunit is used to send the generated final test instruction to the test product, and forward the data fed back by the test product to the industrial computer after receiving it.
[0063] In this embodiment, the instruction types include square wave generation instructions and triangle wave generation instructions; the final test instructions include 2.5 ms timing square wave test instructions and 2.5 ms timing triangle wave test instructions.
[0064] Specifically, refer to Figure 4 The software design of DSP is burned into its internal FLASH through the emulator.
[0065] S1. After the test system instruction transfer timing circuit is powered on, the DSP is reset through the FPGA. After the DSP is initialized, the receiving address FIFO of the industrial computer end (end 1) and the receiving address FIFO of the test product end (end 2) are cleared, and the depth of the receiving address FIFO of the test system and the product is queried.
[0066] S2. According to the communication protocol between the industrial computer and the test product, the test product will send a 4-byte query command (0xaa 0x55 0x01 0xdd) to the industrial computer within 1 second after power-on;
[0067] S3, DSP waits for receiving the 51-byte test instruction sent back by the industrial computer within 30ms;
[0068] S4, DSP queries the depth of the receiving address of the test product port to determine whether the test product end has received the correct response instruction corresponding to the query instruction. If so, execute S5;
[0069] S5, DSP forwards the 51-byte test instruction to the test product end, queries the test product end receiving address depth, receives the working status word of the test product end and forwards it to the industrial computer;
[0070] S6, DSP enters different working modes according to the instruction content of the 23rd byte of the 51-byte test instruction;
[0071] S61, when the instruction content of the 23rd byte is 0x03=0x01, the DSP enters the measurement and control state, that is, the rudder system test state, and executes S8;
[0072] S62, when the instruction content of the 23rd byte is 0x03=0x02 / 0x03, the DSP enters the maintenance and downloading state and changes the baud rate to 921600 and executes S7;
[0073] S63, when the instruction content of the 23rd byte is other instructions, DSP enters the flight control state, the baud rate defaults to 115200 and executes S7;
[0074] S7, receiving the data from the industrial computer port and forwarding it to the test product end, and receiving the data fed back by the test product and forwarding it to the industrial computer, and the process ends;
[0075] S8, DSP queries the receiving address depth of the industrial computer port and receives the first test instruction of 6 bytes;
[0076] S9, DSP determines whether the third byte of the first test instruction is 0x0e, if not, executes S7; if yes, DSP enters the servo test process, triggers the interrupt function and forwards the first test instruction to the test product;
[0077] S10. DSP receives the 6-byte second test instruction sent by the industrial computer and determines the instruction content of the third byte; if the instruction of the third byte is 0x01, DSP generates a 2.5ms timing square wave test instruction: 0°~10°~0°~-10°~0° (5 seconds), sends it to the test product, waits for the test product to feedback data and forwards it to the industrial computer; if the instruction of the third byte is 0x02, DSP generates a 2.5ms timing triangle wave test instruction: 0°~10°~-10°~0° (4 seconds), sends it to the test product, waits for the test product to feedback data and forwards it to the industrial computer, and the process ends.
[0078] In this embodiment, the interface of the FPGA includes an asynchronous serial port transceiver module, a Xintf interface module and an interrupt generation module; the asynchronous serial port transceiver module is respectively connected to the Xintf interface module, the industrial computer and the test product; the interrupt generation module and the Xintf interface module are connected to the DSP.
[0079] In this embodiment, the asynchronous serial port transceiver module is used to receive asynchronous data sent by an external device or send asynchronous data to an external device; the Xintf interface module is used to interact with the DSP for data; and the interrupt generation module is used to generate a 2.5ms interrupt signal at a regular interval.
[0080] In this embodiment, the FPGA is implemented using the Verilog HDL language and is loaded into the FPGA through the second JTAG simulator.
[0081] Specifically, refer to Figure 5 , the interface software of FPGA in the instruction transfer timing circuit of the test system mainly includes asynchronous serial communication interface receiving module, asynchronous serial communication interface sending module, Xintf interface module and interrupt generation module; the software design of FPGA is implemented in Verilog HDL language and loaded into the FPGA of the transfer circuit through the second JTAG simulator. The functions of each module are as follows: the main function of the asynchronous serial communication interface receiving module is to receive asynchronous data sent by external devices; the main function of the asynchronous serial communication interface sending module is to send asynchronous data to external devices; the main function of the Xintf interface module is to interact with DSP for data; the main function of the interrupt generation module is to generate 2.5ms interrupt signals regularly.
[0082] In this embodiment, the power supply configuration circuit adopts an RS-15 series switching power supply, which is used to convert 220V AC power into 12V DC power to power the transit timing circuit; the power supply configuration circuit includes a power module, a control switch, and a fuse device; the power module is connected to the 220V AC power supply through a ground wire and a neutral wire, and converts the 220V AC power into 12V DC power and outputs it to the transit timing circuit; the fuse device is connected to the 220V AC power supply and the power module through a live wire; the control switch is connected to the power module and the transit timing circuit.
[0083] Specifically, as there is no 12V DC voltage source inside the current integrated test system, a power supply configuration circuit is designed using the RS-15 series switching power supply to convert the 220V AC power inside the test bench into 12V DC to provide voltage input for the transit timing circuit, with short circuit protection, overload protection, overvoltage and over-temperature protection functions. See the power supply configuration circuit schematic diagram Figure 2 As shown. Flexible layout and wiring can be performed for other test systems with limited internal space.
[0084] Based on this, this circuit uses the DSP+FPGA architecture information processing circuit as the hardware foundation, and realizes the generation of timing test instruction data through software design, while not affecting the data communication between the original test system and the product, meeting the test requirements for the development and delivery of electronic equipment combination products, and filling the gap that the current test system cannot perform integrated integrated testing of guidance and control combination products. At the same time, this circuit is relatively easy to modify the test system, with low cost, and can be transplanted and used after adaptive improvement for other test systems that need to add timing functions.
[0085] In summary, this circuit integrates a timing signal circuit board in the test system, and then completes the real-time transfer of handshakes, instructions and product test data during the test process of the original host computer test software and the product monitoring software through software design for DSP and FPGA. According to different rudder system performance test requirements, corresponding timing instructions are generated and sent to the product, meeting the need for performance index testing of the rudder system at the system level, thereby solving the current problem of being unable to perform integrated testing on guidance and control combination-level products.
[0086] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A test system instruction transfer timing device, It is characterized in that include: A transfer timing circuit, the transfer timing circuit includes a DSP, an FPGA, a first power chip, a second power chip, a first JTAG emulator, a second JTAG emulator and a 12V DC power supply; the DSP is connected to the first JTAG emulator, the first power chip and the FPGA; the FPGA is connected to the second JTAG emulator and the second power chip; the FPGA includes a first port and a second port; the first port is connected to the industrial computer through an RS422 communication interface; the second port is connected to the test product through an RS422 communication interface; the 12V DC power supply is respectively connected to the first power chip and the second power chip, for respectively powering the DSP and the FPGA; the DSP completes the handshake between the industrial computer and the test product, generates the timing instructions corresponding to the rudder system performance test requirements, and completes the data transfer between the industrial computer and the test product by controlling the FPGA; The DSP includes: A DSP initialization module, used for initializing the DSP, configuring interrupt functions, and clearing the data receiving address FIFOs of the first port and the second port; The device handshake module is used to complete the handshake between the industrial computer and the test product according to the communication protocol between the industrial computer and the test product; The device handshake module includes: The inquiry instruction sending unit is used for sending the 4-byte inquiry instruction to the industrial computer through the asynchronous serial port transceiver module of the FPGA according to the communication protocol between the industrial computer and the test product; An inquiry instruction forwarding unit, used for the DSP to receive the 51-byte test instruction sent by the industrial computer through the first port and determine whether the second port receives the response instruction corresponding to the inquiry instruction. If so, the DSP controls the asynchronous serial port transceiver module of the FPGA to forward the 51-byte test instruction to the test product through the second port; a product working status sending unit, used for the DSP to receive the working status word of the test product through the second port and forward it to the host computer through the first port to complete the handshake between the industrial computer and the test product; The instruction execution module is used by the DSP to determine whether the 51-byte test instruction is correct. If not, the data between the industrial computer and the test product is transferred only through the asynchronous serial port transceiver module of the FPGA; if so, the timing instruction corresponding to the rudder system performance test requirement is generated based on the instruction corresponding to the 23rd byte of the 51-byte test instruction, or the data between the industrial computer and the test product is transferred through the asynchronous serial port transceiver module of the FPGA; The instruction execution module comprises: The instruction judgment unit is used for the DSP to judge whether the frame header and check code of the 51-byte test instruction are correct. If not, the data received from the first port is forwarded to the test product through the asynchronous serial port transceiver module of the FPGA, and the data fed back by the test product is forwarded to the industrial computer; if so, it is judged whether the instruction corresponding to the 23rd byte of the 51-byte test instruction is a measurement and control instruction or a software upload instruction; The measurement and control instruction execution unit is used for, if the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the interrupt signal of the interrupt generation module and triggers the interrupt function, generates the corresponding timing instruction and then sends it to the test product through the Xintf interface module of the FPGA and the asynchronous serial port transceiver module in sequence; The software upload instruction unit is used to, if the instruction corresponding to the 23rd byte is a software upload instruction, the DSP enters the maintenance download state and receives the data of the first port through the asynchronous serial port transceiver module of the FPGA and forwards it to the test product, and receives the data fed back by the test product and forwards it to the industrial computer; Other instruction execution units, used for receiving data from the first port through the asynchronous serial port transceiver module of the FPGA and forwarding it to the test product if the instruction corresponding to the 23rd byte is an instruction other than the measurement and control instruction and the software upload instruction, and receiving data fed back by the test product and forwarding it to the industrial computer; The measurement and control instruction execution unit comprises: A first servo test instruction receiving subunit, used for the DSP to receive a 6-byte first servo test instruction sent by the industrial computer through the first port; The first servo test instruction judging subunit is used to judge whether the instruction corresponding to the third byte of the 6-byte first servo test instruction is a servo test instruction. If so, the DSP enters the servo test, the DSP receives the interrupt signal of the interrupt generating module and triggers the interrupt function, and at the same time forwards the 6-byte first servo instruction to the test product; A second steering gear test instruction receiving subunit, used for receiving a 6-byte second steering gear test instruction through the first port; The second servo test instruction judging subunit is used to judge the instruction type corresponding to the third byte of the 6-byte second servo test instruction and generate a final test instruction corresponding to the waveform; The final test instruction sending subunit is used to send the generated final test instruction to the test product, and forward the data fed back by the test product to the industrial computer after receiving it.
2. The device according to claim 1, It is characterized in that The interface of the FPGA includes an asynchronous serial port transceiver module, a Xintf interface module and an interrupt generation module; the asynchronous serial port transceiver module is respectively connected to the Xintf interface module, the industrial computer and the test product; the interrupt generation module and the Xintf interface module are connected to the DSP.
3. The device according to claim 2, It is characterized in that The asynchronous serial port transceiver module is used to receive asynchronous data sent by an external device or send asynchronous data to an external device; the Xintf interface module is used for the FPGA to interact with the DSP for data; the interrupt generation module is used to generate a 2.5ms interrupt signal regularly and output it to the DSP.
4. The device according to claim 3, It is characterized in that The FPGA is implemented by Verilog HDL language and loaded into the FPGA by the second JTAG simulator.
5. The device according to claim 4, It is characterized in that It also includes a power supply configuration circuit, which adopts an RS-15 series switching power supply to convert 220V AC power into 12V DC power to power the transit timing circuit; the power supply configuration circuit includes a power module, a control switch, and a safety device; the power module is connected to the 220V AC power supply through a ground wire and a neutral wire, and converts the 220V AC power into 12V DC power and outputs it to the transit timing circuit; the safety device is connected to the 220V AC power supply and the power module through a live wire; the control switch is connected to the power module and the transit timing circuit.
6. A test system instruction transfer timing method applicable to the device according to any one of claims 1 to 5, It is characterized in that include: After the DSP is initialized by the FPGA, the DSP configures the interrupt function and clears the data receiving address FIFO of the first port and the second port of the FPGA; Based on the communication protocol between the industrial computer and the test product, the DSP completes the handshake between the industrial computer and the test product and obtains the 51-byte test instruction; The DSP completes the handshake between the industrial computer and the test product based on the communication protocol between the industrial computer and the test product, and the steps of obtaining the 51-byte test instruction include: According to the communication protocol between the industrial computer and the test product, the test product sends a 4-byte query instruction to the industrial computer through the asynchronous serial port transceiver module of the FPGA; The DSP receives the 51-byte test instruction sent by the industrial computer through the first port and determines whether the second port receives the response instruction corresponding to the query instruction. If so, the DSP controls the asynchronous serial port transceiver module of the FPGA to forward the 51-byte test instruction to the test product through the second port; The DSP receives the working status word of the test product through the second port and forwards it to the host computer through the first port, completing the handshake between the industrial computer and the test product; DSP determines whether the 51-byte test instruction is correct. If not, data transfer between the industrial computer and the test product is performed only through the asynchronous serial port transceiver module of the FPGA; if so, the timing instruction corresponding to the rudder system performance test requirement is generated based on the instruction corresponding to the 23rd byte of the 51-byte test instruction, or data transfer between the industrial computer and the test product is performed through the asynchronous serial port transceiver module of the FPGA; The DSP determines whether the 51-byte test instruction is correct. If not, data transfer between the industrial computer and the test product is performed only through the asynchronous serial port transceiver module of the FPGA; if so, the steps of generating a timing instruction corresponding to the rudder system performance test requirement based on the instruction corresponding to the 23rd byte of the 51-byte test instruction or transferring data between the industrial computer and the test product through the asynchronous serial port transceiver module of the FPGA include: The DSP determines whether the frame header and checksum of the 51-byte test instruction are correct. If not, the DSP receives the data from the first port through the asynchronous serial port transceiver module of the FPGA and forwards it to the test product, and receives the data fed back by the test product and forwards it to the industrial computer; if so, it determines whether the instruction corresponding to the 23rd byte of the 51-byte test instruction is a measurement and control instruction or a software upload instruction; If the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the interrupt signal from the interrupt generation module and triggers the interrupt function, generates the corresponding timing instruction, and then sends it to the test product through the Xintf interface module of the FPGA and the asynchronous serial port transceiver module in turn; If the instruction corresponding to the 23rd byte is a software upload instruction, the DSP enters the maintenance download state and receives the data from the first port through the asynchronous serial port transceiver module of the FPGA and forwards it to the test product, and receives the data fed back by the test product and forwards it to the industrial computer; If the instruction corresponding to the 23rd byte is an instruction other than the measurement and control instruction and the software upload instruction, the data received from the first port is forwarded to the test product through the asynchronous serial port transceiver module of the FPGA, and the data fed back by the test product is forwarded to the industrial computer; If the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the interrupt signal of the interrupt generation module and triggers the interrupt function, generates the corresponding timing instruction, and then sends it to the test product through the Xintf interface module and the asynchronous serial port transceiver module of the FPGA in sequence, the steps include: If the instruction corresponding to the 23rd byte is a measurement and control instruction, the DSP receives the 6-byte first servo test instruction sent by the industrial computer through the first port; Determine whether the instruction corresponding to the third byte of the 6-byte first servo test instruction is a servo test instruction. If so, the DSP enters the servo test. The DSP receives the interrupt signal from the interrupt generation module and triggers the interrupt function. At the same time, the 6-byte first servo instruction is forwarded to the test product. receiving a 6-byte second steering gear test instruction through the first port and determining an instruction type corresponding to the third byte of the 6-byte second steering gear test instruction, and generating a corresponding timing instruction; The generated timing instructions are sent to the test product through the Xintf interface module and the asynchronous serial port transceiver module of the FPGA in turn, and the data fed back by the test product is received and forwarded to the industrial computer.
7. The method according to claim 6, It is characterized in that The instruction types include square wave generation instructions and triangle wave generation instructions; the timing instructions include 2.5ms timing square wave test instructions and 2.5ms timing triangle wave test instructions.
