Closed HikaruG closed 4 years ago
Hello, you need to give your user running rd-usb access to /dev/rfcomm0. You can do this in multiple ways. This is not specific to my application this is basic Linux behaviour.
For example - you can set chmod to be very open with sudo chmod 777 /dev/rfcomm0
. This is just workaround - you need to do it every reboot.
Or you can add your user to group dialout
for example user with name "myname": sudo usermod -a -G dialout myname
. But this is specific to your Linux distribution. It can be different.
Please look for guide on the internet for your specific Linux distribution. You will find many.
Thanks for your reply. That's intriguing because I already tried adding myself to the dialout group, and it unfortunately did not change the behavior... But understood, you confirmed me that it was not on the application side, so I will look for workarounds on the internet.
Yes dialout may not work if your Linux is configured in different way.
You can see what group is your Linux using for rfcomm with command ls -l /dev/rfcomm0
. You will see something like this:
ls -l /dev/rfcomm0
crw-rw-rw- 1 root somegroup 5, 0 Jul 24 16:59 /dev/rfcomm0
In middle you have root
and somegroup
. First is user and second is group. Add yourself to this group instead of dialout.
Hello, First thank you for your effort creating this repo. However, I'm having trouble with it. I tried connecting to my UM25C without success, due to some permission issue. I saw that you wrote that one needs to give permission, but I do not know how I should be doing it. I'm sorry for this rather "beginner" question.![permissionDenied_UM25C](https://user-images.githubusercontent.com/43375172/88539322-0187f280-d04c-11ea-9a91-cbc6d05a3afe.png)