Trouble connecting LEGOEV3 with matlab using bluetooth

조회 수: 3 (최근 30일)
Paula Insuasty
Paula Insuasty 2022년 4월 7일
답변: Narvik 2023년 12월 29일
I am trying connect my LEGOEV3 with matlab using the support package (https://www.mathworks.com/hardware-support/lego-mindstorms-ev3-matlab.html), but when I try to define my brick I just received error messages or the program just still running and never stop.
I checked with bluetoothlist, serialportlist and Control panel/Device manager, so confirmed the connection and the ports in which the brick should be connected (I also confirmed the Add on of Instrument tool box control). Also I tried with the app of LEGO Mindstorm and it is good connected with the robot(it received and make the movement that I programmed on the brick) it was connected using bluetooth.
I get error messages as:
CODE NUM 1: myev3 = legoev3('bt', brickID)
Unable to resolve the name 'hwconnectinstaller.internal.isProductInstalled'.
Error in legoev3 (line 145)
if ~hwconnectinstaller.internal.isProductInstalled('Instrument Control Toolbox')
CODE NUM 2: myev3 = legoev3('bluetooth','COM3') or myev3 = legoev3('Bluetooth','COM3') or myev3 = legoev3('bluetooth','COM4') or myev3 = legoev3('Bluetooth','COM4')
2. Failed to connect to EV3 through Bluetooth. Please check your Bluetooth connection. or It never stop running with the other COM port.
And when I try to connect it using USB it says that the device is not recognized by my computer (I tried with 2 different computers with different windows versions). I am using Windows 10 and Matlab version R2022a but also tried with 2015b and 2019b.

답변 (1개)

Narvik
Narvik 2023년 12월 29일
Hi,
As per my understanding, you are facing issues while trying to connect LEGOEV3 with MATLAB using Bluetooth.
Please refer to the following MATLAB answer that contains the errors, their corresponding reasons and workarounds to connect to legoev3:
Hope this helps!

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by