The first 7 bytes are from TOS_Msg struct since you are including your oscilloscope msg into the TOS_Msg data field.
uint16_t addr; uint8_t type; uint8_t group; uint8_t length; int8_t data[TOSH_DATA_LENGTH]; uint16_t crc; You can see the TOS_Msg struct definition in AM.h file Regards David De: [email protected] [mailto:[email protected]] En nombre de Carlo Desogus Enviado el: jueves, 06 de mayo de 2010 11:14 Para: tinyos help Asunto: [Tinyos-help] help packet oscilloscope Hi, i`m working with oscilloscope application with ubuntu and tinyos 2.1.1. I followed the 6th lesson of the tutorial but i don`t understand well the packet format. When i run "Listen" i get an packet format like this: 00 FF FF 00 01 1C 00 93 00 00 01 00 00 01 00 14 0F 55 1B 04 0F 55 1B 04 0F 59 1B 04 0F 56 1B 05 0F 55 1B 04 In the Oscilloscope.h the packet structure is: 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; So i thought that the packet could be of 2+2+2+2+2*10=28 byte. But i see a packet with 36 bytes!!! Why??? What is my mistake??? What i`m missing??? Can you let me see the beginning of the payload??? Thanks in advance. Carlo
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
