SPC sends packets to the UART, but not raw bytestreams.  You need to
encapsulate your printf() argument into a message, send the message
via SP, and then decode it on the PC using the Java, C, or Python
tools.

-Joe

On 3/2/07, Tiago Camilo <[EMAIL PROTECTED]> wrote:
Hi Joe,
Can you give us an example of using the UART interface with SPC.
I had already a function that printf to the UART with HPLUART.put(), but
when I integrated it with SPC, it stop working.
Thanks,
Tiago

Joe Polastre wrote:
> Hi Ankur,
>
>  The default baud rate is 57600 in Boomerang.
>
>  You should use GenericComm or SPC to send messages, and then address
> messages to the UART  if you would like them to go to the PC.  UART
> and Radio messages in Boomerang can be sent in parallel, because SPC
> implements a pool that processes messages concurrently.
>
> -Joe
>
> On 3/1/07, Ankur Kamthe <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am trying to write an application wherein the Tmote receives data
>> over the radio and forwards it to the PC via the UART. I was not
>> getting the data to flow correctly into the PC, so I was concerned
>> about the following things:
>>
>> 1. Is 57600 the default baud rate on the Tmote?
>> 2. Do I need to use Resource Arbitration to send data to the PC and do
>> radio communication for the Tmote?
>>
>> I am wiring my send, receive interfaces to UARTNoCRCPacket which wires
>> to HPLUSART1M at the lower levels. HPLUSART1M gives the implementation
>> of USART0 lowlevel functionality. I thought that Resource Arbitration
>> was required only for communication between the radio and UART0.
>>
>> Could anyone correct me if I am making a wrong conclusion?
>>
>> Thanks,
>> ankur
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help@Millennium.Berkeley.EDU
>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to