A test method for speed regulation tracking using drive control software with bus communication

By automatically generating tracking speed control command sequences and utilizing bus communication, the problems of automation and time interval control in drive control software testing were solved, achieving comprehensive coverage and efficient testing results.

CN114817052BActive Publication Date: 2025-10-28SHANGHAI SPACEFLIGHT ELECTRONICS & COMM EQUIP RES INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210501088.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2025-10-28
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

In existing technologies, it is difficult to automate the generation and time interval control of tracking speed regulation commands in drive control software, resulting in incomplete test coverage and low test efficiency.

Method used

By automatically generating tracking speed control command sequences and using bus communication to send commands to the software under test at fixed or variable time intervals, fixed-step and variable-step speed control tests are achieved, covering the functions and performance under different communication conditions.

Benefits of technology

It achieves comprehensive coverage of tracking speed regulation testing of drive control software, improves testing efficiency and adaptability, and enables efficient functional and performance testing at different time intervals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114817052B_ABST
    Figure CN114817052B_ABST
Patent Text Reader

Abstract

This invention discloses a method for testing the tracking speed regulation of drive control software using bus communication. The method includes: automatically generating a required tracking speed regulation command sequence based on specified start and end speeds, drive mechanism rotation direction, command sequence time intervals, and speed regulation rules of the drive control software speed regulation commands. This invention can synthesize multiple generated tracking speed regulation command sequences into a final tracking speed regulation command sequence. The final tracking speed regulation command sequence is then sent to the drive control software at fixed or variable time intervals using a bus communication method. This invention can automatically generate the tracking speed regulation command sequence for the drive control software according to the tester's requirements and send commands at time intervals specified by the tester using a bus, thereby enabling more accurate functional testing, performance testing, and bus command strength testing of the tracking speed regulation commands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of software testing, and in particular relates to a method for testing the speed regulation of drive control software using bus communication. Background Technology

[0002] Drive control software is software that controls drive mechanisms based on drive control commands from the control system. It is widely used in motor control. Tracking speed control commands are an important type of drive control command, characterized by a continuous sequence of speed control commands. Dynamic software testing requires evaluating the software's functionality and performance under continuous tracking speed control commands. Previously, tracking command transmission was primarily done manually, sending single commands manually, without automatic generation and transmission of tracking command sequences. Furthermore, accurately controlling the time interval for bus-based command transmission made testing the software's functionality and performance under tracking speed control commands difficult, failing to fully cover the speed control scenarios of the software under test, and resulting in low testing efficiency. Summary of the Invention

[0003] This invention provides a method for testing speed regulation tracking using drive control software with bus communication, comprising:

[0004] Step S0: Based on the start speed, end speed, drive mechanism rotation direction, instruction sequence time interval and speed regulation law of the specified drive control software speed regulation command, automatically generate the required tracking speed regulation command sequence, and proceed to step S1;

[0005] Step S1: According to the test requirements, after repeating step S0 multiple times, combine the multiple generated tracking speed regulation command sequences into the final tracking speed regulation command sequence, and proceed to step S2.

[0006] Step S2: Use a preset bus communication and send the final tracking speed adjustment command sequence to the software under test at fixed time intervals, then proceed to step S3;

[0007] Step S3: Modify the sending time interval of each frame speed adjustment command, and use preset bus communication to send the final tracking speed adjustment command sequence to the software under test at varying time intervals.

[0008] Preferably, based on software testing requirements and instruction formats, testers specify the start and end speeds, instruction sequence time intervals, and speed regulation rules for the speed adjustment instructions in the drive control software, automatically generating the required fixed-step speed adjustment and variable-step speed adjustment instruction sequences. The fixed-step tracking speed adjustment instructions are generated based on the step size specified by the testers, while the variable-step tracking speed adjustment instructions are generated based on the speed regulation rules specified by the testers.

[0009] Ideally, the tool can be executed multiple times to generate different speed control command sequences, merge the multiple generated speed control command sequences, and allow testers to modify the command sequences to generate the final speed control command sequence.

[0010] Preferably, a bus communication method is used to send the final tracking speed control command sequence to the software under test at fixed time intervals set by the tester in the command sequence. Alternatively, a bus communication method can be used to send the final tracking speed control command sequence to the software under test at varying time intervals, with each command having a different time interval. The command transmission or high-density transmission is completed within the required time to achieve functional, performance, and strength testing of the software bus commands.

[0011] The beneficial effects of this invention are:

[0012] 1. It solves the problem of incomplete coverage of the functions and performance of manual speed control software tracking dynamic testing.

[0013] 2. The automatic generation of tracking speed regulation command sequences improves the testing efficiency of speed regulation tracking in drive control software.

[0014] 3. It can automatically generate instruction sequences and send instructions at different time intervals according to the tester's selection, test and track speed regulation performance and bus communication instruction strength, and improve the adaptability of the test tool under different communication conditions.

[0015] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description Attached Figure Description

[0017] Figure 1 This is a flowchart of a speed regulation test method using bus communication drive control software according to an embodiment of the present invention.

[0018] Figure 2 This is a sequence diagram of the generation of tracking speed regulation commands according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the final tracking speed control command sequence according to an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0020] This invention proposes a test method for tracking speed regulation of drive control software using bus communication. Based on the start and end speeds, drive mechanism rotation direction, command sequence time intervals, and speed regulation rules specified by the tester, a required tracking speed regulation command sequence is automatically generated. Then, multiple generated tracking speed regulation command sequences are combined into a final tracking speed regulation command sequence. Finally, depending on the tester's selection, the final tracking speed regulation command sequence is sent to the software under test via a certain bus communication method at fixed or variable time intervals.

[0021] like Figure 1 As shown, this invention proposes a drive control software tracking speed regulation test method using bus communication, including:

[0022] S0: Based on the start speed, end speed, drive mechanism rotation direction, command sequence time interval, and speed regulation law specified by the tester in the drive control software speed regulation command, automatically generate the required tracking speed regulation command sequence. Proceed to step S1;

[0023] In step S0: According to software testing requirements, the tester specifies the start speed, end speed, drive mechanism rotation direction, command sequence time interval, and speed regulation rule for the speed regulation command, automatically generating the required two command sequences: fixed-step speed regulation and variable-step speed regulation. The fixed-step speed regulation tracking command sequence is generated based on the specified step size. The variable-step speed regulation tracking command sequence is generated based on the specified speed regulation rule, such as... Figure 2 As shown.

[0024] S1: Based on the testing requirements, after repeating step S0 multiple times, combine the generated tracking speed control command sequences into the final tracking speed control command sequence, and proceed to step S2, as follows. Figure 3 As shown;

[0025] Here, step S1 includes: executing step S0 multiple times to generate different tracking speed control command sequences multiple times, merging the multiple generated tracking speed control command sequences to obtain a merged sequence, and modifying the sequence to generate the final tracking speed control command sequence.

[0026] S2: Using a certain bus communication method, the final tracking speed adjustment command sequence is sent to the software under test at fixed time intervals set by the tester, and then proceed to step S3;

[0027] Here, step S2 includes:

[0028] The system uses a preset bus communication and sends the final tracking speed adjustment command sequence to the software under test at fixed time intervals set by the tester in the instructions.

[0029] S3: The tester modifies the sending time interval of each speed control command and uses a certain bus communication to send the final tracking speed control command sequence to the software under test at varying time intervals.

[0030] Here, step S3 includes:

[0031] Modify the time intervals of certain instructions in the instruction sequence, and use a preset bus communication to send the final tracking speed regulation instruction sequence to the software under test at varying time intervals, thereby realizing the tracking speed regulation instruction function and performance test of the software under different time intervals.

[0032] By reducing the time interval, a preset bus communication is used to send the final tracking speed control command sequence to the software under test at a reduced time interval, so as to complete the high-density command transmission within the required time and realize the software bus command strength test.

[0033] This invention can automatically generate a sequence of tracking speed adjustment commands for drive control software according to the needs of testers, and send commands via a bus at time intervals specified by the testers, thereby enabling more precise functional testing, performance testing, and bus command strength testing of the drive control software's tracking speed adjustment commands. The above description is merely a preferred embodiment of this invention, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this invention should be included within the scope of protection of this invention. Therefore, the scope of protection of this invention should be determined by the scope of the claims.

Claims

1. A method for testing speed regulation using drive control software with bus communication, characterized in that, include: Step S0: Based on the start speed, end speed, drive mechanism rotation direction, instruction sequence time interval and speed regulation law of the specified drive control software speed regulation command, automatically generate the required tracking speed regulation command sequence, and proceed to step S1; Step S1: According to the test requirements, after repeating step S0 multiple times, combine the multiple generated tracking speed regulation command sequences into the final tracking speed regulation command sequence, and proceed to step S2. Step S2: Use a preset bus communication and send the final tracking speed adjustment command sequence to the software under test at fixed time intervals, then proceed to step S3; Step S3: Modify the sending time interval of each frame speed adjustment command, and use preset bus communication to send the final tracking speed adjustment command sequence to the software under test at varying time intervals. Step S0 includes: Based on the software testing requirements, specify the start speed, end speed, drive mechanism rotation direction, instruction sequence time interval, and speed regulation law of the speed regulation command in the drive control software, and automatically generate the required two tracking speed regulation command sequences: fixed step speed regulation and variable step speed regulation. The tracking speed regulation command sequence for fixed step speed regulation is generated according to the specified step size; The variable step size speed regulation tracking speed regulation command sequence is generated according to the specified speed regulation law; Step S1 includes: Step S0 is executed multiple times to generate different tracking speed control command sequences. The multiple generated tracking speed control command sequences are merged to obtain a merged sequence, and the sequence is modified to generate the final tracking speed control command sequence. Step S2 includes: The system uses a preset bus communication and sends the final tracking speed control command sequence to the software under test at fixed time intervals set in the sequence. Step S3 includes: Modify the time interval of certain instructions in the instruction sequence, and use preset bus communication to send the final tracking speed regulation instruction sequence to the software under test at varying time intervals, so as to realize the tracking speed regulation instruction function and performance test of the software under different time intervals. By reducing the time interval, a preset bus communication is used to send the final tracking speed control command sequence to the software under test at a reduced time interval, so as to complete the high-density command transmission within the required time and realize the software bus command strength test.

Citation Information

Patent Citations

  • Frequency converter remote control method based on serial instruction sequence

    CN103513586A