modelTestSerialPackager_TCPIPServer

Example for combining TCP/IP server and SerialPackager blocks. Needs a connecting client.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

The tcpipserverconfig block is configured for listening at port 10002 and for using a non-blocking TCP/IP socket.

For meaningful results a TCP/IP client needs to connect and send suitable data, otherwise no data is received. Such a client is provided as C code test program (Resources/test/Communication/TCPIPClientAsRemoteStation.c).

Components

TypeNameDefaultDescription
Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerConfigtcpipserverconfig
Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerReceivetCPIPReceive
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetIntegergetInteger
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Packagerpackager
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddIntegeraddInteger
Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerSendtCPIPSend
OperatingSystem.RealtimeSynchronizerealtimeSynchronize
Processprocess

Contents

NameDescription
Processprotected