esp32 XCP on Wi-Fi doesn't work properly

13 次查看(过去 30 天)
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.

回答(1 个)

Abhinav Aravindan
Abhinav Aravindan 2024-10-9
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!

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by