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

3 次查看(过去 30 天)
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 个评论
Andrew Jackson
Andrew Jackson 2018-10-20
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

请先登录,再进行评论。

回答(6 个)

pravin behera
pravin behera 2016-3-15
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 个评论
Corbyn Yhap
Corbyn Yhap 2016-5-2
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 2016-11-20
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'));

请先登录,再进行评论。


Jwalant Bhatt
Jwalant Bhatt 2017-11-28
It connects through wifi dongle by downgrading the firmware to 1.08 H.
  3 个评论
Multiplexer
Multiplexer 2018-6-11

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

here you go

RR
RR 2020-2-13
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

请先登录,再进行评论。


Graham Chow
Graham Chow 2019-1-18
编辑:Graham Chow 2019-1-18
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 个评论
Joanne Tanner
Joanne Tanner 2020-7-23
编辑:Joanne Tanner 2020-7-23
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 2022-4-28
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.

请先登录,再进行评论。


fox tan
fox tan 2016-5-18
编辑:fox tan 2016-5-18
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
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
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

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by