esp32 XCP on Wi-Fi doesn't work properly

May you give any tips at how to work with external mode on esp32 over WI-FI?
I can connect to board via :
arduino(ip,dev_name,port);
But i don't know how to setup it prorerly in Simulink, there is no place to specify IP and port info.

Answers (1)

To set up your ESP32 board in Simulink, you may refer to the documentation link below.
For configuring your model to run in external mode over WiFi, you may follow the below steps:
  1. Open the Configuration Parameters for your model.
  2. Navigate to Hardware Implementation > Target hardware resources > External Mode and select “XCP on WiFi”
The Arduino boards by default gets its IP address through DHCP. Alternatively, you can assign a static IP address to the board by selecting the “Use static IP address and disable DHCP” check box and specifying the IP address in the “WiFi” properties tab.
Hardware Serial Port in “WiFi Properties” is not required for the ESP32 board. This option is enabled only when using an Arduino Board along with the “WiFi shield” or “ESP8266” modules.
For more information on running the model in External Mode over WiFi, please refer to the documentation below.
I hope this helps!

Categories

Products

Release

R2023b

Asked:

on 21 Feb 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!