Yes, and you can send messages without waiting for the sendDone event because SP keeps a pool available for use (as long as you have 2 different message structures in your app).
-Joe On 11/28/06, Pablo Gil Montaño <[EMAIL PROTECTED]> wrote:
Just in case you are using tmote, I think you can make use of SP (it's in nesdoc documentation included in boomerang: moteiv_dir/doc/nesdoc). I know that with SP you can receive messages from UART just as you do from radio, by using interface SPReceive. I haven't tested sending messages though. You can find more information about SP at [1] [1]: http://blog.moteiv.com/archives/boomerang/ ----- Mensaje original ---- De: Trisul Kanipakam <[EMAIL PROTECTED]> Para: Philip Levis <[EMAIL PROTECTED]> CC: [email protected] Enviado: lunes, 27 de noviembre, 2006 23:35:28 Asunto: Re: [Tinyos-help] Concerning call SendMsg.send() 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 ________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.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
