c++ - 如何在 Linux 操作系统上打开 com 端口(rs422)?

标签 c++ linux

有没有我可以阅读的 C++ 示例?

最佳答案

您可能需要使用open(2) , close(2) , read(2) , write(2) , ioctl(2) , fcntl(2)系统调用。

串行端口是相当复杂的东西。了解他们的 ioctl commandstermios

读一本关于linux programming的好书(或关于 advanced unix programming )。串行端口和 tty (包括伪 tty)很复杂!

关于c++ - 如何在 Linux 操作系统上打开 com 端口(rs422)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8922819/

相关文章:

java - 在 Windows linux 和 MAC 上安装和运行应用程序作为服务

c++ - 在字符串范围列表中搜索字符串

c++ - 用于显示字符串 | 的每个字符的 for 循环C++

c++通过指针访问数组

c++ - 特定模板参数的模板断点

linux - 在 .gz 文件列表中查找一行

linux - 如何安装相同 rpm 的两个不同版本并使它们并行工作

c++ - 性能崩溃 C++(std vector bad_allocation)

linux - 静态文件在从 Go 提供服务时不会更新

python - 当我运行 python 代码时,它显示 “<< was unexpected at this time"