s3lsensor / snowfort

SnowFort: An open source wireless sensor network for infrastructure and environmental monitoring
http://www.snowfort.org
Other
6 stars 8 forks source link

turn off radio if a beacon is missed or if synchronization to AP is lost #17

Closed yzliao closed 10 years ago

yzliao commented 11 years ago

1.) If a beacon is missed the radio is kept on until the next beacon is received. We should turn it off after the beacon slots and wake up next TDMA frame.

2.) If the AP can be heard for a long time by a sensor, it keeps its radio on until it receives a beacon (which might never arrive). We should put the radio to sleep and wake up after sometime to listen for a beacon again. After how long? Long enough to maintain a reasonable average current consumption.

ronniebajwa commented 11 years ago

From the title it seemed like a different issue...may be we should change the content of this issue and keep both issues open.

We want to add a sleep mode in the application layer, just like the "Raw data" or awake mode we already have. In this mode, SNs don't transmit any data and keep their sensors off to save power...the only thing they do is listen to occasional beacon packets to maintain connectivity.

The issues that I opened deals with the unwanted states in our network layer (or its implementation). It's relevant to both the modes as it concerns with how we listen to beacon packets and what we do when we can't hear any.

yzliao commented 11 years ago

They are same issue. This one is solving the case described in #23. I will change the title to sleep mode in RDC layer. The listening mode (no data sending) is an application layer state. This application feature/state will be assigned a new issue.