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
| Type | Name | Default | Description |
|---|---|---|---|
| Outgoing data | |||
| Boolean | autoBufferSize | true | true, buffer size is deduced automatically, otherwise set it manually. |
| Integer | userBufferSize | 16*1024 | Buffer size of message data in bytes (if not deduced automatically). |
| String | IPAddress | "127.0.0.1" | IP address of remote UDP server |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_DeviceDrivers.Blocks.Interfaces.PackageIn | pkgIn | Port for the data to send | |
| Modelica.Blocks.Interfaces.BooleanInput | trigger | Input to start the sending procedure | |
| Modelica.Blocks.Interfaces.RealInput | receiver | Input for receiving agent name | |
| Modelica.Blocks.Interfaces.BooleanOutput | send | Turns true when a message is send |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | port_send | Target port of the receiving UDP server |