[Tinyos-devel] LPL API for protocols
Omprakash Gnawali
gnawali at usc.edu
Sun May 18 14:12:35 PDT 2008
On Sun, May 18, 2008 at 2:02 PM, Matt Welsh <mdw at eecs.harvard.edu> wrote:
> That sounds nice and elegant ... although I didn't quite understand what Om
> was saying about needing to sprinkle LPL parameters throughout the higher
> level protocol code. Seems to me that the LPL check interval setting
> underlies whatever protocol goes on top and there's rarely a need for a
> given protocol to be "LPL aware" ... unless there's something I'm missing?
CTP sends packets using three different AMSender's - you would need to
set rxinterval just before those calls. If the user wants to change
the "dutycycle", the user needs to find those places and change the
parameters. Although rxinterval is a MAC-level parameter, my guess is
this is one parameter that even the end user, who does not really care
about how CTP works, might want to be able to experiment with easily.
That was my argument for higher level API or mechanism (as opposed to
rxinterval) to improve the visibility of this parameter and to make it
easy to set it without having to touch the protocol code.
When we talking about these more abstract way to set the LPL
parameter, we have to be careful about making sure the low level and
high level setting of the parameter stay consistent/understandable.
- om_p
More information about the Tinyos-devel
mailing list