Vehicle Control Software Module Versioning via Abstract Syntax Trees
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Managing and processing software modules for vehicle control units in a database is complex, requiring meticulous attention to detail, especially when multiple programmers work concurrently, and maintaining software consistency and compatibility is difficult due to data connections between control units.
Innovation Solution
The method involves creating an abstract syntactic structure of the software module by syntactically analyzing the source code, allowing for finely granular editing and revision while maintaining logical connections, and using a versioning system to track changes with incremental updates, supported by a device or computer program product that includes a parser and compiler.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If source code is stored and managed directly in the database without abstract syntactic structure, then the database can store complete software modules, but version control and consistency management become complex and difficult when multiple programmers work concurrently
Solution Approach 1:
The source code is segmented into abstract syntactic substructures (functions, loops, conditionals) that can be independently identified, stored, and managed in the database. Each substructure represents a compilable unit that can be edited and version-controlled separately, reducing the complexity of managing complete software modules while enabling concurrent development by multiple programmers.
2Ease of operation
If complete source code is edited and revised without syntactic analysis, then editing is straightforward, but syntax errors and inconsistencies may occur that affect compilation and software reliability
Solution Approach 1:
The source code undergoes preliminary syntactic analysis to generate an abstract syntactic structure before storage in the database. This preliminary action identifies the structural components and relationships, enabling subsequent editing operations to maintain syntactic correctness while preserving ease of modification. The abstract structure serves as a template that guides consistent code revision.
3Manufacturing precision
If software modules are managed with fine-grained control through abstract syntactic substructures, then version control and consistency management improve, but the processing and analysis overhead increases
Solution Approach 1:
The system creates an abstract syntactic structure as a copy or representation of the source code, storing this structured form in the database rather than the raw source code itself. This copying approach enables precise version control and consistency management of software modules while the actual source code generation can be efficiently reproduced from the stored abstract structures, minimizing processing overhead.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
The invention relates to a device and a method for managing software modules (99) and objects (M95), in particular control units (94-96) of a motor vehicle (90), in a database (50) in which objects (M95) are stored and in which at least one software module (99) for providing at least one function of the object (M95) is assigned to each object (M95). The method comprises: - capturing source code (Q99) created and compiled in a programming language at a user interface for the at least one software module (99), - generating an abstract syntactic structure (A99), in particular an abstract syntax tree, of the software module (99) by syntactically analyzing the source code (Q99), - storing the abstract syntactic structure (A99) in the database (50), and - establishing at least one logical connection between the object (M95) and the abstract syntactic structure (A99) of the software module (99).