Akankshu,

If they are all within transmission range, most likely the best way is to perform a broadcast. If that is not possible, then most likely you need to have some sort of message queue that you process. Since AMSend.send() is a split-phase operation, when the send() command finishes, it doesn't mean that the transmission has occured. If you try to send multiple packets before the previous one calls sendDone, then it's very likely you will overwrite your previous packet, or something else unexpected can happen.

You might want to check out the tinyos programer's guide here:

http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf

It has a section on split-phase behavior and how to write code to accomodate it.

-Paul

Akankshu Dhawan wrote:
Hi Paul
I wanted to know what is the best way to send to multiple nodes ?
Can I call several AMSend.send() commands and hope they are executed in a stack ?

Or

Should I post the next call from inside sendDone and have some sort of recursive mechanism ?

or

Is there a groupID kind of system to multicast at once ?

I would really appreciate your help.

Thanks a lot

Sincerely
Akankshu Dhawan

On Sat, Nov 21, 2009 at 9:58 PM, Paul Johnson <[email protected] <mailto:[email protected]>> wrote:

    Haixia,

    I'm not aware of any schematics that are available for the MDA320, but
    you might want to check out the MTS-MDA User guide.  That should at
    least give you a starting place.

    
http://www.xbow.com/support/Support_pdf_files/MTS-MDA_Series_Users_Manual.pdf

    -Paul


    Li, Haixia wrote:
    > Hello,
    >
    >   Where can I find a schematic of MDA320? I want to modify the
    old driver for tinyos1.x because  I cannot find the MDA320 driver
    for tinyos2.x.
    >
    >
    > Thanks and regards,
    > Haixia Li
    > _______________________________________________
    > Tinyos-help mailing list
    > [email protected]
    <mailto:[email protected]>
    >
    https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
    >

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




--
First they ignore you, then they laugh at you, then they fight you, then you win.
- Mahatma Gandhi

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

Reply via email to