⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serial programming guide for posix operating systems.htm

📁 linux串口编程的一些文档以及一些示例
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0037)http://doc.novsu.ac.ru/c_unix/serial/ -->
<HTML><HEAD><TITLE>Serial Programming Guide for POSIX Operating Systems</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<META content="Michael R. Sweet" name=author>
<META content="Copyright 1994-2003, All Rights Reserved." name=copyright>
<META content="5th Edition, 3rd Revision" name=docnumber><!-- Meta http equivalent was here                                   -->
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<H1 align=center>Serial Programming Guide <BR>for <BR>POSIX Operating 
Systems</H1>
<P align=center>5th Edition, 3rd Revision <BR>Copyright 1994-2003 by Michael R. 
Sweet</P><!-- <P ALIGN="CENTER">Pig Latin Translation<BR>Copyright 20xy by William E. Coyote</P> -->
<P align=center>Permission is granted to copy, distribute and/or modify this 
document under the terms of the GNU Free Documentation License, Version 1.2 or 
any later version published by the Free Software Foundation; with no Invariant 
Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license 
is included in<A href="http://dns.easysw.com/~mike/serial/serial.html#license"> 
Appendix C, GNU Free Documentation License</A>.</P>
<HR>

<H1 align=center><A name=CONTENTS>Table of Contents</A></H1><BR><BR><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#1">Introduction</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#1_1">License</A> 
  <LI><A 
  href="http://dns.easysw.com/~mike/serial/serial.html#1_2">Organization</A> 
  </LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#basics">Chapter 1, Basics 
of Serial Communications</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_1">What Are 
  Serial Communications?</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_2">What Is 
  RS-232?</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_2_1">Signal 
    Definitions</A> </LI></UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_3">Asynchronous 
  Communications</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_3_1">What Are 
    Full Duplex and Half Duplex?</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_3_2">Flow 
    Control</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_3_3">What Is a 
    Break?</A> </LI></UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_4">Synchronous 
  Communications</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5">Accessing 
  Serial Ports</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5_1">Serial 
    Port Files</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5_2">Opening a 
    Serial Port</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5_3">Writing 
    Data to the Port</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5_4">Reading 
    Data from the Port</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#2_5_5">Closing a 
    Serial Port</A> </LI></UL></LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#config">Chapter 2, 
Configuring the Serial Port</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1">The POSIX 
  Terminal Interface</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1_1">Control 
    Options</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1_2">Local 
    Options</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1_3">Input 
    Options</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1_4">Output 
    Options</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#3_1_5">Control 
    Characters</A> </LI></UL></LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#modem">Chapter 3, MODEM 
Communications</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#4_1">What Is a 
  MODEM?</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#4_2">Communicating 
  With a MODEM</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#4_2_1">Standard 
    MODEM Commands</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#4_2_2">Common 
    MODEM Communication Problems</A> </LI></UL></LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#advanced">Chapter 4, 
Advanced Serial Programming</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_1">Serial Port 
  IOCTLs</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_1_1">Getting 
    the Control Signals</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_1_2">Setting 
    the Control Signals</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_1_3">Getting 
    the Number of Bytes Available</A> </LI></UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_2">Selecting 
  Input from a Serial Port</A> 
  <UL>
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_2_1">The 
    SELECT System Call</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_2_2">Using the 
    SELECT System Call</A> 
    <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#5_2_3">Using 
    SELECT with the X Intrinsics Library</A> </LI></UL></LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#pinouts">Appendix A, 
Pinouts</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#6_1">RS-232 
  Pinouts</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#6_2">RS-422 
  Pinouts</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#6_3">RS-574 (IBM 
  PC/AT) Pinouts</A> 
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#6_4">SGI 
  Pinouts</A> </LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#ascii">Appendix B, ASCII 
Control Codes</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#7_1">Control 
  Codes</A> </LI></UL><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#license">Appendix C, GNU 
Free Documentation License</A></B> <BR><BR><B><A 
href="http://dns.easysw.com/~mike/serial/serial.html#relnotes">Appendix D, 
Change History</A></B> 
<UL>
  <LI><A href="http://dns.easysw.com/~mike/serial/serial.html#9_1">Edition 5, 
  Revision 3</A> </LI></UL>
<HR>

<DIV align=justify>
<H1 align=right><A name=1>Introduction</A></H1>
<P>The Serial Programming Guide for POSIX Operating Systems will teach you how 
to successfully, efficiently, and portably program the serial ports on your 
UNIX

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -