Hi! On Mon, 15 Dec 2008, Razvan Musaloiu-E. wrote:
> Hi! > > On Sun, 14 Dec 2008, Jamie Macbeth wrote: > >> I'm running Tinyos-2.x from CVS on iris motes. I'm trying run Deluge >> T2, and in my application every node needs to know its ID. >> Dissemination and reboot seem to work properly for all of the Deluge >> connected nodes, but TOS_NODE_ID is identical for all nodes when I use >> it in my app. >> >> With some searching I felt assured that TOS_NODE_ID is being >> hard-coded in the c source created in the build process >> (build/iris/app.c). So I guess that TOS_NODE_ID isn't supposed to >> work with Deluge. When I Deluge-ping nodes connected via serial they >> seem to know their node ids... I assume that they are being read from >> storage. How can I ID in tinyos applications that are disseminated >> through Deluge? > > The TOS_NODE_ID is hard-coded on the app.c but upon boot the DelugeC is > restoring it. The code that is doing this for IRIS is the Init.init from > tos/lib/net/Deluge/extra/iris/NetProgM.nc. I'll check tomorrow on MicaZ to > see if everything works as it should. I just tested MicaZ and it works fine. The TOS_NODE_ID is properly restored after a -dr command. Janos, can you confirm this result for IRIS? :-) -- Razvan ME _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
