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

disable dynamic time slot allocation and replace with static time slot allocation #19

Closed yzliao closed 11 years ago

yzliao commented 11 years ago

Disable current dynamic time slot allocation process. Instead, using static time slot allocation process and allowing time slot to be changed by command

ronniebajwa commented 11 years ago

I'll take this one...currently using static timeslot assignment and almost fixed timing issues for AP's slot calculation...

yzliao commented 11 years ago

Copy @ronniebajwa note from the commit (6e8714b) above:


For #19 , static slot number is defined as a MACRO in tdmardc.h and loaded into a global variable my_slot in tdmardc.c.

For #20 , all timings are now based off the physical (or radio) layer timestamps (see cc2420.c).

The firmware now is capable of supporting from 58 to 1000 sensors, if needed. Default configuration is 1/8s TDMA frame (segment) period, 80 B/s payload, 62 total slots. To try out more slots, decrease FRAMES_PER_SEC to 1.0 and increase TOTAL_TS to 510. More than 500 slots are supported, each slot around 2ms.

yzliao commented 11 years ago

fix is merged in #27