[Tinyos-devel] status of the default-lpl

Miklos Maroti mmaroti at math.u-szeged.hu
Mon Jul 27 13:29:47 PDT 2009


Sorry, I meant setRemoteSleepInterval(message_t* msg, uint16_t ms)

Miklos

On Mon, Jul 27, 2009 at 10:29 PM, Miklos Maroti<mmaroti at math.u-szeged.hu> wrote:
> What about setLocalSleepInterval and setRemoveSleepInterval? Miklos
>
> On Mon, Jul 27, 2009 at 8:13 PM, Philip Levis<pal at cs.stanford.edu> wrote:
>>
>> On Jul 21, 2009, at 1:05 PM, Razvan Musaloiu-E. wrote:
>>
>>> Hi!
>>>
>>> On Tue, 21 Jul 2009, Miklos Maroti wrote:
>>>
>>>> Hi Razvan,
>>>>
>>>> I completely do not understand your naming of the commands.
>>>
>>> It's not really mine. :P The names in the LowPowerListening were decided
>>> some time ago:
>>>        http://www.tinyos.net/tinyos-2.1.0/doc/html/tep105.html
>>>
>>>  http://hinrg.cs.jhu.edu/git/?p=tinyos-2.x.git;a=history;f=tos/interfaces/LowPowerListening.nc;h=b5225c4fe10c9e6333244aafa78aa435d93411d7;hb=HEAD
>>>
>>> The only thing I did was to remove the calls that use duty cycle and keep
>>> the ones that deals with time.
>>>
>>>> I think we should have
>>>>
>>>> void setTxSleepInterval(message_t *msg, uint16_t sleepIntervalMs);
>>>>
>>>> because that is the value we use to transmit the message (the length
>>>> of the preamble / wakeup signal). Then we have the other command which
>>>> controls how we sleep while receiving messages. I think that should be
>>>> called:
>>>>
>>>> void setRxSleepInterval(uint16_t sleepIntervalMs);
>>>>
>>>> I like this much better than the "LocalSleepInterval". Maybe I am just
>>>> wired in differently.
>>>>
>>>
>>> I don't have a strong attachment to any of the names. If you can convince
>>> Phil to use Tx/Rx let me know and I'll make the switch. :-)
>>
>> The issue I ran into with Rx/Tx was the distintion between
>> transmission/transmitter and receiver/reception. More than once I found the
>> command names confusing. In particular, setting the Rx sleep interval
>> confused me, as I'd assume you'd set the reception sleep interval for a
>> packet based on the receiver's interval.
>>
>> I think I'd be OK with setTxSleepInterval and setLocalSleepInterval. But
>> setRx is confusing, at least to me. What do others think?
>>
>> Phil
>>
>



More information about the Tinyos-devel mailing list