can't open ttyS0, error code 2 使用QT程序打开串口时,报如下错误: can't open ttyS0, error code 2 解决方案 查看可用的串口 dmesg | grep ttyS 给打开的串口加权限