|
Hello every one, Im doing a project in which the sensor mote is connected to
a RS232 device. Sensor is having these properties. Baud rate-1200 bps Stop bit-1 Parity-none Flow control-none I have initialized the Mote UART by async
command result_t UART.init()
{ \\ set baud rate to
1200 outp(767>>8, UBRR0H); outp(767&0xff,
UBRR0L); \\ set double mode outp((1<<U2X),UCSR0A); \\
set 7 data bits and 1 stop bit outp(((1
<< UCSZ1) | (0 << UCSZ0)) , UCSR0C); outp(((1
<< RXCIE) | (1 << TXCIE) | (1 << RXEN) | (1 << TXEN))
,UCSR0B); return SUCCESS; } Now I have got the data from the RS232 device and broad cast
it to all other motes. The base mote which is connected to the system gets the data
from the TOS Message and prints it on the terminal Unfortunately, I couldn’t get all the data some data
is missing. Is this because there is some mismatch in baud rate. Please help me regarding this Hari Hara Sudhan |
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
