On May 22, 2007, at 8:42 AM, Javier Almansa Sobrino wrote:

On Tue, 22 May 2007 16:59:52 +0200 (CEST)
"Daniele Frosali" <[EMAIL PROTECTED]> wrote:


Just one question.

I know that TOS_LOCAL_ADDRESS is the local address of the mote, that
means, I guess, the ID number n defined in

make telosb reinstall,n

Can you confirm this meaning? ANd if yes, from a programmer point of view,
where and how the component reads its TOS_LOCAL_ADDRESS??


Hi. I was going to ask somewhat about this topic just now. I think if
you want to know your local address at running time, you only have to
read the global variable TOS_LOCAL_ADDRESS into your code.

The question(s) I have:

What's exactly the difference between local adress, node id and group?
Why I'm trying to program my mica2 with make install.0x0001 mica2
mib510,/dev/ttyS1 and I obtain this message:
Could not find symbol ActiveMessageAddressC$addr in
build/mica2/main.exe, ignoring symbol.
Could not find symbol TOS_NODE_ID in build/mica2/main.exe, ignoring
symbol.   ?
and how can I chage the mote address at run time? (I know there's other
thread about this topic yesterday ago, but it doesn't work on my :( )

sorry for the amount of questions, but I'm new with tinyOS and I've
looking for documentation days ago....

P.D: I'm using tinyOS 2.x

TinyOS 2.x does not have a TOS_LOCAL_ADDRESS. It has TOS_NODE_ID. It also has a local AM address. While the two are technically distinct, in practice they are usually the same (make install.X will set both to be X).

You are getting those two "could not find symbol" messages because your application does not use/access those variables. Because the nesC compiler removes dead variables and dead code, if no line of code accesses a variable then it is removed from the executable.

Phil


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

Reply via email to