[Tinyos-help] Logging

walid hamdi hi_walid at yahoo.fr
Mon Dec 4 04:58:40 PST 2006


Hi all!

I have some questions about Logging on the motes.
I´m working with micaz motes under tinyos-1.x.

I made a small logging application to store some data
on the mote. 
.....
        i++;
        if(i == 16) 
	{	         
	        i = 0;
		ToAppend = (char*)src_values;
		call LoggerWrite.append(ToAppend);
	}
.....

So as you see, i´m logging 16 values on one EEPROM
line.

Then, i implemented a small LogRead Method on the same
program. After a small timer the collected data is
sent to the pc via UART.
.....
call LoggerRead.readNext(pongmsg->Log);//Log is a
uint8_t[16] array!!
.....

now the questions are:
1) I´m receiving the EEPROM lines sequentially and
don´t know which is the first line of the wanted data,
because some lines before and all the lines after my
data are as follow:

ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff.

How can i get the line number from which my data has
to be collected??

2) from the first line of my collected data, i get 8
values separated by 0 like this:

e4 00 e3 00 df 00 e5 00 e7 00 e8 00 e7 00 e3 00

So, even if my array should contain 16 data, the line
juste contains 8. I can´t understand this? In the
Lesson 8 in the tutorial i saw the same fact but 1
separating the data like this:

48 1 38 1 33 1 32 1 32 1 33 1 34 1 34 1

Can somebody please explain me this fact?

3) How to erase the log when i want to do some other
measurements?

Thank you for helping!



	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com


More information about the Tinyos-help mailing list