Clear Filters
Clear Filters

Cannot connect to serial [Linux]

3 views (last 30 days)
igng on 27 Jul 2017
Answered: Saurabh Gupta on 31 Jul 2017
Hi, I cannot open any serial port to comunicate with my Arduino Micro.
ans =
HardwareInfo with properties:
AvailableSerialPorts: {0×1 cell}
JarFileVersion: 'Version 3.11'
ObjectConstructorName: {0×1 cell}
SerialPorts: {0×1 cell}
Access to your hardware may be provided by a support package. Go to the Support Package Installer to learn more.
I already tried using the java.opts file
I'm both in the uucp, dialout and lock group. Permissions on serial ports are
crw-rw---- 1 root uucp 166, 0 Jul 27 18:42 /dev/ttyACM0
crw-rw-rw- 1 root uucp 4, 64 Jul 27 14:26 /dev/ttyS0
crw-rw-rw- 1 root uucp 4, 65 Jul 27 14:26 /dev/ttyS1
crw-rw-rw- 1 root uucp 4, 66 Jul 27 14:26 /dev/ttyS2
crw-rw-rw- 1 root uucp 4, 67 Jul 27 14:26 /dev/ttyS3
crw-rw-rw- 1 root uucp 188, 0 Jul 27 18:40 /dev/ttyUSB0
Arduino is already plugged when MATLAB starts. If I click on the Support Package Installer link it does nothing. If I try to type the
command, it does nothing. I tried using all other answer provided here, but no one is working.
Am I missing something? Is there a way to fix this?
Of course, I can read data if I use
cat /dev/ttyUSB0
or using the Arduino IDE or Processing.
OS: Arch Linux (64 bit)

Answers (1)

Saurabh Gupta
Saurabh Gupta on 31 Jul 2017
It looks like you are not able to launch Add-Ons Manager that is used to install and setup Support Packages. MATLAB needs the support package to be able to communicate with Arduino. I have included below the corresponding links so that you could try to manually download it.
Another point I want to mention is that MATLAB/Simulink is qualified with a limited number of Linux distributions, and unfortunately, Arch Linux is not one of them. So you may encounter some unexpected issues like these with MATLAB on Arch Linux.


Find more on MATLAB Support Package for Arduino Hardware 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!