Closed rafaelcn closed 4 years ago
this is a Linux file permissions issue.
crw-rw---- 1 root dialout means its only accessible to users root and members of group dialout. add the user to the group dialout, or make a mySerial.rules file with something like:
SUBSYSTEM=="tty", ATTRS{product}=="Bootloader", SYMLINK+="Bootloader%n", SYMLINK+="Bootloader.%E{ID_SERIAL_SHORT}", MODE="0777", ENV{ID_MM_DEVICE_IGNORE}="1"
to automatically symlink, rename and add global access to specific serial ports.
I forgot to mention, I added myself to the dialout group as I suspected it was a permission issue:
[ranu@ranu-laptop ~]$ groups ranu
ranu : ranu adm dialout cdrom sudo dip plugdev lpadmin sambashare bumblebee
And I never heard of a *.rules
file, thanks for the info, gonna look into it.
Hi, I was testing this lib on my computer (
linux amd 64
) to maybe replace the one that I daily use (RXTX) and I did a small example to list all the serial ports on my computer as:But, though I have a lot of serial ports, as seen in:
It lists no ports! I tested on a Windows machine and it does display a single serial port
COM1
, so I assumed that the problem may be in my computer, do you guys have any idea of what might be the problem?