XCP Service Integration for Model-Based, Automatic Production Code Generation
Automated, model-based production code generation is widely used in the development and testing of electronic control units (ECUs). During ECU commissioning, extensive tests of the implemented control algorithms are required. Knowledge of the internal values and states of the ECU software are essential for verifying the correct software functionality by means of complex control algorithms. Calibration and measurement services make it possible to observe the ECU-internal memory values associated with the variables originating from the function model. Furthermore, the final adjustment of control parameters in the production ECU can be performed by means of calibration services. For these reasons, calibration and measurement through service integration is widely applied in both the automotive industry and other industrial fields. Integrating measurement and calibration services is therefore an important task for engineers working with model-based control development and, particularly, ECU production code integration. This paper describes an example integration of the Universal Measurement and Calibration Protocol (XCP) for model-based automatic code generation. The application used for the service integration is the commercially available Motor Control Education Kit (MEDKit) from Emerge-Engineering and dSPACE GmbH. The model-based automatic code generation is performed using the production code generator dSPACE TargetLink. The integration of the XCP on CAN protocol is completed in the scope of student projects. The upgraded MEDKit demonstrator will be used for education purposes in the Deggendorf Institute of Technology.