Serial port functions require raised priveleges
Posted: Sat Apr 15, 2017 12:49 am
Hi, been a long long time since I have done any programming at all now, so a stupid question........
I am wanting to do some serial port work but find in Linux it appears I need sudo access or else the device access is just simply denied.
How do I do that from my source so i can run in debug screen?
e.g. from the help file:
Will just fail the same as if I use GTKterm without sudo priveleges.
I am wanting to do some serial port work but find in Linux it appears I need sudo access or else the device access is just simply denied.
How do I do that from my source so i can run in debug screen?
e.g. from the help file:
Code: Select all
If OpenSerialPort(0, "/dev/ttyUSB0", 300, #PB_SerialPort_NoParity, 8, 1, #PB_SerialPort_NoHandshake, 1024, 1024)
Debug "Success"
Else
Debug "Failed"
EndIf