On 10/5/06, Xin Yang <[EMAIL PROTECTED]> wrote:
So i tried the new nesdoc in the tinyos 2.0 tool chain. Its pretty clean
and much easier to navigate. However one feature that i found really useful
in the 1.0 nesdoc that isn't availabe in the 2.0 tool chain is the giant
wiring map. Instead i only get smaller wiring maps when i bring up a
configuration.
The information that i find missing in this new representation is that i
can not tell from just reading a configuration diagram which components are
using the provided interfaces.
For instance if a configuration C provides interfaces A and B. When i
click on the configuration i can see that configuration provies intefaces A
and B, but to figure out how many modules are using and wiring to the A and
B interfaces provided by C, i need to look through all the files
essentially.
Since all of the components descrptions are in xml where should i start if
i wanna hack this feature in?
The code is in python, in the tinyos-2.x/tools/tinyos/ncc/nesdoc-py
directory on CVS on sourceforge. The file that contains the graph
generation function is graph.py. It's probably not too hard to adapt
that code to generate a whole-application graph. To get that graph in
XML, you need to invoke ncc with a -fnesc-dump=wiring option (see
tinyos-2.x/tools/tinyos/ncc/nesdoc.in for the current invocation of
ncc).
David Gay
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help