[Tinyos-help] modification on TOSBase and show them on Xlisten
Michael Schippling
schip at santafe.edu
Mon Jun 5 15:09:08 PDT 2006
I think you are saying that the Xlisten program doesn't receive
any packets from the modified TOSBase? It may be because the
crc value in the packet is not correct and Xlisten is throwing it
away. Do you get anything if you use ListenRaw (which
just grabs chars from the port and attempts to sync with the
messages before dumping them to the screen)?
For averaging temp, it seems that you are counting on getting
messages in a particular order from devices 0 to 2, but they
may not come in sequence reliably. And the raw values from
each thermistor may not be calibrated correctly so any average
could be offset badly.
It would perhaps be more straightforward to write a PC host
program based on Xlisten, or other good candidates, to get
all the messages and do the processing on the host. At least
you could avoid headaches in modifying the TOS code.
MS
Xing Jin wrote:
> Hi ,
> I am collecting data info using XSensorMDA500 on 3 different mote
> nodes and send them to a base station. And on base staion , I changed
> the TOSBase to calculate the average value of each three. But the
> average can not been successfully gotten and shown throught
> Xlisten. Take temerature for example, my thought is just pick
> the thermistor value of each packet and add three of them together and
> get 1/3 of the sum. Is this a correct way to get the average value of
> temperature? However, what I care more is how to display the average
> value continously on the pc? I set a index which range from 0~2 and make
> it return to 0 after it arrives at 2. Everytime ,when it is 2, call the
> UARTSend to send the info. But it can not get info to display through
> Xlisten.
> Can anyone give me some hint?I appreciate it very much.
> Xing Jin
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list