Currently, because of the differences in the actuators sets, a completely new software is developed for each application. The aim of our work is twofold: first, we improve the flexibility of the employed software, so that it may be (at least partially) reused for different configurations; to do this, we will introduce a standard for the communication among sensors, executors and the ECU. Second, we identify a set of smart mathematical techniques that may improve the efficacy of the ECU embedded software, leading to a more efficient use of the engine and enhanced performances.