You need to call UART.send() three times, once for each byte
you wish to send, and (I think....) wait for a send done
interrupt after each call. On the get side the top level
receive event will be called for each byte in sequence.
I forget what was the issue with your COM1 not working...
Can't trust those professors though. The laptop in question
actually has a serial port, right? Sometimes COM1 is given
over to an internal modem...
MS
aseem grover wrote:
hi
the hpluart0m.nc sends and receives 1 byte of data by
calling the event hpluart.get() as follows:
"default async event result_t UART.get(uint8_t data) {
return SUCCESS; }
TOSH_SIGNAL(SIG_UART0_RECV) {
if (inp(UCSR0A) & (1 << RXC))
signal UART.get(inp(UDR0));"
i am trying to send and receive three bytes of data.
do i just need to change the unsigned integer of byte
to something like for an unsigned integer of 32 bits
as is typedefined in the above function.same question
for the sending part also.
Also, Michael if you see this, for the last time
around, I really can't tell you if used COM1 before,
coz that laptop was just handed to me by my professor
with the tinyos already installed on it.I haven't
updated the TOS or cygwin.
i tried looking as given in the manua, I have a few
other things to check, if it still doesn't work I'll
reinstall it again I think.
Everything works fine on a desktop I use with com4.
thanks
ag
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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