Configure Network Settings for Arduino Ethernet Shield - MATLAB & Simulink (2024)

Configure Network Settings for Arduino Ethernet Shield

You can configure the network settings for the Arduino® Ethernet Shield on the Configuration Parameters dialog box. To do so, select Ethernet Shield properties.

Configure Network Settings for Arduino Ethernet Shield- MATLAB & Simulink (1)

To configure the network settings for the Arduino Ethernet Shield:

  1. Go to Configuration Parameters > Hardware Implementation > Ethernet shield properties.

    The Arduino board by default gets its IP address through DHCP. Alternatively, you can assign a static IP address to the board by the selecting the Use static IP address and disable DHCP check box and specifying the IP address. For the default mode, make sure that the network to which your hardware board connects, supports DHCP for IP address assignment.

    The IP address assignment mode that you select holds good also for the External mode over TCP/IP.

    When your model is deployed to the hardware, you can view the DHCP assigned IP address in the diagnostic viewer below the memory usage information. Alternatively, a MATLAB base workspace variable with the name <modelname _IPaddress> is created with the value of the IP address.

    When you specify the Ethernet IP address, follow these guidelines:

    • IP address must be in the 4 octet format. For example, 192.168.0.20.

    • When connected to a computer, the IP address of the Arduino Ethernet Shield and the IP address of the computer must be in the same subnet so they can communicate with each other.

      However, make sure they are different.

    • When connected to a router, the IP address must be in the valid range of the supported IP addresses and must not be in the filtered list for that router.

  2. Specify the MAC (Media Access Control) address, the physical network address for the Arduino Ethernet Shield in MAC address.

    When you specify the Ethernet MAC address, follow these guidelines:

    • MAC address must be in the 6 octet format. For example, DE:AD:BE:EF:FE:ED

    • If the Arduino hardware is connected to a router, the MAC address must not be in the filtered list for that router.

Note

DHCP is not supported in External mode for Arduino Leonardo, Arduino Yun boards due to memory constraints.

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

 

Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.

Configure Network Settings for Arduino Ethernet Shield- MATLAB & Simulink (2)

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list:

Americas

Europe

Asia Pacific

Contact your local office

Configure Network Settings for Arduino Ethernet Shield
- MATLAB & Simulink (2024)
Top Articles
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5723

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.