Presentation is loading. Please wait.

Presentation is loading. Please wait.

Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © 2008 1 BeepBeep: A High Accuracy Acoustic Ranging System using COTS Mobile Devices Chunyi.

Similar presentations


Presentation on theme: "Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © 2008 1 BeepBeep: A High Accuracy Acoustic Ranging System using COTS Mobile Devices Chunyi."— Presentation transcript:

1 Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © 2008 1 BeepBeep: A High Accuracy Acoustic Ranging System using COTS Mobile Devices Chunyi Peng, Guobin Shen, Yongguang Zhang, Yanlin Li, Kun Tan Microsoft Research Asia SenSys 2007 Presented by Jeffrey May 12, 2008

2 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 2

3 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 3

4 Network and Systems Laboratory nslab.ee.ntu.edu.tw Abstract Acoustic Ranging System High Accuracy COTS Mobile Devices Commercial-off-the-Shelf (COTS) Cell phones, PDAs, MP3 players Copyright © 2008 4

5 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 5

6 Network and Systems Laboratory nslab.ee.ntu.edu.tw Introduction High accuracy ranging using only the most basic set of commodity hardware capabilities a speaker a microphone form of inter-device communication Desire a solution that can be implemented in software, Preferably entirely in user-space Copyright © 2008 6

7 Network and Systems Laboratory nslab.ee.ntu.edu.tw Time-of-arrival (TOA) High accuracy ranging is typically achieved through measuring time-of-arrival (TOA) information of acoustic or radio signals The distance is thus the product of the signal speed and the time of flight of the signal traveling between two devices The ranging accuracy depends on the signal speed and the precision of TOA measurement To elevate the accuracy, acoustic signals are usually chosen because of their relative slow speed Copyright © 2008 7

8 Network and Systems Laboratory nslab.ee.ntu.edu.tw TOA Measurement Often done with both sides taking a timestamp of their respective local clock at the moment the signal is emitted or received Three intrinsic uncertainties in this process that can contribute to the ranging inaccuracy The possible clock skew and drift between devices The possible misalignment between the sender timestamp and the actual signal emission The possible delay of a sound signal arrival being recognized at receiver Copyright © 2008 8

9 Network and Systems Laboratory nslab.ee.ntu.edu.tw Additional Constraints Cannot assume we have a real-time operating system or be able to change kernel or driver In fact, many COTS devices like cell phones are built on closed platforms and many often have operator- imposed locks that prevent changing OS Have to implement the entire ranging system in user- space Timestamping approach will not be able to provide the high accuracy we desire Copyright © 2008 9

10 Network and Systems Laboratory nslab.ee.ntu.edu.tw Innovative Use Of Three Techniques Two-way sensing Self-recording Sample counting Copyright © 2008 10

11 Network and Systems Laboratory nslab.ee.ntu.edu.tw Contribution Identified the three major uncertainties common to any time-of-arrival based ranging system and evaluated them on COTS mobile devices Proposed the BeepBeep ranging mechanism that cleverly overcomes all these uncertainties Designed and implemented the BeepBeep ranging system, purely in software Copyright © 2008 11

12 Network and Systems Laboratory nslab.ee.ntu.edu.tw Contribution Systematically evaluated the system and our design choices under several typical indoor and outdoor environments using COTS mobile devices Achieved centimeter accuracy, the best ever reported in the literature Copyright © 2008 12

13 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 13

14 Network and Systems Laboratory nslab.ee.ntu.edu.tw Motivation High accuracy ranging and localization systems have been an active research theme in the wireless sensor network research field If a range technique can achieve similar or better accuracy but use only most basic set of hardware, it will be applicable to more platforms and suitable for more applications It may further reduce cost to do ranging in sensor networks Copyright © 2008 14

15 Network and Systems Laboratory nslab.ee.ntu.edu.tw Challenges One millisecond error in TOA estimation will translate to more than 30 centimeters error in the ranging result Copyright © 2008 15

16 Network and Systems Laboratory nslab.ee.ntu.edu.tw Lower Bound Estimation Copyright © 2008 16

17 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 17

18 Network and Systems Laboratory nslab.ee.ntu.edu.tw BeepBeep Ranging Mechanism Can very well handle all the three aforementioned uncertainties Clock synchronization uncertainty Sending uncertainty Receiving uncertainty Copyright © 2008 18

19 Network and Systems Laboratory nslab.ee.ntu.edu.tw Basic Ranging Scheme Basic ranging procedures with only two devices, say A and B, and we will extend this to multiple devices later Basic ranging scheme takes three steps Two-way sensing and Self-recording Sample counting Distance computing Copyright © 2008 19

20 Network and Systems Laboratory nslab.ee.ntu.edu.tw Two-way Sensing and Self-recording Copyright © 2008 20

21 Network and Systems Laboratory nslab.ee.ntu.edu.tw Sample Counting Both devices examine their recorded data and locate the sample points when previously emitted two signals arrived Denote the time difference between these two signals as elapsed time between the two time-of-arrivals (ETOA) The two devices will exchange their locally measured ETOA Copyright © 2008 21

22 Network and Systems Laboratory nslab.ee.ntu.edu.tw Distance Computing Copyright © 2008 22

23 Network and Systems Laboratory nslab.ee.ntu.edu.tw d x,y: distance between device x’s speaker to device y’s microphone Copyright © 2008 23

24 Network and Systems Laboratory nslab.ee.ntu.edu.tw Distance Approximation Copyright © 2008 24

25 Network and Systems Laboratory nslab.ee.ntu.edu.tw ETOA Determination Since all the sound signals are recorded, we only need to check the recorded data and identify the first sample point of each signal Then, ETOA is obtained by counting the number of samples between the two corresponding first samples Copyright © 2008 25

26 Network and Systems Laboratory nslab.ee.ntu.edu.tw Sampling Frequency In the rest of the paper, we will assume the the sampling frequency to be 44.1 kHz unless explicitly noted The 44.1 kHz sampling frequency is the basic, de facto standard that almost every sound card supports Copyright © 2008 26

27 Network and Systems Laboratory nslab.ee.ntu.edu.tw Distance Granularity Take a typical setting of c = 340 meters per second and fs = 44.1 kHz, the distance granularity is then about 0.77 centimeters The granularity will be further improved if higher sampling frequencies can be afforded Copyright © 2008 27

28 Network and Systems Laboratory nslab.ee.ntu.edu.tw Sources of Errors According to Equation (9), there are three possible sources of errors, relating to the three parameters sound speed c sampling frequency f s TOA detection (i.e., various sample indices n t ). Copyright © 2008 28

29 Network and Systems Laboratory nslab.ee.ntu.edu.tw Factors Influencing TOA Detection Precision Signal to noise ratio (SNR) Multipath effects Signal distortion Copyright © 2008 29

30 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 30

31 Network and Systems Laboratory nslab.ee.ntu.edu.tw Overview Unlike other ranging or localization systems, the Beep- Beep ranging system is purely a software solution Does not require specialized hardware design Does not require modifications to the commercial operating system The BeepBeep system can be implemented purely in the application-layer, and is ready for deployment on most ordinary COTS mobile devices Copyright © 2008 31

32 Network and Systems Laboratory nslab.ee.ntu.edu.tw Overall Software Architecture Copyright © 2008 32

33 Network and Systems Laboratory nslab.ee.ntu.edu.tw Acoustic Signal Design The acoustic signal should be designed to have good autocorrelation property, which permits accurate signal detection when presenting with ambient noise One typical signal design that fits our requirement is the linear chirp signal But the range of its spectrum has to be limited to obey by the constraints of the hardware design of speaker and microphone in COTS devices Copyright © 2008 33

34 Network and Systems Laboratory nslab.ee.ntu.edu.tw Frequency Response Copyright © 2008 34

35 Network and Systems Laboratory nslab.ee.ntu.edu.tw Frequency Range Choose the frequency range of the linear chirp signal to be between 2–6kHz Copyright © 2008 35

36 Network and Systems Laboratory nslab.ee.ntu.edu.tw Distortion The sound waveform played out has very large distortion in the first few milliseconds Might be caused by the speaker diaphragm inertia To resolve this, we precede the chirp signal with five milliseconds 2kHz cosine waveform to warm up the speaker We choose the signal length to be 50 milliseconds which strikes a good compromise between multipath effects suppressing and noise resistance Copyright © 2008 36

37 Network and Systems Laboratory nslab.ee.ntu.edu.tw Signal Detection The signal is detected by correlation with the reference chirp signal in the time domain When the signal length is 50ms and the sound sampling rate is 44.1kHz, N equals to 2205 sample points To detect, the recorded data are correlated with the reference signal and the maximum “peak” is located This maximum peak is concluded as the location of a signal if its cross-correlation value is significantly larger than that with background noise Copyright © 2008 37

38 Network and Systems Laboratory nslab.ee.ntu.edu.tw Ranging Protocol Assume that each device has a WiFi radio, and thus, all devices are coordinated with wireless communications Our protocol can support multiple devices in one ranging process, where each of N (N  2) devices is trying to measure distances to all other devices simultaneously Our protocol will generate only N acoustic signals to obtain all pair-wise distance measurements between any two devices Copyright © 2008 38

39 Network and Systems Laboratory nslab.ee.ntu.edu.tw Three Steps Initiation Sensing ETOA Exchanging Copyright © 2008 39

40 Network and Systems Laboratory nslab.ee.ntu.edu.tw Initiation A ranging process is started by an initiating device The initiating device calculates and disseminates a schedule in an initiation message to all the devices that participate in the ranging process Copyright © 2008 40

41 Network and Systems Laboratory nslab.ee.ntu.edu.tw Sensing Each device calculates a delay according to the schedule and sets a timer Upon the timer expires, it emits a sound signal Copyright © 2008 41

42 Network and Systems Laboratory nslab.ee.ntu.edu.tw ETOA Exchanging After the last device has emitted the sound signal, each device processes the recorded signals and determine ETOA between its own signal and signals from all other devices These ETOA values are packed into one packet broadcast to other devices Upon receiving ETOA information from all other devices, one device can calculate the distance to all other devices using Equation (9) Copyright © 2008 42

43 Network and Systems Laboratory nslab.ee.ntu.edu.tw Prototype Implementation Have implemented the BeepBeep ranging system in Windows Mobile 5.0 Develop it as a user-mode dynamic linkable library that other applications can load and use it for ranging service Use multimedia services (WaveXXX series APIs) embedded in Windows Mobile to control microphones and speakers Rely on WinSock for communication over WiFi Copyright © 2008 43

44 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 44

45 Network and Systems Laboratory nslab.ee.ntu.edu.tw Hardware Configuration Have deployed the BeepBeep ranging system onto two models of commercial off-the-shelf PocketPC phones, HP iPAQ rw6828 and Dopod 838 Copyright © 2008 45

46 Network and Systems Laboratory nslab.ee.ntu.edu.tw HP iPAQ rw6828 and Dopod 838 Running Microsoft Windows Mobile Version 5.0 (Phone Edition) With WiFi and Bluetooth radios and Infra-Red interface QVGA display 64 MB RAM Two built-in speakers One microphone that supports 16-bit 44.1 kHz sampling rate Copyright © 2008 46

47 Network and Systems Laboratory nslab.ee.ntu.edu.tw HP iPAQ rw6828 and Dopod 838 The HP iPAQ rw6828 features a more powerful Intel XScale 416 MHz processor while Dopod 838 is equipped a 195 MHz TI OMAP850 processor The speakers are laid out at the bottom on the front face for the HP phone and at the two sides on the Dopod phone Copyright © 2008 47

48 Network and Systems Laboratory nslab.ee.ntu.edu.tw Performance Metrics Accuracy Difference between the ranging results and the real distance Confidence Percentage of the times a known level of accuracy is reached α-confident: proportion of ranging experiments that achieved a ranging error no larger than the threshold α Copyright © 2008 48

49 Network and Systems Laboratory nslab.ee.ntu.edu.tw Performance Metrics Operational range Maximum range that the ranging system can still achieve a known level of accuracy β with a certain confidence α In our evaluation, β is set to 5cm and α to 90% This metric is informative as it heavily depends on the experimental environment such as the room size and the devices’ capabilities such as the properties of the speaker and microphone Copyright © 2008 49

50 Network and Systems Laboratory nslab.ee.ntu.edu.tw Test Case Design Case-A – Indoor, quiet Case-B – Indoor, noisy Case-C – Outdoor, car park Case-D – Outdoor, subway station Copyright © 2008 50

51 Network and Systems Laboratory nslab.ee.ntu.edu.tw Indoor Testbed Copyright © 2008 51

52 Network and Systems Laboratory nslab.ee.ntu.edu.tw Experimental Results Sound speed c air =331.3+0.6·θ Copyright © 2008 52

53 Network and Systems Laboratory nslab.ee.ntu.edu.tw Percentage Of Successful Experiments Copyright © 2008 53

54 Network and Systems Laboratory nslab.ee.ntu.edu.tw Case-A – Indoor, quiet Copyright © 2008 54

55 Network and Systems Laboratory nslab.ee.ntu.edu.tw Case-B – Indoor, noisy Copyright © 2008 55

56 Network and Systems Laboratory nslab.ee.ntu.edu.tw Case-C – Outdoor, car park Copyright © 2008 56

57 Network and Systems Laboratory nslab.ee.ntu.edu.tw Case-D – Outdoor, subway station Copyright © 2008 57

58 Network and Systems Laboratory nslab.ee.ntu.edu.tw Measurement Error Copyright © 2008 58

59 Network and Systems Laboratory nslab.ee.ntu.edu.tw Impact of Signal Distortion Copyright © 2008 59

60 Network and Systems Laboratory nslab.ee.ntu.edu.tw Multipath Effect Mitigation The multipath effect usually becomes evident when the signals from non-LOS paths have comparable strengths with the LOS signal The effect will be exaggerated when the lengths of non-LOS paths are close to that of the LOS path as it will cause interferences This is the primary reason why experiments fails when the distance is large for both the two indoor cases Copyright © 2008 60

61 Network and Systems Laboratory nslab.ee.ntu.edu.tw Multipath Effect Mitigation Copyright © 2008 61

62 Network and Systems Laboratory nslab.ee.ntu.edu.tw Multipath Effect Mitigation Copyright © 2008 62

63 Network and Systems Laboratory nslab.ee.ntu.edu.tw Evaluation Summary Copyright © 2008 63

64 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 64

65 Network and Systems Laboratory nslab.ee.ntu.edu.tw Discussion Proposed system can achieve up to one centimeter precision within a few meters using the testing devices This working range and accuracy may vary depending on the quality of the speakers and microphones on the devices In general, devices that are equipped with higher fidelity speakers can lead to larger operational range with certain sound volume since their playouts of signals have less distortion Copyright © 2008 65

66 Network and Systems Laboratory nslab.ee.ntu.edu.tw Speakers & Microphones Similarly, a high sensitive microphone is further helpful to precisely detect the signal from background noise Moreover, raising sound volume (but not cause extra waveform distortion) may also help in increasing the operational range, but this may consume more energy and is also more annoying as in current implementation the ranging signal is audible Copyright © 2008 66

67 Network and Systems Laboratory nslab.ee.ntu.edu.tw Beep Signals Have adopted a simple linear chirp signal (band- limited to 2–6kHz) in the ranging system Coded pseudo-noise (PN) signals can also be used Preliminary study shows a simple chaotic PN signal may achieve similar accuracy as our simple linear chirp Copyright © 2008 67

68 Network and Systems Laboratory nslab.ee.ntu.edu.tw Beep Signals Further, in the ranging process, different devices may emit different PN signals using different codes With well-chosen codes, PN signals can be orthogonal to one another and therefore can be reliably detected even if multiple signals are overlapped Copyright © 2008 68

69 Network and Systems Laboratory nslab.ee.ntu.edu.tw Proper Length Of Sound Signal Choosing a proper length of sound signal is a tradeoff On the one hand, in order to achieve high SNR, we prefer the signal length to be long On the other hand, long sound signals may suffer more due to multipath effect because the signals from secondary paths overlap more on the primary path signal In current design, we have chosen a fixed signal length (i.e., 50ms) to balance these two requirements Copyright © 2008 69

70 Network and Systems Laboratory nslab.ee.ntu.edu.tw Adaptive Length Of Sound Signal Can use shorter signals when the environment is relatively quiet but subjects to multipath interference (indoor environments) Use longer sound signal in out-door environment where noise is the dominating factor affecting the ranging precision Copyright © 2008 70

71 Network and Systems Laboratory nslab.ee.ntu.edu.tw Line-of-sight (LOS) Constraints Necessary to ensure the line-of-sight between the two devices so that the measured path length can be correctly converted to the physical distance via a fixed conversion function The distance is simply half of the measured path length Copyright © 2008 71

72 Network and Systems Laboratory nslab.ee.ntu.edu.tw Can be used for Mica2? Also some challenges if the BeepBeep ranging mechanism is to be directly applied onto the extremely weak sensor nodes like Mica2 motes small memory buffer low computation power no dedicated I/O processor to perform the sampling of the incoming sound signal Copyright © 2008 72

73 Network and Systems Laboratory nslab.ee.ntu.edu.tw Audible Sound Ranging with audible sound might interact with existing applications (e.g. multimedia), but we expect such interaction to be tolerable due to following reasons The ranging process is rather quick in practice (few seconds), and may only happen occasionally The BeepBeep system is rather robust and resistant to both music and human conversations The band-limited chirp signal is still ear pleasing Copyright © 2008 73

74 Network and Systems Laboratory nslab.ee.ntu.edu.tw Outline Abstract Introduction Motivation and Challenges BeepBeep Ranging Mechanism System Architecture and Implementation BeepBeep System Evaluation Discussion Conclusion Copyright © 2008 74

75 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Have designed, implemented and evaluated the high- accuracy acoustic ranging system – BeepBeep A pure software-based solution and uses only the most basic set of commodity hardware A speaker A microphone And some form of device-to-device communication –to achieve centimeter accuracy Copyright © 2008 75

76 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Operates in a spontaneous, ad-hoc, and device-to- device context without leveraging any pre-planned infrastructure Readily applicable to many sensor platforms and to most commercial-off-the-shelf mobile devices like cell phones and PDAs Copyright © 2008 76

77 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Will have wide applications in low-cost sensor networks as well as in a compelling set of social related mobile applications that desire the proximity awareness and the fine-grained control over the spatial relationship Copyright © 2008 77

78 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Identified the three uncertainties typically involved in the time-of-arrival measurements Carefully designed the BeepBeep ranging system with three unique features to conquer those uncertainties Two-way sensing strategy to avoid clock synchronization uncertainty Self-recording strategy to remove the sending uncertainty Sample counting method to avoid the receiving uncertainty Copyright © 2008 78

79 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Experimental results on handy cell phones demonstrate the superior accuracy and excellent consistence of the BeepBeep ranging system Achieves about 1cm and 2cm average ranging accuracy with less than 2cm standard deviations for typical indoor and noisy outdoor environments, respectively Copyright © 2008 79

80 Network and Systems Laboratory nslab.ee.ntu.edu.tw Conclusion Because of the minimum hardware assumptions of the BeepBeep ranging system, we believe its simple yet effective ranging mechanism can be directly incorporated into the design of other customized sensor platforms and will lead to significant cost reduction Copyright © 2008 80

81 Network and Systems Laboratory nslab.ee.ntu.edu.tw Contribution Identified the three major uncertainties common to any time-of-arrival based ranging system and evaluated them on COTS mobile devices Proposed the BeepBeep ranging mechanism that cleverly overcomes all these uncertainties Designed and implemented the BeepBeep ranging system, purely in software Copyright © 2008 81

82 Network and Systems Laboratory nslab.ee.ntu.edu.tw Contribution Systematically evaluated the system and our design choices under several typical indoor and outdoor environments using COTS mobile devices Achieved centimeter accuracy, the best ever reported in the literature Copyright © 2008 82

83 Network and Systems Laboratory nslab.ee.ntu.edu.tw Strength and Weakness Strength Simple yet effective ranging mechanism High accuracy Does not need special hardware Implemented purely in software Weakness Could be noisy due to the beep signal Might not be useful for sensor network with low-end sensor nodes Copyright © 2008 83

84 Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © 2008 84 Thank you very much for your attention! Any Questions?


Download ppt "Network and Systems Laboratory nslab.ee.ntu.edu.tw Copyright © 2008 1 BeepBeep: A High Accuracy Acoustic Ranging System using COTS Mobile Devices Chunyi."

Similar presentations


Ads by Google