Have you checked the thing about the separator? If you don't fix it,
then ID-based sending will not work.
The reference is Federico Univesity Mobilab's tutorial.
This is what I wrote in my tutorial (sorry I got lazy and just copy-pasted it)
Mac OS X is not supported by the core working group, but MobiLab has a
very good tutorial about how to install tinyos on such OS. If you use
such tutorial, there's one other line in the avr.rules that has to be
changed. Line 33, which is AMADDR=ActiveMessageAddressC\\$$addr should
be replaced for AMADDR=ActiveMessageAddressC\\never1096WritEaddr,
assuming you are using never1096WritE as the separator mentioned. If
you don't do this, ID-oriented communication based on active messages
will not work, because the node will not be assigned a active message
address. If so, a message similar to this might appear during the
(re)installation processes of a component: Could not find symbol
ActiveMessageAddressC$addr in build/mica2/main.exe, ignoring symbol.
In this case I was trying to install the component in a mica2 mote.
I don't think it is the problem, but just in case it is...
2007/8/28, Risto Hietala <[EMAIL PROTECTED]>:
> Hi,
>
> I have been trying to get the Collection-example in tutorial 12 to
> work without success. Problem is that the root-node doesn't receive
> messages from other nodes.
>
> I'm using Mica2 and currently I've tested with three nodes in
> different roles. The hardware should be ok as the examples using
> AMSender and receiver work properly.
>
> I tried to debug by changing the sendMessage and sendDone -functions
> to toggle a led whenever it sends something:
>
> sendMessage:
> else {
> sendBusy = TRUE;
> call Leds.led1On();
> }
>
> Send.sendDone:
> sendBusy = FALSE;
> call Leds.led1Off();
>
> This way the sending node would just turn led 1 on, so my conclusion
> is that the first packet never arrives at root and the other nodes
> are just trying to retransmit it. The error-led doesn't light up at
> any time.
>
> I'm using
> nescc: 1.2.9
> gcc: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
> build 5367)
> and TinyOS-build is from CVS.
>
> When compiling, I get three "control may reach end of non-void
> function ... being inlined"-warnings and four times the warning
> "tos/lib/net/ctp/CtpForwardingEngineP.nc:656: warning: 'gradient' may
> be used uninitialized in this function" from different lines of that
> file.
>
> I played also with the TestNetwork-example and ended up not getting
> it to work either.
>
> If anyone has experienced similar problems, I'd be glad to share
> experiences. Especially with OSX-users, as it was not so easy to get
> the development environment to work.
>
>
> Thanks in advance and best regards,
>
> Risto Hietala
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
"The truth shall set you free"
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help