Linux statserial命令

Linux 教程 · 2019-02-16 08:41:46

Linux statserial命令用于显示串口状态。

statserial(status ofserial port)可显示各个接脚的状态,常用来判断串口是否正常。

语法

statserial [-dnx][串口设备名称]

参数说明

  • -d 以10进制数字来表示串口的状态。
  • -n 仅显示一次串口的状态后即结束程序。
  • -x 与-n参数类似,但是以16进制来表示。

实例

显示串口状态

# statserial /dev/tty1

只显示一次串口状态

# statserial -n /dev/tty1

点击查看所有 Linux 教程 文章: https://www.codercto.com/courses/l/14.html

查看所有标签

Handbook of Data Structures and Applications

Handbook of Data Structures and Applications

Dinesh P. Mehta / Chapman and Hall/CRC / 2004-10-28 / USD 135.95

In the late sixties, Donald Knuth, winner of the 1974Turing Award, published his landmark book The Art of Computer Programming: Fundamental Algorithms. This book brought to- gether a body of kno......一起来看看 《Handbook of Data Structures and Applications》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器