jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
614 stars 196 forks source link

can't open serialport(2;Permission denied) #133

Closed seuzht closed 2 years ago

seuzht commented 2 years ago

I used RJCP.SerialPortStream.dll in my Unity2018 project. Sometimes it can't open serialport. Exception msg show that "Permission denied" should be the reason. And it still not work after "sudo chmod 777 /dev/ttyUSB0". But cutecom works well at this situation. Could u plz offer some help? Thx in advance. 2022-04-14_113842 2022-04-14_114018

seuzht commented 2 years ago

I fixed this. Unity play mode is working under ordinary user. Openning Unity Editor with root would solve this issue.

seuzht commented 2 years ago

I fixed this. Unity play mode is working under ordinary user. Openning Unity Editor with root would solve this issue.