Unable to connect ev3 Lego mindstorm

5 次查看(过去 30 天)
Hello, Here is an issue I am facing with my ev3 :
I am using a Third Party Sensor (the HiTechnic Angle Sensor) with an ID that is not registered in the LEGO EV3 Support package. As far I as I understand, when MATLAB tries to connect, it goes through the IDs of the sensors that are connected to the EV3. Since it doesn't recognize the 3rd Party ID, it would not connect. It would then give the very unhelpful error: 'Unable to connect'. I'm not sure if there is a better way to do it, but I would like to modify the support package to include the ID for the new sensor in order to get it to connect. Can someone explain me how to do so?

采纳的回答

Prashanth Ramesh
Prashanth Ramesh 2018-10-18
MathWorks does not recommend modifying the support package as there may be updates to it during future release. However, you could create a custom support package.
The following documentation pages may be of assistance to you in developing support for your target hardware:
1) The following guide from the File Exchange is a great resource for developing custom device driver blocks for your hardware:
https://www.mathworks.com/matlabcentral/fileexchange/39354-device-drivers
2) To develop device driver blocks using System Objects, which provide the most functionality, you may also reference this guide in the documentation:
https://www.mathworks.com/help/supportpkg/armcortexa/device-driver-blocks.html
3) If your hardware is using an ARM processor, we also provide tools for developing new targets. These guides walk you through developing a custom target for the different ARM processors that are supported.
ARM Cortex-A:
https://www.mathworks.com/help/supportpkg/armcortexa/target-sdk.html
ARM Cortex-M:
https://www.mathworks.com/help/supportpkg/armcortexm/target-sdk.html
ARM Cortex-R:
https://www.mathworks.com/help/supportpkg/armcortexr/develop-a-target.html
Please note that the available Hardware Support Packages can be found at this link:
https://www.mathworks.com/hardware-support/home.html
You may also request a new Hardware Support Package here:
https://www.mathworks.com/hardware-support/request-hardware-support.html
Finally, MathWorks Consulting Services may be available for assistance in creating a Hardware Support Package. If this is of interest to you, they can be contacted at:
https://www.mathworks.com/services/consulting/proven-solutions/developing-embedded-targets.html

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 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