Add a line like the following to your Makefile.

CFLAGS += -DCC2420_DEF_CHANNEL=26



On Thu, Sep 4, 2008 at 7:15 AM, Eric Keller <[EMAIL PROTECTED]> wrote:
> Can someone confirm the procedure to change the default channel and
> default group
> for a telosb mote under Tinyos-2.1?  I would like to change it in the
> makefile in my source
> directory if I can.
>
> Here's the background:
> I have a network of 45 telosb motes running an application based on
> the Oscilloscope demo that is in apps/Oscilloscope.  My application
> bears little resemblance to the Oscilloscope program anymore, but I
> was still using the AM message ID.  Sometime today, a neighbor
> apparently started running the Oscilloscope demo on a sizable network,
> because I was getting packets even with my network turned off.  I
> didn't test it using the oscilloscope java app, but
> Hex dumps show well formed packets as defined in the Oscilloscope
> program.  I am using the default group and default channel.   So I
> changed my message ID, and it started working better.  But I'm still
> sharing a channel with someone else, and my network runs very slowly.
> Of course, this happened a few hours before I had to give a demo.
>
> I tried changing the channel in /opt/tinyos-2.x/tos/chips/cc2420/CC2420.h
> CC2420_DEF_CHANNEL = 24
> For whatever reason, this didn't seem to work.  I have my motes hooked up to
> a group of 7 PC's and program them over USB.  I compile the program
> and distribute
> it to the 7 PCs, which have tinyos installed.   I reprogrammed all the
> motes with the
> new channel, and the base station mote was not receiving any messages.
>
> Thanks,
> Eric
> _______________________________________________
> 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

Reply via email to