Hi, I am working on a civil infrastructure monitoring project with sensor nodes using ATxmega16A4, CC2420. The code for physical layer functions (in C) have been given to us on top of which we have to implement Collection tree protocol for routing the packets to the sink. I have downloded the C code for CTP on mantis OS. Is this code suitable to be directly used on my firmware?..I am new to embedded programming..any help would be greatly appreciated.
Thanks in advance, Apoorva. On Wed, Jun 22, 2011 at 3:26 AM, Romain Bornet <[email protected]>wrote: > Hi, > > You can find the intermediate C code generated by the nesC compiler if > you build an application using CTP. After you compiled the application > you will find an "app.c" source file in the build/<platform> > subdirectory. This is the generated C code... > > Let's say for example that you build the MultihopOscilloscope in the > apps directory for the micaz: > > $ cd $TOSROOT/apps/MultihopOscilloscope > $ make micaz > > The generated C code is in > $TOSROOT/apps/MultihopOscilloscope/build/micaz/app.c > > You will see that the generated code is rather difficult to read and > follow but you can find CTP related function rather easily. > > If you are looking for other CTP implementations more easily portable > in plain C have a look at: http://sing.stanford.edu/gnawali/ctp/ > > Hope this helps > Romain > > On Wed, Jun 22, 2011 at 1:00 AM, Apoorva Gade <[email protected]> > wrote: > > Hi, > > I am working on a project where i should implement the Collection Tree > > Protocol for routing in sensor networks in C. Since it is already > > implemented in tinyOS, is there a way to get the intermediate C code > > generated by the nesc compiler? Else i should do it manually which seems > to > > be quite complicated. I am new to tinyOS. Any help would be greatly > > appreciated. > > > > > > Thanks in advance. > > > > Apoorva. > > > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
