I tried compiling /apps/tests/TestNetwork, and the same warnings were  
given.  (in lines 488, 570, and 592 of CTPForwardingEngineP, the  
comparison
"(qe->client < CLIENT_COUNT) " is always false due to limited range of  
data type)  Also, I got two new errors:  "app.c:(.test+0x6884):  
warning: internal error: unsupported relocation error" and  
"app.c:(.test+0x68ce): warning: internal error: unsupported relocation  
error".  In my original code, I do instantiate a CollectionSenderC, so  
I doubt that's the problem.  Omprakash suggested that the problem  
might be my environment and/or compiler, so here's some information  
about it:

nescc --version gives
nescc: 1.2.8a
gcc: gcc (GCC) 4.1.2 20080928 (prerelease) (Ubuntu 4.1.1.13ubuntu5)
and some copyright information.

The operating system is Xubuntos 2.0 (a Ubuntu distribution), and it's  
the only computer I have access to which has the nescc compiler on it.

I'm not sure what other information would be useful, but I'd be glad  
to provide more if you tell me what you need and how to get it.   
Thanks in advance,

-Kyle Fullerton
[EMAIL PROTECTED]

Quoting Omprakash Gnawali <[EMAIL PROTECTED]>:

> On Tue, May 13, 2008 at 3:50 PM,  <[EMAIL PROTECTED]> wrote:
>> 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
>
> CLIENT_COUNT counts the number Collection users (CollectionSender's)
> in a single mote, it does not count the number of motes.
>
> Can you try compiling apps/tests/TestNetwork? This application
> includes both dissemination and collection and I don't get any
> compile-time warning. If you get compiler warnings, we should look
> into your environment/compiler.
>
> - om_p
>



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

Reply via email to