Hi!

Sorry for the late reply.

On Sun, 1 Mar 2009, Alfred NOBEL wrote:

> Hi!
> I am so grateful to your answer, but I didn't understand what you
> would like to say by this:
> ""Note that you have to do also call sync from CC2420Config.nc""

Take a look at the CC2420Config.nc from tos/chips/cc2420/interfaces. The 
interface has a called that is called sync:

          /**
           * Sync configuration changes with the radio hardware. This only
           * applies to set commands below.
           *
           * @return SUCCESS if the request was accepted, FAIL otherwise.
           */
          command error_t sync();
          event void syncDone( error_t error );

> because I found in the archive this Philip.L remark [1]:
> ""All commands and events that do not have the async keyword are sync""
>

This is something else. :-) Here are some good resources that talk about 
nesC:
        http://nescc.sourceforge.net/papers/nesc-pldi-2003.pdf
        http://nescc.sourceforge.net/papers/nesc-ref.pdf
        http://www.tinyos.net/tinyos-2.x/doc/pdf/tinyos-programming.pdf

--
Razvan ME

> [1]http://www.mail-archive.com/[email protected]/msg14460.html
>
> 2009/2/28, Razvan Musaloiu-E. <[email protected]>:
>> Hi!
>>
>> On Sat, 28 Feb 2009, Alfred NOBEL wrote:
>>
>>> Hi!
>>> Thanks!
>>> Yes I am using telosb mote (CC2420)
>>> but how could I specify that with TinyOS.
>>> I would like that it will be dynamic over the time.
>>>
>>
>> The inferface that is providing this is called CC2420Config.nc. It's
>> defined in tos/chips/cc2420/interfaces and is offered by
>> CC2420ControlC.nc. Note that you have to do also call sync from
>> CC2420Config.nc. in order for the setting to take place. :-)
>>
>> All the best!
>> Razvan ME
>>
>>> 2009/2/28 Razvan Musaloiu-E. <[email protected]>
>>>
>>>> Hi!
>>>>
>>>> On Sat, 28 Feb 2009, Alfred NOBEL wrote:
>>>>
>>>>  Hi all!
>>>>> how could I specify which channel to be used in data tx?
>>>>> how many channels did Tinyos gives?
>>>>>
>>>>>
>>>> For Zigbee (CC2420, RF230) there are 16 channels (from 11 to 26). Mica2
>>>> is
>>>> using CC1000 but I'm not familiar with it.
>>>>
>>>> --
>>>> Razvan ME
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Alfred.Nooobel
>>>
>>
>
>
> --
> Best regards,
> Alfred.Nooobel
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to