Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

A Real-Time Interface for Xcos – an illustrative demonstration using a battery management system

702 views

Published on

As part of an EU-founded research project, the Scilab based development tool LoRra (Low-Cost Rapid Control Prototyping Platform) was created. This allows the realization of the continuously model based and highly automated Rapid Control Prototyping (RCP) design process for embedded software within the Scilab / Xcos environment (cf. Figure 1). Based on the application battery management system (BMS), this paper presents a Real-Time interface for Scilab.

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

A Real-Time Interface for Xcos – an illustrative demonstration using a battery management system

  1. 1. 1www.esi-group.com Copyright © ESI Group, 2019. All rights reserved.Copyright © ESI Group, 2019. All rights reserved. www.esi-group.com A Real-Time Interface for Xcos Demonstrated on a battery management system Sven Jacobitz, Ostfalia University of Applied Sciences Scilab Conference 2019
  2. 2. 2www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Agenda • Introduction • Requirements to the RTI • Concept of the RTI • Realization of the RTI • Verification and application • Kalman Filter design for SoC estimation • Verification by online simulation • Summary and outlook
  3. 3. 3www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Project LoCoRCP Introduction 04/2014 – 09/2014 Feasibility study towards a Low-Cost RCP system with open-source platform for developing battery management systems 01/2017 – 12/2019 Low-Cost Rapid Control Prototyping system with open source platform for functional development of embedded mechatronic systems (LoCoRCP)
  4. 4. 4www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Concept of the Low-Cost RCP Platform (LoRra) Introduction
  5. 5. 5www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Requirements to the RTI • Basic-blocks for controlling the hardware interfaces • Automated programming of the target hardware • Generation of efficient C-code • Generation and configuration of the real-time application • Compiling, Linking, … • Programming the hardware • Modular structure • Flexibility • Extensibility
  6. 6. 6www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Overall concept Concept of the RTI • Generating code fragments from the model • Linking fragments, code templates and basic software • Call the compiler and linker • Programm the target hardware
  7. 7. 7www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Software structure of the real-time application Concept of the RTI Reference: CMSIS – Arm Developer
  8. 8. 8www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Realization of the RTI • Written in Scilab Language • Controlling hardware peripherals using basic blocks • Basic blocs as sci function: [code_fragments] = foo(blkID, topology_struct) • Fist implementation: STM32F7 • Basis software generated by STM32CubeMX • Using FreeRTOS as operating system
  9. 9. 9www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. BMS test bench for verification
  10. 10. 10www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Kalman Filter design for SoC estimation – modelling the battery Verification and application Equivalent circuit model Validation of the battery model using the DST power cycle
  11. 11. 11www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Kalman Filter design for SoC estimation – functional design Verification and application Discrete EKF with continuous system model
  12. 12. 12www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Kalman Filter design for SoC estimation – MiL-Simulation Verification and application Validation of the EKF using the MiL simulation 0 0.2 0.4 80 85 90 95 100 105 SoCin% Time in s
  13. 13. 13www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Composition of the online simulation Verification and application
  14. 14. 14www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Verification by online simulation Verification and application
  15. 15. 15www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Summary and outlook Summary • LoRra approach for continuously model based design • Real-Time Interface between Xcos model an real-time application • Comfortable linking hardware interfaces to the model • Automated implementation of generated code • Extendable functionality and flexible target hardware • Verification by means of a BMS Function Outlook • Graphical user interface for measurement and calibration • LoRra Scilab Toolbox in Atoms
  16. 16. 16www.esi-group.com Copyright © ESI Group, 2019. All rights reserved. Thank you

×