Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Cricket Goals
Research prototype build and then evaluate Useful mainly indoor environments walls, ceilings not too far Recognize spaces, not just physical position good boundary detection is important
doors, floors, etc.
2 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Features
Distributed architecture
No wired infrastructure
Easy deployment (no satellites) Low maintenance Users are not tracked Listeners are passive Large number of listeners w/o interference Integrates with a wide range of resource discovery systems
3 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
space = a2
Beacon space = a1 Pick nearest to infer space
Listener
Spring 2004
Larry Rudolph
5 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Synchronized clocks receiver knows exactly when transmitter sent signal how about sending signal first to sync clocks and then 2nd signal?
6 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
d = s1 * t1
We measure delay:
d = s2 * t2
m = t1 - t2
t2 = m * s1/(s2 - s1) d =
MIT 6.893; SMA 5508 Spring 2004
m * s2 s1 /(s2 - s1)
7 Larry Rudolph Lecture Cricket tutorial
Location Estimation
Distance estimation via coupled RF and ultrasonic signals
Beacons send information on the RF channel with concurrent ultrasonic pulse
Beacon
RF info
Ultrasound (pulse)
Listener
8 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Multiple Beacons
Beacon A Beacon B
Beacon transmissions are uncoordinated Ultrasonic signals reflect heavily Ultrasonic signals are pulses (no data) These make the correlation problem hard and can lead to incorrect distance estimates
10 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Solution
Carrier-sense + randomized transmission reduce chance of concurrent beacons
11 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
RF A
US A
12 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
S b
(RF transmission time)
r v
(Max. RF-US separation at the listener)
13 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
RF A
US A
Envelop ultrasound by RF Interfering ultrasound causes RF signals to collide Listener does a block parity error check The reading is discarded...
14 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
I am at B
15 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Room B
x
Position beacons to detect the boundary Multiple Beacons per space are possible
16 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Implementation
RF RF Microcontroller US US RS232
Microcontroller
17 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
CricketUltrasonic v1 Prototype
sensor RF module (rcv) RF module (xmit) RF antenna
Listener
Beacon
18 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
At Startup
LEDs flash version number
Red on, Green flash count = Major # Green on, Red flash count = Minor # Power Switch On Off
Power Switch Up = On
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph
Beacon ID
Lecture Cricket tutorial
Debug Switch
20
Transmit antenna
21 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Listener LEDs
Green Flash
Received valid RF and ultrasound
Red+Green Flash
RF Error (e.g., parity error)
Power On
Both LEDs flash together once
Software Components
ASCII data over serial port 9600 baud
Cricket Beacon 1
Cricket Listener
Application 1
cricketd
Application 2
Cricket Beacon 2
Application 3
23 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
cricketd
Background program (demon) that reads serial port and writes data to a socket Command line arguments (defaults work correctly on ipaq)
-T k -T c Version 3 Listeners (with LEDs) (default) Version 2 Listeners (without LEDs)
-S <port> Socket port number (default is 2947) -p <dev> Serial port device name (default /dev/ttySA0) -s <baud> -h Help Debug level -D <num> Baud rate of serial port (default is 9600)
24 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
dist
duration
25 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Speed of Sound
Listener reports distance and duration in 15.625 KHz counter cycles ( 64 microseconds each).
26 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Spring 2004
Larry Rudolph
Spring 2004
Larry Rudolph
Two beacons
Put them along the wall Come very close to one of them
Spring 2004
Larry Rudolph
Orientation on Beacons
ceiling
Orientation relative to B on horizontal plane Cricket listener with compass hardware Mobile device (parallel to horizontal plane)
30 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Hardware Design
http://nms.lcs.mit.edu/projects/cricket http://nms.lcs.mit.edu/cricket/fab Need user & password http://nms.lcs.mit.edu/cricket/distrib Need user & password
31 MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial