[Tinyos-help] GenericComm SimpleCmd UART.
Phani Kumar Arava
arava at cse.ohio-state.edu
Tue Nov 28 08:02:57 PST 2006
I was trying to write a Command Interface to my mote. Iam not sure whether
this is a bug, (Or maybe iam using the wrong component for UART
communication)
But when I send some message to my mote using GenericComm (or anything using
AMStandard)
event TOS_MsgPtr UARTReceive.receive(TOS_MsgPtr packet) {
// A serial cable is not a shared medium and does not need group-id
// filtering
packet->group = TOS_AM_GROUP;
return received(packet);
}
In AMStandard received.
if (packet->crc == 1 && // Uncomment this line to check crcs
packet->group == TOS_AM_GROUP &&
(packet->addr == TOS_BCAST_ADDR ||
packet->addr == addr) )
Isnt this a problem with TOS_UART_ADDR . I mean the message that is
communicated through UART, does not indicate a signal to the event received.
that means if Iam sending anything through UART with my messages, it doesnt
signal anything?
Is that the architecture of TinyOS always meant that the packet sent through
UART always meant to be TOS_LOCAL_ADDR ?
--
Phani Kumar Arava
Grad Student 1560 Worthington
Street
Department Of Computer Science Columbus Ohio 43201
2015 Neil Avenue
Ohio State University
Columbus Ohio-43210
Contact: (614)-286-2618
URL : www.cse.ohio-state.edu/~arava/
mailto: arava.3 at osu.edu,phani.arava at gmail.com, arava_phani at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061128/e68893c0/attachment.htm
More information about the Tinyos-help
mailing list