Documentation 'Get Started with Wi-Fi on Arduino Hardware'

4 Ansichten (letzte 30 Tage)
순호 권
순호 권 am 28 Aug. 2024
Kommentiert: 순호 권 vor etwa 18 Stunden
I followed Task 2 in the documentation 'Get Started with Wi-Fi on Arduino Hardware' with my Arduino MKR wifi 1010.
- LINK: https://www.mathworks.com/help/simulink/supportpkg/arduino_ref/getting-started-with-wifi-on-arduino-hardware.html
I have connected my hotspot to both the laptop and the Arduino (same network).
I set up the Arduino as a server and the Simulink model on my laptop as a client
1. Set the mode of the WiFi TCP/IP Send block to Server and deployed the model to the Arduino. Then I get IP address.
2. I entered the previously obtained Arduino IP (192.168.232.XX) and the configured port number (50000) into the TCP/IP Send block and completed the "Verify address and port" step. But it doesn't work
Here is the enlarged version of the Diagnostic Viewer error message.
What did I do wrong? & What should I do?
I'll wait for reply.
Thank you.

Antworten (1)

Shubham
Shubham am 3 Sep. 2024
Hi 순호 ,
This error is likely due to not setting the "Block Priorities" as outlined in step 8 of the example. For detailed steps, refer to the following documentation link:
To resolve this issue, ensure the "Block Priorities" have been specified correctly. The priority is set by right clicking the block, selecting "Properties" and entering the priority number in the "Priority" field. For this example, set the priority of TCP/IP Send to 1 and TCP/IP Receive to 2.
Hope this helps.

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by