Modelling Network Connections in FMI with an Explicit Network Model - - PowerPoint PPT Presentation

modelling network connections in fmi with an explicit
SMART_READER_LITE
LIVE PREVIEW

Modelling Network Connections in FMI with an Explicit Network Model - - PowerPoint PPT Presentation

Modelling Network Connections in FMI with an Explicit Network Model Luis Diogo Couto Ken Pierce UTRC-I University of Newcastle 15th Overture Workshop 15-09-2017 Created at UTRC-I This document does not contain any export controlled


slide-1
SLIDE 1

Modelling Network Connections in FMI with an Explicit Network Model

Luis Diogo Couto Ken Pierce

UTRC-I University of Newcastle

15th Overture Workshop 15-09-2017 Created at UTRC-I This document does not contain any export controlled technical data. Created at UTRC-I – This page does not contain any export controlled technical data. 1

slide-2
SLIDE 2

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 2

slide-3
SLIDE 3

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 3

slide-4
SLIDE 4

Introduction

◮ CPS design is challenging ◮ Multiple stakeholders,

disciplines, notations. . .

◮ FMI can help couple tools ◮ Some challenges remain

(ex: comms)

Created at UTRC-I – This page does not contain any export controlled technical data. 4

slide-5
SLIDE 5

Introduction

◮ CPS design is challenging ◮ Multiple stakeholders,

disciplines, notations. . .

◮ FMI can help couple tools ◮ Some challenges remain

(ex: comms)

Created at UTRC-I – This page does not contain any export controlled technical data. 4

slide-6
SLIDE 6

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 5

slide-7
SLIDE 7

Communications Modelling

Fundamental Challenges

◮ inter-FMI comms ◮ Models exported as whole ◮ Native comms reasoning

hidden

◮ Have to work at FMI level ◮ No events or message

passing

◮ All signal exchanges

continuous

◮ Can work around but it’s

hacky

◮ Time issues

Created at UTRC-I – This page does not contain any export controlled technical data. 6

slide-8
SLIDE 8

Communications Modelling

Practical Challenges

Embedding Explicit Comms in FMUs

◮ Model pollution ◮ Difficult to see complete

picture

◮ 1:1 FMU data

  • exchange. . . too many

connections

Communication Messages Representation

◮ Only primitive types (bools,

strings reals)

◮ No structured types

◮ Multi-ports is too many

ports

◮ String encoding adds

  • verhead

Created at UTRC-I – This page does not contain any export controlled technical data. 7

slide-9
SLIDE 9

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 8

slide-10
SLIDE 10

Ether Pattern

Network Topology in FMI

◮ Direct connection ◮ Unwieldy ◮ Inflexible ◮ Ether pattern ◮ Communications medium ◮ Flexible

Created at UTRC-I – This page does not contain any export controlled technical data. 9

slide-11
SLIDE 11

Ether Pattern

Network Topology in FMI

◮ Producer/consumer example: one output, one input ◮ Ether sits between and passes messages ◮ Requires additional ports for new FMUs

Created at UTRC-I – This page does not contain any export controlled technical data. 10

slide-12
SLIDE 12

Ether Pattern

Network Topology in FMI

Sender Generates messages, encodes to strings using VDMUtil, sets its output. Receiver Receives messages, decodes using VDMUtil. Ether Each input / output port assigned unique identifer as a map Id to StringPort. Mapping from input to output: set of (Id * Id). Gathers messages from each input and passes them to

  • utputs.

◮ Not currently considered: sender identification,

confirmation of delivery, maximum transmission unit, message timing

Created at UTRC-I – This page does not contain any export controlled technical data. 11

slide-13
SLIDE 13

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 12

slide-14
SLIDE 14

Case Study

Building HVAC

◮ 4 Fan Coil Units (FCUs) in

rooms and zones

◮ Networked FCU

Controllers

◮ Supervision ◮ 4x Simulink FCU Controller

FMU

◮ 1x VDM Supervisor FMU ◮ Multi-port approach

Created at UTRC-I – This page does not contain any export controlled technical data. 13

slide-15
SLIDE 15

Case Study

System Class Snippet

system System instance variables public static super : [Supervisor] := nil; public static sr1 : [FCU] := nil;

  • - ...
  • perations

public System : () ==> System System () == ( sr1 := new FCU(1); sr1.primeFmi(hwi.sr1_spIn,hwi.sr1_spOut, hwi.sr1_mode); cpu1.deploy(sr1,"FCU_SR1");

  • - ...

super := new Supervisor({sr1,sr2,z1,z2}); cpu5.deploy(super,"Supervisor"); ); end System

✡ ✝ ✆

Created at UTRC-I – This page does not contain any export controlled technical data. 14

slide-16
SLIDE 16

Outline

Introduction Comms Modelling Challenges Ether Pattern Case Study Conclusions

Created at UTRC-I – This page does not contain any export controlled technical data. 15

slide-17
SLIDE 17

Conclusions

◮ As it currently stands, FMI is limited for CPS (DE comms) ◮ Ether helped structure the multi-model and study

networked controllers for the industrial case study

◮ The best workaround is still a workaround ◮ FMI extension can help but broad support is key ◮ Adding real value will drive adoption

Created at UTRC-I – This page does not contain any export controlled technical data. 16