Fwd: [Tinyos-help] SPSend: sending a multi-packets message

2007-06-28 Thread julien falco
Thank you for your answer. I am still curious to know the relation between msg and tosmsg. Should msg be a structure of TOS_Msg? You say that send() only sends one packet: why then the nesdoc for send() says ' tosmsg - the first TOS_Msg packet in the SP message'?? I think this SP thing looks

[Tinyos-help] SPSend: sending a multi-packets message

2007-06-22 Thread julien falco
I would like to send several packet of AM_TYPE from tmote sky to pc. I use SPSend. I have so far made tries with just one packet of this type: typedef struct SkyetekM1miniCommand { uint16_t src;// Source address uint8_t M1miniCmdArray[20]; }SkyetekM1miniCommand; Now I would

Re: [Tinyos-help] SPSend: sending a multi-packets message

2007-06-22 Thread Joe Polastre
Hi Julien, The send() function only sends one packet through the radio. If you want to send multiple packets, you'll need to use the sendAdv() function. In this function, you specify the first packet and the number of total packets. SP will alert you when it is ready for the next packet by