Re: Uart and CC2420 module conflict on telos Platform?
Han Yidong <YDHAN <at> ntu.edu.sg>
2008-08-01 02:36:01 GMT
Hi,
Thanks a lot for your answer. You got the problem I
encountered.
And BSN should belong to telosa platform. I use this platform makefile
to compile.
Cauz BSN provide a extension board, which has Uart1tx and Uart1rx
pins. So I could use its Uart1 interface, beside the USB programming function
of Uart1. When I program the BSN node by USB, the BSN will be reset,
afterwards, Uart1 could be controlled by the application.
Pity thing is, for our CC2420 stack, it could only run on
Platform1, and no way to run on PC to test. But Uart1 works quit well before
that CC2420 command being executed.
This problem really got me frustrated, haha…
Thanks again^_^
Best Wishes,
Yidong, Neil
From:
tinyos-help-bounces <at> millennium.berkeley.edu [mailto:tinyos-help-bounces <at> millennium.berkeley.edu]
On Behalf Of Guillermo De Cesco
Sent: 2008年7月31日 21:13
To: Han Yidong
Cc: tinyos-help <at> millennium.berkeley.edu
Subject: Re: [Tinyos-help] Uart and CC2420 module conflict on telos
Platform?
Hi,
I am a little confuse, BSN == tmote, isnt it?
You are using tmote as your microcontroler to interact with your own CC2420
stack through one msp430 Uart.
when you connect bsn to usb, does your application works or you have the same
problem?
you say that you use UART1 to communicate to platform1, but how do you achive
this if UART1 is used by usb?
if you are using uart0, we can talk about the issues I mentioned in the
previous mail, in particular to your application.
Related to debugging I always wanted to use ICE but never bought it.
On Thu, Jul 31, 2008 at 5:52 AM, Han Yidong <YDHAN <at> ntu.edu.sg> wrote:
Hi Bill,
I saw your reply about UartStream error in the TinyOS mailing list.
Impressive!
Actually I also encountered the same Uart1 problem in my project. I am now
using telos platform, which is BSN development kit from Imperial College
London.
This platform has SPI/Uart0 interface and Uart1. Our group is now using this
BSN Development Kit to develop our own prototype, which use another platform Platform1 to connect to BSN through
Uart1 interface, we build our own CC2420 stack on Platform1 and try
to communicate with another BSN node trough CC2420, like the following graph.
Telos(BSN)
|-----------------------------------------------------|
|
|-----------|
SPI
|-----------|
|
Uart |--------------|
| |
RF | <---------------
| MSP430 |<-|-------------->|Platfrom1 |
| |-----------| BSN
Node |-----------|
|
| -------------|
|-----------------------------------------------------|
One thing I may mention is that, I plug the BSN into PC to utilize the
USB power supply, but when I use battery , the UART1 could not work at all. I
still don't know why.
Caus we don't have standalone CC2420 module.
What telos platform do is to function as Uart-SPI gateway in that we want to
utilize the CC2420 module without using CC2420 stack on Telos . On
it, we use TinyOS 2.x to program the node, when operating the RF module, we use
purely Usart interface to read or write CC2420, like the following interfaces:
call Usart.clrTxIntr();
call Usart.tx( ch );
call InterruptFIFOP.clear();
When we try to operate CC2420 on BSN and meanwhile transmit data through
Uart, then few problems happen.
1.
After SRXON command strobe is sent to CC2420, we continue to try to send data
through Uart1, it turn that the data could not be received correctly at BSN
side. But before that command, the Uart1 works quit well.
2. The same
problem would happen after I send STXON command strobe.
3. Since we
only trace to the STXON step, we could not guarantee there's no problem for
other command strobes, if so, can you point them out?
Have you ever encountered this kind of
problem? Or do you have any idea about these?
Besides, Is there any efficient method to
debug BSN development kit, or telos platform? Do we need to buy other ICE tools
if we want to debug BSN?
Best Wishes,
Yidong, Neil
<div>
<div class="Section1">
<p class="MsoNormal"><span>Hi,<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>Thanks a lot for your answer. You got the problem I
encountered.<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>And BSN should belong to telosa platform. I use this platform makefile
to compile.<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>Cauz BSN provide a extension board, which has Uart1tx and Uart1rx
pins. So I could use its Uart1 interface, beside the USB programming function
of Uart1. When I program the BSN node by USB, the BSN will be reset,
afterwards, Uart1 could be controlled by the application.<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>Pity thing is, for our CC2420 stack, it could only run on
Platform1, and no way to run on PC to test. But Uart1 works quit well before
that CC2420 command being executed.<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>This problem really got me frustrated, haha…<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>Thanks again^_^<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span>Best Wishes,<p></p></span></p>
<p class="MsoNormal"><span>Yidong, Neil<p></p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<p class="MsoNormal"><span><p> </p></span></p>
<div>
<p class="MsoNormal"><span>From:</span><span>
tinyos-help-bounces <at> millennium.berkeley.edu [mailto:tinyos-help-bounces <at> millennium.berkeley.edu]
On Behalf Of Guillermo De Cesco<br>Sent: 2008</span><span lang="ZH-CN">年</span><span>7</span><span lang="ZH-CN">月</span><span>31</span><span lang="ZH-CN">日</span><span> 21:13<br>To: Han Yidong<br>Cc: tinyos-help <at> millennium.berkeley.edu<br>Subject: Re: [Tinyos-help] Uart and CC2420 module conflict on telos
Platform?<p></p></span></p>
</div>
<p class="MsoNormal"><p> </p></p>
<div>
<p class="MsoNormal">Hi, <br><br>
I am a little confuse, BSN == tmote, isnt it?<br>
You are using tmote as your microcontroler to interact with your own CC2420
stack through one msp430 Uart. <br>
when you connect bsn to usb, does your application works or you have the same
problem?<br>
you say that you use UART1 to communicate to platform1, but how do you achive
this if UART1 is used by usb?<br>
if you are using uart0, we can talk about the issues I mentioned in the
previous mail, in particular to your application.<br><br>
Related to debugging I always wanted to use ICE but never bought it. <br><br><p></p></p>
<div>
<p class="MsoNormal">On Thu, Jul 31, 2008 at 5:52 AM, Han Yidong <<a href="mailto:YDHAN <at> ntu.edu.sg">YDHAN <at> ntu.edu.sg</a>> wrote:<p></p></p>
<div>
<div>
<p>Hi Bill,<p></p></p>
<p> <p></p></p>
<p>I saw your reply about UartStream error in the TinyOS mailing list.
Impressive! <p></p></p>
<p> <p></p></p>
<p>Actually I also encountered the same Uart1 problem in my project. I am now
using telos platform, which is BSN development kit from Imperial College
London.<p></p></p>
<p> <p></p></p>
<p>This platform has SPI/Uart0 interface and Uart1. Our group is now using this
BSN Development Kit to develop our own prototype, which use <span>another platform Platform1 to connect to BSN through
Uart1 interface</span>, we build our own CC2420 stack on Platform1 and try
to communicate with another BSN node trough CC2420, like the following graph.
<p></p></p>
<p> <p></p></p>
<p>
Telos(BSN)<p></p></p>
<p>|-----------------------------------------------------|<p></p></p>
<p>|
|-----------|
SPI
|-----------|
|
Uart |--------------|<p></p></p>
<p>| |
RF | <---------------
| MSP430 |<-|-------------->|Platfrom1 |<p></p></p>
<p>| |-----------| BSN
Node |-----------|
|
| -------------|<p></p></p>
<p>|-----------------------------------------------------|<p></p></p>
<p> <p></p></p>
<p>One thing I may mention is that, I plug the BSN into PC to utilize the
USB power supply, but when I use battery , the UART1 could not work at all. I
still don't know why.<p></p></p>
<p> <p></p></p>
<p>Caus we don't have standalone CC2420 module<span>.
What telos platform do is to function as Uart-SPI gateway in that we want to
utilize the CC2420 module without using CC2420 stack on Telos .</span> On
it, we use TinyOS 2.x to program the node, when operating the RF module, we use
purely Usart interface to read or write CC2420, like the following interfaces:<p></p></p>
<p> <p></p></p>
<p> call Usart.clrTxIntr();<p></p></p>
<p> call Usart.tx( ch );<p></p></p>
<p> call InterruptFIFOP.clear();<p></p></p>
<p> <p></p></p>
<p> <p></p></p>
<p> <p></p></p>
<p>When we try to operate CC2420 on BSN and meanwhile transmit data through
Uart, then few problems happen. <p></p></p>
<p> <p></p></p>
<p><span>1.
After SRXON command strobe is sent to CC2420, we continue to try to send data
through Uart1, it turn that the data could not be received correctly at BSN
side. But before that command, the Uart1 works quit well.</span><p></p></p>
<p>2. The same
problem would happen after I send STXON command strobe.<p></p></p>
<p>3. Since we
only trace to the STXON step, we could not guarantee there's no problem for
other command strobes, if so, can you point them out?<p></p></p>
<p> <p></p></p>
<p><span>Have you ever encountered this kind of
problem? Or do you have any idea about these? </span><p></p></p>
<p><span> </span><p></p></p>
<p><span>Besides, Is there any efficient method to
debug BSN development kit, or telos platform? Do we need to buy other ICE tools
if we want to debug BSN?</span><p></p></p>
<p> <p></p></p>
<p>Best Wishes,<p></p></p>
<p>Yidong, Neil<p></p></p>
</div>
</div>
</div>
<p class="MsoNormal"><p> </p></p>
</div>
</div>
</div>