[Tinyos-devel] RE: UartByte / DirectSerial
David Moss
dmm at rincon.com
Wed Jun 20 14:15:56 PDT 2007
Vlado -
You're right, I haven't implemented any escapes in the version of this
single-phase serial component, thanks for catching that.
When I plugged in the code you presented, the tests I have for UartByte on
the MSP430 pass. This is excellent.
-David
_____
From: vlado.handziski at gmail.com [mailto:vlado.handziski at gmail.com] On Behalf
Of Vlado Handziski
Sent: Wednesday, June 20, 2007 12:57 PM
To: David Moss
Subject: Re: UartByte / DirectSerial
Hi,
can you try if your test works with this slightly modified UartByte
implementation in Msp430UartP.nc:
async command error_t UartByte.send( uint8_t data ) {
call Usart.clrTxIntr();
call Usart.disableTxIntr ();
call Usart.tx( data );
while( !call Usart.isTxIntrPending() );
call Usart.clrTxIntr();
call Usart.enableTxIntr();
return SUCCESS;
also I could not find in your files where you are escaping the possible
occurrences of the sync byte in the payload.
Vlado
On 6/20/07, David Moss <dmm at rincon.com> wrote:
Vlado -
Here's all the files from a "directserial" library that does (or attempts
to, rather) single phase serial sends. Currently I am using it in
conjunction with other apps to test the UartByte interface, with the goal of
possibly using it for single-phase application debugging output from the
mote in the future.
It taps into the UartByte interface through PlatformSerialC. Simple to use:
just make a new DirectSerialAMSenderC(AM_WHATEVER) and access it like you
normally would. For example, you could edit the printf library
configuration to use a DirectSerialAMSender instead of SerialAMSender.
I know it will mess up the operation of the regular serial stack because it
doesn't share nicely. It works on the ATmega128 now that the recent fix has
been checked in, but I can't get it to work with the MSP430. I believe the
issue lies with the MSP430 UartByte interface.
-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20070620/f434e9de/attachment.html
More information about the Tinyos-devel
mailing list