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; 
}


-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

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

Reply via email to