简体   繁体   English

C#Raspberry pi Linux串行端口权限甚至以root身份被拒绝

[英]C# Raspberry pi Linux serial port permission denied even as root

I am writing a program trying to communicate with serial ports of the raspberry pi. 我正在编写一个程序,试图与树莓派的串行端口进行通信。 The program can find the device linked to the port. 该程序可以找到链接到该端口的设备。 But when I want to open that port, it threw me an exception saying that the serial port can't be opened, permission denied. 但是,当我想打开该端口时,它抛出了一个异常:无法打开串行端口,权限被拒绝。 I logged as root(pi) and I think I added myself to "dialout". 我以root(pi)身份登录,我想将自己添加到“拨号”中。 However nothing worked. 但是,没有任何效果。 What will be the problem of my situation? 我的情况会是什么问题? Hope there's any could help, thanks in advance. 希望有任何帮助,在此先感谢。

如果我没记错的话,您必须是特定组的成员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM