Dear Sir,
I have done compilation of normal applications in tinyos. I have
deployed it in micaz and telosb motes, as well as tested new programs in
avrora.
Currently what I am looking at is "binary component". It came as a feature
in nesc 1.2. It allows tinyos program to include compiled .o files of
c/nesc code.
There is a description of it given in ncc installation folder. My question
was to elaborate on that.
Simplest way I could explain it is
1) I have a Leds component. It has functions call Leds.Led1On() or off etc
2) Instead of using the LedsC directly in nesc compilation, I want to
compile LedsC as a binary component producing a .o file
3) I need to include the functions in LedsC just as I use it normally in a
blink application, but using this separately compiled .o file
My question is
1) How do I get this .o file?
2) How do I call functions in LedsC?
3) How can I still compile it using "make platform" or necessary switch to
be provided in Makefile for including this binary component
I hope I have stated the problem properly.......
2008/11/28 Michael Schippling <[EMAIL PROTECTED]>
>
> If you are asking how to compile and download a TOS
> application see the doc/tutorial for your version
> and the various Getting Started guides that usually
> ship with devkits. Or see:
> http://docs.tinyos.net/index.php/Using_TinyOS
>
> Otherwise, why don't we start by defining what you
> mean by "*binary component*"?
>
> MS
>
> Gireesh P wrote:
> > Dear Sir/other suppporters,
> > I have searched with keyword "*binary component*" in both
> > domains, tinyos.net <http://tinyos.net> as well as docs.tinyos.net
> > <http://docs.tinyos.net>. Unfortunately I could not find any
> > article/guidelines to compile a file as a component.
> > Please provide help pages/links/sample programs in this.
> >
> > 2008/11/27 Han Yidong <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> >
> > Please read spec on TinyOS website.
> >
> >
> >
> > You do not need to change Makefile, unless you want port TinyOS to
> > another platform.
> >
> >
> >
> >
> >
> >
> >
> > *From:* [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> > [mailto:[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>] *On Behalf Of
> > *Gireesh P
> > *Sent:* 2008年11月27日 14:00
> > *To:* [email protected]
> > <mailto:[email protected]>
> > *Subject:* [Tinyos-help] including binary components in makefile
> >
> >
> >
> > Dear TinyOS supporters,
> > I would like to know more about using binary
> components.
> > For example I have a nesc code with function blink() which will
> > blink leds in interval of 1 second , saved in files BlinkAppC and
> BlinkC
> > How can I compile it to form binary component?
> > If I get this blink component, what changes has to be made in
> > Makefile or compilation to transfer the file to a mote?
> >
> > --
> > Thanks
> > with regards
> > Gireesh
> > -------------------------
> > Gireesan Namboothiri P
> > MS(R) Student
> > Dept of CSE
> > IIT Madras
> >
> >
> >
> >
> > --
> > Thanks
> > with regards
> > Gireesh
> > -------------------------
> > Gireesan Namboothiri P
> > MS(R) Student
> > Dept of CSE
> > IIT Madras
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Thanks
with regards
Gireesh
-------------------------
Gireesan Namboothiri P
MS(R) Student
Dept of CSE
IIT Madras
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help