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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerConfig | tcpipserverconfig | ||
| Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerReceive | tCPIPReceive | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.GetInteger | getInteger | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Packager | packager | ||
| Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.AddInteger | addInteger | ||
| Modelica_DeviceDrivers.Blocks.Communication.TCPIPServerSend | tCPIPSend | ||
| OperatingSystem.RealtimeSynchronize | realtimeSynchronize | ||
| Process | process |
Contents
| Name | Description |
|---|---|