Janos,

thanks for your quick answer.

The sensor board MTS420 use the UART1 of mica bus, therefore it isn't possible 
to switch to UART0 of mica bus. At tinyOS 1.x it works with UART1 well.

I'm not sure what you mean with
"USART1 is used by the radio (in SPI mode)"
I thought the communication between atm1281 and rf230 happen about SPI-bus. 

Use the IRIS mote the USART1 interface for SPI? 
I ask because the atm1281 have a seperate SPI port, therefore I thought it 
should exist any restrictions for using UART1 and SPI from the hardware layer.

Exists any possibility in tinyos 2.x to use SerialActiveMessage (UART0), USART1 
(raw data) and SPI for radio together?

Or, where can I find more information about communication by UART1 in SPI mode?

Thanks a lot,
Miles

Janos Sallai wrote:
> Miles,
>
> USART1 is used by the radio (in SPI mode), so you should use USART0 instead. 
> Just make sure that you don't use SerialActiveMessageC in your application, 
> this way, no other higher level components will be calling HplAtm128UartC 
> other than your GPS driver.
>
> Janos
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miles Tegson
> Sent: Friday, March 14, 2008 6:35 AM
> To: [email protected]
> Subject: [Tinyos-help] USART1 at IRIS mote under TinyOS-2.x
>
> Hi,
>
> I'm new here. I hope somebody could help me.
>
> I like to use USART1 at the IRIS mote under TinyOS-2.x to receive raw data 
> for example from GPS-device at MTS420 sensor board. Because 
> SerialActiveMessage use UART0 I wrote my own configuration to connect 
> HplAtm128UartC.Uart1 like at Atm128Uart0C with SerialP to get an UartStream.
>
> At time the UartStream.receive execute, but unfortunately with byte equal 
> 0x00. I'm not sure where could be my failure, in code, baudrate or anywhere 
> else. The GPS-device communicat with 9600 baud.
> I use "make iris install baud,9600 mib510,/dev/ttyUSB0"
>
> Thanks a lot,
> Miles
>
> configuration Atm128Uart1C {
>     provides interface StdControl;
>   provides interface UartByte;
>   provides interface UartStream;
>   uses interface Counter<TMicro, uint32_t>;
> }
>
> implementation
> {
>     components new Atm128UartP() as UartP;
>   StdControl = UartP;
>   UartByte = UartP;
>   UartStream = UartP;
>   UartP.Counter = Counter;
>     components HplAtm128UartC as HplUartC;
>   UartP.HplUartTxControl -> HplUartC.Uart1TxControl;
>   UartP.HplUartRxControl -> HplUartC.Uart1RxControl;
>   UartP.HplUart -> HplUartC.HplUart1;
>     components MainC;
>   MainC.SoftwareInit -> UartP; }
>
>




-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to