Hi Shikhar,

Once you have compiled with 'make telosb', you can do the following in
the /app/build/telosb:

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. I am pretty sure that you
can set other variables with 'tos-set-symbols' as Janos also
suggested...

Cheers,

Varun



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Shikhar Sachan
Sent: Sunday, June 29, 2008 9:48 AM
To: [email protected]
Subject: [Tinyos-help] Command line arguments in T2

I want to set some parameters in my T2 application using arguments
which I am thinking of passing in the command line while installing my
program on to the motes. To be more specific. Lets say I have vriables
x,y and I want to do something like ...make telosb
reinstall,<tos_node_id> <x> <y>. How can I do that. Is it supported by
T2.


Shikhar
_______________________________________________

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to