Software radar algorithm module real-time reconstruction device and method

By designing module package management, topology management and scheduling units in the software-based radar system, and using dynamic library and resource pool technology to realize real-time reconstruction of algorithm modules, the problems of high software and hardware coupling and long development cycle in traditional radar systems are solved. Improved system flexibility and R&D efficiency.

CN118585243APending Publication Date: 2024-09-03BEIJING ZIYU WEIYE ELECTRONIC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410791415.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Traditional radar systems have high coupling between software and hardware, long R&D cycles, and difficult upgrades. They lack the ability to dynamically reconstruct the algorithm module level without stopping the process, which limits system flexibility and R&D efficiency.

Method used

Design a software-based radar algorithm module real-time reconstruction device, including a module package management unit, a module topology management unit and a module scheduling unit. Through dynamic library and resource pool technology, real-time reconstruction at the algorithm module level is realized, and the process is supported without stopping the process. Quickly switch task modes when in a state.

Benefits of technology

It achieves real-time reconstruction at the algorithm module level in software-based radar systems, improves system flexibility and reconstruction time, and reduces reconstruction time. It is suitable for all types of software-based radar systems and significantly improves research and development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585243A
    Figure CN118585243A
Patent Text Reader

Abstract

The invention belongs to the technical field of radars, and particularly relates to a software radar algorithm module real-time reconstruction device and method, and the device comprises a module package management unit, a module topology management unit, and a module scheduling unit. The reconstruction method comprises the steps that the method is applied to a main program, and a loadable algorithm module list is read; reading a module topological structure file; creating module instances according to topological structure requirements, and putting the module instances into a resource pool; module instances are assembled according to the topological structure, and the module topology has a service data processing function; when the system is reconstructed, an algorithm module is newly added or upgraded, and a topological structure file is newly added or updated; informing to execute reconstruction, and reloading the algorithm module list; and disassembling the module topology, putting the module instance back to the resource pool, and reassembling the module instance according to the topological structure. The method supports real-time reconstruction of the algorithm module without stopping the process, reduces the reconstruction time through the resource pool, and is suitable for various software radar systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of radar technology, and in particular relates to a software-based radar algorithm module real-time reconstruction device and method. Background Art

[0002] In recent years, the use scenarios faced by radar systems have become increasingly complex. In order to improve the efficiency of radar system development and update speed, and solve the problems of high hardware and software coupling, long development cycle, and difficult upgrades in traditional radar systems, software-based radar technology has become a research hotspot in recent years. The concept of software-based radar aims to decouple software and hardware resources through software-defined functions, adopt an open hierarchical architecture, standardized component interfaces, and use middleware. It has the characteristics of loose coupling, portability, and reconfigurability. Software-based radar technology helps reduce R&D costs, shorten R&D time, and improve equipment maintenance and upgrade capabilities.

[0003] One of the advantages of software-based radar technology over traditional radar systems is the flexible reconfiguration capability. Traditional reconstruction is usually completed by replacing the application program. The implementation process is relatively simple, but it has the disadvantages of large granularity and the need to stop the program. Therefore, there is an urgent need for a real-time reconstruction device and method for software-based radar algorithm modules. The business is divided into algorithm modules, and the business is completed by assembling the modules into applications. The advantages of software-based radar are fully utilized to achieve dynamic reconstruction of the algorithm module level inside the application program without stopping the process, thereby improving system flexibility, reducing reconstruction time, and improving R&D efficiency. Summary of the invention

[0004] The object of the present invention is to provide a software-based radar algorithm module real-time reconstruction device, characterized in that it includes: a module package management unit, a module topology management unit, and a module scheduling unit;

[0005] The module package management unit is used to download, delete, and read the module package for encapsulating the algorithm module; the module package includes: a module description file and a module library file; the module library file implements the predefined algorithm module interface, and the algorithm module interface includes: an instance creation interface, a reset state interface, an input data interface, an output data interface, and an execution calculation interface;

[0006] The module topology management unit is used to download, delete, and read the module topology structure file; the module topology structure file includes: instance information list and instance connection information list; the instance information includes: module name and module instance name; the module topology structure file is used to define the task mode and realize business data processing;

[0007] The module scheduling unit includes: instruction processing module, algorithm module metadata list, topology structure, instance resource pool and algorithm module topology;

[0008] The instruction processing module is used to receive control instructions sent by an external system; the algorithm module metadata list is used to store the module packages loaded by the module package management unit; the topology structure is used to store the module topology structure files loaded by the module topology management unit; the instance resource pool is used to store algorithm module instances; the algorithm module instance is obtained by the module scheduling unit instantiating the corresponding module package in the algorithm module metadata list according to the instance information in the instance information list; the algorithm module topology is used to assemble several algorithm module instances in the instance resource pool into a task mode according to the instance connection information in the instance connection information list, and realize the real-time reconstruction of the software radar algorithm module through task mode switching.

[0009] The module description file includes: module name, module library file name, module library class name, instance creation interface name, input data structure information and output data structure information;

[0010] The input data structure information includes: input data structure name, input data structure data length and input data type; the output data structure information includes: output data structure name, output data structure data length and output data type.

[0011] The naming rule of the module instance name is: module name + instance number; the instance connection information includes: upstream module instance name, downstream module instance name, data structure name and data structure length.

[0012] Another object of the present invention is to provide a software-based radar algorithm module real-time reconstruction method, characterized in that it includes:

[0013] Step 1: Call the module package management unit to obtain the algorithm module metadata list;

[0014] Step 2: Call the module topology management unit, read the module topology structure file, and obtain the instance information list and instance connection information list;

[0015] Step 3: Create the required algorithm module instance according to the instance information list, and store the required algorithm module instance in the instance resource pool;

[0016] Step 4: according to the instance connection information in the instance connection information list, several algorithm module instances in the instance resource pool are taken out from the instance resource pool and an algorithm module topology is assembled; the algorithm module topology constitutes a task mode, and the task mode is used to process business data;

[0017] Step 5: the instruction processing module performs a reconstruction preparation operation in response to the system reconstruction instruction sent by the external system; the reconstruction preparation operation includes: calling the module package management unit to update the module package; calling the module topology management unit to update the module topology structure file; the updating of the module package includes: adding, deleting and updating the module package according to the system reconstruction instruction; the updating of the module topology structure file includes: adding, deleting and updating the module topology structure file according to the system reconstruction instruction;

[0018] Step 6: When the module package management unit completes updating the module package, it issues a notification of completing updating the module package; when the module topology management unit completes updating the module topology structure file, it issues a notification of completing updating the module topology structure; when the module scheduling unit receives the notification of completing updating the module package and the notification of completing updating the module topology structure, it performs a reconstruction preparation operation; the reconstruction preparation operation includes: calling the module package management unit to re-acquire the algorithm module metadata list; calling the module topology management unit to re-read the module topology structure file and re-acquire the instance information list and the instance connection information list;

[0019] Step 7: Disassemble the algorithm module topology, put the algorithm module instance back into the instance resource pool, update the algorithm module instance in the instance resource pool according to the updated instance information list, re-execute step 4, complete the task mode switching, and realize the real-time reconstruction of the software-based radar algorithm module.

[0020] The reconstruction preparation operation in step 6 also includes:

[0021] Traverse the updated instance information list, find the algorithm module instance to be loaded that has not been loaded into the instance resource pool, create the algorithm module instance to be loaded, and store the algorithm module instance to be loaded in the instance resource pool.

[0022] In step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes:

[0023] Traverse all algorithm module instances in the instance resource pool and destroy the algorithm module instances that are no longer needed in the updated instance information list;

[0024] The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

[0025] In step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes:

[0026] The module scheduling unit stores multiple topological structures, each topological structure including a respective instance information list and instance connection information list;

[0027] Traverse all algorithm module instances in the instance resource pool and destroy all algorithm module instances that are not needed in the instance information list;

[0028] The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

[0029] The instance connection information in step 4 also includes a module group number; when several algorithm module instances in the instance resource pool are taken out from the instance resource pool and the algorithm module topology is assembled, the related algorithm module instances are grouped into a module group using the instance connection information with the same module group number; the interface of the module group is the same as that of the algorithm module instance, and the module group can be directly combined with a certain algorithm module instance.

[0030] The software-based radar algorithm module real-time reconstruction device is combined with a visual development environment, and the software-based radar algorithm module real-time reconstruction device is operated through a visual interface.

[0031] The beneficial effects of the present invention are:

[0032] The present invention provides a modular program structure and algorithm module real-time reconstruction method for a software radar system. By using dynamic library and resource pool technology, real-time reconstruction of the algorithm module level can be achieved during the software operation process, and rapid switching of task modes can be achieved. The method is applicable to software radar systems in various fields. The method supports real-time reconstruction of the algorithm module without stopping the process, and reduces the reconstruction time through the resource pool. The method is applicable to various software radar systems. The present invention can be used in combination with a visual development environment, which can significantly improve system flexibility and reconstruction time, and improve research and development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of a software-based radar algorithm module real-time reconstruction method of the present invention;

[0034] Figure 2 It is a schematic diagram of the internal data and functions of the main program of the present invention;

[0035] Figure 3 It is a schematic diagram of the modular application structure file of the present invention;

[0036] Figure 4 A schematic diagram of internal data changes during the main program startup process of the present invention;

[0037] Figure 5 It is a schematic diagram of the changes of the internal data of the main program of the device of the present invention during the hot update process of the algorithm module;

[0038] Figure 6A schematic diagram of application file changes during the hot update of the algorithm module of the device of the present invention;

[0039] Figure 7 A schematic diagram of the changes in the internal data of the main program during the multi-task mode of the device of the present invention, adding modules through hot update, and the task mode process;

[0040] Figure 8 The present invention implements a multi-task mode for the device, adds modules through hot update, and shows the changes in application program files during the task mode process. DETAILED DESCRIPTION

[0041] The present invention provides a software-based radar algorithm module real-time reconstruction device and method, which will be further described in detail below in conjunction with the accompanying drawings.

[0042] like Figure 1 The embodiment of the present invention shown discloses a software-based radar algorithm module real-time reconstruction method using a software-based radar algorithm module real-time reconstruction device.

[0043] The software-based radar algorithm module real-time reconstruction device includes: a module package management unit, a module topology management unit, and a module scheduling unit;

[0044] The module package management unit is used to download, delete, and read the module package for encapsulating the algorithm module; the module package includes: a module description file and a module library file; the module library file implements the predefined algorithm module interface, and the algorithm module interface includes: an instance creation interface, a reset state interface, an input data interface, an output data interface, and an execution calculation interface;

[0045] The module topology management unit is used to download, delete, and read the module topology structure file; the module topology structure file includes: instance information list and instance connection information list; the instance information includes: module name and module instance name; the module topology structure file is used to define the task mode and realize business data processing;

[0046] The module scheduling unit includes: instruction processing module, algorithm module metadata list, topology structure, instance resource pool and algorithm module topology;

[0047] The instruction processing module is used to receive control instructions sent by an external system; the algorithm module metadata list is used to store the module packages loaded by the module package management unit; the topology structure is used to store the module topology structure files loaded by the module topology management unit; the instance resource pool is used to store algorithm module instances; the algorithm module instance is obtained by the module scheduling unit instantiating the corresponding module package in the algorithm module metadata list according to the instance information in the instance information list; the algorithm module topology is used to assemble several algorithm module instances in the instance resource pool into a task mode according to the instance connection information in the instance connection information list, and realize the real-time reconstruction of the software radar algorithm module through task mode switching.

[0048] The module description file includes: module name, module library file name, module library class name, instance creation interface name, input data structure information and output data structure information;

[0049] The input data structure information includes: input data structure name, input data structure data length and input data type; the output data structure information includes: output data structure name, output data structure data length and output data type.

[0050] The naming rule of the module instance name is: module name + instance number; the instance connection information includes: upstream module instance name, downstream module instance name, data structure name and data structure length.

[0051] In this embodiment, the software-based radar algorithm module real-time reconstruction device runs as a virtual device in software-based radar systems in various fields. A modular application structure is disclosed by describing the software-based radar algorithm module real-time reconstruction device. Based on the modular application structure, a reconstruction method is disclosed to split and encapsulate specific business logic in a certain algorithm module. The advantages of software-based radar are fully utilized, and the program structure is designed in a resource pooling manner. The module structure (topology map) itself is saved in the memory as a resource to realize module switching. Dynamic reconstruction of the algorithm module level inside the application without stopping the process is realized. It has strong versatility, can adapt to the reconstruction of software with completely different structures, can be suitable for fine-tuning and single module upgrades, improve the flexibility of the software-based radar system, reduce reconstruction time, and improve research and development efficiency.

[0052] The modular application structure file disclosed in this embodiment is as follows: Figure 3 As shown, the application program structure file includes: a number of algorithm module files, a number of module topology structure files and a main program file;

[0053] The algorithm module file is used to implement the module package managed by the module package management unit. Each module package encapsulates a specific algorithm module. Each algorithm module file includes: a module description file and a module library file; the module description file includes: module name, module library file name, module library class name, instance creation interface name, input data structure information and output data structure information; the input data structure information includes: input data structure name, input data structure data length and input data type; the output data structure information includes: output data structure name, output data structure data length and output data type.

[0054] In this embodiment, the module description file is an XML format description file, which contains the function name for creating an algorithm module instance, the module input data format, and the output data format. The module library file is a dynamic library file in so format, which is developed and compiled in C++ language and contains an algorithm class that inherits the parent class and an instance creation function in C language style. The algorithm module parent class contains the following virtual functions: reset state, input data, output data, and perform calculations. The instance creation function name is a unified prefix plus the class name, and the function execution process includes the following steps: create an object; initialize the state; return a pointer. The description file provides information such as the name of the instance creation function, the algorithm module class name, and the module library file name.

[0055] The module topology structure file is the module topology structure file managed by the module topology management unit load, and the module topology structure file includes: an instance information list and an instance connection information list; the instance information includes: a module name and a module instance name; the module topology structure file is used to define the task mode, describe the module information included in the program and the topological relationship between the modules, and realize business data processing.

[0056] In this embodiment, the module topology structure file is in XML format, and contains information about algorithm modules for implementing services and connection relationships between modules.

[0057] The main program file, referred to as the main program, is used to implement the module scheduling unit. In this embodiment, the main program is an executable program file that has the ability to load algorithm modules, read module topology files, manage module instances, and assemble modules. The internal data structure of the main program is as follows: Figure 2As shown, the main program includes: an instruction processing module (not shown in the figure), an algorithm module metadata list, a topology structure, an instance resource pool, and an algorithm module topology; the module metadata is stored in the algorithm module metadata list, and the main program enters the directory where the algorithm module file is stored to read the module description file, and then stores the information in the algorithm module metadata list. The instance resource pool stores the algorithm module instances that have been created but not assembled into a topology. The topology structure stores the information read from the module topology structure file, including the file name, module list, and connection information. The module topology is composed of module instances connected to each other, reading business data from the outside, and outputting it to the outside after processing to implement business logic.

[0058] In this embodiment, the main program has the ability to load algorithm modules, read module topology files, manage algorithm module instances, and assemble modules. By calling the module package management unit, the module description file is read; the module information list is maintained and updated; and the module library file is loaded. Through the module topology management unit, the module topology file is read to obtain the instance information list and the instance connection information list. The algorithm module instance is obtained by calling the create object method. Managing module instances and assembling modules includes: creating an algorithm module instance and putting it into the instance resource pool; taking out the algorithm module instance from the instance resource pool; connecting the algorithm module instance; calling the algorithm module instance to implement specific business capabilities.

[0059] The present invention also proposes a software-based radar algorithm module real-time reconstruction method using the software-based radar algorithm module real-time reconstruction device of the present invention. By utilizing dynamic library and resource pool technology, real-time reconstruction at the algorithm module level can be achieved during software operation, and task modes can be quickly switched. The method is suitable for software-based radar systems in various fields.

[0060] The software radar algorithm module real-time reconstruction method using the software radar algorithm module real-time reconstruction device of the present invention is applied to the module scheduling unit, and comprises the following steps:

[0061] Step 1: Call the module package management unit to obtain the algorithm module metadata list;

[0062] Step 2: Call the module topology management unit, read the module topology structure file, and obtain the instance information list and instance connection information list;

[0063] Step 3: Create the required algorithm module instance according to the instance information list, and store the required algorithm module instance in the instance resource pool;

[0064] Step 4: according to the instance connection information in the instance connection information list, several algorithm module instances in the instance resource pool are taken out from the instance resource pool and an algorithm module topology is assembled; the algorithm module topology constitutes a task mode, and the task mode is used to process business data;

[0065] Step 5: the instruction processing module performs a reconstruction preparation operation in response to the system reconstruction instruction sent by the external system; the reconstruction preparation operation includes: calling the module package management unit to update the module package; calling the module topology management unit to update the module topology structure file; the updating of the module package includes: adding, deleting and updating the module package according to the system reconstruction instruction; the updating of the module topology structure file includes: adding, deleting and updating the module topology structure file according to the system reconstruction instruction;

[0066] Step 6: When the module package management unit completes updating the module package, it issues a notification of completing updating the module package; when the module topology management unit completes updating the module topology structure file, it issues a notification of completing updating the module topology structure; when the module scheduling unit receives the notification of completing updating the module package and the notification of completing updating the module topology structure, it performs a reconstruction preparation operation; the reconstruction preparation operation includes: calling the module package management unit to re-acquire the algorithm module metadata list; calling the module topology management unit to re-read the module topology structure file and re-acquire the instance information list and the instance connection information list;

[0067] Step 7: Disassemble the algorithm module topology, put the algorithm module instance back into the instance resource pool, update the algorithm module instance in the instance resource pool according to the updated instance information list, re-execute step 4, complete the task mode switching, and realize the real-time reconstruction of the software-based radar algorithm module.

[0068] In this embodiment, the main program is first started. The main program calls the module package management unit to read the algorithm module metadata list. Each algorithm module contains a module description file. The module description file describes the name of the instance creation function and the module input and output information. The main program calls the module topology management unit to read the module topology structure file. The topology file describes the module list and module connection relationship that implements the business capability. The main program creates a module instance according to the topology structure requirements. If there is no module instance in the resource pool, an instance is created and placed in the resource pool. The module instance is assembled according to the topology structure, and the connection relationship between the modules is established. The assembled module topology starts to process business data. When the system is reconstructed, according to the reconstruction needs, if an algorithm module needs to be added or upgraded, the module file is added or updated; if only the topology structure is updated, according to the reconstruction needs, the topology structure is updated or added, and the topology structure file is added or updated; if the reconstruction uses the uploaded topology structure, the main program is notified to perform the reconstruction, and the main program re-reads the algorithm module list from the file system. The main program disassembles the assembled module topology and puts the module instance back into the resource pool. Then, according to the reconstruction instructions, the topology file is read, the module instances are assembled according to the topological structure, the connection relationship between the modules is established, and the assembled module topology begins to process business data.

[0069] The following uses a specific embodiment to introduce the specific execution process of each step. In this embodiment, the internal data changes during the main program startup process are as follows: Figure 4 shown.

[0070] Step 1: Call the module package management unit to obtain the algorithm module metadata list;

[0071] In this embodiment, the main program is first started, and the name of the topology file to be loaded in this operation is passed through parameters. After starting the main program, enter the directory where the algorithm module file is stored to read the algorithm module information, and store the read information in a list. Specifically, in this embodiment, the algorithm module file is stored in the modules folder in the same directory as the main program, and each module is stored in a separate folder, including a description file module.xml, a library file moduleName.so, and other dependent files. The main program calls the module package management unit to traverse the subfolders under the modules folder, creates a structure to store the module information after reading the module.xml file, and stores the structure in the algorithm module metadata list.

[0072] Step 2: Call the module topology management unit, read the module topology structure file, and obtain the instance information list and instance connection information list;

[0073] In this embodiment, the main program obtains the module topology structure file name through the startup parameters, and reads the topology file to obtain the module list and module connection relationship. Specifically, in this embodiment, the module topology structure file is stored in the structure folder in the same directory as the main program. The file name is structureName.xml, and the file contains two parts: module list and connection relationship. The module list contains the module name and module instance name. When a module has multiple instances, the instance name is named in the form of module name + number. The module connection relationship includes input modules and output modules, indicating that there is a data transfer relationship between the two algorithm modules. For modules that read data from the outside and output data to the outside, a virtual external module is used to replace it in the connection relationship.

[0074] Step 3: Create the required algorithm module instance according to the instance information list, and store the required algorithm module instance in the instance resource pool;

[0075] In this embodiment, the main program compares the number of module instances and the required number in the current module resource pool according to the topological structure. If there is no module instance in the resource pool or the number of instances is insufficient, an instance is created and placed in the resource pool. Specifically, in this embodiment, the main program references the dlfcn.h header file, reads the module library file path in the algorithm module list, and calls the dlopen method to load the module dynamic library file. After loading successfully, the name of the module instance creation function is read, the function pointer is obtained by calling the dlsym method, and then the module instance is executed to create the module instance function. The resource pool uses a map data structure, the key is the module name, and the value is the module instance list. When the module object is placed in the resource pool, it is first determined whether the list corresponding to the module name exists. If it exists, it is added to the instance information list, otherwise the list is created first and then added to the instance information list.

[0076] Step 4: according to the instance connection information in the instance connection information list, several algorithm module instances in the instance resource pool are taken out from the instance resource pool and an algorithm module topology is assembled; the algorithm module topology constitutes a task mode, and the task mode is used to process business data;

[0077] In this embodiment, the main program assembles modules according to the topological structure, establishes the connection relationship between the modules, and the assembled module topology starts to process business data. Specifically, in this embodiment, each module instance inherits the parent class, and the parent class contains a connection function, which takes the downstream module reference as an input parameter. When the connection function is called, the upstream output module adds the downstream module reference to the output object list. The module that has not established a connection with the upstream module is called the input module, which is responsible for reading input data from the outside. The module that has not established a connection with the downstream module is called the output module, which is responsible for outputting data to the outside. The main program starts from the input module of the topological structure, takes out the module instance from the resource pool, assigns an instance name to the instance, then takes out the downstream module according to the topological structure and assigns an instance name, calls the connection function to establish a connection, and repeats the process until the topological structure is created.

[0078] In this embodiment, the process of module topology processing business data includes the following steps: the main program calls the input function of the input module and waits for external data input; when the data arrives, calls the processing function of the first algorithm module for processing, and then calls the output function to obtain the data pointer; calls the input function of the output module list and passes the data pointer as a parameter; repeats the above steps until all algorithm module processing flows in the topology structure are executed; calls the output function of the output module to output the data to the outside.

[0079] Step 5: the instruction processing module performs a reconstruction preparation operation in response to the system reconstruction instruction sent by the external system; the reconstruction preparation operation includes: calling the module package management unit to update the module package; calling the module topology management unit to update the module topology structure file; the updating of the module package includes: adding, deleting and updating the module package according to the system reconstruction instruction; the updating of the module topology structure file includes: adding, deleting and updating the module topology structure file according to the system reconstruction instruction;

[0080] In this embodiment, when the system is reconstructed, the algorithm module is added or upgraded according to the reconstruction needs. If only the topology structure is reconstructed, only the topology structure is updated or added. If the reconstruction uses the uploaded topology structure, the main program is notified to perform the reconstruction preparation operation.

[0081] Specifically, in this embodiment, the algorithm module is stored in the modules folder. During reconstruction, the new algorithm module file is sent to the folder. If the module file already exists, the file is replaced with the new version. In this embodiment, there are one or more module topology structure files, which are placed in the structure folder. During reconstruction, the new topology structure file is sent to the folder. If the structure file already exists, the old file is overwritten.

[0082] Step 6: When the module package management unit completes updating the module package, it issues a notification of completing updating the module package; when the module topology management unit completes updating the module topology structure file, it issues a notification of completing updating the module topology structure; when the module scheduling unit receives the notification of completing updating the module package and the notification of completing updating the module topology structure, it performs a reconstruction preparation operation; the reconstruction preparation operation includes: calling the module package management unit to re-acquire the algorithm module metadata list; calling the module topology management unit to re-read the module topology structure file and re-acquire the instance information list and the instance connection information list;

[0083] In this embodiment, the main program is notified to perform the reconstruction preparation operation, and the main program re-reads the algorithm module metadata list from the file system. Specifically, the main program in the embodiment creates a TCP protocol server and receives instructions through the port. The instructions include the name of the module topology file used for reconstruction. After receiving the instruction, the main program performs the module file reload operation, traverses the modules folder and compares it with the list already loaded in the memory. If the file is deleted or updated, delete the relevant data from the module list, and call dlclose to unload the module. If there is no module information in the memory, the information is added to the algorithm module metadata list. The main program reads the topology file according to the topology file name provided by the reconstruction instruction, calls the module topology management unit to re-read the module topology structure file, and regains the instance information list and the instance connection information list;

[0084] Step 7: Disassemble the algorithm module topology, put the algorithm module instance back into the instance resource pool, update the algorithm module instance in the instance resource pool according to the updated instance information list, re-execute step 4, complete the task mode switching, and realize the real-time reconstruction of the software-based radar algorithm module.

[0085] In this embodiment, the main program disassembles the assembled module topology and puts the module instance back into the resource pool. Specifically, the parent class of the module instance in this embodiment contains a reset function, calling this function will reset the output object list and remove the connection relationship. The main program resets the module instance in the topology and puts it into the resource pool. If the module has been removed from the module list, the instance is destroyed. Re-execute step 4 to complete the task mode switching and realize the real-time reconstruction of the software radar algorithm module.

[0086] In this embodiment, real-time reconstruction of the algorithm module is supported without stopping the process, and the reconstruction time is reduced through the resource pool, which is suitable for various software radar systems.

[0087] In an optional embodiment, the reconstruction preparation operation in step 6 further includes:

[0088] Traverse the updated instance information list, find the algorithm module instance to be loaded that has not been loaded into the instance resource pool, create the algorithm module instance to be loaded, and store the algorithm module instance to be loaded in the instance resource pool.

[0089] In this optional embodiment, before executing step seven to disassemble the algorithm module topology, the newly added algorithm module instance is loaded in advance and stored in the instance resource pool. Without interrupting the existing task mode to process business data, it is possible to asynchronously execute tedious operations such as downloading files, loading dynamic libraries, and creating algorithm module instances in the background. This can minimize the execution time of task mode switching and improve the efficiency of task mode switching.

[0090] In an optional embodiment, in step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes:

[0091] Traverse all algorithm module instances in the instance resource pool and destroy the algorithm module instances that are no longer needed in the updated instance information list;

[0092] The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

[0093] In this optional embodiment, during the process of executing task mode switching, algorithm module instances that are not needed for the new task mode are destroyed, and valuable memory resources are released in a timely manner. Especially for scenarios where frequent task mode switching is required, the possibility of memory leaks can be effectively reduced and the stability of system operation can be improved.

[0094] In a specific embodiment, the apparatus of the present invention is used to perform a hot update on a radar algorithm module.

[0095] The internal data structure of the main program during the reconstruction process is as follows Figure 5 As shown, the application files before and after the reconstruction are as follows Figure 6 shown.

[0096] Before updating the algorithm module, the main program loaded 5 modules and ran according to the structure in "Structure 1.xml", including 6 module instances. When performing a hot update, first replace the module file of the algorithm module "Module 4" with the new module file "Module 4-new". Then add a topology structure file "Structure 2.xml", using the same topology as 1, but replace "Module 4" with "Module 4-new".

[0097] After the main program updates the module list, "Module 4" in the module list is replaced by "Module 4-New". Since module 4 has been replaced, the instance of module 4 is destroyed, and the resource pool contains 5 recycled module resources.

[0098] Load the new "Structure 2.xml". By comparison, a new instance of "Module 4-New" needs to be added. The main program creates the instance and puts it into the resource pool, then assembles the module and the reconstruction is completed.

[0099] In an optional embodiment, in step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes:

[0100] The module scheduling unit stores multiple topological structures, each topological structure including a respective instance information list and instance connection information list;

[0101] Traverse all algorithm module instances in the instance resource pool and destroy all algorithm module instances that are not needed in the instance information list;

[0102] The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

[0103] In this optional embodiment, during the process of executing task mode switching, algorithm module instances that are temporarily not needed are still stored in the instance resource pool. When the task mode switching is executed next time, these temporarily "redundant" algorithm module instances do not need to be loaded again and can be directly assembled and used, which effectively improves the speed of task mode switching, reduces the generation of memory fragmentation, and helps improve system stability.

[0104] In a specific embodiment, the task type is increased through hot update and the task mode is switched to the newly added task mode.

[0105] The internal data structure of the main program during the reconstruction process is as follows Figure 7 As shown, the application files before and after the reconstruction are as follows Figure 8 shown.

[0106] Before adding the task mode, the application has 4 algorithm modules, including 2 task modes. The 2 task modes correspond to two topology structure files, and the running task mode 1 contains 5 module instances. When refactoring, a new task mode is added, corresponding to the "structure 3.xml" file, and a new module "module 5" is added.

[0107] After the main program updates the list, all module resources are recycled into the resource pool.

[0108] Load the new "Structure 3.xml". By comparison, a new instance of "Module 5" needs to be added. The main program creates the instance and puts it into the resource pool, then assembles the module, and the reconstruction is completed. After the reconstruction, the redundant modules will remain in the resource pool. If you switch back to Task 1, you will not need to recreate the instance.

[0109] In an optional embodiment, the instance connection information in step four also includes a module group number; when several algorithm module instances in the instance resource pool are taken out from the instance resource pool and the algorithm module topology is assembled, the related algorithm module instances are grouped into a module group using the instance connection information with the same module group number; the interface of the module group is the same as that of the algorithm module instance, and the module group can be directly combined with a certain algorithm module instance.

[0110] In a specific embodiment, under different task models, the module topology structure usually reuses some of the same modules, and these modules have a fixed connection relationship, and the reconstruction efficiency is improved by the design of the module group. A module group refers to a small topology structure composed of multiple modules, and the modules have a fixed connection relationship to realize a common function. The program structure is designed using the facade pattern so that the module group and the module have the same appearance (that is, the module group and the module have the same interface form and can be mixed and assembled). When reconstructing, the connection relationship between the modules within the module group is retained, and the entire module group is treated as a module, thereby reducing the time for disassembling the modules and establishing the connection relationship. For example, there are the following three topological structures: A1-BCD-E1, A2-BCD-E2, A3-BCD-E3, among which BCD forms a module group. When reconstructing, BCD is put into the instance resource pool as a whole for reuse.

[0111] In an optional embodiment, the software radar algorithm module real-time reconstruction device is combined with a visual development environment, and the software radar algorithm module real-time reconstruction device is operated through a visual interface. In this embodiment, the use of the visual development environment can significantly improve system flexibility and reconstruction time, and improve research and development efficiency.

Claims

1. A software-based real-time reconstruction device for radar algorithm modules, It is characterized in that include: Module package management unit, module topology management unit, module scheduling unit; The module package management unit is used to download, delete, and read the module package used to encapsulate the algorithm module; The module package includes: module description file and module library file; the module library file implements the predefined algorithm module interface, and the algorithm module interface includes: create instance interface, reset state interface, input data interface, output data interface, and execute calculation interface; The module topology management unit is used to download, delete, and read the module topology structure file; the module topology structure file includes: instance information list and instance connection information list; the instance information includes: module name and module instance name; the module topology structure file is used to define the task mode and realize business data processing; The module scheduling unit includes: instruction processing module, algorithm module metadata list, topology structure, instance resource pool and algorithm module topology; The instruction processing module is used to receive control instructions sent by an external system; the algorithm module metadata list is used to store the module packages loaded by the module package management unit; the topology structure is used to store the module topology structure files loaded by the module topology management unit; the instance resource pool is used to store algorithm module instances; the algorithm module instance is obtained by the module scheduling unit instantiating the corresponding module package in the algorithm module metadata list according to the instance information in the instance information list; the algorithm module topology is used to assemble several algorithm module instances in the instance resource pool into a task mode according to the instance connection information in the instance connection information list, and realize the real-time reconstruction of the software radar algorithm module through task mode switching.

2. The software-based radar algorithm module real-time reconstruction device according to claim 1, It is characterized in that The module description file includes: module name, module library file name, module library class name, instance creation interface name, input data structure information and output data structure information; The input data structure information includes: input data structure name, input data structure data length and input data type; the output data structure information includes: output data structure name, output data structure data length and output data type.

3. The software-based radar algorithm module real-time reconstruction device according to claim 1, It is characterized in that The naming rule of the module instance name is: module name + instance number; the instance connection information includes: upstream module instance name, downstream module instance name, data structure name and data structure length.

4. A method for real-time reconstruction of a software-based radar algorithm module using the real-time reconstruction device for a software-based radar algorithm module according to claim 1, applied to a module scheduling unit, It is characterized in that The steps include: Step 1: Call the module package management unit to obtain the algorithm module metadata list; Step 2: Call the module topology management unit, read the module topology structure file, and obtain the instance information list and instance connection information list; Step 3: Create the required algorithm module instance according to the instance information list, and store the required algorithm module instance in the instance resource pool; Step 4: according to the instance connection information in the instance connection information list, several algorithm module instances in the instance resource pool are taken out from the instance resource pool and an algorithm module topology is assembled; the algorithm module topology constitutes a task mode, and the task mode is used to process business data; Step 5: the instruction processing module performs a reconstruction preparation operation in response to the system reconstruction instruction sent by the external system; the reconstruction preparation operation includes: calling the module package management unit to update the module package; calling the module topology management unit to update the module topology structure file; the updating of the module package includes: adding, deleting and updating the module package according to the system reconstruction instruction; the updating of the module topology structure file includes: adding, deleting and updating the module topology structure file according to the system reconstruction instruction; Step 6: When the module package management unit completes updating the module package, it issues a notification of completing updating the module package; when the module topology management unit completes updating the module topology structure file, it issues a notification of completing updating the module topology structure; when the module scheduling unit receives the notification of completing updating the module package and the notification of completing updating the module topology structure, it performs a reconstruction preparation operation; the reconstruction preparation operation includes: calling the module package management unit to re-acquire the algorithm module metadata list; calling the module topology management unit to re-read the module topology structure file and re-acquire the instance information list and the instance connection information list; Step 7: Disassemble the algorithm module topology, put the algorithm module instance back into the instance resource pool, update the algorithm module instance in the instance resource pool according to the updated instance information list, re-execute step 4, complete the task mode switching, and realize the real-time reconstruction of the software-based radar algorithm module.

5. The software-based radar algorithm module real-time reconstruction method according to claim 4, It is characterized in that The reconstruction preparation operation in step 6 also includes: Traverse the updated instance information list, find the algorithm module instance to be loaded that has not been loaded into the instance resource pool, create the algorithm module instance to be loaded, and store the algorithm module instance to be loaded in the instance resource pool.

6. The software-based radar algorithm module real-time reconstruction method according to claim 4, It is characterized in that In step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes: Traverse all algorithm module instances in the instance resource pool and destroy the algorithm module instances that are no longer needed in the updated instance information list; The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

7. The software-based radar algorithm module real-time reconstruction method according to claim 4, It is characterized in that In step 7, updating the algorithm module instance in the instance resource pool according to the updated instance information list includes: The module scheduling unit stores multiple topological structures, each topological structure including a respective instance information list and instance connection information list; Traverse all algorithm module instances in the instance resource pool and destroy all algorithm module instances that are no longer needed in the instance information list; The updated instance information list is traversed, a newly added algorithm module instance in the updated instance information list is created, and the newly added algorithm module instance is stored in the instance resource pool.

8. The software-based radar algorithm module real-time reconstruction method according to claim 4, It is characterized in that The instance connection information in step 4 also includes a module group number; when several algorithm module instances in the instance resource pool are taken out from the instance resource pool and the algorithm module topology is assembled, the related algorithm module instances are grouped into a module group using the instance connection information with the same module group number; the interface of the module group is the same as that of the algorithm module instance, and the module group can be directly combined with a certain algorithm module instance.

9. The software-based radar algorithm module real-time reconstruction method according to claim 4, It is characterized in that The software-based radar algorithm module real-time reconstruction device is combined with a visual development environment, and the software-based radar algorithm module real-time reconstruction device is operated through a visual interface.

Citation Information

Cited By

  • Scene-oriented measurement radar rear-end information processing system reconfigurable design method

    CN119806602A