2020-03-31, 09:11 AM
(2020-03-30, 07:17 PM)Sailoog Wrote: I you do not you get data without using sudo you have a permission problem.
kplex or SK use the default user.
Dear Sailoog, thank you for your answer.
I think you're right. Tested it by de-assigning the serial port again, performing the command with and without sudo:
Code:
pi@openplotter:~ $ cat /dev/ttyUSB2
cat: /dev/ttyUSB2: Device or resource busy
pi@openplotter:~ $ sudo cat /dev/ttyUSB2
$SDDPT,,*57
$SDDBT,,f,,M,,F*28
$SDDPT,,*57
$SDDBT,,f,,M,,F*28
$SDDPT,,*57
$SDDBT,,f,,M,,F*28
$SDDPT,,*57
$SDDBT,,f,,M,,F*28
Do you have an idea of how I can solve this? I don't know what process is using the serial port even though it is not being assigned in OP.
I don't know how to give the "extra" permission to the default user.
Hope you can help me out.