Hi,

I am trying to increase the speed of serial communication on my Chipcon
CC2420DBK motes. Currently they support, 19200 and 57600bps as it has an
atmeag128 controller and CC2420 RF chip. I am able to receive packets
correctly on both these speeds, but I want to increase it to the maximum
possible, say 256Kbps or 115Kbps. I have added code to the
Atm128UartP.nc file as:

 

else if (PLATFORM_BAUDRATE == 115200UL)

      m_byte_time = 33;  // 1 TMicor ~= 2.12 us, one byte = 69us ~= 33

                else if (PLATFORM_BAUDRATE == 230400UL)

      m_byte_time = 17;  // 1 TMicor ~= 2.12 us, one byte = 35us ~= 17

                else if (PLATFORM_BAUDRATE == 256000UL)

      m_byte_time = 15;  // 1 TMicor ~= 2.12 us, one byte = 31us ~= 15

                

But when I start the Listen tool, I do not receive any packets in any
application (TestNetwork or TestSerial) whereas at 57600, I receive
everything correctly. 

 

Do I need to do any other changes. My platform uses UART1 of the atm128
processor rather than UART1 as in Micaz. I am currently running T-2.0.2
under cygwin. (I also suspect that the packets are treated differently
in Cygwin and Linux as Linux supports maximum 230400 baudrate as give in


/opt/tinyos-2.x/tools/tinyos/java/serial/ NativeSerial_linux.cpp  and
/opt/tinyos-2.x/tools/tinyos/java/serial/ NativeSerial_win32.cpp

 

What am I missing??? Please suggest as I have been stuck on this problem
for some time.

 

Thanks

 

Varun Jain

 

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

Reply via email to