[Tinyos-devel] ATmega128 UartByte Broken

Philip Levis pal at cs.stanford.edu
Wed Nov 28 11:19:36 PST 2007


On Nov 27, 2007, at 11:22 AM, David Moss wrote:

> Yes, the test code is available in tinyos-2.x-contrib:
>
> http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/tunit/ 
> tests/tiny
> os-2.x/tos/lib/serial/TestUartByte/
>
> It relies on the DirectSerialAMSenderC library to send packets over  
> the
> UartByte interface, found here:
>
> http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/tunit/ 
> tos/lib/di
> rectserial/
>
> The test code itself is pretty simple.  Upon receiving the command  
> to run
> over the regular serial interface from the java side of TUnit, the  
> test
> creates the equivalent of a TUnit "test passed" message and sends the
> message to the computer over DirectSerialAMSenderC.  If the computer
> receives the message, the test really did pass which demonstrates  
> that the
> UartByte interface worked inside of the DirectSerialAMSenderC  
> component.
>
> So there is some overlap here - I've tested the DirectSerialAMSenderC
> component with the MSP430 to ensure the test is not failing within  
> that
> functionality.
>

David,

I've incorporated Alec's fixes from the -devel checkin, and added one  
bug fix. I managed to get a hacked version of your UARTByte test  
working, and TestSerial works correctly. If you could do a full TUnit  
test run at some point that would be great.

Phil


More information about the Tinyos-devel mailing list