[Tinyos-help] able to get the first packet but not the rest..........

Hari Hara Sudhan hariharasudhan at acmet.com
Tue Oct 3 00:05:17 PDT 2006


I believe that the problem is with your TOS message Buffer.
 
Try this the code which resides in MOTE1 will be having this event
 
event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m)     
{
}
 
This event returns a TOS_MsgPtr which is used to receive the next
message.
 
event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m)     
{
 return m;
}
 
If you are not returning the TOS_MSgPtr you may receive the first
message, but you will not receive any further messages
 
Hope this helps
 
Regards,
R.Hari Hara Sudhan
 
 
Date: Sun, 1 Oct 2006 17:32:32 +0530
From: "primalfear 69" <primeballerina at gmail.com>
Subject: [Tinyos-help] able to get the first packet but not the
      rest..........
To: tinyos-help <tinyos-help at millennium.berkeley.edu>
Message-ID:
      <ed919a820610010502n20237c50u242630d030cd23e5 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
 
hello everyone,
 
           again in need of u guys help........:)
i am using tinyos 1.1.0 mica2 under windows. i use MIB510 programmer.
 
my program does the following.......................
MOTE1 gets data from uart and transmits it to the MOTE 2 via radio.
mote2
receives the data via radio and does some changes and then sends back to
the
MOTE1 via radio....
 
i am able to send many a packet of data from* mote1*........... but only
able to get the first packet and not able to get  the rest from *MOTE2*
 
 //////////////////////////
i am using two motes one (*MOTE1*) is used to get data (a fixed number
of
data......as of now its 10) from uart and the other one *(MOTE2)*is
programmed with genericbase. although there is a slight change in
genericbase code............
(instead of sending to the uart (when the mote is receiving data from
the
radio) i am again sending the data to the radio. problem is
here.............)
//////////////////////
 
Regards
primalfear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061003/ee3c592e/attachment-0001.html


More information about the Tinyos-help mailing list