Serial Port Complete: The Developer's Guide, Second Edition


Book Description

When PCs and peripherals began showing up with USB ports in the late 1990s, many predicted that legacy serial (COM) ports would soon be obsolete. The predictions were wrong. While most standard peripherals now use USB, serial ports are the interface of choice for devices that require simple programming, long cables, operation in harsh environments, or basic networking capabilities. Serial ports are more versatile then ever due to developments such as USB virtual COM ports, the .NET SerialPort class, enhanced microcontroller USARTs, and new wireless interfaces. Serial Port Complete Second Edition is a completely revised and updated guide to programming and interfacing to COM ports, USB virtual COM ports, and serial ports in embedded systems. Author Jan Axelson shows how to: § Access COM ports using the SerialPort class in Microsoft’s .NET Framework. § Program embedded systems for serial-port communications. § Design and program USB devices accessed as virtual COM ports. § Upgrade RS-232 designs to USB with no changes to host software or device firmware. § Design circuits for electrically harsh environments. § Create serial networks of embedded systems and PCs. § Use serial ports in wireless links. Example code is provided for PCs and embedded systems in both Basic and C/C#. The author maintains a website with articles, program code, and other links of interest to developers of serial-port applications (janaxelson.com).




USB Complete


Book Description

Computing: general.




USB Embedded Hosts


Book Description

Developers who want to access USB devices from their embedded systems will find a helpful resource in USB Embedded Hosts: The Developer’s Guide. This new book from the author of USB Complete shows how small systems can take advantage of the same wealth of USB devices available to conventional PCs. The book begins with a review of USB host communication protocols. Readers then learn which USB host requirements are relaxed for embedded systems and what new requirements some embedded systems must meet. To help in selecting a development platform, the book explores available hardware and software for USB host communications in small systems. The heart of the book focuses on communicating with USB devices. The topics (with example code) include USB drives, keyboards, virtual serial ports, network bridges, mics, speakers, video cameras, and printers, plus devices that don’t fit defined USB classes. Also discussed are systems that support both USB host and device functions. The example code is written for the BeagleBoard-xM open development board using a distribution of Linux targeted to small systems. Also covered is how to use Linux commands and utilities to learn about, monitor, and debug communications with USB devices.




C Programmer's Guide to Serial Communications


Book Description

Communications will play a central role in the computer applications of the next decade. The core of these applications is asynchronous serial communication. This book includes both theoretical and practical discussions of this topic, allowing programmers and technically advanced users to build their own C programming library of functions for serial communications.




The Windows Serial Port Programming Handbook


Book Description

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 MATLAB 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.




USB Complete


Book Description

This guide takes the pain out of designing for this popular interface with specific, detailed examples that show how to develop USB devices and the applications that communicate with them. How the USB communicates with the PC, deciding if a project should use a USB interface, choosing a USB controller chip for peripheral design, and determining code with Windows applications are covered in detail.




Introduction to Embedded Systems, Second Edition


Book Description

An introduction to the engineering principles of embedded systems, with a focus on modeling, design, and analysis of cyber-physical systems. The most visible use of computers and software is processing information for human consumption. The vast majority of computers in use, however, are much less visible. They run the engine, brakes, seatbelts, airbag, and audio system in your car. They digitally encode your voice and construct a radio signal to send it from your cell phone to a base station. They command robots on a factory floor, power generation in a power plant, processes in a chemical plant, and traffic lights in a city. These less visible computers are called embedded systems, and the software they run is called embedded software. The principal challenges in designing and analyzing embedded systems stem from their interaction with physical processes. This book takes a cyber-physical approach to embedded systems, introducing the engineering concepts underlying embedded systems as a technology and as a subject of study. The focus is on modeling, design, and analysis of cyber-physical systems, which integrate computation, networking, and physical processes. The second edition offers two new chapters, several new exercises, and other improvements. The book can be used as a textbook at the advanced undergraduate or introductory graduate level and as a professional reference for practicing engineers and computer scientists. Readers should have some familiarity with machine structures, computer programming, basic discrete mathematics and algorithms, and signals and systems.




Programming Embedded Systems


Book Description

Authored by two of the leading authorities in the field, this guide offers readers the knowledge and skills needed to achieve proficiency with embedded software.




Working Effectively with Legacy Code


Book Description

Get more out of your legacy systems: more performance, functionality, reliability, and manageability Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? Do you understand it? If the answer to any of these questions is no, you have legacy code, and it is draining time and money away from your development efforts. In this book, Michael Feathers offers start-to-finish strategies for working more effectively with large, untested legacy code bases. This book draws on material Michael created for his renowned Object Mentor seminars: techniques Michael has used in mentoring to help hundreds of developers, technical managers, and testers bring their legacy systems under control. The topics covered include Understanding the mechanics of software change: adding features, fixing bugs, improving design, optimizing performance Getting legacy code into a test harness Writing tests that protect you against introducing new problems Techniques that can be used with any language or platform—with examples in Java, C++, C, and C# Accurately identifying where code changes need to be made Coping with legacy systems that aren't object-oriented Handling applications that don't seem to have any structure This book also includes a catalog of twenty-four dependency-breaking techniques that help you work with program elements in isolation and make safer changes.




Parallel Port Complete


Book Description

This book is for programmers, hardware designers, and anyone who uses the PC's parallel port to communicate with printers and other peripheral devices. The tips, tools, and examples in this complete reference will save you time, spark new ideas for your own projects, and help you use all of a port's abilities - including the new high-speed, bidirectional modes.