Thank you Philip, hadn't occurred to me to use gdb. I'll try to produce better questions after I study TOSSIM some more. I've managed to follow some function calls but the link between NesC and C, as in sim_mote.h, are a little more difficult to understand.
Thank you so much for taking some time to answer me. Regards! ------------------------------------------------- Sergio Campamá Ingeniero Civil Eléctrico PUC [email protected] On Aug 15, 2010, at 8:27 PM, Philip Levis wrote: > > On Aug 15, 2010, at 11:07 AM, Sergio Campamá wrote: > >> Hello, >> >> I am trying to understand how Tossim works in order to make some changes in >> the simulation engine, specifically to incorporate new processors and try >> different wireless channel models. >> >> Is there any documentation from when MicaZ was implemented in Tossim, or the >> "function" flow from the python interpreter to where the noise is added to >> the "packet"? Also, does someone know where the SimMote.nc is compiled into? >> I know sim_mote.h is compiled with the SWIG wrapper, but I'm having trouble >> following where the NesC implementation is compiled into. > > There isn't any special documentation for this, as it's not *too* many lines > of code. > > The component you probably care about is CpmModelC; it's what actually > computes whether a packet should be received, based on signal strength, mote > interference, and external interference. External interference/noise samples > are taken from a statistical model implemented in sim_noise.c. If you have > more precise questions I can try to point you in the right direction. To be > honest, the best way to learn the code might be to just run TOSSIM inside gdb > and walk through what happens. > > Phil > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
