MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Cricket
Tutorial on using cricket location system
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 2
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.
Preserve user’s privacy
Big-brother can be a bother
user has choice to reveal location
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 3
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
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Cricket: Private location-
support
Beacon
Listener
space = “a1”
space = “a2”
Pick nearest to
infer space
No central beacon control or location
database
Passive Listeners + Active Beacons
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 5
Finding the distance
distance = speed * time
want to find the distance
we know the speed
How do we figure out time?
Radar: measure round-trip
time
cannot use it as it violates some goals
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 6
Finding the distance
Synchronized clocks
receiver knows exactly when
transmitter sent signal
how about sending signal
first to sync clocks and
then 2nd signal?
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 7
Finding the distance
Use two different speed
signals
both start at same time
d = s1 * t1 d
= s2 * t2
We measure delay: m =
t1 - t2
t2 = m * s1/(s2 - s1)
d = m * s2 s1
/(s - s )
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 8
Location Estimation
• Distance estimation via coupled RF and
ultrasonic signals
– Beacons send information on the RF channel with concurrent
ultrasonic pulse
RF info
Beacon
Listener
Ultrasound
(pulse)
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 10
Multiple Beacons
• 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
Beacon A Beacon B
t
RF B RF A US B US A
Incorrect distance
Listener
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 11
Solution
Carrier-sense + randomized
transmission
reduce chance of concurrent
beacons
Bounding stray signal interference
envelop all ultrasonic signals
with RF
Listener inference algorithm
Processing distance samples to
estimate location
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 12
Bounding Stray Signal
Interference
• Engineer RF range to be larger than ultrasonic
range
– Ensures that if listener can hear ultrasound, corresponding RF
will also be heard
tRF A US A
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 13
Bounding Stray Signal
Interference
t
S/b
r/v (max)
S = size of space advertisement
b = RF bit rate
r = ultrasound range
v = velocity of ultrasound
(RF transmission time) (Max. RF-US separation at the listener)
S r
b v
• No “unaccompanied” ultrasonic signal can be valid!
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 14
Bounding stray signal interference
• Envelop ultrasound by RF
• Interfering ultrasound causes RF signals to
collide
• Listener does a block parity error check
– The reading is discarded...
tRF A US A
RF B US B
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 15
Problem: Closest Beacon May
Not Reflect Correct Space
I am at
B
Room A Room B
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 16
Correct Beacon Placement
Room A Room B
x x
I am at
A
• Position beacons to detect the boundary
• Multiple Beacons per space are possible
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 17
Implementation
• Cricket beacon and listener
Micro-
controller
RF
US
Micro-
controller
RF
US
RS232
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 18
Cricket v1 PrototypeUltrasonic
sensor
RF antennaRF module (rcv)
Atmel
processor
Listener Beacon
RF module (xmit)
RS232
i/f
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 20
Cricket Beacon LEDs
Debug Switch = UP
Green LED = Transmit
Red LED = Carried
Sensed
Debug Switch = Down
Green LED = Every 5
th
transmission
At Startup
LEDs flash version
number
Red on, Green flash
count = Major #
Green on, Red flash
count = Minor #
Power Switch
Up = On
Power
Switch
On
Off
Debug SwitchBeacon ID
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 21
Cricket Beacon Antennas
Receive Antenna
For sensing
transmission of
other beacons
Transmit Antenna
Limit
transmission
distance
Should not
touch
ultrasound
Should not
cover receive
antenna
Transmit antenna
Receive antenna
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 22
Listener LEDsGreen Flash
Received valid RF and
ultrasound
Red Flash Once
Received Radio, but not
ultrasound
Red+Green Flash
RF Error (e.g.,
parity error)
Red and Green always
on
Listener not working
correctly
Power On
Both LEDs flash
together once
Off On
Power Switch
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 23
Software Components
Cricket
Listener cricketd
Application 1
Application 2
Application 3
Cricket
Beacon
1
Cricket
Beacon
2
Binary Data
Over RF
ASCII data
over serial port
9600 baud
ASCII data
on TCP sockets (port 2947)
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 24
cricketd
Background program (demon) that reads serial
port and writes data to a socket
Command line arguments (defaults work
correctly on ipaq)
-T k Version 3 Listeners (with LEDs)
(default)
-T c Version 2 Listeners (without LEDs)
-S <port> Socket port number (default is 2947)
-p <dev> Serial port device name (default
“/dev/ttySA0”)
-s <baud> Baud rate of serial port (default is
9600)
-h Help
-D <num> Debug level
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 25
Cricket Listener OutputStrings reported from Listeners
When good RF and good ultrasound pulse
heard:
“$Cricket2,ver=3.0,space=MIT7,id=20,dist=4F,duration=1
A”
When only good RF heard, no ultrasound
heard:
“$Cricket2,ver=3.0,space=MIT7,id=20”
When RF detected, but parity error
detected:
“$Cricket2,ver=3.0,err=rf”
t
dist
duration
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 26
Speed of Sound
Listener reports distance and duration in
15.625 KHz counter cycles ( 64 microseconds
each).
Assume speed of sound is 344.49 m/s then
22.047 mm/cycle
For 343.75 m/s = 22 mm/cycle
Need to subtract 36 units for delay from end
of RF to start of US transmission.
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
So where are you?
Telnet to cricketd (on correct
port)
Get names of beacons within
range
Get distances from beacons
Lookup beacon location in
database
Or use beacon name (longer
transmission)
Triangulate (compensate for
temp)
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
So whre are you?
Beacon name may tell you room
That may be enough
May want to know relative
movements
As you walk around the room
No climbing on tables
Can you do it using two beacons?
Can you do it without
calibration?
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial
Two beacons
Put them along the wall
Come very close to one of them
Now know distance between them
Given distances from both
Before and now (d1,d2) &
(e1,e2)
Can find relative movement
Two solutions! No problem,
why?
Ex. Doom virtual world
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 30
Orientation
Orientation relative to B
on horizontal plane
Mobile device
(parallel to horizontal plane)
Beacons on
ceiling
Cricket listener with
compass hardware
MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 31
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

More Related Content

PPT
PPT
Tutorial 8 Cricket
PDF
FermiPoster
PDF
Getting started with sdr
PPT
15 03-0447-00-003a-fast-fir-filter-structure
PPT
Williams_FR1_TO4_5_2011_07_29v1.ppt
PPTX
Extended Upstream - The heat is on!
PDF
Radar 2009 a 5 propagation effects
Tutorial 8 Cricket
FermiPoster
Getting started with sdr
15 03-0447-00-003a-fast-fir-filter-structure
Williams_FR1_TO4_5_2011_07_29v1.ppt
Extended Upstream - The heat is on!
Radar 2009 a 5 propagation effects

What's hot (11)

PPTX
Radar presentation
PDF
Precision clock synchronization_wp
PDF
Radar 2009 a 4 radar equation
PPTX
radar and radar management
PPT
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
PPTX
Digital Radar Processing and the New Low Power Radars
PPTX
Precision Time Protocol
PPS
Digital processing of today’s radar signals
PDF
Time Synchronisation
DOCX
ROHINI RADAR
Radar presentation
Precision clock synchronization_wp
Radar 2009 a 4 radar equation
radar and radar management
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
Digital Radar Processing and the New Low Power Radars
Precision Time Protocol
Digital processing of today’s radar signals
Time Synchronisation
ROHINI RADAR
Ad

Viewers also liked (16)

PPT
Content to 8 channel types http://awaren.us/plarFM
PPT
more testing http://4rd.ca/aaamrg
PDF
http://on.wsj.com/VOaOwv More cars on the road! Yay!
PDF
Only SlideShare. Thirukurral
PDF
Standard Smoke
PDF
Rivalry between LinkedIn and FB, really? http://awaren.us/NlFakL
PDF
8 channels, future to past future http://awaren.us/H3Wrzw
PDF
Content to all channels
PPS
Sed sagittis magna nec leo feugiat adipiscing. Sed malesuada massa at leo con...
PDF
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
PPT
This is just for slideshare
PPT
Content to all channels, scheduled for tomorrow http://qa.us/aaabcy
PDF
Hello Cbot! http://awaren.us/MphUVB
PDF
FB, SS (4 files), Twitter http://q.4rd.ca/aaacmD #Sore
PDF
SS alone
PDF
#MegaMillion ways to ensure you #Win! http://q.4rd.ca/aaacxf
Content to 8 channel types http://awaren.us/plarFM
more testing http://4rd.ca/aaamrg
http://on.wsj.com/VOaOwv More cars on the road! Yay!
Only SlideShare. Thirukurral
Standard Smoke
Rivalry between LinkedIn and FB, really? http://awaren.us/NlFakL
8 channels, future to past future http://awaren.us/H3Wrzw
Content to all channels
Sed sagittis magna nec leo feugiat adipiscing. Sed malesuada massa at leo con...
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
This is just for slideshare
Content to all channels, scheduled for tomorrow http://qa.us/aaabcy
Hello Cbot! http://awaren.us/MphUVB
FB, SS (4 files), Twitter http://q.4rd.ca/aaacmD #Sore
SS alone
#MegaMillion ways to ensure you #Win! http://q.4rd.ca/aaacxf
Ad

Similar to I am omnipresent (20)

PPT
Content Everywhere
PPT
Smoke Smoke
PPT
Tutorial 8 Cricket
PPT
New content everywhere
PPT
QA to all channels
PPT
This is only for slideshare!
PPT
All channels but BasicQA
PPT
Its 4:06 on a friday
PPT
First Staging Content to all channels
PDF
introduction and classification to radar.pdf
PPTX
Hand Gesture Recognition for an Off-the-Shelf Radar by Electromagnetic Modeli...
PDF
Radar 2009 a 4 radar equation
PPTX
TH2_T03_2_igarss2011.pptx
PPT
rao-vlsi-comm-09 (1).ppt
PDF
Principles of RADAR Systems
PDF
PPT
UCF Wireless SAW Sensor Systems
PDF
BEng Project Report
PDF
Digital Techniques For Wideband Receivers 3rd Ed Cheng Chihao Tsui
PDF
Introduction to RADAR by NI
Content Everywhere
Smoke Smoke
Tutorial 8 Cricket
New content everywhere
QA to all channels
This is only for slideshare!
All channels but BasicQA
Its 4:06 on a friday
First Staging Content to all channels
introduction and classification to radar.pdf
Hand Gesture Recognition for an Off-the-Shelf Radar by Electromagnetic Modeli...
Radar 2009 a 4 radar equation
TH2_T03_2_igarss2011.pptx
rao-vlsi-comm-09 (1).ppt
Principles of RADAR Systems
UCF Wireless SAW Sensor Systems
BEng Project Report
Digital Techniques For Wideband Receivers 3rd Ed Cheng Chihao Tsui
Introduction to RADAR by NI

Recently uploaded (20)

PDF
ICv2 White Paper - Gen Con Trade Day 2025
PDF
Ron Thomas - Top Influential Business Leaders Shaping the Modern Industry – 2025
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PDF
PMB 401-Identification-of-Potential-Biotechnological-Products.pdf
PDF
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
PDF
Booking.com The Global AI Sentiment Report 2025
PPTX
operations management : demand supply ch
PDF
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
PDF
Daniels 2024 Inclusive, Sustainable Development
PPTX
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx
PDF
Kishore Vora - Best CFO in India to watch in 2025.pdf
PDF
income tax laws notes important pakistan
DOCX
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
PDF
Introduction to Generative Engine Optimization (GEO)
PPTX
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
PDF
Robin Fischer: A Visionary Leader Making a Difference in Healthcare, One Day ...
PDF
Satish NS: Fostering Innovation and Sustainability: Haier India’s Customer-Ce...
PPTX
interschool scomp.pptxzdkjhdjvdjvdjdhjhieij
PPTX
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
PPTX
Astra-Investor- business Presentation (1).pptx
ICv2 White Paper - Gen Con Trade Day 2025
Ron Thomas - Top Influential Business Leaders Shaping the Modern Industry – 2025
Slide gioi thieu VietinBank Quy 2 - 2025
PMB 401-Identification-of-Potential-Biotechnological-Products.pdf
#1 Safe and Secure Verified Cash App Accounts for Purchase.pdf
Booking.com The Global AI Sentiment Report 2025
operations management : demand supply ch
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
Daniels 2024 Inclusive, Sustainable Development
TRAINNING, DEVELOPMENT AND APPRAISAL.pptx
Kishore Vora - Best CFO in India to watch in 2025.pdf
income tax laws notes important pakistan
Handbook of Entrepreneurship- Chapter 5: Identifying business opportunity.docx
Introduction to Generative Engine Optimization (GEO)
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
Robin Fischer: A Visionary Leader Making a Difference in Healthcare, One Day ...
Satish NS: Fostering Innovation and Sustainability: Haier India’s Customer-Ce...
interschool scomp.pptxzdkjhdjvdjvdjdhjhieij
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
Astra-Investor- business Presentation (1).pptx

I am omnipresent

  • 1. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial Cricket Tutorial on using cricket location system
  • 2. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 2 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. Preserve user’s privacy Big-brother can be a bother user has choice to reveal location
  • 3. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 3 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
  • 4. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial Cricket: Private location- support Beacon Listener space = “a1” space = “a2” Pick nearest to infer space No central beacon control or location database Passive Listeners + Active Beacons
  • 5. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 5 Finding the distance distance = speed * time want to find the distance we know the speed How do we figure out time? Radar: measure round-trip time cannot use it as it violates some goals
  • 6. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 6 Finding the distance Synchronized clocks receiver knows exactly when transmitter sent signal how about sending signal first to sync clocks and then 2nd signal?
  • 7. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 7 Finding the distance Use two different speed signals both start at same time d = s1 * t1 d = s2 * t2 We measure delay: m = t1 - t2 t2 = m * s1/(s2 - s1) d = m * s2 s1 /(s - s )
  • 8. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 8 Location Estimation • Distance estimation via coupled RF and ultrasonic signals – Beacons send information on the RF channel with concurrent ultrasonic pulse RF info Beacon Listener Ultrasound (pulse)
  • 9. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 10 Multiple Beacons • 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 Beacon A Beacon B t RF B RF A US B US A Incorrect distance Listener
  • 10. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 11 Solution Carrier-sense + randomized transmission reduce chance of concurrent beacons Bounding stray signal interference envelop all ultrasonic signals with RF Listener inference algorithm Processing distance samples to estimate location
  • 11. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 12 Bounding Stray Signal Interference • Engineer RF range to be larger than ultrasonic range – Ensures that if listener can hear ultrasound, corresponding RF will also be heard tRF A US A
  • 12. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 13 Bounding Stray Signal Interference t S/b r/v (max) S = size of space advertisement b = RF bit rate r = ultrasound range v = velocity of ultrasound (RF transmission time) (Max. RF-US separation at the listener) S r b v • No “unaccompanied” ultrasonic signal can be valid!
  • 13. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 14 Bounding stray signal interference • Envelop ultrasound by RF • Interfering ultrasound causes RF signals to collide • Listener does a block parity error check – The reading is discarded... tRF A US A RF B US B
  • 14. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 15 Problem: Closest Beacon May Not Reflect Correct Space I am at B Room A Room B
  • 15. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 16 Correct Beacon Placement Room A Room B x x I am at A • 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 17 Implementation • Cricket beacon and listener Micro- controller RF US Micro- controller RF US RS232
  • 17. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 18 Cricket v1 PrototypeUltrasonic sensor RF antennaRF module (rcv) Atmel processor Listener Beacon RF module (xmit) RS232 i/f
  • 18. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 20 Cricket Beacon LEDs Debug Switch = UP Green LED = Transmit Red LED = Carried Sensed Debug Switch = Down Green LED = Every 5 th transmission At Startup LEDs flash version number Red on, Green flash count = Major # Green on, Red flash count = Minor # Power Switch Up = On Power Switch On Off Debug SwitchBeacon ID
  • 19. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 21 Cricket Beacon Antennas Receive Antenna For sensing transmission of other beacons Transmit Antenna Limit transmission distance Should not touch ultrasound Should not cover receive antenna Transmit antenna Receive antenna
  • 20. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 22 Listener LEDsGreen Flash Received valid RF and ultrasound Red Flash Once Received Radio, but not ultrasound Red+Green Flash RF Error (e.g., parity error) Red and Green always on Listener not working correctly Power On Both LEDs flash together once Off On Power Switch
  • 21. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 23 Software Components Cricket Listener cricketd Application 1 Application 2 Application 3 Cricket Beacon 1 Cricket Beacon 2 Binary Data Over RF ASCII data over serial port 9600 baud ASCII data on TCP sockets (port 2947)
  • 22. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 24 cricketd Background program (demon) that reads serial port and writes data to a socket Command line arguments (defaults work correctly on ipaq) -T k Version 3 Listeners (with LEDs) (default) -T c Version 2 Listeners (without LEDs) -S <port> Socket port number (default is 2947) -p <dev> Serial port device name (default “/dev/ttySA0”) -s <baud> Baud rate of serial port (default is 9600) -h Help -D <num> Debug level
  • 23. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 25 Cricket Listener OutputStrings reported from Listeners When good RF and good ultrasound pulse heard: “$Cricket2,ver=3.0,space=MIT7,id=20,dist=4F,duration=1 A” When only good RF heard, no ultrasound heard: “$Cricket2,ver=3.0,space=MIT7,id=20” When RF detected, but parity error detected: “$Cricket2,ver=3.0,err=rf” t dist duration
  • 24. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 26 Speed of Sound Listener reports distance and duration in 15.625 KHz counter cycles ( 64 microseconds each). Assume speed of sound is 344.49 m/s then 22.047 mm/cycle For 343.75 m/s = 22 mm/cycle Need to subtract 36 units for delay from end of RF to start of US transmission.
  • 25. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial So where are you? Telnet to cricketd (on correct port) Get names of beacons within range Get distances from beacons Lookup beacon location in database Or use beacon name (longer transmission) Triangulate (compensate for temp)
  • 26. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial So whre are you? Beacon name may tell you room That may be enough May want to know relative movements As you walk around the room No climbing on tables Can you do it using two beacons? Can you do it without calibration?
  • 27. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial Two beacons Put them along the wall Come very close to one of them Now know distance between them Given distances from both Before and now (d1,d2) & (e1,e2) Can find relative movement Two solutions! No problem, why? Ex. Doom virtual world
  • 28. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 30 Orientation Orientation relative to B on horizontal plane Mobile device (parallel to horizontal plane) Beacons on ceiling Cricket listener with compass hardware
  • 29. MIT 6.893; SMA 5508 Spring 2004 Larry Rudolph Lecture Cricket tutorial 31 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