简体   繁体   English

使用minicom在Linux中进行串行USB通信

[英]serial usb communication in linux using minicom

I trying to use serial port in Linux. 我试图在Linux中使用串行端口。 I am using minicom. 我正在使用minicom。 When I connected my serial to USB device to a port, minicom responds with 当我将串口连接到USB设备的端口上时,minicom会回应

"cannot open /dev/ttyUSB0: No such file or directory". “无法打开/ dev / ttyUSB0:没有这样的文件或目录”。

But when dmesg it is showing that 但是当dmesg显示

"converter now attached to ttyUSB0" “转换器现在已连接到ttyUSB0”

Then why it is not opening in minicom. 那为什么它不能在minicom中打开呢。

It might due to not having access privilege. 这可能是由于没有访问权限。

Try this. 尝试这个。

sudo chown /dev/ttyUSB0 须藤chown / dev / ttyUSB0

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

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