[Tinyos-help] Change channel in the Packet level

Miklos Maroti mmaroti at math.u-szeged.hu
Mon Aug 18 12:40:09 PDT 2008


Hi!

On Mon, Aug 18, 2008 at 9:19 PM, 贾鹏 <jiapenghust at gmail.com> wrote:
> Hi, there
> I'm wondering whether it is possible to change RF230 channel in the packet
> level

Currently changing the channel dynamically is not supported. The
easiest way to do that would be to modify the

	async command uint8_t RF230Config.getDefaultChannel()
	{
		return RF230_DEF_CHANNEL;
	}

command in the RF230ActiveMessageP.nc file to return the channel
dynamically. Then to change the channel you need to stop the
RF230ActiveMessage component with SplitControl and then restart it.
Note, it is not practical to set this on a per packet basis since on
the receiver side the node cannot listen on multiple channels
symultaneously.

> and could anyone told me that where is the DRF230_DEFULT_CHANNEL
> initially defined?

It is define in tinyos-2.x\tos\platforms\iris\chips\rf230\HplRF230.h

Best,
Miklos



More information about the Tinyos-help mailing list