Nilesh,

  It appears that you have not read through many of the tutorials or
tried out the sample applications.  There are numerous problems with
your code, but I'll highlight a few here:

1) You should always access components through their configuration,
not their module.  Thus you should use CC2420Control through
CC2420RadioC.CC2420Control

2) The string to unique() must always be the same.  For every timer
you want, you must use "unique("Timer")".  You *cannot* make up your
own string!

3) HPL components are the lowest level of the system and should only
be used by expert developers with extreme care.

  It appears that you are trying to write a new CCA mechanism for the
CC2420.  I'm not sure why you're doing this, but this involves very
detailed understanding of the radio stack, CC2420* files, and requires
them to all work together in concert.  Trying to interject your own
design in the middle is extremely tricky and difficult, and is very
hard to debug and troubleshoot.

-Joe

On 11/15/05, Nilesh Mishra <[EMAIL PROTECTED]> wrote:
> Dear Joe,
>    I am trying to use the CC2420ControlM and the TimerC components together
> in a program and this makes the mote restart (All the Leds go down, mote
> restarts and the cycle continues). Both of them seem to work fine when used
> seperately. My mote type is Tmote. Can you suggest a reason and a
> workaround. I need to use CC2420Control to manualy tune the frequency. Given
> below is the configuration file.
> Regards,
> Nilesh
>
>  " Blessed are the geek for they shall inherit the worth"
>
> components Main,HPLCC2420C,LedsC,CCAM,TimerC,CC2420ControlM;
>   Main.StdControl -> HPLCC2420C.StdControl;
>   Main.StdControl -> CCAM.StdControl;
>   Main.StdControl -> TimerC.StdControl;
>   CCAM.HPLCC2420 -> HPLCC2420C.HPLCC2420;
>   CCAM.Leds -> LedsC;
>   CCAM.CC2420Control -> CC2420ControlM;
>   CC2420ControlM.HPLChipconControl -> HPLCC2420C.StdControl;
>   CC2420ControlM.HPLChipcon -> HPLCC2420C.HPLCC2420;
>   CC2420ControlM.HPLChipconRAM -> HPLCC2420C.HPLCC2420RAM;
>   CC2420ControlM.CCA -> HPLCC2420C.InterruptCCA;
>   CCAM.SplitControl -> CC2420ControlM.SplitControl;
>   CCAM.Timer0 -> TimerC.Timer[unique("RadioCCAC")];
>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to