You don't have to modify AM.h for this

On Thu, April 5, 2007 12:31 pm, Abhishek Jain said:
> 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
>

Protocols like Bcast and Multi-Hop sit in-between AM and the application,
creating their own new fields in the header (and sometimes footer too) by
providing the same interfaces as AM and returning the new correct data
region.

Just alter the message size to compensate for your new data.

> 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


-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to