[Tinyos-help] sending two consecutive messages causes seg fault

2010-08-09 Thread Mitra Baratchi
Dear all I am writing an application in which two consecutive messages are needed to be sent. Although I check the busy flag ,I get a segment fault error trying to simulate it with TOSSIM (right after when it tries to send the second message). Could anyone help me with this? Here is the actual

Re: [Tinyos-help] [*] sending two consecutive messages causes seg fault

2010-08-09 Thread harshalw
Hi, Where is your receive method? You should return the received message in the receive method. Something like the line return bufPtr in the RadiocountToLedsC.nc file of RadioCountToLedsC app. Hope this helps. -- Harshal Dear all I am writing an application in which two consecutive messages

Re: [Tinyos-help] sending two consecutive messages causes seg fault

2010-08-09 Thread Michael Schippling
Look carefully at the arguments in these two calls from sendDone() and then send us a new question: call SendMsg1.send(TOS_BCAST_ADDR, msg1 ,sizeof(struct TreeReqMsg)); call SendMsg2.send(TOS_BCAST_ADDR, sizeof(struct TreeReqMsg),msg2); MS Mitra Baratchi wrote: Dear all I am