Serial-HOWTO.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

Serial-HOWTO.Pdf Serial HOWTO Serial HOWTO Table of Contents Serial HOWTO...................................................................................................................................................1 David S.Lawyer [email protected] original by Greg Hankins.....................................................................1 1. Introduction..........................................................................................................................................1 2. Quick Help...........................................................................................................................................1 3. How the Hardware Transfers Bytes.....................................................................................................1 4. Serial Port Basics.................................................................................................................................1 5. Multiport Serial Boards/Cards/Adapters..............................................................................................2 6. Servers for Serial Ports........................................................................................................................2 7. Configuring Overview.........................................................................................................................2 8. Locating the Serial Port: IO address, IRQs..........................................................................................2 9. Configuring the Serial Driver (high-level) "stty"................................................................................2 10. Serial Port Devices /dev/ttyS2, etc.....................................................................................................2 11. Interesting Programs You Should Know About................................................................................3 12. Speed (Flow Rate)..............................................................................................................................3 13. Locking Out Others............................................................................................................................3 14. Serial Communications Programs And Utilities................................................................................3 15. Serial Tips And Miscellany...............................................................................................................3 16. Troubleshooting.................................................................................................................................3 17. Interrupt Problem Details...................................................................................................................4 18. What Are UARTs? How Do They Affect Performance?..................................................................4 19. Pinout and Signals.............................................................................................................................4 20. Voltage Waveshapes..........................................................................................................................4 21. Other Serial Devices (not async RS-232)..........................................................................................5 22. Other Sources of Information............................................................................................................5 23. Appendix A: Very Obsolete Hardware/Software..............................................................................5 1. Introduction..........................................................................................................................................5 1.1 Copyright, Disclaimer, & Credits......................................................................................................6 Copyright...........................................................................................................................................6 Disclaimer.........................................................................................................................................6 Trademarks........................................................................................................................................6 Credits...............................................................................................................................................6 1.2 New Versions of this Serial-HOWTO...............................................................................................6 1.3 New in Recent Versions.....................................................................................................................7 1.4 Related HOWTO's, etc. about the Serial Port...................................................................................7 1.5 Feedback............................................................................................................................................7 1.6 What is a Serial Port?.........................................................................................................................7 2. Quick Help...........................................................................................................................................8 3. How the Hardware Transfers Bytes....................................................................................................8 3.1 Transmitting.......................................................................................................................................9 3.2 Receiving.........................................................................................................................................10 3.3 The Large Serial Buffers..................................................................................................................10 4. Serial Port Basics..............................................................................................................................11 4.1 What is a Serial Port ?......................................................................................................................11 Intro to Serial...................................................................................................................................11 Pins and Wires.................................................................................................................................11 RS-232 (EIA-232, etc.)...................................................................................................................12 4.2 IO Address & IRQ...........................................................................................................................12 4.3 Names: ttyS0, ttyS1, etc...................................................................................................................12 i Serial HOWTO Table of Contents Serial HOWTO 4.4 Interrupts.........................................................................................................................................12 4.5 Data Flow (Speeds)..........................................................................................................................13 4.6 Flow Control...................................................................................................................................14 Example of Flow Control................................................................................................................14 Symptoms of No Flow Control.......................................................................................................15 Hardware vs. Software Flow Control..............................................................................................15 4.7 Data Flow Path; Buffers...................................................................................................................15 4.8 Complex Flow Control Example.....................................................................................................16 4.9 Serial Driver Module.......................................................................................................................18 4.10 The Serial Port is Now Obsolete on PCs.......................................................................................18 4.11 RS-232 Cable Is Low Speed & Short Distance............................................................................18 4.12 Inefficient PCI Interface to the Computer (in some cases)............................................................19 5. Multiport Serial Boards/Cards/Adapters............................................................................................19 5.1 Intro to Multiport Serial...................................................................................................................19 5.2 Dumb vs. Smart Cards.....................................................................................................................19 5.3 Getting/Enabling a Driver................................................................................................................20 Introduction.....................................................................................................................................20 Build (compile) support into the kernel?.........................................................................................20 Using module support....................................................................................................................20
Recommended publications
  • Series 90-70 Programmable Controller Data Sheet Manual, GFK-0600F
    This Datasheet for the IC697CGR935 Hot Standby Genius Dual Bus CPU, 486DX4, 12K Discrete I/O, 1M byte fixed user memory, Floating Pt. http://www.cimtecautomation.com/parts/p-14765-ic697cgr935.aspx Provides the wiring diagrams and installation guidelines for this GE Series 90-30 module. For further information, please contact Cimtec Technical Support at 1-866-599-6507 [email protected] 1 PLC CPUs 24 IC697CGR935 GFK-1439C 96 MHz, 32-Bit Floating Point, 1 MByte Fast Memory November 1999 PLC CPUs Central Processing Unit for CPU Redundancy Applications 96 MHz, 32-Bit Floating Point, 1 MByte Fast Memory Central Processing Unit for CPU Redundancy Applications (IC697CGR935) datasheet GFK-1439C Features D Symptom status bits and fault tables D Memory parity and checksums D Required for CPU redundancy applications D Supports floating point calculation D CommonI/O on IC660/IC661 bus D Single slot CPU D Manual switching with pushbutton switch on Redundan- D 12K inputs and 12K outputs (any mix) cy Communications Module D Up to 8K analog I/O a45734 D 0.4 microseconds per boolean function D 96 MHz, 80486DX4 microprocessor ÎÎÎÎÎ D SupportsIC660/IC661 and IC697 I/O products ÎÎ OK P1 CGR 935 ÎÎÎÎÎ ÎÎ Î ÎÎ ÎÎÎ D Programmed by MS-DOSr or Windowsr based software RUN P2 Î TOP products EN P3 OFF ÎÎÎÎ Î Î ÎÎ Î ÎÎÎ ÎÎÎ ÎÎÎ D MEM PROTECT O Supports 1 Mbyte of battery-backed fast CMOS RAM B REMOTE PROGRAMMERN ÎÎÎÎÎ Î Î ÎÎÎ ÎÎÎ ÎÎA MEMORY PROTECT memory in the same slot T KEY POSITION T ÎÎÎÎÎ Î Î ÎÎÎ D ÎÎE FRONT Configurable data and program memory R O
    [Show full text]
  • ISDN TA PC Card User Manual INTRODUCTION the ISDN TA PC Card Brings the Latest in Mobile Communication Technology with Flexibility and Convenience
    ISDN TA PC Card User Manual INTRODUCTION The ISDN TA PC Card brings the latest in mobile communication technology with flexibility and convenience. With the wide range ISDN signaling protocols switches supports, mobile experts may enjoy the mobile communication across the world and the high speed digital service. System Requirements Pentium 75 or above At least 30MB free hard disk space At least 16MB RAM PCMCIA Type II/III slot PCMCIA Card Services and Socket Services v.2.1 or higher pre-installed Windows 95/98/2000 or Windows NT pre-installed Specifications Standard PCMCIA 2.1 & JEIDA 4.1 compliant ISDN standards Basic Rate Access (2B+D) S/T-Interface: Compliant with ITU-T I.430 D-channel: ITU-T Q.921, Q.931 ETSI NET3 B-channel: V.120, V.110, X.75/T.70NL/ISO8208 Async-to-Sync PPP conversion Multilink PPP, 56 K Modem (CAPI only) G3 fax (CAPI only) - 1 - Voice (CAPI only) Line Rate 64/56 Kbps on 1 B-channel 128/112 Kbps on 2 B-channel (PPP/MP) 64/56Kbps on 1 B-channel 16Kbps on D-channel ISDN Network & Switch Compatibility National ISDN-1 (NI-1) AT&T 5ESS Custom Northen Telecom DMS-100 Custom DSS1 (Euro-ISDN) INS-Net 64 Application Program Interface Supported VCOMM WinISDN CAPI 2.0 NDIS WAN Operating System Supported Windows 95 and OSR2 Windows 98 Windows 2000 Windows NT 4.0 Physical Specifications RJ-45 ISDN line interface Dimension: 85.6 x 54 x 5 (mm) PCMCIA Type II - 2 - Parts Names 15-pin PC Card Connector ISDN Network Connection Cable - 3 - HARDWARE INSTALLATION If you are using the ISDN TA PC Card under Windows 95/98/2000, Do NOT insert the PCMCIA card until after the software installation is completed.
    [Show full text]
  • Experiment 2: Identify Common Peripheral Ports, Associated Cables and Their Connectors
    Computer maintenance and TROUBLESHOOTING (3350701), Semester – 5th Experiment 2: Identify Common Peripheral ports, associated cables and their connectors. Aim To identify Identify Common Peripheral ports, associated cables and their connectors. Objectives After performing this experiment students will be able to: Identify various peripherals ports. Identify different types of cables used in computer. Identify various connectors. Assumptions Students have basic knowledge of English language and Computer Hardware A Computre System Requirement Screw Driver Software Nil Requirement Learning Major Learning outcome of this experiment are: Outcome Identifying Ports, Cables and Connectors THEORY Port The Point at which peripheral attaches to. Communicates with a system unit so that peripheral can send data to or receive information from the computer. Following are the different Types of Ports of Computer System. 1) PS/2 Ports The PS/2 Ports are simple, 6-pin, low-speed serial connections commonly dedicated to a keyboard and mouse. Although these ports may look identical at first glance, they are not interchangeable, so you'll need to be extremely careful to attach the keyboard and mouse to their respective PS/2 port. 2) VGA Mointer Port Video Graphics Array: used to connect the monitor to the computer 3) Parallel Port P a g e | 8 Computer maintenance and TROUBLESHOOTING (3350701), Semester – 5th The parallel port originally started out as a unidirectional (output only) Printers and other devices are said to be either parallel or serial. Parallel means the device is capable of receiving more than one bit at a time (that is, it receives several bits in parallel). Most modern printers are parallel.
    [Show full text]
  • AN706: EZSP-UART Host Interfacing Guide
    AN706: EZSP-UART Host Interfacing Guide This application note describes how to connect a Host processor to a Network Co-Processor (NCP) using the UART-based Em- KEY POINTS berZNet Serial Protocol (EZSP). It assumes that you already • EZSP-UART protocol overview have a basic understanding of the EZSP-UART Gateway proto- • Physical interfaces col, as well as the signals needed by the UART interface. If not, • Command line options for Host refer to UG101: UART Gateway Protocol Reference Guide be- applications fore continuing. This application note has been updated to Em- • Hardware design considerations • Powering up, power cycling, and rebooting berZNet PRO 6.6 to reflect a minor update to the Silicon Labs • Bootloading Zigbee application framework, though the content of the EZSP- UART interface still applies to earlier versions of the EmberZNet PRO stack. silabs.com | Building a more connected world. Rev. 1.2 AN706: EZSP-UART Host Interfacing Guide Protocol Overview 1. Protocol Overview Silicon Labs designed EZSP as a protocol to allow communications between components running pieces of the EmberZNet PRO wire- less mesh stack, namely a Host processor and an NCP. The Host processor runs the application layer and executes on the POSIX platform such as Mac OS, Linux, or a Windows PC running Cygwin or the new Windows 10 BASH shell. You can also run this on an embedded platform like the Raspberry Pi. This lets you develop and test your application on an easy-to-use platform before porting your solution to a different Host processor with few changes. The NCP runs the EmberZNet PRO stack and physical layer (PHY).
    [Show full text]
  • Linking Computers and Consumer Electronics
    . Editor: Charles Severance, Michigan State University, College of Engineering, 112 Engineering Bldg., East Lansing, MI 48824; voice (517) 353- 2268; fax (517) 355-7516; [email protected]; http://www.egr.msu.edu/~crs Apple’s blessing, it has since been devel- oped by the IEEE 1394 working group, Linking which is part of the IEEE Microprocessor and Microcomputer Standards Committee activity. Much like Appletalk, Firewire is designed as an easy-to-maintain local area Computers network for the consumer. It supports an Standards Bianry Critic extremely flexible daisy-chain- or tree- based topology for complete flexibility in wiring layouts. and Consumer Firewire operates at 100, 200, or 400 Mbps. A gigabit version is also on the horizon. At 400 Mbps, Firewire can sus- tain an uncompressed high-quality digital Electronics video stream using roughly 50 percent of its bandwidth. The standard’s protocols are called isosynchronous. With isosyn- chronous protocols, devices can negotiate for guaranteed bandwidth across a 1394 Charles Severance, Michigan State University connection. The remaining bandwidth can be used for asynchronous data trans- fers, which are more typical of computer data traffic. Asynchronous data transfers occur during periods not reserved for syn- he capabilities of our personal HERITAGE AND OPERATION chronous traffic. This approach allows computers have increased dra- Much of Firewire’s heritage comes from reliable delivery of audio, video, and com- matically over the past 15 years, Appletalk networking. In the late 1980s puter data on the same medium. and so has the number of con- Apple began developing Firewire as its Tnectors on the back of our sys- next generation of Appletalk.
    [Show full text]
  • Macwise Version 19 User's Manual
    [email protected] www.CarnationSoftware.com www.MacWise.com MacWise Version 19 User's Manual You can use Command F to find what you are looking for in this document. Introduction Terminal Emulation MacWise emulates ADDS Viewpoint, Wyse 50, Wyse 60, Wyse 370, Televideo TV 925, DEC VT100, VT220 and Prism terminals. Supports ANSI color. Esprit III color is also supported in Wyse 370 mode. MacWise allows a Macintosh to be used as a terminal -- connected to a host computer directly, by modem, or over the Internet. The emulators support video attributes such as dim, reverse, underline, 132-column modes, protected fields and graphic characters sent from the host computer, as well as enhanced Viewpoint mode. Features include phone list and dialer for modems, on-screen programmable function keys, connection scripts and more. Connectivity 1. Built in Modem 2. Telnet / TCP/IP 3. SSH Secure Shell 4. Serial ports via USB to Serial adaptor . 5. Also communicates directly with the Mac unix shell Telnet Telnet settings are under the Connection Menu. Select "Telnet" to enable telnet. Select "Telnet Connection..." to enter your Host IP address, port number and terminal type. =============================== KERMIT ================================ NOTE: If you are running Mac OS 10.13 or later, you need to also use Kermit. (There should be a check mark on "Kermit" under the Connection Menu.) Kermit is installed automatically when Mac OS 10.13 or later is detected. You can re-install kermit any time by selecting Kermit Installer from the Help Menu in MacWise. Echo Kermit Characters ( under the Connection Menu ) This is normally enabled when Kermit is enabled.
    [Show full text]
  • Apache TOMCAT
    LVM Data Migration • XU4 Fan Control • OSX USB-UART interfacing Year Two Issue #22 Oct 2015 ODROIDMagazine Apache TOMCAT Your web server and servlet container running on the world’s most power-efficient computing platform Plex Linux Gaming: Emulate Sega’s last Media console, the Dreamcast Server What we stand for. We strive to symbolize the edge of technology, future, youth, humanity, and engineering. Our philosophy is based on Developers. And our efforts to keep close relationships with developers around the world. For that, you can always count on having the quality and sophistication that is the hallmark of our products. Simple, modern and distinctive. So you can have the best to accomplish everything you can dream of. We are now shipping the ODROID-U3 device to EU countries! Come and visit our online store to shop! Address: Max-Pollin-Straße 1 85104 Pförring Germany Telephone & Fax phone: +49 (0) 8403 / 920-920 email: [email protected] Our ODROID products can be found at http://bit.ly/1tXPXwe EDITORIAL his month, we feature two extremely useful servers that run very well on the ODROID platform: Apache Tom- Tcat and Plex Media Server. Apache Tomcat is an open- source web server and servlet container that provides a “pure Java” HTTP web server environment for Java code to run in. It allows you to write complex web applications in Java without needing to learn a specific server language such as .NET or PHP. Plex Media Server organizes your vid- eo, music, and photo collections and streams them to all of your screens.
    [Show full text]
  • Smart CAT5 Switch User Guide V1.4
    Smart CAT5 Switch 8 and 16 Port User Guide www.minicom.com International HQ North America Europe Jerusalem, Israel Linden, NJ, USA Dübendorf, Switzerland Tel: + 972 2 535 9666 Tel: + 1 908 4862100 Tel: + 41 1 823 8000 [email protected] [email protected] [email protected] Customer support - [email protected] 5UM20110 V1.4 11/05 SMART CAT5 SWITCH Table of Contents 1. Welcome.........................................................................................................3 2. Introduction.....................................................................................................4 3. Features..........................................................................................................4 4. System components.......................................................................................4 5. Compatibility...................................................................................................4 6. The Smart CAT5 system configuration...........................................................5 7. The Smart CAT5 models.................................................................................5 8. Pre-installation guidelines..............................................................................6 9. Connecting the Smart CAT5 system..............................................................6 10. Connecting the power supply.........................................................................9 11. Resetting the Switch.......................................................................................9
    [Show full text]
  • A Kermit File Transfer Protocol for the Apple II Series Personal Computers : John Patrick Francisco Lehigh University
    Lehigh University Lehigh Preserve Theses and Dissertations 1986 A Kermit file transfer protocol for the Apple II series personal computers : John Patrick Francisco Lehigh University Follow this and additional works at: https://preserve.lehigh.edu/etd Part of the Electrical and Computer Engineering Commons Recommended Citation Francisco, John Patrick, "A Kermit file transfer protocol for the Apple II series personal computers :" (1986). Theses and Dissertations. 4628. https://preserve.lehigh.edu/etd/4628 This Thesis is brought to you for free and open access by Lehigh Preserve. It has been accepted for inclusion in Theses and Dissertations by an authorized administrator of Lehigh Preserve. For more information, please contact [email protected]. A KERMIT FILE TRANSFER PROTOCOL FOR THE APPLE II SERIES PERSONAL COMPUTERS (Using the Apple Pascal Operating system) by John Patrick Francisco A Thesis Presented to the Graduate Committee of Lehigh University in Candidacy for the Degree of Master of Science 1n• Computer Science Lehigh University March 1986 This thesis is accepted and approved in partial fulfillment of the requirements for the degree of Master of science.• (date) Professor in Charge -------------- --------------- Chairman of the Division Chairman of the Department • • -11- ACKNOWLEDGEMENTS It would be somewhat of an understatement to say this project was broad in scope as the disciplines involved ranged from Phychology to Electrical Engineering. Since the project required an extensive amount of detailed in­ formation in all fields, I was impelled to seek the help, advice and opinion of many. There were also numerous t friends and relatives upon whom I relied for both moral and financial support.
    [Show full text]
  • I-Modem Command Reference
    U.S. Robotics I-modem Command Reference U.S. Robotics I-modem Command Reference page i U.S. Robotics I-modem Command Reference The material contained in this manual is for information purposes only and is subject to change without notice. No part of this document may be reproduced, transmitted, transcribed, or stored in a retrieval system in any form or by any means, mechanical, magnetic, electronic, optical, chemical, or otherwise without the written permission of U.S. Robotics. U.S. Robotics and the U.S. Robotics logo are registered trademarks of U.S. Robotics. Courier, V.Everything, and I-modem are tradmarks of U.S. Robotics. Microsoft and Win- dows NT are registered trademarks of Microsoft Corporation. V.Fast Class and V.FC are trademarks of Rockwell International. MNP is a registered trademark of Microcom Sys- tems, Inc. Any trademarks, trade names, service marks, or service names owned or registered by any other company and used in this manual are the property of their respective companies. U.S. Robotics assumes no responsibility for errors or omissions in this manual. Nor does U.S. Robotics make any commitment to update the information contained herein. ©1997 U.S. Robotics Corp. 8100 N. McCormick Blvd. Skokie, IL 60076-2999 USA page ii U.S. Robotics I-modem Command Reference Table of Contents Chapter 1 Using the AT Command Set 1-1 General Rules for Using AT Commands 1-1 Basic AT Commands 1-2 S-registers 1-3 Chapter 2 Modes of Operation 2-1 Command and Online Modes 2-1 Controlling Local Echo 2-3 Data and Fax Modes 2-5 Chapter 3 Dialing, Answering, and Hanging Up 3-1 Making International Calls 3-7 Call Detection 3-9 page iii U.S.
    [Show full text]
  • Front Matter + Functional
    Infortrend External RAID Controller & Subsystem Generic Operation Manual Revision 1.62 Firmware Version: 3.31h Asia Pacific Americas (International headquarter) Infortrend Technology, Inc. Infortrend Corporation 8F, No. 102 Chung-Shan Rd., Sec. 3 3150 Coronado Drive, Unit C Chung-Ho City, Taipei Hsien, Taiwan Santa Clara, CA 95054, USA Tel: (886)-2-2226-0126 Tel: (408) 988-5088 Fax: (886)-2-2226-0020 Fax: (408) 988-6288 [email protected] [email protected] [email protected] [email protected] www.infortrend.com.tw www.infortrend.com China Europe (EMEA) Infortrend Technology, Limited Infortrend Europe Limited Room 1210, West Wing, Tower One, 5 Elmwood, Crockford Lane Junefield Plaza, No. 6 Xuanwumen Street, Chineham Business Park Xuanwu District, Beijing, China. Basingstoke, Hampshire Post code: 100052 RG24 8WG, UK Tel: 8610-63106168 Tel: +44-1256-70-77-00 Fax: 8610-63106188 Fax:+44-1256-70-78-89 [email protected] [email protected] [email protected] [email protected] www.infortrend.com.cn www.infortrend-europe.com Copyright © 2003 This Edition First Published 2003 All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual or otherwise, without the prior written consent of Infortrend Technology, Inc. Disclaimer Infortrend Technology makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. Furthermore, Infortrend Technology reserves the right to revise this publication and to make changes from time to time in the content hereof without oblig- ation to notify any person of such revisions or changes.
    [Show full text]
  • 1394 Analyzer Quickstart Guide FS800, Fs400b 1394 Analyzer Quickstart Guide
    1394 Analyzer Quickstart Guide FS800, FS400b 1394 Analyzer Quickstart Guide Table of Contents Chapter 1. Introduction 3 Chapter 2. Hardware 4 2.1 Gen4 Analyzer................................................................................................................................... Series 4 FireSpy ..............................................................................................................................................................................3422bT, 3822bT 4 Main Feature Summary......................................................................................................................................................... 5 Specifications ......................................................................................................................................................... 6 FireSpy PCI Board......................................................................................................................................................... 7 FireSpy 4430b,.............................................................................................................................................................................. 4430bT, 4830, 4830bT 7 Main Feature Summary......................................................................................................................................................... 8 Specifications ........................................................................................................................................................
    [Show full text]