AlarmNet Code Review: Mote Configuration, Localization, and Power Management - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

AlarmNet Code Review: Mote Configuration, Localization, and Power Management

Description:

If the configuration is valid (a mote has been configured before) ... Return Fail if mote is in Sleep or sleep cycle the in duty-cycle mode, Otherwise ... – PowerPoint PPT presentation

Number of Views:137
Avg rating:3.0/5.0
Slides: 12
Provided by: awo3
Category:

less

Transcript and Presenter's Notes

Title: AlarmNet Code Review: Mote Configuration, Localization, and Power Management


1
AlarmNetCode ReviewMote Configuration,Localiza
tion,and Power Management
  • January 29, 2009

http//www.cs.virginia.edu/wsn/medical/
2
AlarmNet Physical Architecture
3
Mote Operations
  • Main functions
  • Configuration and Localization
  • Sense and Query response
  • Power Management

How to build and run? Only need to compile and
install SensorMote
4
Localization
  • Module and codes \tinyos\Localization
  • Interfaces provided
  • Mechanism Walk-in GPS
  • receive locations from Anchors
  • Location can be set by Config

5
Configuration
  • Module and codes \tinyos\config\
  • A motes configuration profile
  • Two IDs for each mote
  • Hardware ID, silicon serial number, call
    hardwareID.read()
  • networkl id, (TOS_LOCAL_ADDRESS), assigned by
    Stargate.

6
Configuration
  • Main Procedure -- Initialize
  • Begin call InitialTimer.start in
    StdControl.start()
  • Load the configuration from the flash
  • If the configuration is invalid (a mote
    never been configured)
  • request network id from Stargate (task
    requestID)
  • get location (call Localization.getLocation)
  • write the configuration into the flash
  • register myself to the Stargate (task
    sendRegisterMsg)
  • If the configuration is valid (a mote
    has been configured before)
  • register myself to the Stargate (task
    sendRegisterMsg)

7
Load the configuration
configuration is invalid
Request ID from SG
8
Configuration
  • Main Procedure respond Config command from SG
  • CONFIG_IE_ASSIGN_ID Instruction to set my
    network ID. Hardware ID must match.
  • CONFIG_IE_LOCATION_BIND Instruction to set my
    location x,y and code.
  • CONFIG_IE_RESET soft-reset the mote, but keep
    the configuration
  • CONFIG_IE_RESET_CONFIG soft-reset the mote and
    delete the configuration
  • When the localization changes, save the change to
    the flash

9
Power Management
  • Manage four power modes of motes
  • Sleep Mote turns off all sensors and the radio
    and CPU goes into deep sleep (0.30.8mA).
  • Interrupt Mote turns off the radio, but turns on
    all sensors. If sensing events occur, the radio
    will be turned on to send Msgs. (24mA)
  • Duty_cycle Mote turns on all sensors and but
    turns on and off the radio accroding to two
    parameters dutyInterval and Sleep Interval
  • Working Mote turns on all sensors and the radio
    2540mA
  • Main function Receive PM messages from SG and
    execute PM commands
  • If multiple commands collide, follow the command
    with the highest priority.

10
Power Management
  • How the power management coordinated with other
    components?
  • Use the PowerManage Interface
  • Call request_send () to request send. Return
    Fail if mote is in Sleep or sleep cycle the in
    duty-cycle mode, Otherwise return SUCCESS, and
    turn on the radio if mote is in the Interrupt
    mode.
  • Call send_done () to notify the send is down. If
    mote is in the interrupt mode

11
Possible extension
  • More localization implementation
  • More adaptive power management schemes.
Write a Comment
User Comments (0)
About PowerShow.com