[Tinyos-devel] Problem with SFLUSHTX strobe on micaz and telosb
Jun
yanjunrockets at gmail.com
Thu Mar 27 11:46:30 PDT 2008
Jan,
Thank you very much for your comments. They solve the problem!
If I require SPI resource before calling the strobe, everything works
as expected. I just checked the latest cc2420 code, it looks that
SPI resource is always secured before involving the SFLUSHTX strobe.
I have to move to the latest code base soon.
Thank you very much again,
Jun
On Wed, Mar 26, 2008 at 4:00 AM, Jan Hauer <jan.hauer at gmail.com> wrote:
> Are you sure that your component is owner of the SPI when you call
> SFLUSHTX.strobe ? Have you checked the return value ?
> Jan
>
> On Mon, Mar 24, 2008 at 6:18 PM, Jun <yanjunrockets at gmail.com> wrote:
> > Hello All,
> >
> > I recently observed some unexpected behavior of cc2420 radio, which
> happened
> > when I try to send a high priority packet that would cancel pending
> packet
> > that has been loaded to cc2420 TXFIFO.
> > (I'm sorry if you have received the duplicate message on tinyos-help.)
> >
> > It seems that SFLUSHTX strobe does not flush the loaded data from
> TXFIFO.
> > I first called CSN.clr, SFLUSHTX.strobe, CSN.set to cancel the pending
> data
> > which is 40 bytes.
> > Then I wrote a new packet of 11 bytes (just cc2420 header) to TXFIFO
> using
> > loadTXFIFO and no error is observed.
> >
> > The strange behavior from this point. After calling the STXONCC strobe,
> > a receiving node got a packet of 40 bytes rather than the newly loaded
> > packet
> > which is only 11 bytes. I ran same code on micaz and telosb and got
> exactly
> > the same results.
> >
> > Did I do anything wrong when involving SFLUSHTX.strobe?
> > Does anyone have any idea on this strange behavior of cc2420?
> >
> > Thanks in advance for your help,
> >
> > Jun
> >
> >
> > --
> > --
> > Mailto: yanjunrockets at gmail.com
> > _______________________________________________
> > Tinyos-devel mailing list
> > Tinyos-devel at millennium.berkeley.edu
> >
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
> >
> >
>
--
--
Mailto: yanjunrockets at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20080327/fcd0aa7c/attachment.htm
More information about the Tinyos-devel
mailing list