modelUDPSend_adapted

A block for sending UDP datagrams

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.UDPconnection (Base icon for models of network connections).

Information

Overview

  • This model implements sending data via UDP
  • It is copied and extended from the Modelica_DeviceDrivers library
  • It is used by all implemented agents

Concept

The model changes the model published in the Modelica_DeviceDrivers library by an input for the name of the receiver. The receiver is therefore no longer a parameter but now a variable of the model. This change is necessary as some agents need to communicate with a number of different recipents (the broker for example).

References

  • Roozbeh Sangi, Felix Bünning, Johannes Fütterer, Dirk Müller. A Platform for the Agent-based Control of HVAC Systems. Modelica Conference, 2017, Prague, Czech Republic.
  • Felix Bünning, Roozbeh Sangi, Dirk Müller. A Modelica library for agent-based control of building HVAC systems. Applied Energy, 193:52-59, 2017.

Example Results

  • July 2017, by Roozbeh Sangi: Documentation revised
  • October 2015, by Felix Bünning: Copied and adapted from the Modelica DeviceDrivers library

Parameters

TypeNameDefaultDescription
Outgoing data
BooleanautoBufferSizetruetrue, buffer size is deduced automatically, otherwise set it manually.
IntegeruserBufferSize16*1024Buffer size of message data in bytes (if not deduced automatically).
StringIPAddress"127.0.0.1"IP address of remote UDP server

Connectors

TypeNameDefaultDescription
Modelica_DeviceDrivers.Blocks.Interfaces.PackageInpkgInPort for the data to send
Modelica.Blocks.Interfaces.BooleanInputtriggerInput to start the sending procedure
Modelica.Blocks.Interfaces.RealInputreceiverInput for receiving agent name
Modelica.Blocks.Interfaces.BooleanOutputsendTurns true when a message is send

Components

TypeNameDefaultDescription
Realport_sendTarget port of the receiving UDP server