MATLAB Answers

Can ping to LEGO EV3 wifi (Netgear) IP address, but fail to connect to it wirelessly - usb connection works. Any suggestions?

19 views (last 30 days)
Paul Bothma
Paul Bothma on 11 Mar 2016
Edited: Joanne Tanner on 23 Jul 2020 at 1:03
mylego = legoev3('usb')
mylego =
legoev3 with properties:
FirmwareVersion: 'V1.09E'
HardwareID: []
IPAddress: []
CommunicationType: 'USB'
BatteryLevel: 100
ConnectedSensors: {'touch' 'gyro' 'color' 'sonic'}
>> mylego = legoev3('wifi','192.168.129.62','00165348b96b')
Error using legoev3 (line 271)
Failed to connect to '192.168.129.62'. Please check your network settings.

  2 Comments

Andrew Jackson
Andrew Jackson on 20 Oct 2018
Hi there
Did you come right with this? I have the exact same problem and I downgraded to the V1.08H firmware which enabled me to successfully Ping from my PC to the ev3, however it still returns the same error message as you mention above when I try create a matlab object using legoev3('')
thanks

Sign in to comment.

Answers (4)

pravin behera
pravin behera on 15 Mar 2016
Hey hello... Try doing this way.. first connect your LEGO EV3 to wifi through NETGEAR, then go to brick settings>> Brick Info(very bottom)>> IP address (also u can get many info) >> ID
note down the "IP address" and "ID"
now try wirting this code to connect to wifi through matlab
mylego = legoev3('wifi','192.168.0.124','001653497c86')
and my ip address is "192.168.0.124" my LEGO ID is "001653497c86"
This should work, it works for me :)

  4 Comments

Show 1 older comment
Corbyn Yhap
Corbyn Yhap on 2 May 2016
I downgraded the firmware to 1.08 H, however, the IP Address does not seem to show up in my Brick Info screen. Can we only communicate with the EV3 using a Wifi dongle instead of the Ethernet Adapter suggested?
Bookwormo
Bookwormo on 20 Nov 2016
Thanks for sharing this. I have firmware 1.09E installed but I receive the following error message with the code snippet above: Error using error Unable to load a message catalog 'legoev3io:build'. Please check the file location and format.
Error in legoev3 (line 237) error(message('legoev3io:build:Legoev3WiFiFailed'));

Sign in to comment.


Jwalant Bhatt
Jwalant Bhatt on 28 Nov 2017
It connects through wifi dongle by downgrading the firmware to 1.08 H.

  3 Comments

Multiplexer
Multiplexer on 11 Jun 2018

https://www.lego.com/en-US/mindstorms/mindstormservices/firmware-download-page/?assetid=%7b38E66EC3-1C63-4305-BD8C-561A6E554116%7d

here you go

Reed
Reed on 13 Feb 2020
That link doesn't work anymore but I found it here. Firmware V1.08H worked on my EV3 brick and allowed Simulink to run on it finally. It would have saved me a lot of time if the Mathworks had checked for incompatible firmware in their support package communications object code and pointed the user to this firmware upon failure rather than waiting for users to spend hours researching and trying other firmware. V1.09D didn't work for me either.
https://www.files.ligarobotov.ru/download.php?filename=files/EV3%20Firmware%20V1.08H.bin

Sign in to comment.


fox tan
fox tan on 18 May 2016
Edited: fox tan on 18 May 2016
if I just install MATLAB support packge for EV3,it can conncet to EV3 via wifi. But when I intalled simulink support packge for EV3, matlab cannot conncet to EV3.

  0 Comments

Sign in to comment.


Graham Chow
Graham Chow on 18 Jan 2019
Edited: Graham Chow on 18 Jan 2019
In version 1.09H and 1.09E they have removed telnet access so you can't connect.
However in version 1.09D (special developer version lego have made), you can connect to via telnet. But they have added a password. It is possible (and I have done it) to modify the legoev3.m and evShell_IO.m files to send through the password and successfully connect. But I have not worked out how to do this in simulink - maybe matlab used compiled code to connect up to the ev3.
So the short answer is yes, you need to use 1.08H or 1.08E.
I suppose mathworks could support 1.09D if they really wanted to make a change, but I'm not seeing the benefits.

  5 Comments

Show 2 older comments
S M
S M on 14 Mar 2020
How can I install it on my EV3 brick from this link (https://www.files.ligarobotov.ru/download.php?filename=files/EV3%20Firmware%20V1.08H.bin)?
My computer didn't lear .bin folders.
thx.
Pencho Zahariev
Pencho Zahariev on 9 May 2020
Get the file from the link above.
Add to the name ".bin"
Open the LEGO MINDSTORMS EV3 whatever Edition (Lego's original software). In the menu "Tools" select Firmware Update, click on "Show Details", in the block "Available Firmware Files:" press browse.
Paste the "EV3firmware1.08H.bin" file in the folder so it can shows up in the "Available Firmware Files:"
Select it and press "Update Firmware" (make sure the Brick is connected with USB cable, running and has enough charge in the battery to last 5 minutes)
To confirm that the flashing is succesful after it restarts check "Brick Info"
Joanne Tanner
Joanne Tanner on 23 Jul 2020 at 1:03
Hi all,
I'm trying to run the EV3 via MATLAB / Simulink, too, but with the added bonus that I'm trying to do it on a University network. I've reverted to Firmware Ver 1.08H as advised above, but still get the error "Failed to connect to EV3 via WiFi. Please check your WiFi connection.
Unfortunately I don't have a standalone license for MATLAB, so I can't test whether it is really the network that is the issue.
Any suggestions most welcome!
Thanks,
Jo.

Sign in to comment.


Translated by