Hi Andrew,

  Using Moteiv Boomerang, accessing the shared UART is very simple and
safe.  I've created a sample application that uses the shared UART to
send a byte.  It illustrates the use of the Resource arbitration
system and sending a byte.  See the included nesdoc/ documentation for
more information about the resource interfaces.  I'll post this up on
the Moteiv community webpage too.

  The TinyOS 1.x way of using the shared UART is very flawed. 
Unfortunately I was the designer of it :(  I have yielded to the
TinyOS 2.x method which is provided, in a slightly enhanced form that
exposes resource handles, as part of Boomerang.  You'll notice how
compact the sample code is compared to the previous Monibus code.

  To use, simply untar anywhere in Cygwin (after installing Boomerang):

tar xvzf Moteiv_Boomerang_Uart0_Sample.tar.gz
cd TestUart0
make tmote install

  You can monitor the output using a scope on pin 4 of the 10 pin
expansion header on Tmote Sky.

-Joe

On 3/18/06, Andrew Redfern <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
>  I've been trying to interface with UART0 on the tmote.  I looked through
> the archives and found some information in it and I have been able to get it
> partly working.  I'm using the MonibusHPLUART code.  I've found that by
> default the UARTData.txDone() function does not wait for a real signal that
> the data has been sent.  In the UART.put() function there are these calls:
>
>  call UARTControl.setModeUART_TX();
>
>  //enable interrupts
>  call UARTControl.enableRxIntr();
>  call UARTControl.enableTxIntr();
>
>  //transmit the data
>  call UARTControl.tx(data);
>
>  If the enable interrupts is commented out then the data is sent out UART0
> but then txDone() is never signaled.
>
>  Anyone know how to fix this?
>
>  Thanks for your help,
>  Andrew
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>

Attachment: Moteiv_Boomerang_Uart0_Sample.tar.gz
Description: GNU Zip compressed data

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

Reply via email to