If you need to send radio messages and UART messages at the same time, you can use BareSendMsg interface provided by RadioCRCPacket and UARTFramedPacket. Just wire these two components into your application. Otherwise, GenericComm ( AMStandard) provides a parameterized "SendMsg[uint8_t id]" interface to send both radio and UART messages. So, using two SendMsg with different id should work. If I am wrong, please correct me. Trisul Kanipakam.
On 11/26/06, Philip Levis <[EMAIL PROTECTED]> wrote:
On Nov 26, 2006, at 11:41 AM, walid hamdi wrote: > Hi All! > > I´m trying upon receiving a message to send back to > the sender and at the same time to the UART to see the > results on the pc. I´m making this using: > > call SendMsg.send(_pongmsg->src, sizeof(PongMsg_t), > p_msg); > call SendMsg.send(TOS_UART_ADDR, sizeof(PongMsg_t), > p_msg); > > But it seems that the the mote (sender) receives the > messages but there is nothing going to the UART: > > clients 1, read 0, wrote 0. > > Is the problem due to the the fact that i can not send > at the same time to two different destionations or is > there another cause?? A send is not complete until you get a sendDone event. If you check the return value of the second send call, you will see that it returns FAIL, because it is busy sending the first message. Phil _______________________________________________ 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
