Making_Things_Talk_Tom_Igoe_OReilly.pdf

(66939 KB) Pobierz
Making Things Talk: Practical Methods for Connecting Phisical Objects
Make: PROJECTS
a In
Practical
Methods for
Connecting
Physical Objects
In s a
207346791.002.png
207346791.003.png
1
In
In
First Edition
Tom Igoe
Q'REILLY@
BEIJING' CAMBRIDGE' FARNHAM· KOlN • PARIS· SEBASTOPOL' TAIPEI' TOKYO
207346791.004.png
207346791.005.png
Contents
Preface ....................••.•....••...••....•...•••....•....•••..••....•.........VIII
Who This Book Is For ..........•....•••.....••.......... , .•••••............................•. X
What You Need To Know .....••..............................................................XI
Contents of This Book .............•••• _. ....•.. .•• . ..............•...•.........XI
On Buylns Parts ....................•...................................................... XII
Using Code Exalllp/es . . . . . . . • • • . . . . •• • . . . • . • • . . . • . . . . . . . • . .•• • • . . . . . . . . .. • ..•••.....•••.• XIII
USing Circuit EJcamples .....••••.........•••••..••..........••••........••.•..•••.......... XIII
Acknowledgments •..•••••.•••••..•••.••.••••..••.....••..••••..•..•......•..•••... __ ..... XIV
We'd Like to Hear from You ..•••..•..••....•••..•..•........•••...•••.........•••...........XV
Chapter 1: The Tools .•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• 16
It Starts with the Stuff You Touch , , , , .....••.......... , •................ 18
It's About Pulses , . . . . . . . . . . . . . . . . . . . . . . , 18
Computers 01 All Shapes and Sizes ............................•.................. , ........•. 19
Good Habits.... . . .••••. . ...•. . .•••. . . .•....••.. . ••.•...•••..•••....••.... _•.. .• 20
Tools 21
USing the Command line.....................................•.............................28
It Ends with the Stuff You Touch ••••.........•...... _...........••........................... 47
Chapter 2: The Simplest Network .•••.•.........••....•..•.•••...•..•.•....•••.•....•. 48
Layers of Aareement. . . . . . . .•..... • •..•.•....•.... 50
Making the Connection: The Lower Layers..........•..... , , •••...............••........ ,. 52
Saying Something: The Application Layers .... , , , .....•....••...........•....• , , , ••... 56
Project 1: Monski Pong " , •....•.... ", , , , •..... ' •... , , •.......... , , 56
Flow Control. " •.. , , •.....••.... , •....•......•... , ••.......... , ••.. ' •..... , •.............. 68
Project 2: Wireless Monski Pong, .....•.•....•.... , ...........•••......•....•.............. 71
Project 3: Negotiating in Bluetooth ...•.•....•...............••••.......................... 75
Conclusion. . . . . . • . • . . • . . . . . . . . . • . . . . . . . • . . . . . . . .. . . . . . . . . . . . • •• • . . . . . . . . . . . . . . . . . . . . . . . .. 78
Chapter 3: A More Complex Network ...•........•••..••....•..•••••..••.•••••.•.•••... 80
Network Maps and AddresseS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . 82
Clients. servers. and Message Protoculs ••••.••••••. , •••..••...•••••.••..........•.••........ 87
Project 4: A Networked Cat •......•...••......... , , , , , 94
Conclusion ... , .....•..........................................••.......................•..112
207346791.001.png
Zgłoś jeśli naruszono regulamin