TCP/IP Send

Send data over TCP/IP network to remote host

  • Library:
  • Simulink Support Package for Parrot Minidrones

Description

The TCP/IP Send block sends data to a remote host over a Bluetooth® network. You can set the Connection mode of the block to Server or Client. When you set Connection mode to Client, you must provide the Remote IP port of the server to which you want to send data. When you set Connection mode to Server, you must provide the Local IP port. This Local IP port acts as a listening port of the TCP/IP server.

Ports

Input

expand all

The block accepts data specified as an N-by-1 array. The block sends this data over a TCP/IP network to the receiving host.

Data Types: int8 | uint8 | int16 | uint16 | int32 | uint32 | single | double | Boolean

Parameters

expand all

Main Tab

Set the block as a TCP/IP server or client.

When you set this parameter to Server, you must provide a Local IP port. The local port acts as the listening port of the TCP/IP server.

When you set this parameter to Client, you must provide the Remote IP port of the TCP/IP server to which you want to send the data.

Enter the local port number which acts as the listening port of the TCP/IP server.

Dependencies

This parameter appears only when you set the Connection mode parameter to Server.

The remote IP address of the server to which the data is sent. The Remote IP address is set at 192.168.3.2; do not change this IP address.

Dependencies

This parameter appears only when you set the Connection mode parameter to Client.

Specify the port number of the server to which data is sent.

Note

Do not use ports 24099 and 26061 for TCP/IP communication with Parrot minidrone as these ports are reserved.

Dependencies

This parameter appears only when you set the Connection mode parameter to Client.

Advanced Tab

Allow manual specification of local IP port from which to send data. This parameter appears only when you set the Connection mode to Client.

Enter the local port of the client to send data. This parameter appears only when you set the Connection mode to Client and select the check box Manually specify local IP port.

Model Examples

Introduced in R2018a