IP Library Granted Patent US 12,072,787
Granted Patent B2
US 12,072,787 · App. 18/233,351 · Granted Aug 27, 2024

Method and apparatus for testing control software by injecting fault signals into a simulation environment, and computer-readable storage medium

Inventors: Bin Lan (Fujian, CN); Xuming Wang (Fujian, CN); Deqiang Shi (Fujian, CN); Chunguang Ye (Fujian, CN); Runqi Wu (Fujian, CN); Jianfeng Guo (Fujian, CN); Chang Liu (Fujian, CN); Dongfei Zhang (Fujian, CN); Jianping Bai (Fujian, CN); Lang Yang (Fujian, CN); Xuan He (Fujian, CN)
Assignee: CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED
G06F11/3664G05B23/0256G06F11/3688
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,072,787
App. No.
18/233,351
Granted
Aug 27, 2024
Kind
B2
Abstract

An embodiment of this application provides a method and apparatus for testing control software, and a computer-readable storage medium to reduce the time consumed in the simulation-based debugging and enhance efficiency. The method may include obtaining test information of a plurality of fault signals; and injecting, based on the test information of the plurality of fault signals, the plurality of fault signals into a simulation environment in sequence to obtain test results of the plurality of fault signals handled by the control software, where the simulation environment may be a simulation environment of a control object of the control software.

Claims (26)

1. A method for testing control software, comprising:

providing an automatic test function-block;

obtaining test information of a plurality of fault signals via the automatic test function block executing on a processor, the test information of the plurality of fault signals comprising serial number information of the plurality of fault signals including a start number and an end number of the fault signals; and

injecting, based on the test information of the plurality of fault signals, the plurality of fault signals into a simulation environment in sequence to obtain test results of the plurality of fault signals handled by the control software, wherein the simulation environment is a simulation environment of a control object of the control software,

wherein before starting of testing a next fault signal of each of the plurality of fault signals, the automatic test function block is configured to purge the fault signals before automatically activating Stop, Reset, and Start buttons in sequence to restart the simulation environment and resume operation of the simulation environment without fault.

2. The method according to claim 1 , wherein the test information of the plurality of fault signals comprises test time of each fault signal in the plurality of fault signals; and

the injecting, based on the test information of the plurality of fault signals, the plurality of fault signals into a simulation environment in sequence to obtain test results of the plurality of fault signals handled by the control software, comprises:

injecting, for each of the plurality of fault signals, this fault signal into the simulation environment based on the test information of the fault signal;

stopping the injection of the fault signal upon arrival of the test time; and

obtaining a test result of the fault signal handled by the control software.

3. The method according to claim 2 , further comprising:

starting a timer when injecting the fault signals into the simulation environment, wherein an expiry time of the timer is the test time, wherein

the injection of the fault signals is stopped upon expiry of the timer.

4. The method according to claim 1 , wherein after the obtaining test results of the fault signals handled by the control software, the method further comprises:

restarting the simulation environment so that the simulation environment runs without fault.

5. The method according to claim 1 , further comprising:

displaying the test results of the plurality of fault signals handled by the control software.

6. The method according to claim 1 , further comprising:

correcting control logic of the control software based on the test results of the plurality of fault signals.

7. The method according to claim 1 , wherein the simulation environment comprises circuitry configured to drive the control object, the circuitry is correlated with the fault signals, and, upon injection of a fault signal into the simulation environment, the circuitry drives, in response to the fault signal, the control object to stop running.

8. An apparatus for testing control software, wherein the apparatus comprises the processor and a memory, the memory is configured to store a program, and the processor is configured to call the program from the memory and run the program to perform the method according to claim 1 .

9. A non-transitory computer-readable storage medium, wherein the storage medium comprises a computer program, and, when executed on a computer, the computer program causes the computer to perform the method according to claim 1 .

10. An apparatus for testing control software, comprising processor configured to:

execute an automatic test function block, and obtain test information of a plurality of fault signals via the automatic test function block, the test information of the plurality of fault signals comprising serial number information of the plurality of fault signals including a start number and an end number of the fault signals; and

inject, based on the test information of the plurality of fault signals, the plurality of fault signals into a simulation environment in sequence to obtain test results of the plurality of fault signals handled by the control software, wherein the simulation environment is a simulation environment of a control object of the control software,

wherein before starting of testing a next fault signal of each of the plurality of fault signals, the automatic test function block is executed by the processor to purge the fault signals before automatically activating Stop, Reset, and Start buttons in sequence to restart the simulation environment and resume operation of the simulation environment without fault.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 6, 2024
From: CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED
To: CONTEMPORARY AMPEREX TECHNOLOGY (HONG KONG) LIMITED
Reel/Frame 068338/0402 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 14, 2023
From: LAN, BIN; WANG, XUMING; SHI, DEQIANG; YE, CHUNGUANG; WU, RUNQI; GUO, JIANFENG; LIU, CHANG; ZHANG, DONGFEI; BAI, JIANPING; YANG, LANG; HE, XUAN
To: CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED
Reel/Frame 064574/0882 →
Continuity (2)
Continuation PCTCN2022122400 · Sep 29, 2022
Related Publication 20240111661A1 · Apr 4, 2024