QT添加qextserialport类读取uart编译出现Could not open File! Error code : 5的错误

来源:互联网 发布:淘宝网个人开店流程 编辑:程序博客网 时间:2024/06/14 08:27
按照http://blog.csdn.net/g1036583997/article/details/44805217的方法,QT添加qextserialport类读取uart传来的数据,用qt creator编译出现Trying to open File Could not open File! Error code : 5的错误。

方法是:设备文件没有打开的权限,在终端下输入:chmod 666 /dev/ttyUSB0。其中ttyUSB0是你自己要打开的设备文件。

2 0