Yup I understnad that my device will not understand TinyoS packets but it still communicates 8bits at a time with 1 stop bit and no parity so the display should display what I want it to (along with some rubbish generated by the packet header) once I had it working I was going to then make changes to GenericComm(and lower interfaces) to remove the header. I read the boomerang sample but I am not using boomerang at the moment.

I was really looking to find out how to send data to the serial port using GenericComm and how to alter the baud rate.

Thanks for the help though,

Chris


Joe Polastre wrote:

You need to write a driver for your device.  I'm pretty sure that your
device doesn't understand TinyOS formatted packets that GenericComm
sends.  There's an article on Moteiv's support site about using UART0
with Boomerang:

http://www.moteiv.com/community/Boomerang_UART0_Sample

-Joe

On 3/23/06, Chris Morrison <[EMAIL PROTECTED]> wrote:
I've searched through the archives and can't find a definitive answer to
my question so I am hoping someone here can help.

I'm looking to connect a display up to my mote through the serial ports
that are on the expansion pins and I have two problems,
1. Can I use the genericComm to send to this UART or is it only the USB
port that can use the genericComm?
2. If I can use the genericComm how do i change the baud rate from
57600bps to 9600bps?  How do i change the destination address so rather
than going through the USB port it goes through the UART (at the moment
i just use the line

call Send.send( TOS_UART_ADDR,sizeof(IntMsg2),&data)

to send to the UART but that sends over the USB instead of the expansion
UART.

Thanks in advance,

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




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

Reply via email to