Hi everybody,
I want to sample RSSI at 3 KHz, which acts as a part of my protocol. Below
is a list of approaches I come up with, but none of them can achieve the
goal.
-
while (TRUE) {
sampleRssi();
}
If something like above is used, then code beyond the while loop may never
get executed.
-
event void Timer.fired() {
sampleRssi();
}
If a timer is used to periodically trigger readRssiFast(), the firing
accuracy has to be at least ~300 microseconds, which seems very
difficult<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2007-May/024953.html>
on
TelosB, if possible at all.
-
task void sampleRssiTask() {
sampleRssi();
post sampleRssiTask();
}
If there are multiple tasks posted before sampleRssiTask(), then it can be
postponed for a much longer time than 0.33 ms before execution.
If you have any idea, please do not hesitate to share. Thank you in advance.
--
-Xiaohui Liu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help