Hi, I cannot open any serial port to comunicate with my Arduino Micro.
instrhwinfo('serial')
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
-Dgnu.io.rxtx.SerialPorts=/dev/ttyS0:/dev/ttyS1:/dev/USB0:/dev/ttyACM0
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
or using the Arduino IDE or Processing.
--------------
OS: Arch Linux (64 bit)