Programming Books C Java PHP Python Learn more Browse Programming Books

Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $2.25 Gift Card
Trade in
Kindle Edition
Read instantly on your iPad, PC, Mac, Android tablet or Kindle Fire
Buy Price: $68.19
Rent From: $30.66
More Buying Choices
Have one to sell? Sell yours here

The Windows Serial Port Programming Handbook [Hardcover]

Ying Bai
4.0 out of 5 stars  See all reviews (5 customer reviews)

List Price: $146.95
Price: $117.31 & FREE Shipping. Details
You Save: $29.64 (20%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 3 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Want it Monday, July 14? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student


Amazon Price New from Used from
Kindle Edition
Rent from
Hardcover $117.31  
Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

November 20, 2004 0849322138 978-0849322136
The popularity of serial communications demands that additional serial port interfaces be developed to meet the expanding requirements of users. The Windows Serial Port Programming Handbook illustrates the principles and methods of developing various serial port interfaces using multiple languages. This comprehensive, hands-on, and practical guide to serial interface programming enables you to develop sophisticated interfaces and apply them in real-world applications.

Each chapter addresses a language and how it can be applied in the development of serial port interfaces. The seven languages discussed are:

  • ANSI C
  • Visual C++
  • Visual Basic
  • LabVIEW
  • Smalltalk
  • Java

    Step by step and line by line, the Handbook clearly explains the interfacing techniques used for each different language in the serial port communication. Examples from actual systems have been compiled and debugged, with detailed source code for each included on an accompanying CD-ROM.

  • Frequently Bought Together

    The Windows Serial Port Programming Handbook + Serial Port Complete: COM Ports, USB Virtual COM Ports, and Ports for Embedded Systems (Complete Guides series)
    Price for both: $144.17

    Buy the selected items together

    Product Details

    • Hardcover: 824 pages
    • Publisher: Auerbach Publications (November 20, 2004)
    • Language: English
    • ISBN-10: 0849322138
    • ISBN-13: 978-0849322136
    • Product Dimensions: 10.2 x 7.1 x 2 inches
    • Shipping Weight: 3.6 pounds (View shipping rates and policies)
    • Average Customer Review: 4.0 out of 5 stars  See all reviews (5 customer reviews)
    • Amazon Best Sellers Rank: #2,169,983 in Books (See Top 100 in Books)

    More About the Author

    Dr. YING BAI is a Professor in the Department of Computer Science and Engineering at Johnson C. Smith University located at Charlotte, North Carolina.

    His special interests include: Computer architecture, database programming, mix-language programming, serial port programming, fuzzy logic controls, robots controls and robots calibrations. His industry experience includes positions as software and senior software engineers at companies such as Motorola MMS, Schlumberger ATE Technology, Immix TeleCom, and Lam Research.

    During recent years, Dr. Bai has published more than 30 academic research papers in IEEE Trans. journals and International conferences. He has also published 11 books with publishers such as Prentice Hall, CRC Press LLC, Springer, Cambridge University Press and Wiley-IEEE Press since 2003. Most books are about the software programming, serial port programming, fuzzy logic controls in industrial applications and database programming. His 1st and 8th books were also translated to Russian and Chinese by Prentice Hall in 2005 and by Tsinghua University Press in 2011, respectively.

    Customer Reviews

    Most Helpful Customer Reviews
    14 of 14 people found the following review helpful
    This book offers a very good and exceptionally practical explanation of how to program PC serial ports. In my job, I have to write interfaces to serial devices, and this book gives me the information I need to make quick work of things no matter what language I am using. Within 2 hours I was able to have a running Visual C++ application reading and writing to a device connected to my COM port. The book goes beyond general concepts,with lots of sample code and detailed line-by-line instruction.

    I recommend this book to the student who desires a complete understanding of serial ports, and to the engineer who needs to come rapidly up to speed on how to make use of serial ports in his applications.

    The section regarding the hardware aspects of serial ports provides a good basis of understanding the terminology, and is particularly helpful in understanding all the different protocols that are out there. Also helpful was the explanation of the Windows API functions necessary for serial communication. The author also anticipates problems that may arise along the way and suggests ways to avoid them.
    Comment | 
    Was this review helpful to you?
    4 of 4 people found the following review helpful
    3.0 out of 5 stars Good, but not great September 27, 2007
    Format:Hardcover|Verified Purchase
    This book allows you to quickly learn how to setup serial port communication in your code so you can read and write bytes on serial port.

    However they don't really give you many examples of how to write real world code to interface with serial devices. So if you think this book will help you write the code to communicate with some kind of serial device think again. The book will only give you the foundation for reading and writing serial ports in different programming languages and operating systems. The section on Windows C++ (protected mode) is very limited and most of the information can be found on MSDN.

    The most complicated part of serial programming is the two way communication. They only show examples of single threaded code and a Sputnik's sized blip on OVERLAPPED I\O. Overlapped IO is very important if you need real time two way serial communication where you are reading and writing at the same time your program is performing other tasks. Because you dont always want to block your thread on reads and writes.

    This book is one of the only book out there that targets serial communication. Overall the book is good and covers a history of serial devices, how to establish communication, and reading\writing bytes on the port. The examples in the book are clear however they lack what I would consider real world application.
    Comment | 
    Was this review helpful to you?
    3 of 3 people found the following review helpful
    2.0 out of 5 stars Goes wide but not deep July 19, 2007
    Format:Hardcover|Verified Purchase
    This book tries to cover a large amount of material, and as a result, it only touches on the basics. I was interested in the section on programming serial ports in visual C++ for a windows XP machine. The coverage amounted to 20 pages with no in depth discussion of problems that that might be encountered, and how to troubleshoot them. The book did allow me to do a little bit with serial port communications, but only enough to get me into trouble. I'm still looking for a book that explains how to do this in visual C++ on a Win XP machine. I give it two stars because it is well written, and it does allow the reader to begin to use the serial port.
    Comment | 
    Was this review helpful to you?
    1 of 1 people found the following review helpful
    5.0 out of 5 stars Great for beginner April 11, 2008
    Format:Hardcover|Verified Purchase
    I'm a hardware person who have been dealing with RF devices for almost 10 years. Recently I was commissioned to make a MFC based Visual C++ code to open and communicate the serial port based liquid crystal filter. Since I was not a computer science student, this was really beyond what I expect. After I bought this book with Ivor Horton's Visual C++ 2008, my work was like..'a morning coffee.' It has the line to line explanations, old C++ to VC++ conversions...etc. If you need different language like MATLAB, VB, Labview, it will cover them, too.

    Some people said this book's example is so specific to follow; I don't think so. If you need to open serial port with VC++, that would mean you also have to make some hardware devices or analyze the hardware stuff by yourself.
    Even if I didn't use the example provided by this book, this book gave me the enough example how to test the serial port communication. You can apply this to your own work.

    For testing or making some serial devices, you basically need a multimeter, female or male serial ports, some cables..etc.

    Also, you may have to configure your computer's bios setup.
    Don't miss the CD on the back cover.
    Comment | 
    Was this review helpful to you?
    1 of 3 people found the following review helpful
    5.0 out of 5 stars Great book and awesome following up August 21, 2007
    By S. Lee
    Format:Hardcover|Verified Purchase
    I am a graduate student who has a lot of interest on this field. I was searching for a good reference for my research and found this book. This book contains a lot of details so that even beginners can easily follow. Not only the book is helpful but also the Author is so helpful. I have contacted him by email regarding my question on the book, actually without expecting any response. But he has replied my email many times with great answer, suggestion, and following-up. People like him should really be acknowledged.
    Comment | 
    Was this review helpful to you?
    Search Customer Reviews
    Search these reviews only


    There are no discussions about this product yet.
    Be the first to discuss this product with the community.
    Start a new discussion
    First post:
    Prompts for sign-in

    Look for Similar Items by Category