Remember to "Reply All" since the default reply-to isn't the mailing list!
(Can we change that?)

----------------------------- Original Message -----------------------------
Subject: Re: [Tinyos-help] Adding new fields to tinyos header (re-framed
question) From:    "Abhishek Jain"
Date:    Thu, April 5, 2007 2:54 pm
----------------------------------------------------------------------------

Ok. So here are the changes I want to make to the tinyos packet header -

( for telos motes, tinyos-1.x)

1) Remove grp ID field from tinyos packet header
2) Add a src Add field
3) Replace the data field by encrypted data field
4) Add a MAC field

Overall, something like TinySec, but with some differences (Note that
TinySec does not work for telos motes yet).

Eventually I have to define my own Msg structure like TinySec did. Therefore
I was trying to first make changes to the TinyOS packet
structure to see how it works and I encountered problem there which I
mentioned before.

So, should I just define my own msg structure by reducing the data size and
adding new fields or is there some way to keep the default user data size
intact and still expand the header?

thanks,
Abhishek

On 4/5/07, Benjamin Madore <[EMAIL PROTECTED]> wrote:
> 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
>
>


-- 
All you need in life is ignorance and confidence, and then success is sure.



-- 
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