Hi Agnelo, Once you have compiled with 'make micaz', you can do the following in the /app/build/micaz:
tos-set-symbols main.exe main.exe-3 TOS_NODE_ID=3 ActiveMessageAddressC\$addr=3 This will set the TOS_NODE_ID to be 3 and then you can install the 'main.exe-3' file to your mote and it will have an ID of 3, I have used it successfully to test multi-hop networks. Cheers, Varun Jain R&D Embedded Design Engineer Spiderbox Pty. Ltd. P: +617 3318 9509 F: +617 3318 9595 M: +61401 091 248 E: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> W: http://www.spiderbox.com.au <http://www.spiderbox.com.au/> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Agnelo Silva Sent: Thursday, June 26, 2008 4:46 AM To: [email protected] Subject: [Tinyos-help] How to just compile and also pass the moteID? I am developing an schema of having users compiling locally (no motes plugged) and a local application submitting the image code to a server physically connected to the motes. Some of this idea I had already developed and tested, but now I have a problem that seems to be simple, but I didn't find the solution. The problem: If you just want to compile, this would be an example: make micaz (now you have the ./build/micaz/main.exe needed for the "micaz reinstall" program) But if you also want to pass the modeID, it doesn't compile: make micaz,3 (no error message, no compilation at all). []s Agnelo Silva
<<image001.jpg>>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
