Closed yzliao closed 11 years ago
I'll take this one...currently using static timeslot assignment and almost fixed timing issues for AP's slot calculation...
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.
fix is merged in #27
Disable current dynamic time slot allocation process. Instead, using static time slot allocation process and allowing time slot to be changed by command