Host-board connection
Use the host-board connection parameters to set the serial communication port and baud rate between your Arduino® board and your host computer.
Application download
Use the parameters in this section to select the upload type and set the serial communication port and baud rate between your Arduino board and host computer to deploy a Simulink® model on your Arduino hardware.
Depending on your application and requirements, you can set the upload type for
your Simulink model on your Arduino board to USB
, OTA
Setup
, or OTA Upload
and configure the
dependent parameters in the Configuration Parameters dialog box accordingly.
These parameters are enabled in the Configuration Parameters dialog box when you
set Select upload method to
USB
.
Parameter Name | Description | Default Values and Options | Dependencies | Supported Arduino Boards |
---|---|---|---|---|
Set host COM port | Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.
|
| None | All Arduino boards |
Baud rate | Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second. |
| None |
|
Application download baud rate | Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second. |
| To enable this parameter, set Hardware
board to any one of the supported Arduino boards and Set host COM port
to Manually Select or
Manually Specify . | Arduino Nano 3.0 |
Bootloader COM Port | Enter a new COM port of the bootloader. For more information, see Manually Configure COM Port and Bootloader on Host. Click Refresh to populate the available bootloader COM ports. | <empty> | To enable this parameter, set Hardware
board to any one of the supported Arduino boards and Set host COM port
to Manually Select or
Manually Specify . |
|
These parameters are enabled in the Configuration Parameters dialog box when you
set Select upload method to OTA
Setup
.
Parameter Name | Description | Default Values and Options | Supported Arduino Boards |
---|---|---|---|
Set OTA device name | Enter a name for your Arduino board. | OTA_DeviceName |
|
Set OTA device password | Enter a password for your Arduino board. The board authenticates this password during the code deployment process in the OTA upload mode. | OTA_DevicePassword |
These parameters are enabled in the Configuration Parameters dialog box when you
set Select upload method to OTA
Upload
.
Parameter Name | Description | Default Values and Options | Supported Arduino Boards |
---|---|---|---|
Target device | Select your Arduino board from the drop-down menu. Click Refresh to repopulate the board list. | Specify IP address |
|
Target board IP address | If your Arduino board is not listed in the drop-down menu of the Target device parameter, you can manually specify the IP address of your board. | 192.168.137.0 | |
Device password | Enter the password of your Arduino board to authenticate OTA code deployment on your board. | OTA_DevicePassword |
Connected I/O communication
Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer to communicate with the IO peripherals on your Arduino board during a hardware simulation.
Hardware Serial Port
Select the serial port of your Arduino board.
Set host COM port
Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.
Settings
Default:
Automatically
Automatically
— Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.Manually select
— Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.Click Refresh to populate the available COM ports in the Host COM Port drop-down list.
Manually specify
— Enter the COM port in the Host COM Port parameter to establish serial communication between the Arduino board and your host computer.
Baudrate
Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.
Set Baudrate to Specify
to
enter a baud rate supported by your Arduino board.
Note
For Arduino AVR boards mounted with CH340 or any other serial to USB converter, use the baud rate of 115200 or less in the connected IO mode.
Settings
Default:
921600
115200
, 76800
,
57600
, 38400
,
28800
, 19200
,
14400
, 9600
,
4800
, 2400
,
300
,
Specify
External Mode over Serial communication
Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer to monitor and tune a Simulink model on your Arduino hardware.
Hardware Serial Port
Select the serial port of your Arduino board.
Set host COM port
Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.
Settings
Default:Automatically
Automatically
— Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.Manually select
— Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.Click Refresh to populate the available COM ports in the Host COM Port drop-down list.
Manually specify
— Enter the COM port in the Host COM Port parameter to establish a serial communication between the Arduino board and your host computer.
Baudrate
Select the maximum speed of downloading a Simulink model executable on your Arduino board in bits per second.
Set Baudrate to Specify
to
enter a baud rate supported by your Arduino board.
Note
For Arduino AVR boards mounted with CH340 or any other serial to USB converter, use the baud rate of 115200 or less in the connected IO mode.
Settings
Default:
921600
115200
, 76800
,
57600
, 38400
,
28800
, 19200
,
14400
, 9600
,
4800
, 2400
,
300
,
Specify
PIL communication
Use the parameters in this section to set the serial communication port and baud rate between your Arduino board and host computer during a processor-in-the-loop (PIL) simulation.
Hardware Serial Port
Select the serial port of your Arduino board.
Set host COM port
Automatically detect, manually select, or manually specify the COM port of your host computer to communicate with the Arduino board.
Settings
Default:Automatically
Automatically
— Simulink automatically detects the Arduino board connected to your host computer and establishes a serial communication using the available COM port.Manually select
— Select a COM port in the Host COM Port drop-down list that Simulink detects to establish a serial communication between the Arduino board and your host computer.Click Refresh to populate the available COM ports in the Host COM Port drop-down list.
Manually specify
— Enter the COM port in the Host COM Port parameter to establish a serial communication between the Arduino board and your host computer.
Baudrate
Select the maximum speed of downloading a PIL executable of the Simulink model on your Arduino board in bits per second.
Set Baudrate to Specify
to
enter a baud rate supported by your Arduino board.
Settings
Default:
921600
115200
, 76800
,
57600
, 38400
,
28800
, 19200
,
14400
, 9600
,
4800
, 2400
,
300
,
Specify