You have to track down
OscopeMsg.h -- it's in the oscilloscope directory.

Here is the definition of your bytes:

struct OscopeMsg
{
    uint16_t sourceMoteID;
    uint16_t lastSampleNumber;
    uint16_t channel;
    uint16_t data[BUFFER_SIZE];
};

Note that the program saves up each channel
until there is a full packet before transmission.
However, the readings are taken interleaved with each other.
So assuming you haven't changed the number of readings in the buffer,
the last 20 bytes are your readings, you need
the previous 2 bytes to tell what channel you are reading from.

Eric

On Wed, Apr 23, 2008 at 9:07 AM, Maria Taramigkou
<[EMAIL PROTECTED]> wrote:
>
> Thank you Marco!Yes,i know,i've already read it!
> In fact,I meant how could i match the squence of last 20 bytes which are the
> bytes of data/measurements!
> I appreciate any kind of help!
>
> 2008/4/23, Marco Antonio Lopez Trinidad <[EMAIL PROTECTED]>:
> > Hi,
> >
> > It is hard to say, what is the structure of your packets? I mean how did
> you
> > inserted the sensor readings into the packets?
> >
> > There is in the following page:
> >
> > http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
> >
> > a complete explanation of the TinyOS packet structure, then you have to do
> the
> > match with your data.
> >
> > bye,
> >
> > --marco.
> >
> >
> >
> >
> >
> > > Hi!
> > > I'm using telosb
> > > motes which contain photo sensor,temperature sensor and humidity sensor
> and
> > > suppose I get this sequence of bytes from Oscilloscope-TOSBase:
> > >
> > > *1A 01 08 65 FF FF FF FF 0A 7D 03 00 58 02 02 00 92 01 93 01 96 01 95 01
> 96
> > > 01 92
> > > 01 92 01 7E 01 3E 01 3A 01
> > >
> > > *
> > > I have concluded that the last 20 bytes( *92 01 93 01 96 01 95 01 96 01
> 92
> > > 01 92 01 7E 01 3E 01 3A 01 )*mean 10 measurements that consist of 2
> > > bytes.What kind of measurement is each of them?
> > >
> >
> >
> >
> >
>
>
> _______________________________________________
>  Tinyos-help mailing list
>  [email protected]
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to