Hi Bandara,

I'm not sure I understand the problem. You store sensor readings into
the EEPROM. Another component asks for readings from the EEPROM and then
 broadcasts it. Is this correct sofar? The problem then is that it
always sends the same packet? Could you describe a bit more what you see
and what you expect to see?

Why don't you just broadcast the sensor readings without storing them
into EEPROM first?

Are you sure that new readings are written to the EEPROM? Maybe it
writes always the same value.

Cheers,
Urs


Thusitha Asela schrieb:
> Dear Sir,
>  
>     I am a 4th Year Student at the University of Colombo School of Computing 
> Sri Lanka. I am doing a Sensor Application for my 4 th Year Individual 
> Project. 
>  
> So i tried to sample the Light Sensor data into EEPROM and then read them 
> continuously. 
>  
> I could verify that the data is written to the EEPROM correctly. 
>  
> According to the following Code:
>     
>     I start Sense Light Reading.
>     Then call a Module to make a Request for confirmation to send the Sampled 
>         Data.
>     If Confirmation gets True:    It calls a task to READ from EEPROM and 
> Send                                                 Data
>                                                 Then In "SendDone() " method, 
> I again call to                                                     READ FROM 
> EEPROM and Send the Data.
>                                                 I do this for 4 -8 Times.
>  
> **  The Problem is that in each time it gives (BCAST) only the First Data 
> Packet.
>  
> Is it relevant to some lack of refresh time??
>  
> ** Please  help me to Continuously READ DATA FROM the EEPROM on this Micaz 
> MOTE.
> Or
> Can you please guide me to solve this Problem??
>  
> Strongly appriciate your any commence!
>  
>  
> Followings are the Code. And i have Attached the full Code with this as well.
>  
> Please Give me some help!!!
>  
>   
> Thank You!
> Regards,
> Bandara.
> (The Happy is the Goal!)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to