Documentation 'Get Started with Wi-Fi on Arduino Hardware'
4 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Shubham
2024-9-3
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!