TinyOS Help Group-
I'm trying to use the CTP modules to collect information using TelosB  
motes.  Dissemination works fine, but the compiler generates warnings  
when I try to include CollectionC in lines 488, 570, and 592 of  
CTPForwardingEngineP.  (I think these are the right lines, but I put  
in some comments a while back and I don't remember exactly how big  
they were.)  The lines all include the comparison "if (qe->client <  
CLIENT_COUNT) {".  Inside the clauses are the only lines which signal  
Send.sendDone().  The compiler says that this comparison is always  
false "due to limited range of data type".  qe->client is a uint8_t,  
and CLIENT_COUNT is an enum with value uniqueCount(UQ_CTP_CLIENT).   
I've tried hardcoding CLIENT_COUNT to 3 (the number of motes I'm  
using) and the warnings went away, but the base still didn't receive  
messages (Send.sendDone() was never signalled).
Also, somewhat related, I don't understand how uniqueCount can give  
the number of clients, since I'm using physical motes.  The base mote  
runs different code than each node, and each node's code is compiled  
separately since each has some data that should be unique.  Since  
uniqueCount is a compile-time function, wouldn't it only count one  
instance of unique(UQ_CTP_CLIENT) per compile?
Any insight you could provide would be greatly appreciated
-Kyle Fullerton
[EMAIL PROTECTED]

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

Reply via email to