[Tinyos-help] Increasing Baudrate for Atmega-128

Andrey Gursky andrey.gursky at online.ua
Wed Jul 2 00:04:46 PDT 2008


Hello Varun!

In my answer to you

https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-July/034704.html

there was already a link to

http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/034373.html

where the problem is solved.

It is strange but the standard speed 256000 is not declared in the 
tinyos implementation of serial communication. That's why I used 230400.


Andrey


Varun Jain wrote:
> Hi,
> I am trying to increase the baudrate of the incoming packet for motes
> with atmega-128 processor. I am adding code in  the implementation
> Atm128UartP.nc located at /tos/chips/atm128/Atm128UartP.nc as follows:
> 
>  
> 
> else if (PLATFORM_BAUDRATE == 256000UL)
> 
>       m_byte_time = 15;  // 1 TMicor ~= 2.12 us, one byte = 31us ~= 15
> 
>  
> 
>  
> 
> $ java TestSerial -comm serial at COM1:256000
> 
> serial at COM1:256000 died - exiting (java.io.IOException: Could not
> configure COM1
> 
>  TOSComm JNI library runtime error: Error 87.
> 
>   The parameter is incorrect.
> 
>   in set_params.SetCommState)
> 
>                 
> 
> I am running this in Windows(Cygwin).... Why cant it configure this
> baudrate?? How and where is it configured, is it done in
> /tools/tinyos/java/ ???
> 
>  
> 
> Cheers,
> 
>  
> 
> Varun
> 
>  
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



More information about the Tinyos-help mailing list