This is what the ActiveMessageAddressC component is supposed to handle in
2.0.2, although it won't change the enum / defined "TOS_AM_GROUP".  

  call ActiveMessageAddress.setAddress(am_group_t group, am_addr_t addr);

You should always access TOS_AM_GROUP through "call
ActiveMessageAddress.amGroup()".  Accessing TOS_AM_GROUP or TOS_AM_ADDRESS
directly is bad practice.

Changing the address/group information will cause ActiveMessageAddressC to
signal out an ActiveMessageAddress.changed() event. This notifies the radio
stack that it needs to sync the radio hardware with the node's new
address/group.

-David


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shaun
Lawrence
Sent: Monday, February 04, 2008 10:30 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Group ID on-the-fly change


Anyone have an idea?

Shaun

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shaun
Lawrence
Sent: Friday, February 01, 2008 11:34 AM
To: tinyos-help@millennium.berkeley.edu
Subject: RE: [Tinyos-help] Group ID Help

That worked, now does anyone know how to change the GroupId on the fly?

If I send a packet via the UART with a group id in the payload, is
there a command I can call that will change TOS_AM_GROUP?

Hopefully there is an easier way than editing/using the Deluge NetProg.

Thanks all,
Shaun

-----Original Message-----
From: Andreas Reinhardt [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 2:49 AM
To: [EMAIL PROTECTED]
Cc: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] Group ID Help

Shaun, you wrote you were using BaseStation to monitor your packets.  
For some reason it always blanks the group ID field. Maybe my latest  
post regarding this issue is of some help:

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg17703.htm
l

Regards, Andreas


_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to