| Contents | Index |
Embedded Coder/ Embedded Targets/ Processors/ Texas Instruments C6000/ Target Communication
Adding this block to your Simulink model results in generated code that configures TCP/IP on your target to receive messages.
To use this block with the C6416, C6713, or C6713 DSK targets, you must meet the following requirements.
Install the D.signT DSK-91C111 Ethernet adapter daughter card.
Install the Texas Instruments TMS320C6000 TCP/IP stack software.
The block receives the message from the specified IP address on a host machine and passes it out the Msg port to a downstream block. There is no restriction on message size.
A second block output is a function call port that issues a function call whenever a new message is available on the receive buffer.
In simulations, this block outputs a stream of data (default typeuint8_T) from the Msg port with the first bytes set to 0xFF and the rest set to 0x00. When the function call port exists, it generates a function call for every sample time hit.
Models that contain this block generate code for the parameters that configure TCP/IP on the target, including the ports, buffers, and message sizes.

Connection type specifies the connection initiation method used for the block. This is a read-only parameter — you cannot change it.
A Server connection creates a listening socket at the IP address and port in Local IP port. The TCP/IP layer uses this socket to accept incoming connection requests. Any external TCP/IP interface that sends TCP/IP data to this block must actively seek the connection to establish communications (the client model).
Identifies the remote TCP/IP interface, by IP address and IP port, from which the block expects to receive messages. The input format uses the IP address and IP port identifier, separated by a colon. IP port value ranges from 0 to 65535. Entering a 0 for the IP port when the Connection type is Client specifies that the TCP/IP stack automatically assigns a port to use to seek connections.
This option identifies the IP port to use when Connection type is Server and when it is Client.
When you choose Server, Local IP port specifies the well-known port of the target TCP/IP server. Your IP port value must lie between 1 and 65535.
When you specify Client for the connection type, Local IP port specifies the TCP/IP address for the client socket. The IP port value can range from 0 to 65535, where 0 specifies that the TCP/IP stack assigns an ephemeral port automatically to seek connections.
Specifies the size of the buffer used for queuing incoming TCP/IP messages. Typically, larger TCP/IP receive buffers provide a cushion for packet drops and can improve efficiency. The compiler allocates the TCP/IP receive buffer on the heap.
All TCP/IP blocks that specify a common local IP port must share a common TCP/IP receive buffer, because the size of the TCP/IP buffer is set only for the listening socket. All active connecting sockets inherit their buffer size value from the listening socket.
Select this option to put the calling TCP/IP task into blocking mode so that the block receives messages completely before outputting the messages in the buffer to downstream blocks. Blocks connected to the receive block do not execute until the receive process completes. In blocking mode, program execution for receiving data stops until data in the message buffer is received.
Clearing this option puts the block in non blocking mode. The block checks the number of bytes in the TCP/IP receive buffer and returns output data only when the receive buffer contains more data than requested.
The block receives or outputs data at any time. Processes do not wait for data. Disabling blocking activates the Sample time parameter and adds an additional function call port to the block that indicates when the data port contains new, valid data.
Selecting blocking mode activates the Timeout parameter.
Use this option to specify when the block polls for new messages. This parameter value should be positive. Setting this to a specific value, often large, can reduce the chances of TCP/IP messages getting dropped. The default sample time is 0.01 seconds.

Use this option to specify how new data is indicated, either by a function call or a Boolean status.
Use this option to specify the size of the output data, the units depend on the output data type.
Use this option to specify the type of the output data. The value selected can be any built-in Simulink data type.
Use this option to specify whether the output signal is to be frame-based or sample-based.
C6000 TCP/IP Send, C6000 UDP Receive, C6000 UDP Send

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |