Hi, This topic has been discussed several times, you can do it from the command line as follows: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/0347 01.html
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/0346 19.html But I will write it again here, Once you have compiled with 'make mica2', AND THEN you NEED to execute the following command in the /application/build/mica2/ 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 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mindaugas Jaraminas Sent: Thursday, 5 February 2009 7:13 PM To: Ranjani Nagarajan Cc: [email protected] Subject: Re: [Tinyos-help] Setting TinyOS address on a Mica2 mote Hi Radner, I think you are interested in mote ID yes ? To red it there is define "TOS_NODE_ID" e.g.: UINT16 address = TOS_NODE_ID; How to set it in mote? I am not sure if it is possible. -- Best regards Mindaugas Jaraminas Gilda Radner - "Adopted kids are such a pain - you have to teach them how to look like you." 2009/2/2 Ranjani Nagarajan <[email protected]>: > Hi there, > > I need to set or read the TinyOS address on mica2 motes. I am not sure how I > could do this. Any suggestions on how I could achieve this will be very much > appreciated. > > Thanks, > Ranjani > > _______________________________________________ > 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 _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
