Well what you are suggesting is precisely what I don't want to do. I
am not looking for application specific changes.
I have to add new fields to the tinyos packet header so that it is a
system level change and any application that sends packets over radio
can be benefited by the changes I make to the packet header.
Abhishek
On 4/4/07, Bibudh Lahiri <[EMAIL PROTECTED]> wrote:
Abhishek,
Although I don't work on CC2420 (I work on CC1000), I'd recommend u not
to modify the TOS_Msg structure in AM.h, because that's a system file
defined by TOS. Rather, have a look at applications like CntToLedsAndRfm,
see how they define their application-specific message structures in
IntMsg.h (/opt/tinyos-1.x/tos/lib/Counters), and how they encapsulate that
message into a TOS_Msg structure from IntToRfmM.nc
(/opt/tinyos-1.x/tos/lib/Counters).
Bibudh
Bibudh Lahiri
Graduate Research Assistant
Department of Electrical and Computer Engineering
Iowa State University
http://www.ece.iastate.edu/~bibudh/
On 4/4/07, Abhishek Jain <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have to add new fields to the tinyos header for telos motes in
> tinyos-1.x. When I try to modify TOS_Msg in AM.h (for telos motes), I
> can only go up to adding 2 more bytes to the default header. If I try
> to add any more fields, sending msg encounters failure.
>
> The header size is calculated in AM.h itself, so I don't understand
> why I cannot add more fields to the header. Is there some max header
> size defined for CC2420 somehwere which I could increase?
>
> thanks,
> Abhishek
>
> --
> All you need in life is ignorance and confidence, and then success is
sure.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
All you need in life is ignorance and confidence, and then success is sure.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help