I cannot connect my LEGO EV3 brick to Simulink or MATLAB via Wifi while USB works.

12 次查看(过去 30 天)
Hallo,
as stated above I cannot connect my LEGO EV3 brick to Simulink or MATLAB via Wifi. The USB connection works fine for both MATLAB and Simulink.
I have already spend many hours trying to figure out how to make it work. I followed multiple instructions to the letter.
I am using a router with no active internet connection. My Laptop and the EV3 are connected to the router via WiFi. The EV3 is using a NETGEAR WNA1100. The connection is unencrypted and no password is used.
Firmware on the EV3 Brick is Version 1.08H and I am not in the Brick Info screen while connecting.
The Windows CMD ping command and the MATLAB !ping command both work and the EV3 Brick is reachable.
But when it comes to working in MATLAB or Simulink I cannot reach the EV3 and get told to check my network settings.
I am thankful for any advice or help to fix this problem.

回答(1 个)

akshatsood
akshatsood 2023-8-25
编辑:akshatsood 2023-11-15
Hi Malte,
I understand that you are facing issues in connecting LEGO EV3 brick to Simulink or MATLAB via Wi-Fi. MATLAB software communicates with the EV3 brick by wireless network through a EV3 compatible USB Wi-Fi dongle which is generally NETGEAR WNA1100 as stated by you. The required EV3 firmware version is V1.03 or later which seems suitable for this case. Additionally, the required Support Packages need to be installed to execute algorithms.
As stated by you, USB works fine yet you run into an issue while using Wi-Fi. To establish a connection using Wi-Fi, please follow the steps below
  • Plug EV3 Wi-Fi Dongle into EV3 Host USB Port
  • Navigate EV3 screen to Settings > Wi-Fi. Enable Wi-Fi, search and connect to a Wi-Fi network.
  • Navigate EV3 screen to Settings > Brick Info. Find the device ID of the brick under ID.
  • Navigate EV3 screen to Settings > Brick Info. Find the IP address under IP Address.
For Testing Network Connection, enter the following command in the Command Window of MATLAB
myev3 = legoev3('<EV3 IP address>')
Additionally, you can try out the following workarounds if the issue persists
  • Ensure proper Wi-Fi setup: Make sure that your LEGO EV3 brick is connected to the same Wi-Fi network as your computer running Simulink or MATLAB. Check the Wi-Fi settings on the EV3 brick to ensure it is connected to the correct network.
  • Verify IP address: Confirm that the IP address assigned to the EV3 brick is correct. You can find the IP address on the brick itself or by navigating through the brick's menu options. Ensure that the IP address matches the one specified in Simulink or MATLAB for Wi-Fi connection.
  • Restart devices: Try restarting both your computer and the LEGO EV3 brick.
  • Firewall and antivirus settings: Check your computer's firewall and antivirus settings to ensure they are not blocking the communication between the EV3 brick and Simulink or MATLAB. Temporarily disable these settings or add exceptions to allow the necessary connections.
  • Reinstall software: If none of the above steps work, you may need to reinstall the LEGO EV3 software, Simulink, or MATLAB. There could be an issue with the software installations that is causing the Wi-Fi connectivity problem.
Have a look at the below references for better understanding
I hope this helps

类别

Help CenterFile Exchange 中查找有关 LEGO MINDSTORMS EV3 Hardware 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by