Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble opening comport on Linux #581

Open
omanthey opened this issue Nov 9, 2024 · 2 comments
Open

Trouble opening comport on Linux #581

omanthey opened this issue Nov 9, 2024 · 2 comments

Comments

@omanthey
Copy link

omanthey commented Nov 9, 2024

Hello there,

I'm just starting fiddling around with jSerialComm, so maybe I'm just too stupid ;-)

When trying to open a comport aftergetting the array of comports via SerialPort.getCommPorts() I get the LastErrorCode 13 and the LastErrorLocation 519. I'm working on a Linux Mint 20.2 machine and have set the userrights according to the troubleshooting Wiki.

My comport is an USB to RS232 Adapter and the comport is recognized by the system and shown in the comport-array.

Are there any hints what may be wrong?

P.S. When running as root everything is fine ...

@akuhtz
Copy link

akuhtz commented Nov 9, 2024

Hello,
I have seen this on Linux Mint before and change the permission solved the issue for me:
sudo chmod a+rw /dev/ttyUSB0
... replace ttyUSB0 with your device.

@omanthey
Copy link
Author

omanthey commented Nov 9, 2024

Strange behaviour ... I once called the allowElevatedPermissionsRequest() method and since then everything is running. Even restarting my machine does not lead to the mentioned problems ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants