EV3 WiFi connection with Simulink fails

1 view (last 30 days)
Hello:
I am trying to connect a EV3 via WiFi in order to use Matlab and Simulink. My computer is a laptop running Ubuntu Mate, I use Matlab R2016b, and the wifi dongle is a Netgear 300; the EV3 is connected to my home router and is reachable with a ping. I download the add-ons for Matlab and Simulink, then I connect to the EV3 using legoev3 function and it goes ok, even I can play a beep. But if I try to download a Simulink model to the robot via WiFi, I get this error:
=== Build (Elapsed: 24 sec) === ### Starting build procedure for model: pruebawifi Error:/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcerylite.instrset/arm-2009q3/bin/arm-none-linux-gnueabi-gcc -c -MMD -MP -MF"pruebawifi.dep" -MT"pruebawifi.o" -O0 -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcerylite.instrset/arm-2009q3/arm-none-linux-gnueabi/libc/usr/include -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcerylite.instrset/arm-2009q3/lib/gcc/arm-none-linux-gnueabi/4.4.1/include -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcerylite.instrset/arm-2009q3/lib/gcc/arm-none-linux-gnueabi/4.4.1/include-fixed -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_lms2012.instrset/EV3Source -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_lmstypes.instrset/EV3Source -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_bytecodes.instrset/EV3Source -c -nostdinc -DMODEL=pruebawifi -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DUNIX -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DRT -DSTACK_SIZE=64 -DMODEL=pruebawifi -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DUNIX -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/ev3/include -I/usr/local/MATLAB/R2016b/simulink/include/sf_runtime -I/home/anita/DATOS/DATOSRSYNC/docencia/ConcursoProdel2017/pruebawifi_ert_rtw -I/home/anita/DATOS/DATOSRSYNC/docencia/ConcursoProdel2017 -I/usr/local/MATLAB/R2016b/extern/include -I/usr/local/MATLAB/R2016b/simulink/include -I/usr/local/MATLAB/R2016b/rtw/c/src -I/usr/local/MATLAB/R2016b/rtw/c/src/ext_mode/common -I/usr/local/MATLAB/R2016b/rtw/c/ert -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/ev3/registry/../include -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_lmstypes.instrset/EV3Source/../ -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_lms2012.instrset/EV3Source/../ -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcecode_bytecodes.instrset/EV3Source/../ -I/usr/local/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -I/home/anita/Documents/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/ev3/src -o "pruebawifi.o" "pruebawifi.c" /bin/sh: 1: /home/anita/Documents/MATLAB/SupportPackages/R2016b/3P.instrset/ev3sourcerylite.instrset/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: not found gmake: * [pruebawifi.o] Error 127 ### Build procedure for model: 'pruebawifi' aborted due to an error. Error:Error(s) encountered while building "pruebawifi": ### Failed to generate all binary outputs.
I have checked that the file arm-none-linux-gnueabi-gcc is stored in that path. I have also tried to run Matlab as superuser, in case the error was due to wrong permissions, but that does not work either.
I have read that the problem is in the firmware and I should try and older version. Is that true? Where could I get the 1.08 or 1.06 versions? The only one I have found is 1.03, and I think that is too old.
Thanks a lot in advance for your help. Kind regards, Ana+

Answers (2)

mt nguyen
mt nguyen on 19 Apr 2018
hi , With R2014 1.03 or .06 are fine for my ev3. Don't hesitate to test because I have struggle a lot until finding out that firmware compatibility is the root cause (not the same compatibility for matlab or simulink !)
With R2018 1.03 is still fine. I has experienced some error with new feature from R2018 package such as beacon heading value, may be that come from the version Best regards

Ana Cruz Martín
Ana Cruz Martín on 15 May 2018
Thanks for your help. I finally managed to make it work, but only if I use Windows. I have gathered all the work I have done about it in this two posts in my blog, in case it may help (text is in Spanish and English):
Kind regards, Ana+

Categories

Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!