Hi Ashish, Now I had time to look into this. There was a bug in the BaseStation code which did not copy the group id from the radio message to the serial message. This is completely platform independent code, it has nothing to do with the IRIS.
The group id works for me: I have compiled the RadioCountToLeds with the following command line: DEFAULT_LOCAL_GROUP=0x66 make iris install Then I programmed another mote with the (new) BaseStation and run java net.tinyos.tools.Listen. I can see that the group ID becomes 0x66 on the received messages (instead of the default 0x22): 00 FF FF 00 01 02 66 06 00 EA How did you test the group id? What program did you use? Best, Miklos On Thu, Feb 18, 2010 at 10:56 PM, Ashish Padav Shenoy <[email protected]> wrote: > Hi Miklos, > > Thanks for your reply. > > I put a printf statement inside the amGroup() function in > ActiveMessgeAddressC and there the value of the group variable was being > set. So, yes it returned the right value. > > Even when i tried the setGroup command using a hardcoded group ID in my > source code, the TOS_AM_GROUP macro was getting set but not the group ID > field in the packets that were transmitted. > > Thanks, > > ~A > > On Thu, Feb 18, 2010 at 2:12 AM, Miklos Maroti <[email protected]> > wrote: >> >> Hi Anish, >> >> Can you please verify that the >> >> call ActiveMessageAddress.amGroup(); >> >> command of the ActiveMessageAddressC component returns the right group for >> you? >> >> Thanks, >> Miklos >> >> On Thu, Feb 18, 2010 at 10:09 AM, Miklos Maroti >> <[email protected]> wrote: >> > Dear Ashish, >> > >> > I will look into this, but probably cannot do it earlier than next week. >> > >> > Miklos >> > >> > On Wed, Feb 17, 2010 at 10:00 PM, Ashish Padav Shenoy >> > <[email protected]> wrote: >> >> Hi, >> >> >> >> I am using TinyOS-2.x and IRIS motes. >> >> >> >> I tried to set the mote's group ID using the >> >> "DEFAULT_LOCAL_GROUP=0x1E" >> >> flag in the Makefile. The corresponding compiler flag >> >> "DEFINED_TOS_AM_GROUP" >> >> gets set. But, when i use the serial forwarder to snoop the packets >> >> that i >> >> am transmitting over the radio, the packets' group ID field is 0. It is >> >> not >> >> getting set. So, I tried 2 things: >> >> >> >> 1. So, I tried to debug this by including the printf library and >> >> printing >> >> out the value of the TOS_AM_GROUP which equals the value 0x1E that i >> >> set in >> >> the Makefile. Why then is the group ID field of the packets not getting >> >> set >> >> ? >> >> >> >> 2. I also tried to set the group ID by wiring the AMPacket interface >> >> and >> >> calling the setGroup command. When i print it out using the printf >> >> library, >> >> the value seems to have been set to 0x1E. But the group ID field of the >> >> packets transmitted over the radio is still 0. Why is the group ID >> >> field of >> >> the packets not getting set ? Does it have something to do with the >> >> active >> >> message handler ID ? >> >> >> >> Thanks, >> >> >> >> Ashish >> >> _______________________________________________ >> >> Tinyos-help mailing list >> >> [email protected] >> >> >> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> >> >> > > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
