| 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 send 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 sends the message to the specified IP address on a host machine. There is no restriction on the data type of the message to be sent, as long as it is a built-in Simulink data type. There is also no restriction on the size of the data to be transmitted.
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. For an external TCP/IP interface to receive TCP/IP data from this block, it must actively seek the connection to establish communications (the client model).
IP Address:IP port). External interfaces that want to exchange data with this block must be listening at the specified remote IP address and port.
Identifies the remote TCP/IP interface, by IP address and IP port, to which the block expects to send 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 used when Connection type is Server.
When the connection type is Server, Local IP port specifies the well-known port of the target TCP/IP server. The IP port value must lie between 1 and 65535.
Specifies the size of the buffer used for queuing outgoing 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 send buffer on the heap.
All TCP/IP blocks that specify a common local IP port must share a common TCP/IP send 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.
C6000 TCP/IP Receive, UDP Send, UDP Receive

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 |