Title: TOSHILT: TinyOS HardwareintheLoop Testing for Wireless Sensor Networks
1TOSHILT TinyOS Hardware-in-the-Loop Testing for
Wireless Sensor Networks
- Carnegie Mellon University
2HIL Testing for Embedded Systems
Laptop
Desktop PC
HIL Software dSPACE ControlDesk
ASAP3
Calibration Software ATI Vision
serial
API
custom
custom
Ford Test Engineer launches tests via SVM
Signal Conditioning BreakoutBox
HIL System(Plant Simulator)
Production Controller
Users Ford, Toyota, Visteon, Another Tier 1
Automotive Supplier, SwRI, GM, LM, Hyundai
3HIL Testing for Embedded Systems
Laptop
Desktop PC
- Objective
- test real-time embedded software
- on target processors
- under realistic operating conditions
HIL Software dSPACE ControlDesk
ASAP3
Calibration Software ATI Vision
serial
API
custom
custom
Ford Test Engineer launches tests via SVM
Signal Conditioning BreakoutBox
HIL System(Plant Simulator)
production embedded processor
Users Ford, Toyota, Visteon, Another Tier 1
Automotive Supplier, SwRI, GM, LM, Hyundai
4HIL Testing for Embedded Systems
Laptop
Desktop PC
HIL Software dSPACE ControlDesk
ASAP3
Calibration Software ATI Vision
using real-time emulation of the test cases
serial
API
custom
custom
Ford Test Engineer launches tests via SVM
Signal Conditioning BreakoutBox
HIL System(Plant Simulator)
production embedded processor
Users Ford, Toyota, Visteon, Another Tier 1
Automotive Supplier, SwRI, GM, LM, Hyundai
5HIL Testing for Embedded Systems
Laptop
Desktop PC
rather than testing the code for the first time
with the complete environment !
HIL Software dSPACE ControlDesk
ASAP3
Calibration Software ATI Vision
serial
API
custom
custom
Ford Test Engineer launches tests via SVM
Signal Conditioning BreakoutBox
HIL System(Plant Simulator)
production embedded processor
Users Ford, Toyota, Visteon, Another Tier 1
Automotive Supplier, SwRI, GM, LM, Hyundai
6HIL Testing for Embedded Systems
Laptop
Desktop PC
HIL Software dSPACE ControlDesk
ASAP3
Calibration Software ATI Vision
serial
API
HIL testing is standard practice for automotive
and avionics systems
custom
custom
Ford Test Engineer launches tests via SVM
Signal Conditioning BreakoutBox
HIL System(Plant Simulator)
production embedded processor
Users Ford, Toyota, Visteon, Another Tier 1
Automotive Supplier, SwRI, GM, LM, Hyundai
7HIL testing for WSNs
8HIL testing for WSNs
- Objective
- test WSN application software
- on the target WSN
- under realistic operating conditions
9HIL testing for WSNs
without having to run the actual test scenario
10The TOSHILT Approach
Emulate the scenario in real time on every node
using virtual sensors
11The TOSHILT Approach
Virtual sensor signals
12The TOSHILT Architecture
- middleware provides services to
- preload sensor emulation data (before test)
- run-time sensor emulation
- interfaces to TinyOS services
13TOSHILT Demo Overview
- WSN application VigilNet
- test scenario
- target tracking classification
- repeated with different noise levels
14TOSHILT Demo Overview
- WSN application VigilNet
- test scenario
- target tracking classification
- repeated with different noise levels
- VigilNet will operate as if real targets are
creating the sensor signals
15Demo Overview
- Sensor emulation data preloaded
- Turn on base mote
- VigilNet initialization 5 minutes
- Two passes low high system noise
16(No Transcript)
17Using TOSHILT
- Generate sensor emulation data
- MATLAB target simulation
- location-specific sensor data
- compression for on-line tables
- Preload sensor emulation data to each sensor node
- Run the application
18TOSHILT Components
19TOSHILT Components
- TOSHILT base station
- preloads scenario datato each sensor node
20TOSHILT Components
- TOSHILT middleware
- pre-loads scenario data
- emulates sensors duringtest
21TOSHILT Components
- WSN Application
- operates as usual
22Preloading Scenario Data
- HIL base station command-line interface
- Loads EEPROMs on each mote with its sensor
emulation data - Missed-data error recovery
23On-Board Scenario Data
EEPROM
24On-Board Scenario Data
EEPROM
memory map
25On-Board Scenario Data
EEPROM
noise magnitudes
26On-Board Scenario Data
EEPROM
- sensor data
- time stamps
- magnitudes
4 Kb (of 512) for 2.5 min scenario
27On-Board Scenario Data
EEPROM
- run-time
- prefetch
- interpolate
28Emulated Sensor Signals
- MATLAB simulation of targets moving through field
- proximity-based signal created for each sensor
- data compression for linear interpolation
29Run-Time Sensor Emulation
- linear interpolation betweenemulation data
points - characteristic signal for each sensor
- scaled noise levels for each pass through the
scenario - reads ADC for realistic timing
30TOSHILT Recap
- HIL test for WSNs
- tests application code on target WSN
- virtual sensors provide realistic test cases
- Purpose
- debugging deployed application software
- performance analysis tuning
- what-if evaluation
31HIL vs. Simulation
- Simulation never includes
- full details of the WSN environment
- true concurrency
- actual RF transmission characteristics
- all features of the application code
- HIL exercises the complete application code in
the actual WSN environment