Get the information you need for programming applications in the rich, managed-code environment of the Microsoft .NET Micro Framework. You’ll learn how to extend your experience with the .NET Framework and Microsoft Visual C# through real-world examples, expert insights, and code samples—and efficiently build robust applications for the smallest devices.
Discover how to:
Use an object-oriented approach for programming embedded devices
Create input and output port objects
Develop detailed text and graphical displays that support complex user interactions
Add Windows SideShow functionality into your application
Implement functionality from existing applications to embedded applications
Bind physical hardware events to Windows Presentation Foundation elements
Establish embedded-network connections using TCP/IP
Use emulation techniques for rapid-prototyping, experimentation, testing, and debugging
Optimize performance of resource-constrained devices
PLUS—Get code samples in Visual C# on the Web
Preliminaries
Chapter 1 Small, Connected Devices Built on the .NET Micro Framework
Why Did Microsoft Create the .NET Micro Framework?
How Does the Framework Fit with Microsoft's Embedded Products?
What Is the .NET Micro Framework?
Conclusion
Chapter 2 Introduction to .NET and the .NET Micro Framework
.NET and the .NET Micro Framework
Conclusion
Chapter 3 Getting Started
Integrating with Visual Studio
Installing the .NET Micro Framework SDK
Creating a New Project
Project Settings
The Default C# Code
Building, Deploying, and Executing
Interactive Debugging
Deploying to a Target Device
Conclusion
Making the .NET Micro Framework Work for You
Chapter 4 Building a Device
The Ultimate Flashlight
Driving the Output
An Input-Port Object
A Complete Program—Our First Flashlight
Inputs with Events
A Complete Program—A Flashlight Using Interrupts
Implementing a Flashlight-Finder Feature Using Threads
Implementing a Flashlight-Finder Feature Using a Timer
A Data-Logging Flashlight
Conclusion
Chapter 5 Developing for the .NET Micro Framework
Retaining Data
Building Device Software Components
Programming for Performance
Conclusion
Chapter 6 Networking
Getting Connected
Client/Server Model
Peer-to-Peer Model
Microsoft.SPOT.Net
TCP/IP Programming with Sockets
The System.Net Namespace
System.Net.Sockets Namespace
Building a Connected Flashlight
Conclusion
Chapter 7 Creating an Interface Display
The Bitmap Class
Drawing Shapes
Adding Resources to a .NET Micro Framework Project
Image Drawing
Image Scaling
Drawing Text
The Application Class
Windows and Display Elements
The Display Element Hierarchy
Displaying Text
Displaying Images
User Input and Events
Creating a Working User Interface
Conclusion
Chapter 8 Using SideShow as a User Interface
What Does a SideShow Device Do?
SideShow Device Management
SideShow Devices and Gadget Applications
Creating and Deploying SideShow Applications
SideShow Content and Endpoints
Displaying Notifications
Creating a SideShow Menu Page
A Pop-up Menu Display
Creating a SideShow Dialog Page
SideShow Device Events
Using SideShow Devices
Conclusion
Chapter 9 Developing with the Emulator
The Extensible Emulator
Conclusion
Projects
Chapter 10 Controlling a Robot
The Hardware Platform
A Robot-Control Project
Conclusion
Chapter 11 From Prototype to Product: Case Studies
Case Study 1: EmbeddedFusion Ball-In-Maze Game
Case Study 2: Vista SideShow
Conclusion
Glossary
Title:
Embedded Programming with the Microsoft® .NET Micro Framework
Donald Thompson is Director of Engineering for Microsoft Research. He is responsible for overseeing the software, protocols, and technology strategy that fueled the Smart Personal Objects Technology (SPOT) initiative. He also helped build the system that places advertisements on all MSN Web properties.
Rob Miles
Rob Miles has been teaching computer programming for more than 25 years. An expert on Visual C#® and a Microsoft® MVP for Device Application Development, Rob enjoys inspiring new and experienced programmers. As well as writing his own games, programs, and poetry, Rob has consulted on a wide range of commercial software projects.
Comments about oreilly Embedded Programming with the Microsoft® .NET Micro Framework:
I'm using this book as a textbook for our "Embedded System" class. I strongly recommend this book and the topic for undergraduate senior year selective course. If you have one.