没有合适的资源?快使用搜索试试~ 我知道了~
首页Serial-Programming-HOWTO.pdf
资源详情
资源评论
资源推荐
Serial Programming HOWTO
Gary Frerking
gary@frerking.org
Peter Baumann
Revision History
Revision 1.01 2001−08−26 Revised by: glf
New maintainer, converted to DocBook
Revision 1.0 1998−01−22 Revised by: phb
Initial document release
This document describes how to program communications with devices over a serial port on a Linux box.
Table of Contents
1. Introduction.....................................................................................................................................................1
1.1. Copyright Information......................................................................................................................1
1.2. Disclaimer.........................................................................................................................................1
1.3. New Versions....................................................................................................................................2
1.4. Credits...............................................................................................................................................2
1.5. Feedback...........................................................................................................................................2
2. Getting started.................................................................................................................................................3
2.1. Debugging.........................................................................................................................................3
2.2. Port Settings......................................................................................................................................3
2.3. Input Concepts for Serial Devices....................................................................................................4
2.3.1. Canonical Input Processing..............................................................................................4
2.3.2. Non−Canonical Input Processing.....................................................................................4
2.3.3. Asynchronous Input..........................................................................................................4
2.3.4. Waiting for Input from Multiple Sources.........................................................................4
3. Program Examples..........................................................................................................................................6
3.1. Canonical Input Processing...............................................................................................................6
3.2. Non−Canonical Input Processing.....................................................................................................8
3.3. Asynchronous Input..........................................................................................................................9
3.4. Waiting for Input from Multiple Sources.......................................................................................11
4. Other Sources of Information......................................................................................................................13
Serial Programming HOWTO
i
1. Introduction
This is the Linux Serial Programming HOWTO. All about how to program communications with other
devices / computers over a serial line under Linux. Different techniques are explained: Canonical I/O (only
complete lines are transmitted/received), asyncronous I/O, and waiting for input from multiple sources.
This is the first update to the initial release of the Linux Serial Programming HOWTO. The primary purpose
of this update is to change the author information and convert the document to DocBook format. In terms of
technical content, very little if anything has changed at this time. Sweeping changes to the technical content
aren't going to happen overnight, but I'll work on it as much as time allows.
If you've been waiting in the wings for someone to take over this HOWTO, you've gotten your wish. Please
send me any and all feedback you have, it'd be very much appreciated.
All examples were tested using a i386 Linux Kernel 2.0.29.
1.1. Copyright Information
This document is copyrighted (c) 1997 Peter Baumann, (c) 2001 Gary Frerking and is distributed under the
terms of the Linux Documentation Project (LDP) license, stated below.
Unless otherwise stated, Linux HOWTO documents are copyrighted by their respective authors. Linux
HOWTO documents may be reproduced and distributed in whole or in part, in any medium physical or
electronic, as long as this copyright notice is retained on all copies. Commercial redistribution is allowed and
encouraged; however, the author would like to be notified of any such distributions.
All translations, derivative works, or aggregate works incorporating any Linux HOWTO documents must be
covered under this copyright notice. That is, you may not produce a derivative work from a HOWTO and
impose additional restrictions on its distribution. Exceptions to these rules may be granted under certain
conditions; please contact the Linux HOWTO coordinator at the address given below.
In short, we wish to promote dissemination of this information through as many channels as possible.
However, we do wish to retain copyright on the HOWTO documents, and would like to be notified of any
plans to redistribute the HOWTOs.
If you have any questions, please contact <linux−howto@metalab.unc.edu>
1.2. Disclaimer
No liability for the contents of this documents can be accepted. Use the concepts, examples and other content
at your own risk. As this is a new edition of this document, there may be errors and inaccuracies, that may of
course be damaging to your system. Proceed with caution, and although this is highly unlikely, the author(s)
do not take any responsibility for that.
All copyrights are held by their by their respective owners, unless specifically noted otherwise. Use of a term
in this document should not be regarded as affecting the validity of any trademark or service mark.
1. Introduction 1
剩余14页未读,继续阅读
hpinux
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- ExcelVBA中的Range和Cells用法说明.pdf
- 基于单片机的电梯控制模型设计.doc
- 主成分分析和因子分析.pptx
- 共享笔记服务系统论文.doc
- 基于数据治理体系的数据中台实践分享.pptx
- 变压器的铭牌和额定值.pptx
- 计算机网络课程设计报告--用winsock设计Ping应用程序.doc
- 高电压技术课件:第03章 液体和固体介质的电气特性.pdf
- Oracle商务智能精华介绍.pptx
- 基于单片机的输液滴速控制系统设计文档.doc
- dw考试题 5套.pdf
- 学生档案管理系统详细设计说明书.doc
- 操作系统PPT课件.pptx
- 智慧路边停车管理系统方案.pptx
- 【企业内控系列】企业内部控制之人力资源管理控制(17页).doc
- 温度传感器分类与特点.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0