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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guillermo De 
Cesco
Sent: 2008年7月31日 21:13
To: Han Yidong
Cc: [email protected]
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 <[EMAIL PROTECTED]> 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

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to