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

31 vues (au cours des 30 derniers jours)
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 commentaires
Andrew Jackson
Andrew Jackson le 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

Connectez-vous pour commenter.

Réponses (6)

pravin behera
pravin behera le 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 commentaires
Corbyn Yhap
Corbyn Yhap le 2 Mai 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 le 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'));

Connectez-vous pour commenter.


Jwalant Bhatt
Jwalant Bhatt le 28 Nov 2017
It connects through wifi dongle by downgrading the firmware to 1.08 H.
  3 commentaires
Multiplexer
Multiplexer le 11 Juin 2018

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

here you go

RR
RR le 13 Fév 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

Connectez-vous pour commenter.


Graham Chow
Graham Chow le 18 Jan 2019
Modifié(e) : Graham Chow le 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.
  6 commentaires
Joanne Tanner
Joanne Tanner le 23 Juil 2020
Modifié(e) : Joanne Tanner le 23 Juil 2020
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.
IFM
IFM le 28 Avr 2022
Does anyone have a copy of this firmware that works with the Edimax wifi dongle?
I've been using Ev3's with Simulink for a few years but just got some more bricks and need to downgrade from the V1.09 firmware it is shipped with as it doesn't work anymore. The link above doesn't have the bin file anymore.

Connectez-vous pour commenter.


fox tan
fox tan le 18 Mai 2016
Modifié(e) : fox tan le 18 Mai 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.

Estibaliz NuÑez Gonzalez
Estibaliz NuÑez Gonzalez le 22 Juin 2021
I didn't expect this from matlab, if they are not supporting the standard version of the EV3 brick, at least they should update the software to show an error saying Toolbox is only compatible with versions 1.08, ...... And at least provide a link to download the version, so it is easy to downgrade.
I cannot find the older version anywhere. I was thinking to buy this toolbox (because now i am using it in my wife's computer as she is a student and have a license to students... But paying for a software that it is not compatible with standard lego EV3 and providing no solution, is not a good busines...
Does anybody can tell me where i can download an older version, please

Support Technique
Support Technique le 4 Mar 2024 à 14:20
Hi all
Wifi working here, V1.09D with simulink
I also want to report an issue with the network setup, especially with wifi
It seems the timeout for the wireless connection is too short. I have managed to successfully connect with a modification of this timeout, from 0.00001s to 0.01s. on wifi with one or more routers, or many clients, the original TO is blocking.
what I don't understand is the test made by the library to define this TO, and how to specify a greater value without hardcoding it within the support package
file CommTCPIP.m
location C:\ProgramData\MATLAB\SupportPackages\R2023a\toolbox\realtime\targets\ev3io\+realtime\+internal\CommTCPIP.m
package version 23.1.0 and 23.1.1 at least
if ispref('MathWorks_LEGO_EV3', 'IO_WAIT_PAUSE') %%-> IO_WAIT_PAUSE is not defined at this step
obj.WaitPause = getpref('MathWorks_LEGO_EV3', 'IO_WAIT_PAUSE');
else
obj.WaitPause = 0.0001; %%--> buggy with wifi, taking a greater value as 0.01 is working well
end

Catégories

En savoir plus sur MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by