Hello,
when i try to run the oscilloscope application with NREADINGS=10, it
doesn't work anymore.
It is working only with NREADINGS=8 and TOSH_DATA_LENGTH=28
Or it is working with NREADINGS=10 but i have to increase
TOSH_DATA_LENGTH to 32!
I suppose there is a problem of payload size..? 4 bytes are missing in
the available payload of the message...
I use the cvs tinyos-2.x tree.
Thanks for the help.
-----------------------------------------------------------------------------------------------------------------------
enum {
/* Number of readings per message. If you increase this, you may have to
increase the message_t size. */
NREADINGS = 10,
/* Default sampling period. */
DEFAULT_INTERVAL = 256,
AM_OSCILLOSCOPE = 0x93
};
typedef nx_struct oscilloscope {
nx_uint16_t version; /* Version of the interval. */
nx_uint16_t interval; /* Samping period. */
nx_uint16_t id; /* Mote id of sending mote. */
nx_uint16_t count; /* The readings are samples count * NREADINGS
onwards */
nx_uint16_t readings[NREADINGS];
} oscilloscope_t;
----------------------------------------------------------------------------
--
Cyril
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help