I'm getting the impression that it is not my code's fault but the  
crashes have something to do with the printf() function. If I do less  
output via printf() more messages can be sent in a row before the  
crash occurs. I've decreased PRINTF_BUFFER_SIZE to 256 now (have tried  
1024, 2048 and 4096 before) and out-commented all the printf() and  
printfflush() calls except for a message at boot and another one when  
sending a message.After that the node crashes less frequently. I even  
had a test-run with about two hundred packets sent without crash  
before aborting. I could not reproduce this though. I did not change  
anything and restarted the node and net.tinyos.tools.PrintfClient but  
now the node crashes every 11 packets sent. I think I remember having  
had strange results before when using printf().

Increasing the PRINTF_BUFFER_SIZE to 512 does not double the number of  
successful sent packets before crash. Still 11 packets before crash.

I decreased the length of the message that printf() prints out to less  
than the half and now the crashes do not appear regularly anymore. The  
number of packages successfully sent before crash vary between 3 and  
11 now but most of the time there are 3 or 4.

I have decreased the length of the message printed for every send() to  
3 and had several hundred successful sent packages in the first run  
again. The following runs produced crashes again with an unregular  
number of successfully sent packets before the crash. The number of  
successfully sent packets is higher though than before. Now varying  
from 10 to several dozens. Once in a while the node wont even crash at  
all until resetting the node.

I wonder if the node crashes at all when I wont use printf() anymore.

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

Reply via email to