TCP/IP LEAN: WEB SERVER FOR EMBEDDED SYSTEMS 2ED
Ouvrage 9781578201082 : TCP/IP LEAN: WEB SERVER FOR EMBEDDED SYSTEMS 2ED
TCP/IP Lean should be listed in the 'What's New'
page at the top of the 'Embedded
Systems' category
Key Benefits
Implement dynamic Web programming techniques
for Web appliances.
Internet programming demystified! This is a
hands-on guide to TCP/IP networking that
includes source code to a simple TCP/IP stack - a
lean version that is easier to present
and efficient enough to use in embedded
applications.
Create a small, stand-alone TCP/IP stack with an
embedded Web server. Aided by the
author's abundant source code examples and
fully-functional utilities, you will learn about,
and experiment with, the simpler aspects of
internetworking, before tackling the TCP
protocol itself. The author offers an intensely
practical approach, while still providing an
in-depth understanding of the TCP/IP protocol
family. At each stage of the book, you will
consolidate your understanding through
experimentation with suitable software utilities.
Along the road to mastering the creation of complex
network software, you will:
learn about key networking and multimedia
technologies
experiment with the code for fully-debugged
protocol software
explore and extend the professionally-written
software
employ ready-to-use utilities for simulating
and testing networks
build the protocols from the ground up
speed your future network development with a
powerful set of tools and utilities
meet the challenge of providing advanced Web
features on low-cost embedded
systems
Embedded Web servers are the order of the day: _
industrial equipment and domestic
appliances are being designed with browsers to
provide a user interface and remote
diagnostic capability. This book meets the
challenge of implementing dynamic Web pages
on small-scale embedded systems, providing full 'C'
source code for the PC hardware
platform and a PIC microcontroller.
Software provided on the accompanying CD-ROM is
compatible with several popular 'C'
compilers to simplify desktop development.
Jeremy Bentham is co-founder of an industrial
networking company (Io Ltd.) and its
software consulting offshoot Iosoft Ltd., in
Cambridge, England. An engineer by training, he
has developed many computer systems in railway
control and other industrial applications
and a wide range of software tools for embedded
systems. Networking projects included
Bitup, a Bitbus emulation for the 80188 processor;
data transfer protocols using Arcnet and
Ethernet; and a full 801888-based remote-boot
communications system using the simpler
TCP/IP protocols (UDP and TFTP). Recent work has
been in implementing embedded
TCP/IP systems in aerospace, air quality and video
surveillance applications. In his spare
time, Jeremy enjoys playing racquet sports and is a
keen amateur actor.
Table of Contents
Preface
The Lean Plan
Embedded Systems
The Hardware
The Network
The Operating System
The Development Environment
The Software
Acknowledgments
Introduction
The Lean Plan
Getting Started
Network Configuration
Compiler Configuration
Software Introduction
Network Hardware
Serial Hardware Characteristics
Network Hardware Characteristics
Device Drivers
Serial Driver Requirements
Ethernet Driver Requirements
Generic Driver Functions
Configuration File Format
Process Timer
State Machines
Telephone State Machine
Buffering
FITO Buffer
Polygonal Buffer
Coding Conventions
Data Types
Source Code Format
Introduction to Protocols: Scratchp
Overview
Protocol
Standardization
SCRATCHP Services
Client-Server Model
Logical Connections
Opening and Closing a Connection
Data Flow in a Connection
Packet Format
Internal Storage
Addressing
Protocol Identification
Multiplexing and Buffering
Byte Swapping
Reception and Transmission
Implementation
ident Command
Connection
Summary
Source Files
Scratchp Utility
Network Addressing and Debugging
Overview
Internetworks
IP Addresses
Address Resolution
Slip Addressing
Ethernet Addressing
ARP Scanner
Implementation
Node
Command-Line Processing
Configuration File and Network
Initialization
Main Loop
Packet Checking and Formatting
Using ARPSCAN for Network Debugging
Protocol Analyzer
Oscilloscope
NETMON Network Monitor
Ethernet 2
IEEE 802.3 Networks
802.3 Snap Support
802.3 Snap in Action
Summary
Source Files
ARPSCAN Utility
NETMON Utility
The Network Interface: IP and ICMP
Overview
TCP/IP Stack
IP Datagram
IP Header
IP Implementation
Internet Control Message Protocol
ICMP Message Functions
Ping Implementation
Main Program
Transmit Function
Receive Function
Sender's Address
Ping in Action
Router Implementation
Interfaces
Routing Algorithm
Main Loop
Router in Action
Summary
Source Files
Ping Utility
Router Utility
User Datagram Protocol: UDP
Overview
Ports and Sockets
Well-Known Ports
Sockets
Datagram Format
UDP Checksum
IP Pseudoheader
Disabling the UDP Checksum
UDP Utility
Implementation
Experimenting with the Datagram Utility
Summary
Source Files
Datagram Utility
Transmission Control Protocol: TCP
Overview
TCP Concepts
Sequence and Acknowledgment Numbers
TCP State Machine
Segment Format
TCP Options
TCP Implementation
TCP States
Segment Reception and Transmission
Socket Data
Sequence and Acknowledgment Values
TCP State Machine
Incoming Segment Demultiplexer
Retransmission
TCP Application --- Telnet
Network Virtual Terminal --- NVT
Option Negotiation
Telnet Implementation
TCP Callbacks
Telnet Client Initialization
Main Loop
Closing Connections
Polling
Telnet Display
Telnet Client Callback
Telnet Server Callback
Using Telnet
Daytime Protocol
Dropping Frames
Conclusion
Source Files
Telnet Utility
Hypertext Transfer Protocol: HTTP
Overview
HTTP Get Method
Request
Response
Content-Types
File Extensions
Simple Web Server
Webserve
HTTP Header Tests
Introducing HTML
HTML Tags
HTML Document
Clickable File Directory
Implementation
Buffer Overflow
State Machine Implementation
Tabular Graphics
Summary
Source Files
Webserve Utility
Embedded Gateway Interface: EGI
Overview
Interactive Displays
Switch and Lamp
Array of Switches and Lamps
Standard CGI interface
Linux CGI
DOS Embedded Gateway Interface (EGI)
EGI Implementation
Application-Specific Code
URL Decoding
Finding the EGI Handler
Interactive Switches and Lamps
EGI Code
Interactive Analog Controls
Summary
Source Files
Web_Egi Utility
Miniature Web Server Design
Overview
Microcontroller Software Development
Hardware
PIC 16C76/16F876
External Memory
Network Interface
Development Environment
Compiler
Emulator or Debugger
Software Techniques
RAM Limitation
Checksums
Reception
Blocking
Web Server Protocols
HTTP Request
HTTP Response
TCP
IP
ICMP
SLIP
Modem Driver
Summary
TCP/IP on a PIC Microcontroller
Overview
Peripherals
External Memory
Digital Outputs
Temperature Sensor
Digital Inputs
Real-Time Clock
Block Diagram
Circuit Diagram
Low-Level Software
CPU Identification
Data Types
Serial Drivers
12C Drivers
Parallel I/O
Timers
SLIP and IP Drivers
SLIP Receive
SLIP Transmit
Modem Emulation
Protocol Parsing
IP Receive
IP Transmit
ICMP
ICMP Receive
ICMP Transmit
Pinging PICWEB
TCP
TCP Receive
TCP Transmit
TCP Sequencer
Daytime Service
Summary
Source Files
PICWEB: Miniature Web Server for the PIC
Overview
Web Server
Simple Text Server
TCP Transaction Log
ROM File System
E2ROM Access Cycle
File System Structure
Programming the E2ROM
Finding a File in ROM
Revised HTTP Handler
Using the PICWEB Server
Dynamic Content
Variable Substitution
Checksum Balancing
Counterbalanced Variables
Dynamic Web Pages
HTML Form Variables
Digital Outputs
Boolean Variable Substitution
Digital Inputs
PICWEB Variable Substitution Code
Status Page
Summary
PICWEB
WEBROM Source Files
WEBROM Utility
Appendix A Configuration Notes
Network Configuration
Direct-Drive Network Card
Serial Link
Packet Driver
Addressing
Testing the Network
Windows SLIP Configuration
Appendix B Resources
Publications
Hardware
Software
Appendix C Software on the CD-ROM
ARPSCAN
DATAGRAM
NETMON
PICWEB
PING
ROUTER
SCRATCHP
TELNET
WEBROM
WEBSERVE
WEB_EGI
Function Index
Stucture Index
Index
What's on the CD-ROM?
Auteur : BENTHAM
Editeur : R\&D
Nombre de pages : 558
Date de publication : 04 2002
Toute la sélection
Toutes les sélections
Toute la sélection
Site réalisé en partenariat avec Courbis
(Courbis - alternate link), acteur de l'Internet depuis 1988...