Hello,
Just to conclude the question that I posted. I managed to do the job.
Problem was that UART resource handling is written in way that it is
expected to be the only which uses  the UASRT device. I have changed some
files, and wrote different file on place of TelosSerialP, which I now use to
share the USART device between SPI0 and UART0 in time division, by
requesting and releasing the USART device. 

Hristo
......
Tmote, epic, tinyos 2.0.2, Cygwin


-----Original Message-----

Date: Thu, 11 Feb 2010 09:50:05 +0200
From: "Hristo Bojkov" <[email protected]>
Subject: Re: [Tinyos-help] Sharing UART0 and SPI0 on tinyos2.0.2
To: "Tinyos-help" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain;       charset="us-ascii"

Hi again

 

I have no problem to connect UART0 to the PC using the pins on the extension
connector, I am not asking about nay hardware issues.

The problem is that if I change in PlatformSerialC.nc to use the UART0, no
communication takes place over the radio - I can see with oscilloscope that
on the SPI0 bus no packets are sent at any time. In same time no UART
communication takes place, if I check with oscilloscope the UART0 lines the
signal from the PC is smashed down to 0.7V at the "ONES", instead of 2.6V
when it is on UART1.

SO my guess is that the arbiter is not used in serial communication or in
radio communication as expected by me and the USART0 device at the end is
not configured as UART or SPI in different moments of time.

 

Hristo

......

Tmote, epic, tinyos 2.0.2, Cygwin

 

 

From: Arik Sapojnik [mailto:[email protected]]
Sent: Wednesday, February 10, 2010 9:24 AM
To: Hristo Bojkov
Cc: Tinyos-help
Subject: Fwd: [Tinyos-help] Sharing UART0 and SPI0 on tinyos2.0.2

 

Hi,

I'm not sure it's possible to communicate over UART0.
If you look on the MSP430 block diagram (attached) it shows that only UART1
goes to USB converter.

Arik



On Tue, Feb 9, 2010 at 18:59, Hristo Bojkov <[email protected]> wrote:

Hello,

Does anyone have a base station application in which the PC side is
communicating on UART0? I have tried to convert the ordinary base station
that comes with the tinyos 2.0.2, but no success. 

An idea just how to share the radio and the uart on the msp430 would be very
welcome.

 

Hristo

......

Tmote, epic, tinyos 2.0.2, Cygwin

 

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




--
Best Regards,
Arik Sapojnik
[email protected]






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

Reply via email to