Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

Arduino TCP/IP Send

Send TCP/IP message from server

Library

Simulink Support Package for Arduino Hardware/Ethernet Shield

Description

Send TCP/IP messages from a server over a wired network.

Use this block when your model has the following requirements:

  • Reliable message transmission

  • Intact order of messages

  • Acceptable compromise on the transmission speed

The TCP/IP server created by this block can accept four socket connections on the Arduino board.

The Arduino Ethernet Shield uses the following pins on different Arduino board variants.

  • Arduino Mega 2560 – pins 50 to 53.

  • Arduino Uno – pins 10 to 13.

This block input accepts uint8 values.

During simulations without the hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation

Dialog Box

Server port

Enter the port number through which you want the TCP/IP server to send the messages. The server port numbers range from 0 to 65535.

    Note:   To change the Target hardware parameter, select Tools > Run on Target Hardware > Options.

See Also

| |

External Web Sites

Was this topic helpful?